[FFmpeg-user] RTMP audio come with Black screen

Matthew Reus matthew.reus01 at gmail.com
Sat Oct 17 14:27:02 EEST 2020


Hello ,

I m going through an issue , I have ubuntu 18.04 ubuntu server with ffmpeg
compiled with NVIDIA tesla M60 gpu . I m using ffmpeg encoding  and my
issue is
1.
*When i play RTMP url on VLC , audio start but it takes 7-8 seconds to
arrive video *

*Here is my code*


*ffmpeg  -fflags +genpts -vsync 0 -hwaccel_device 1 -hwaccel nvdec
-hwaccel_output_format cuda  -i
'udp://enp14s0f1@239.88.101.13:5000?overrun_nonfatal=1&fifo_size=50000000&timeout=2000000000
<http://enp14s0f1@239.88.101.13:5000?overrun_nonfatal=1&fifo_size=50000000&timeout=2000000000>'
-vf "format=yuv420p|cuda,yadif_cuda=0:-1:0,scale_npp=1280:720"  -b:v 3M -bf
2 -aspect 16:9 -profile:v main -preset:v medium -c:v h264_nvenc -af
"aresample=async=1:min_comp=0.001:min_hard_comp=0.1:first_pts=0" -c:a aac
-b:a 128k -ar 44100 -strict -2 -f flv
 'rtmp://admin:netaccess@172.16.16.44:1935/nettv/netBodhi1500.stream
<http://admin:netaccess@172.16.16.44:1935/nettv/netBodhi1500.stream>'
-aspect 16:9 -profile:v main -preset:v medium -c:v h264_nvenc -vf
"yadif_cuda=mode=1,scale_npp=720:576" -b:v 650k -bf 2 -c:a aac -ac 2 -b:a
64k -ar 44100 -strict -2 -f flv 'rtmp://admin:netaccess@ 172.16.16.44:1935
<http://172.16.16.44:1935> /ott/ottBodhi450.stream' *

 and i have attach my log file
-------------- next part --------------
ffmpeg version N-97249-gfc12d6c Copyright (c) 2000-2020 the FFmpeg developers
  built with gcc 7 (Ubuntu 7.5.0-3ubuntu1~18.04)
  configuration: --prefix=/root/ffmpeg_build --pkg-config-flags=--static --extra-cflags='-I/root/ffmpeg_build/include -I/root/ffmpeg_sources/BMD_SDK/include' --extra-ldflags=-L/root/ffmpeg_build/lib --extra-libs='-lpthread -lm' --bindir=/root/bin --enable-cuda --enable-cuda-nvcc --enable-cuvid --enable-libnpp --extra-cflags=-I../nv_sdk --extra-ldflags=-L../nv_sdk --extra-cflags=-I/usr/local/cuda/include/ --extra-ldflags=-L/usr/local/cuda/lib64/ --enable-decklink --extra-cflags=-I/usr/local/sdk/Linux/include/ --extra-ldflags=-L/usr/local/sdk/Linux/include/ --enable-gpl --enable-libaom --enable-libass --enable-libfdk-aac --enable-vaapi --enable-libfreetype --enable-libmp3lame --enable-libopus --enable-libvorbis --enable-libvpx --enable-libx264 --enable-libx265 --enable-nonfree --enable-nvenc
  libavutil      56. 42.102 / 56. 42.102
  libavcodec     58. 78.100 / 58. 78.100
  libavformat    58. 42.100 / 58. 42.100
  libavdevice    58.  9.103 / 58.  9.103
  libavfilter     7. 77.101 /  7. 77.101
  libswscale      5.  6.101 /  5.  6.101
  libswresample   3.  6.100 /  3.  6.100
  libpostproc    55.  6.100 / 55.  6.100
[h264 @ 0x55ed0f08e840] non-existing PPS 0 referenced
    Last message repeated 1 times
[h264 @ 0x55ed0f08e840] decode_slice_header error
[h264 @ 0x55ed0f08e840] no frame!
[h264 @ 0x55ed0f08e840] non-existing PPS 0 referenced
    Last message repeated 1 times
[h264 @ 0x55ed0f08e840] decode_slice_header error
[h264 @ 0x55ed0f08e840] no frame!
[h264 @ 0x55ed0f08e840] non-existing PPS 0 referenced
    Last message repeated 1 times
[h264 @ 0x55ed0f08e840] decode_slice_header error
[h264 @ 0x55ed0f08e840] no frame!
[h264 @ 0x55ed0f08e840] non-existing PPS 0 referenced
    Last message repeated 1 times
[h264 @ 0x55ed0f08e840] decode_slice_header error
[h264 @ 0x55ed0f08e840] no frame!
[h264 @ 0x55ed0f08e840] non-existing PPS 0 referenced
    Last message repeated 1 times
[h264 @ 0x55ed0f08e840] decode_slice_header error
[h264 @ 0x55ed0f08e840] no frame!
[h264 @ 0x55ed0f08e840] non-existing PPS 0 referenced
    Last message repeated 1 times
[h264 @ 0x55ed0f08e840] decode_slice_header error
[h264 @ 0x55ed0f08e840] no frame!
[h264 @ 0x55ed0f08e840] non-existing PPS 0 referenced
    Last message repeated 1 times
[h264 @ 0x55ed0f08e840] decode_slice_header error
[h264 @ 0x55ed0f08e840] no frame!
[h264 @ 0x55ed0f08e840] non-existing PPS 0 referenced
    Last message repeated 1 times
[h264 @ 0x55ed0f08e840] decode_slice_header error
[h264 @ 0x55ed0f08e840] no frame!
[h264 @ 0x55ed0f08e840] non-existing PPS 0 referenced
    Last message repeated 1 times
[h264 @ 0x55ed0f08e840] decode_slice_header error
[h264 @ 0x55ed0f08e840] no frame!
[h264 @ 0x55ed0f08e840] non-existing PPS 0 referenced
    Last message repeated 1 times
[h264 @ 0x55ed0f08e840] decode_slice_header error
[h264 @ 0x55ed0f08e840] no frame!
[h264 @ 0x55ed0f08e840] non-existing PPS 0 referenced
    Last message repeated 1 times
[h264 @ 0x55ed0f08e840] decode_slice_header error
[h264 @ 0x55ed0f08e840] no frame!
[h264 @ 0x55ed0f08e840] non-existing PPS 0 referenced
    Last message repeated 1 times
[h264 @ 0x55ed0f08e840] decode_slice_header error
[h264 @ 0x55ed0f08e840] no frame!
[h264 @ 0x55ed0f08e840] non-existing PPS 0 referenced
    Last message repeated 1 times
[h264 @ 0x55ed0f08e840] decode_slice_header error
[h264 @ 0x55ed0f08e840] no frame!
Input #0, mpegts, from 'udp://enp14s0f1@239.88.101.13:5000?overrun_nonfatal=1&fifo_size=50000000&timeout=2000000000':
  Duration: N/A, start: 67322.782367, bitrate: N/A
  Program 1
    Metadata:
      service_name    : Bodhi HD
      service_provider: FFmpeg
    Stream #0:0[0x118]: Video: h264 (Main) ([27][0][0][0] / 0x001B), yuvj420p(pc, bt709, progressive), 720x576 [SAR 16:9 DAR 20:9], 25 fps, 60 tbr, 90k tbn, 50 tbc
    Stream #0:1[0x119]: Audio: aac (LC) ([15][0][0][0] / 0x000F), 48000 Hz, stereo, fltp, 130 kb/s
[rtmp @ 0x55ed0f0c3f80] Ignoring unsupported var reason
[rtmp @ 0x55ed0f0dd940] Ignoring unsupported var reason
Stream mapping:
  Stream #0:0 -> #0:0 (h264 (native) -> h264 (h264_nvenc))
  Stream #0:1 -> #0:1 (aac (native) -> aac (native))
  Stream #0:0 -> #1:0 (h264 (native) -> h264 (h264_nvenc))
  Stream #0:1 -> #1:1 (aac (native) -> aac (native))
Press [q] to stop, [?] for help
Output #0, flv, to 'rtmp://admin:netaccess@172.16.16.44/nettv/netBodhi1500.stream':
  Metadata:
    encoder         : Lavf58.42.100
    Stream #0:0: Video: h264 (h264_nvenc) (Main) ([7][0][0][0] / 0x0007), cuda, 1280x720 [SAR 1:1 DAR 16:9], q=-1--1, 3000 kb/s, 25 fps, 1k tbn, 25 tbc
    Metadata:
      encoder         : Lavc58.78.100 h264_nvenc
    Side data:
      cpb: bitrate max/min/avg: 0/0/3000000 buffer size: 6000000 vbv_delay: N/A
    Stream #0:1: Audio: aac (LC) ([10][0][0][0] / 0x000A), 44100 Hz, stereo, fltp, 128 kb/s
    Metadata:
      encoder         : Lavc58.78.100 aac
Output #1, flv, to 'rtmp://admin:netaccess@172.16.16.44:1935/ott/ottBodhi450.stream':
  Metadata:
    encoder         : Lavf58.42.100
    Stream #1:0: Video: h264 (h264_nvenc) (Main) ([7][0][0][0] / 0x0007), cuda, 720x576 [SAR 64:45 DAR 16:9], q=-1--1, 650 kb/s, 50 fps, 1k tbn, 50 tbc
    Metadata:
      encoder         : Lavc58.78.100 h264_nvenc
    Side data:
      cpb: bitrate max/min/avg: 0/0/650000 buffer size: 1300000 vbv_delay: N/A
    Stream #1:1: Audio: aac (LC) ([10][0][0][0] / 0x000A), 44100 Hz, stereo, fltp, 64 kb/s
    Metadata:
      encoder         : Lavc58.78.100 aac
[flv @ 0x55ed0f263800] Failed to update header with correct duration.trate=3129.2kbits/s speed=1.17x
[flv @ 0x55ed0f263800] Failed to update header with correct filesize.
[flv @ 0x55ed0f30c180] Failed to update header with correct duration.
[flv @ 0x55ed0f30c180] Failed to update header with correct filesize.
frame=  880 fps= 28 q=20.0 Lq=30.0 size=   14054kB time=00:00:36.48 bitrate=3155.9kbits/s speed=1.18x
video:16406kB audio:859kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: unknown
[aac @ 0x55ed0f087fc0] Qavg: 191.200
[aac @ 0x55ed0f0e16c0] Qavg: 170.205



More information about the ffmpeg-user mailing list