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

Ferdi Scholten ferdi at sttc-nlp.nl
Thu Sep 26 09:50:01 EEST 2024


When downloading a live stream on Linux using ffmpeg I get a lot of 
noise on the
> screen like:
>
> [hls @ 0x17859d0] Skip ('#EXT-X-VERSION:3')
> [https @ 0x1a03eb0] Opening 'https://somesite.com/stream/bc-1727330916096.ts'
> for reading
> frame=  628 fps= 41 q=32.0 size=    1280kB time=00:00:20.99 bitrate=
> 499.5kbits/s dup=5 drop=0 speed=1.39xframe=  654 fps= 42 q=32.0 size=    1536kB
> time=00:00:21.76 bitrate= 578.3kbits/s dup=5 drop=0 speed=1.39xframe=  678 fps=
> 42 q=32.0 size=    1536kB time=00:00:22.59 bitrate= 557.0kbits/s dup=5 drop=0
> speed= 1.4xframe=  701 fps= 42 q=32.0 size=    1536kB time=00:00:23.29 bitrate=
> 540.1kbits/s dup=5 drop=0 speed=1.39x[https @ 0x247a7e0] Opening
> 'https://somesite.com/stream/bc.m3u8' for reading
>
> 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.


More information about the ffmpeg-user mailing list