[FFmpeg-user] Trouble with encodnig UDP->RTMP

Remo Rayamajhi kshatriya.remo at gmail.com
Thu Aug 30 10:44:13 EEST 2018


Hello support ,
 I have a server from where i have to stream about 10-15 UDP stream to rtmp
, each time i run the ffmpeg script in bundle only 5-6 channels runs where
rest of the channels  doesnt work out .
But if i run the script of each channel separtely all the 10-15 stream
works . what is the main cause and what makes the streaming UDP to RTMP
fails

* ffmpeg -i 'udp://@239.1.5.2:8002?fifo_size=1000000\&overrun_nonfatal
<http://239.1.5.2:8002?fifo_size=1000000\&overrun_nonfatal>' -pix_fmt
yuv420p -r 25 -s 640x360 -c:v libx264 -b:v 600k -c:a libfdk_aac -aspect
16:9 -strict experimental -b:a 64000 -ar 44100 -ac 2 -f flv
'rtmp://admin:admin@192.168.2.200:1935/live/001rupasi.stream
<http://admin:admin@192.168.2.200:1935/live/001rupasi.stream>'*
ffmpeg version N-91527-g7ca892b Copyright (c) 2000-2018 the FFmpeg
developers
  built with gcc 4.8.5 (GCC) 20150623 (Red Hat 4.8.5-28)
  configuration: --prefix=/root/ffmpeg_build --pkg-config-flags=--static
--extra-cflags=-I/root/ffmpeg_build/include
--extra-ldflags=-L/root/ffmpeg_build/lib --extra-libs=-lpthread
--extra-libs=-lm --bindir=/root/bin --enable-gpl --enable-libfdk_aac
--enable-libfreetype --enable-libopus --enable-libtheora --enable-libx264
--enable-libx265 --enable-nonfree
  libavutil      56. 19.100 / 56. 19.100
  libavcodec     58. 27.100 / 58. 27.100
  libavformat    58. 17.103 / 58. 17.103
  libavdevice    58.  4.101 / 58.  4.101
  libavfilter     7. 26.100 /  7. 26.100
  libswscale      5.  2.100 /  5.  2.100
  libswresample   3.  2.100 /  3.  2.100
  libpostproc    55.  2.100 / 55.  2.100
*[h264 @ 0x3f38b00] non-existing SPS 0 referenced in buffering period*
*[h264 @ 0x3f38b00] SPS unavailable in decode_picture_timing*
*[h264 @ 0x3f38b00] non-existing PPS 0 referenced*
*[h264 @ 0x3f38b00] non-existing SPS 0 referenced in buffering period*
*[h264 @ 0x3f38b00] SPS unavailable in decode_picture_timing*
*[h264 @ 0x3f38b00] non-existing PPS 0 referenced*
*[h264 @ 0x3f38b00] decode_slice_header error*
*[h264 @ 0x3f38b00] no frame!*
[h264 @ 0x3f38b00] non-existing SPS 0 referenced in buffering period
[h264 @ 0x3f38b00] SPS unavailable in decode_picture_timing
[h264 @ 0x3f38b00] non-existing PPS 0 referenced
[h264 @ 0x3f38b00] non-existing SPS 0 referenced in buffering period
[h264 @ 0x3f38b00] SPS unavailable in decode_picture_timing
[h264 @ 0x3f38b00] non-existing PPS 0 referenced
[h264 @ 0x3f38b00] decode_slice_header error
[h264 @ 0x3f38b00] no frame!
Input #0, mpegts, from 'udp://@
239.1.5.2:8002?fifo_size=1000000\&overrun_nonfatal':
  Duration: N/A, start: 66170.982967, bitrate: N/A
  Program 35
    Metadata:
      service_name    : RUPSHI
      service_provider: INDIASIGN
    Stream #0:0[0x24]: Video: h264 (Main) ([27][0][0][0] / 0x001B),
yuv420p(tv, bt470bg, top first), 720x576 [SAR 12:11 DAR 15:11], 25 fps, 50
tbr, 90k tbn, 50 tbc
    Stream #0:1[0x25](ben): Audio: mp2 ([4][0][0][0] / 0x0004), 48000 Hz,
stereo, s16p, 128 kb/s
[rtmp @ 0x42a0380] Ignoring unsupported var reason
Stream mapping:
  Stream #0:0 -> #0:0 (h264 (native) -> h264 (libx264))
  Stream #0:1 -> #0:1 (mp2 (native) -> aac (libfdk_aac))
Press [q] to stop, [?] for help
[h264 @ 0x40e4980] mmco: unref short failure
[h264 @ 0x42bb580] reference picture missing during reorder
[h264 @ 0x42bb580] Missing reference picture, default is 65636
[h264 @ 0x3f60880] mmco: unref short failure
[h264 @ 0x3f60880] reference picture missing during reorder
[h264 @ 0x3f60880] Missing reference picture, default is 65637
[mp2 @ 0x3f3e200] Header missing
Error while decoding stream #0:1: Invalid data found when processing input
[h264 @ 0x416ae40] mmco: unref short failure
[libx264 @ 0x3f3c300] using SAR=1/1
[libx264 @ 0x3f3c300] using cpu capabilities: none!
[libx264 @ 0x3f3c300] profile High, level 3.0
[libx264 @ 0x3f3c300] 264 - core 155 - H.264/MPEG-4 AVC codec - Copyleft
2003-2018 - http://www.videolan.org/x264.html - options: cabac=1 ref=3
deblock=1:0:0 analyse=0x3:0x113 me=hex subme=7 psy=1 psy_rd=1.00:0.00
mixed_ref=1 me_range=16 chroma_me=1 trellis=1 8x8dct=1 cqm=0 deadzone=21,11
fast_pskip=1 chroma_qp_offset=-2 threads=11 lookahead_threads=1
sliced_threads=0 nr=0 decimate=1 interlaced=0 bluray_compat=0
constrained_intra=0 bframes=3 b_pyramid=2 b_adapt=1 b_bias=0 direct=1
weightb=1 open_gop=0 weightp=2 keyint=250 keyint_min=25 scenecut=40
intra_refresh=0 rc_lookahead=40 rc=abr mbtree=1 bitrate=600 ratetol=1.0
qcomp=0.60 qpmin=0 qpmax=69 qpstep=4 ip_ratio=1.40 aq=1:1.00
Output #0, flv, to 'rtmp://
admin:admin at 192.168.2.200:1935/live/001rupasi.stream':
  Metadata:
    encoder         : Lavf58.17.103
    Stream #0:0: Video: h264 (libx264) ([7][0][0][0] / 0x0007), yuv420p,
640x360 [SAR 1:1 DAR 16:9], q=-1--1, 600 kb/s, 25 fps, 1k tbn, 25 tbc
    Metadata:
      encoder         : Lavc58.27.100 libx264
    Side data:
      cpb: bitrate max/min/avg: 0/0/600000 buffer size: 0 vbv_delay: -1
    Stream #0:1(ben): Audio: aac (libfdk_aac) ([10][0][0][0] / 0x000A),
44100 Hz, stereo, s16, 64 kb/s
    Metadata:
      encoder         : Lavc58.27.100 libfdk_aac
frame= 5527 fps= 26 q=24.0 size=   17338kB time=00:03:42.04 bitrate=
639.7kbits/s speed=1.03x


More information about the ffmpeg-user mailing list