[FFmpeg-user] Default thread_queue_size value

KRISHNAKUMAR N K nk.krishnakumar at gmail.com
Mon Mar 8 14:57:19 EET 2021

Hi Guys

I am converting a udp input to a rtmp output, during playback, i could see
the live feed is delayed by almost 5 minutes, i am not sure if
*thread_queue_size* is causing this delay.
Can anyone help me in getting the default value for *thread_queue_size. *Any
recommendations on tuning the below ffmpeg command?

*Sample FFmpeg Command :*
*ffmpeg -analyzeduration 25M -probesize 50M -loglevel verbose
-thread_queue_size 2048 -err_detect aggressive -fflags +discardcorrupt
-abort_on empty_output -vsync 0 -i
-f flv -vcodec libx264 -s 640x360 -r 25/1 -b:v 350000 -acodec libfdk_aac
-ar 48000 -b:a 64000 -sc_threshold 0 -pix_fmt yuv420p -flags
+global_header+cgop -profile:v baseline -level 3.0 -preset fast -nal-hrd
cbr -maxrate 350000 -minrate 350000 -bufsize 700000 -g 50 -map [v0] -map
[a0] rtmp:// <>*


*KrishnaKumar **N K*

More information about the ffmpeg-user mailing list