[FFmpeg-user] Problem streaming mpegts on udp

Maxim Kozlov rogat1y at gmail.com
Fri Mar 22 13:16:24 CET 2013


tried Hi all.

I'm trying to stream video from Blackmagic decklink to media server.
My start script.

set LINE=rtpline19
set INPUTOPTS=-re -f dshow -pix_fmt uyvy422 -s 1920x1080 -r 25 -i
video="Decklink Video Capture":audio="Decklink Audio Capture" -ac 2 -ar
48000
set FFMPEGOPTS=-loglevel verbose -threads 0 -rtbufsize 1G -report
set AUDIO=-af aresample=44100 -acodec libvo_aacenc -ab 64000 -ar 44100 -ac
2
set LOGO=-vf "movie=logo_new_1920x1080_169.png [wm];[in][wm] overlay=0:0
[out]"

set HIGHOPTS=%LOGO% -vcodec libx264 -pix_fmt yuv420p -profile:v baseline -s
1280x720 -vb 4000k -x264opts
no-scenecut:no-cabac:level=31:keyint=25:fps=25:partitions=none:no-8x8dct:ref=5:dct-decimate:vbv_maxrate=4000:vbv_bufsize=9000:interlaced=0
-aspect 16:9 %AUDIO%

set MIDOPTS=-vcodec libx264 -profile:v baseline -s 640x360 -vb 1024k
-x264opts level=31:keyint=25:fps=25:vbv_maxrate=1024:vbv_bufsize=1024
-aspect 16:9 -q:v 0 -c:a copy

set LOWOPTS=-vcodec libx264 -profile:v baseline -s 320x180 -vb 256k
-x264opts level=31:keyint=25:fps=25:vbv_maxrate=256:vbv_bufsize=256 -aspect
16:9 -q:v 0 -c:a copy

ffmpeg.exe %FFMPEGOPTS% %INPUTOPTS% %HIGHOPTS% -f mpegts - | ffmpeg
%FFMPEGOPTS% -f mpegts -i - -c copy -f mpegts "udp://192.168.155.6:10193"
-c copy -f mpegts "udp://192.168.155.26:10193" %MIDOPTS% -f mpegts "udp://
192.168.155.6:10191" %MIDOPTS% -f mpegts "udp://192.168.155.26:10191"
%LOWOPTS% -f mpegts "udp://192.168.155.6:10192" %LOWOPTS% -f mpegts "udp://
192.168.155.26:10192"


%LOWOPTS% and %MIDOPTS% streaming w/o problems.
%HIGHOPTS% streaming with problems like video sometimes pixelating(like
some packets lost) every 7-10 seconds. I tried to change buffer_size,
pkt_size, fifo_size, but have no luck.

Also i've tried to stream with this codding settings from VLC, and it
streams w/o frame/packets drops.

What options should i try to change?

Version:
ffmpeg.exe
ffmpeg version N-50911-g9efcfbe Copyright (c) 2000-2013 the FFmpeg
developers
  built on Mar 13 2013 21:26:48 with gcc 4.7.2 (GCC)
  configuration: --enable-gpl --enable-version3 --disable-w32threads
--enable-avisynth --enable-bzlib --enable-fontconfi
bcaca --enable-libfreetype --enable-libgsm --enable-libilbc
--enable-libmp3lame --enable-libopencore-amrnb --enable-libo
bschroedinger --enable-libsoxr --enable-libspeex --enable-libtheora
--enable-libtwolame --enable-libvo-aacenc --enable-l
vs --enable-libxvid --enable-zlib
  libavutil      52. 19.100 / 52. 19.100
  libavcodec     55.  0.100 / 55.  0.100
  libavformat    55.  0.100 / 55.  0.100
  libavdevice    54.  4.100 / 54.  4.100
  libavfilter     3. 45.103 /  3. 45.103
  libswscale      2.  2.100 /  2.  2.100
  libswresample   0. 17.102 /  0. 17.102
  libpostproc    52.  2.100 / 52.  2.100


More information about the ffmpeg-user mailing list