[FFmpeg-user] How to reduce console output while downloading video stream?
Ferdi Scholten
ferdi at sttc-nlp.nl
Thu Sep 26 18:19:25 EEST 2024
On Thu, 26 Sep 2024 10:06:11 +0200, Bo Berglund <bo.berglund at gmail.com>
wrote:
>> On Thu, 26 Sep 2024 08:50:01 +0200, Ferdi Scholten<ferdi at sttc-nlp.nl> wrote:
>>
>>>> How can I reduce this to only show some progress messages without all this
>>>> noise?
>>>> Is there a verbocity setting I can use?
>>>>
>>>> My download script reformats the video output on the go to a specific size such
>>>> that it can be viewed directly once it is done without further processing.
>>>>
>>>>
>>> Yes it is possible using the following options
>>>
>>> -nostats
>>> does not show encoding progress/messages at all
>>>
>>> -loglevel
>>> can be used to specify what messages are logged/displayed, "info" is the
>>> default setting, "warning" logs warnings and errors, "error" only logs
>>> errors, and "debug" logs everything.
>> My script command looks like this:
>>
>> CMD="ffmpeg -hide_banner ${MODE} -i \"${M3U8URL}\" -r 30 -vf
>> scale=w=-4:h=${VIDEORES} -c:v libx264 -preset fast -crf 26 -x264-params
>> keyint=30:scenecut=0:open-gop=0 -c:a aac -t ${CAPTURETIME} ${TARGETFILE}"
>>
>> Of course the variables are loaded with the used parameters before this.
>>
>> Where should I put the extra parameter?
>> Will this work:
>>
>> CMD="ffmpeg -hide_banner -loglevel warning ${MODE} -i \"${M3U8URL}\"....
> Thanks,
> I tested this and it turns out to not showing anything at all until download is
> done.
> This is better than the overwhelming amount before but a little bit terse still.
> Is there a way to reduce the output while still seeing some kind of progress
> like the so far downloaded time?
> If a running time output is constantly updated (on the same line) then one can
> see the process is working but not flooding the screen...
>
add -stats before -i
More information about the ffmpeg-user
mailing list