[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
udp://230.1.1.7:9000?fifo_size=10000000&overrun_nonfatal=1
<http://230.1.1.7:9000?fifo_size=10000000&overrun_nonfatal=1>
-filter_complex
[i:0xcd]yadif[vout];[vout]split=1[out0];[out0]setdar=640/360[v0];[i:0x131]aresample=async=1:min_hard_comp=0.100000:first_pts=0[aout];[aout]asplit=1[a0]
-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://1.2.3.4:1935/live/testfeed <http://1.2.3.4:1935/live/testfeed>*


Regards

*KrishnaKumar **N K*


More information about the ffmpeg-user mailing list