[FFmpeg-user] How to reduce console output while downloading video stream?

Bo Berglund bo.berglund at gmail.com
Thu Sep 26 11:06:11 EEST 2024


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}\"....


-- 
Bo Berglund
Developer in Sweden



More information about the ffmpeg-user mailing list