P
P
pojarcky2020-11-13 00:14:50
fmpeg
pojarcky, 2020-11-13 00:14:50

Why does ffmpeg have a high write speed?

The script monitors the broadcasts on the GoodGame.ru portal and records them together with the chat that goes through headless Chrome, on one of the servers the recording of the stream and the chat are combined into one ready-made recording.

What problems arose:

Recording a chat via ffmpeg for some reason has a high speed and after a short time it stops

https://yadi.sk/i/hGUWY9qODvCTPQ - you can see how the Gifs twitch, plus at the 7th second everything stops, this happens even if you record the chat separately without m3u8 stream.

ffmpeg options:

const args = [
'-y',
'-re',
'-i',
'-',
'-probesize',
'10M',
'-c:v',
'libx264',
'25',
'-preset',
'medium',
'-tune',
'zerolatency',
'-crf',
'25',
'-b:v',
'2M',
'-maxrate',
'2M' ,
'-bufsize',
'1M',
util.format('%s/%s', path, name),
];

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
Sergey Pankov, 2020-11-13
@trapwalker

pojarcky , this is not a club of psychics, how do we understand that twitching gifs are what you call a chat? In this example, no chat is observed.
OK.
The problem can occur when capturing a chat and when merging (it's not clear how you do this).
Look separately at the chat thread before the merge. Try running the merge with the same settings on another normal movie with the right proportions.
The solution to all problems is always the same: to divide the problem into parts and solve them separately. If any of the parts is too large - see point one.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question