[Libav-user] ffmpeg burst traffic problem

Anton Antonov aantonov at neterra.net
Thu Dec 5 12:15:14 CET 2013


Hi ffmpeg team,

I am new in ffmpeg and I have a problem that I can't solve. I use ffmpeg 
for live encoding of SD mpeg2 channels to SD h264. To do that I use the 
following ffmpeg version and command line:

ffmpeg version N-40926-gfa6fa21 Copyright (c) 2000-2013 the FFmpeg 
developers
   built on Oct 31 2013 14:36:27 with gcc 4.4.7 (GCC) 20120313 (Red Hat 
4.4.7-3)
   configuration: --prefix=/root/ffmpeg_build 
--extra-cflags=-I/root/ffmpeg_build/include 
--extra-ldflags=-L/root/ffmpeg_build/lib --bindir=/root/bin 
--extra-libs=-ldl --enable-gpl --enable-nonfree --enable-libfdk_aac 
--enable-libmp3lame --enable-libopus --enable-libvorbis --enable-libvpx 
--enable-libx264
   libavutil      52. 48.100 / 52. 48.100
   libavcodec     55. 39.100 / 55. 39.100
   libavformat    55. 19.104 / 55. 19.104
   libavdevice    55.  5.100 / 55.  5.100
   libavfilter     3. 90.100 /  3. 90.100
   libswscale      2.  5.101 /  2.  5.101
   libswresample   0. 17.104 /  0. 17.104
   libpostproc    52.  3.100 / 52.  3.100
Hyper fast Audio and Video encoder

/root/bin/ffmpeg -i udp://239.10.1.169:30000 -vcodec libx264 -profile 
high -r 25 -g 150 -vb 1000k -minrate 1000k -maxrate 1000k -bufsize 300k 
-strict experimental -partitions all -acodec aac -ab 96000 -ar 48000 -ac 
2 -vbsf h264_mp4toannexb -f mpegts -threads 16 -async 48000 -vsync 1 
-deinterlace udp://229.9.23.1:39271?pkt_size=1316

The encoded output looks fine. There is a problem with micro bursts in 
output traffic. As an attachment I sent two pictures of captured traffic 
from ffmpeg and elecard encoder. On the pictures there is analyzed 
traffic by wireshark. On elecard picture you can see that traffic is 
leveled and on equal intervals. On ffmpef picture traffic is on bursts. 
On command line above I tried to deal with parameter "bufsize" but the 
result was nearly the same.

Could you help me to make ffmpeg output traffic to run without burst?
-------------- next part --------------
A non-text attachment was scrubbed...
Name: ffmpeg.GIF
Type: image/gif
Size: 24120 bytes
Desc: not available
URL: <http://ffmpeg.org/pipermail/libav-user/attachments/20131205/93b142f9/attachment.gif>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: elecard.GIF
Type: image/gif
Size: 27123 bytes
Desc: not available
URL: <http://ffmpeg.org/pipermail/libav-user/attachments/20131205/93b142f9/attachment-0001.gif>


More information about the Libav-user mailing list