Opened 6 years ago

Last modified 6 years ago

#6920 new defect

Error with two audio inputs and at least two videos profiles

Reported by: Facundo Owned by:
Priority: normal Component: ffmpeg
Version: git-master Keywords: tee
Cc: Blocked By:
Blocking: Reproduced by developer: no
Analyzed by developer: no

Description

Summary of the bug:
I'm having issues with the tee option with many audios and at least two output video profiles.

root@ubuntu:/code/src# ffmpeg -nostdin -loglevel verbose -hwaccel_device 0 -hwaccel cuvid -c:v h264_cuvid -y -re -i udp://239.255.0.22:2224?pkt_size=1316\&buffer_size=409600\&fifo_size=1000000\&overrun_nonfatal=1 -map 0:a -map 0:v -c:a libfdk_aac -ac 2 -bsf:a aac_adtstoasc -b:a 64k -filter:v:0 scale_npp=w=1920:h=1080 -c:v:0 h264_nvenc -preset llhq -g 50 -keyint_min 50 -b:v:0 2000k -maxrate:0 2160k -bufsize:0 5000k -filter:v:1 scale_npp=w=1080:h=720 -c:v:1 h264_nvenc -preset llhq -g 50 -keyint_min 50 -b:v:1 2000k -maxrate:1 2160k -bufsize:1 5000k -flags +global_header -f tee "[movflags=isml+frag_keyframe:f=ismv]http://192.168.1.69/FX_HD_0/FX_HD_0.isml/Streams(video)|[movflags=isml+frag_keyframe:f=ismv]http://192.168.1.69/FX_HD_1/FX_HD_1.isml/Streams(video)"
ffmpeg version N-89317-gda49cdf Copyright (c) 2000-2017 the FFmpeg developers
  built with gcc 5.4.0 (Ubuntu 5.4.0-6ubuntu1~16.04.5) 20160609
  configuration: --prefix=/usr/local/ffmpeg_build --extra-cflags='-I/usr/local/ffmpeg_build/include -I/usr/local/cuda/include/' --disable-yasm --extra-ldflags='-L/usr/local/ffmpeg_build/lib -L/usr/local/cuda/lib64/' --bindir=/usr/local/bin --extra-libs=-ldl --enable-nvenc --enable-cuda --enable-libnpp --enable-cuvid --enable-gpl --enable-libx264 --enable-libfdk-aac --enable-nonfree --enable-version3
  libavutil      56.  3.100 / 56.  3.100
  libavcodec     58.  6.101 / 58.  6.101
  libavformat    58.  2.103 / 58.  2.103
  libavdevice    58.  0.100 / 58.  0.100
  libavfilter     7.  5.100 /  7.  5.100
  libswscale      5.  0.101 /  5.  0.101
  libswresample   3.  0.101 /  3.  0.101
  libpostproc    55.  0.100 / 55.  0.100
[h264 @ 0x24df6c0] SPS unavailable in decode_picture_timing
[h264 @ 0x24df6c0] non-existing PPS 0 referenced
[h264 @ 0x24df6c0] SPS unavailable in decode_picture_timing
[h264 @ 0x24df6c0] non-existing PPS 0 referenced
[h264 @ 0x24df6c0] decode_slice_header error
[h264 @ 0x24df6c0] no frame!
[h264 @ 0x24df6c0] SPS unavailable in decode_picture_timing
[h264 @ 0x24df6c0] non-existing PPS 0 referenced
[h264 @ 0x24df6c0] SPS unavailable in decode_picture_timing
[h264 @ 0x24df6c0] non-existing PPS 0 referenced
[h264 @ 0x24df6c0] decode_slice_header error
[h264 @ 0x24df6c0] no frame!
[h264 @ 0x24df6c0] SPS unavailable in decode_picture_timing
[h264 @ 0x24df6c0] non-existing PPS 0 referenced
[h264 @ 0x24df6c0] SPS unavailable in decode_picture_timing
[h264 @ 0x24df6c0] non-existing PPS 0 referenced
[h264 @ 0x24df6c0] decode_slice_header error
[h264 @ 0x24df6c0] no frame!
[h264 @ 0x24df6c0] SPS unavailable in decode_picture_timing
[h264 @ 0x24df6c0] non-existing PPS 0 referenced
[h264 @ 0x24df6c0] SPS unavailable in decode_picture_timing
[h264 @ 0x24df6c0] non-existing PPS 0 referenced
[h264 @ 0x24df6c0] decode_slice_header error
[h264 @ 0x24df6c0] no frame!
[h264 @ 0x24df6c0] SPS unavailable in decode_picture_timing
[h264 @ 0x24df6c0] non-existing PPS 0 referenced
[h264 @ 0x24df6c0] SPS unavailable in decode_picture_timing
[h264 @ 0x24df6c0] non-existing PPS 0 referenced
[h264 @ 0x24df6c0] decode_slice_header error
[h264 @ 0x24df6c0] no frame!
[h264 @ 0x24df6c0] SPS unavailable in decode_picture_timing
[h264 @ 0x24df6c0] non-existing PPS 0 referenced
[h264 @ 0x24df6c0] SPS unavailable in decode_picture_timing
[h264 @ 0x24df6c0] non-existing PPS 0 referenced
[h264 @ 0x24df6c0] decode_slice_header error
[h264 @ 0x24df6c0] no frame!
[h264 @ 0x24df6c0] SPS unavailable in decode_picture_timing
[h264 @ 0x24df6c0] non-existing PPS 0 referenced
[h264 @ 0x24df6c0] SPS unavailable in decode_picture_timing
[h264 @ 0x24df6c0] non-existing PPS 0 referenced
[h264 @ 0x24df6c0] decode_slice_header error
[h264 @ 0x24df6c0] no frame!
[h264 @ 0x24df6c0] SPS unavailable in decode_picture_timing
[h264 @ 0x24df6c0] non-existing PPS 0 referenced
[h264 @ 0x24df6c0] SPS unavailable in decode_picture_timing
[h264 @ 0x24df6c0] non-existing PPS 0 referenced
[h264 @ 0x24df6c0] decode_slice_header error
[h264 @ 0x24df6c0] no frame!
[h264 @ 0x24df6c0] SPS unavailable in decode_picture_timing
[h264 @ 0x24df6c0] non-existing PPS 0 referenced
[h264 @ 0x24df6c0] SPS unavailable in decode_picture_timing
[h264 @ 0x24df6c0] non-existing PPS 0 referenced
[h264 @ 0x24df6c0] decode_slice_header error
[h264 @ 0x24df6c0] no frame!
[h264 @ 0x24df6c0] SPS unavailable in decode_picture_timing
[h264 @ 0x24df6c0] non-existing PPS 0 referenced
[h264 @ 0x24df6c0] SPS unavailable in decode_picture_timing
[h264 @ 0x24df6c0] non-existing PPS 0 referenced
[h264 @ 0x24df6c0] decode_slice_header error
[h264 @ 0x24df6c0] no frame!
[h264 @ 0x24df6c0] SPS unavailable in decode_picture_timing
[h264 @ 0x24df6c0] non-existing PPS 0 referenced
[h264 @ 0x24df6c0] SPS unavailable in decode_picture_timing
[h264 @ 0x24df6c0] non-existing PPS 0 referenced
[h264 @ 0x24df6c0] decode_slice_header error
[h264 @ 0x24df6c0] no frame!
[h264 @ 0x24df6c0] SPS unavailable in decode_picture_timing
[h264 @ 0x24df6c0] non-existing PPS 0 referenced
[h264 @ 0x24df6c0] SPS unavailable in decode_picture_timing
[h264 @ 0x24df6c0] non-existing PPS 0 referenced
[h264 @ 0x24df6c0] decode_slice_header error
[h264 @ 0x24df6c0] no frame!
[h264 @ 0x24df6c0] SPS unavailable in decode_picture_timing
[h264 @ 0x24df6c0] non-existing PPS 0 referenced
[h264 @ 0x24df6c0] SPS unavailable in decode_picture_timing
[h264 @ 0x24df6c0] non-existing PPS 0 referenced
[h264 @ 0x24df6c0] decode_slice_header error
[h264 @ 0x24df6c0] no frame!
[h264 @ 0x24df6c0] SPS unavailable in decode_picture_timing
[h264 @ 0x24df6c0] non-existing PPS 0 referenced
[h264 @ 0x24df6c0] SPS unavailable in decode_picture_timing
[h264 @ 0x24df6c0] non-existing PPS 0 referenced
[h264 @ 0x24df6c0] decode_slice_header error
[h264 @ 0x24df6c0] no frame!
[h264 @ 0x24df6c0] SPS unavailable in decode_picture_timing
[h264 @ 0x24df6c0] non-existing PPS 0 referenced
[h264 @ 0x24df6c0] SPS unavailable in decode_picture_timing
[h264 @ 0x24df6c0] non-existing PPS 0 referenced
[h264 @ 0x24df6c0] decode_slice_header error
[h264 @ 0x24df6c0] no frame!
[h264 @ 0x24df6c0] SPS unavailable in decode_picture_timing
[h264 @ 0x24df6c0] non-existing PPS 0 referenced
[h264 @ 0x24df6c0] SPS unavailable in decode_picture_timing
[h264 @ 0x24df6c0] non-existing PPS 0 referenced
[h264 @ 0x24df6c0] decode_slice_header error
[h264 @ 0x24df6c0] no frame!
[h264 @ 0x24df6c0] SPS unavailable in decode_picture_timing
[h264 @ 0x24df6c0] non-existing PPS 0 referenced
[h264 @ 0x24df6c0] SPS unavailable in decode_picture_timing
[h264 @ 0x24df6c0] non-existing PPS 0 referenced
[h264 @ 0x24df6c0] decode_slice_header error
[h264 @ 0x24df6c0] no frame!
[h264 @ 0x24df6c0] Reinit context to 1920x1088, pix_fmt: yuv420p
[mpegts @ 0x24ba7a0] DTS 7560885620 < 7560890124 out of order
[mpegts @ 0x24ba7a0] max_analyze_duration 5000000 reached at 5024000 microseconds st:2
Input #0, mpegts, from 'udp://239.255.0.22:2224?pkt_size=1316&buffer_size=409600&fifo_size=1000000&overrun_nonfatal=1':
  Duration: N/A, start: 84008.205844, bitrate: N/A
  Program 257 
    Stream #0:0[0x134c]: Video: h264 (Main), 1 reference frame ([27][0][0][0] / 0x001B), yuv420p(tv, bt709, top first, left), 1920x1080 (1920x1088) [SAR 1:1 DAR 16:9], 29.97 fps, 59.94 tbr, 90k tbn, 59.94 tbc
    Stream #0:1[0x134d](spa): Audio: ac3 ([129][0][0][0] / 0x0081), 48000 Hz, 5.1(side), fltp, 384 kb/s
    Stream #0:2[0x134f](eng): Audio: ac3 ([129][0][0][0] / 0x0081), 48000 Hz, stereo, fltp, 128 kb/s
    Stream #0:3[0x1351](spa): Subtitle: dvb_subtitle ([6][0][0][0] / 0x0006)
[h264_cuvid @ 0x24db120] Initializing cuvid hwaccel
[AVBSFContext @ 0x3074e00] The input looks like it is Annex B already
[h264_cuvid @ 0x24db120] CUVID capabilities for h264_cuvid:
[h264_cuvid @ 0x24db120] 8 bit: supported: 1, min_width: 48, max_width: 4096, min_height: 16, max_height: 4096
[h264_cuvid @ 0x24db120] 10 bit: supported: 0, min_width: 0, max_width: 0, min_height: 0, max_height: 0
[h264_cuvid @ 0x24db120] 12 bit: supported: 0, min_width: 0, max_width: 0, min_height: 0, max_height: 0
Stream mapping:
  Stream #0:1 -> #0:0 (ac3 (native) -> aac (libfdk_aac))
  Stream #0:2 -> #0:1 (ac3 (native) -> aac (libfdk_aac))
  Stream #0:0 -> #0:2 (h264 (h264_cuvid) -> h264 (h264_nvenc))
[h264_cuvid @ 0x24db120] Initializing cuvid hwaccel
[h264_cuvid @ 0x24db120] Formats: Original: cuda | HW: cuda | SW: nv12
[graph_1_in_0_2 @ 0x255ec80] tb:1/48000 samplefmt:fltp samplerate:48000 chlayout:0x3
[format_out_0_1 @ 0x255eac0] auto-inserting filter 'auto_resampler_0' between the filter 'Parsed_anull_0' and the filter 'format_out_0_1'
[auto_resampler_0 @ 0x2553100] ch:2 chl:stereo fmt:fltp r:48000Hz -> ch:2 chl:stereo fmt:s16 r:48000Hz
[graph_0_in_0_1 @ 0x32e85e0] tb:1/48000 samplefmt:fltp samplerate:48000 chlayout:0x60f
[format_out_0_0 @ 0x32e4d60] auto-inserting filter 'auto_resampler_0' between the filter 'Parsed_anull_0' and the filter 'format_out_0_0'
[auto_resampler_0 @ 0x32e72e0] ch:6 chl:5.1(side) fmt:fltp r:48000Hz -> ch:2 chl:stereo fmt:s16 r:48000Hz
[graph 2 input from stream 0:0 @ 0x3378160] w:1920 h:1080 pixfmt:cuda tb:1/90000 fr:30000/1001 sar:1/1 sws_param:flags=2
[Parsed_scale_npp_0 @ 0x2585660] w:1920 h:1080 -> w:1920 h:1080
[h264_nvenc @ 0x24e4ec0] Loaded Nvenc version 8.0
[h264_nvenc @ 0x24e4ec0] Nvenc initialized successfully
[ismv @ 0x3452100] Empty MOOV enabled; disabling automatic bitstream filtering
[tee @ 0x2aab720] filename:'http://192.168.1.69/FX_HD_0/FX_HD_0.isml/Streams(video)' format:ismv
[tee @ 0x2aab720]     stream:0 codec:aac type:audio bsfs: null
[tee @ 0x2aab720]     stream:1 codec:aac type:audio bsfs: null
[tee @ 0x2aab720]     stream:2 codec:h264 type:video bsfs: null
[ismv @ 0x3461c20] Empty MOOV enabled; disabling automatic bitstream filtering
[tee @ 0x2aab720] filename:'http://192.168.1.69/FX_HD_1/FX_HD_1.isml/Streams(video)' format:ismv
[tee @ 0x2aab720]     stream:0 codec:aac type:audio bsfs: null
[tee @ 0x2aab720]     stream:1 codec:aac type:audio bsfs: null
[tee @ 0x2aab720]     stream:2 codec:h264 type:video bsfs: null
Output #0, tee, to '[movflags=isml+frag_keyframe:f=ismv]http://192.168.1.69/FX_HD_0/FX_HD_0.isml/Streams(video)|[movflags=isml+frag_keyframe:f=ismv]http://192.168.1.69/FX_HD_1/FX_HD_1.isml/Streams(video)':
  Metadata:
    encoder         : Lavf58.2.103
    Stream #0:0(spa): Audio: aac (libfdk_aac), 48000 Hz, stereo, s16, delay 2048, 64 kb/s
    Metadata:
      encoder         : Lavc58.6.101 libfdk_aac
    Stream #0:1(eng): Audio: aac (libfdk_aac), 48000 Hz, stereo, s16, delay 2048, 64 kb/s
    Metadata:
      encoder         : Lavc58.6.101 libfdk_aac
    Stream #0:2: Video: h264 (h264_nvenc) (Main), 1 reference frame, cuda(left), 1920x1080 [SAR 1:1 DAR 16:9], q=-1--1, 2000 kb/s, 29.97 fps, 29.97 tbn, 29.97 tbc
    Metadata:
      encoder         : Lavc58.6.101 h264_nvenc
    Side data:
      cpb: bitrate max/min/avg: 0/0/2000000 buffer size: 4000000 vbv_delay: -1
*** 23 dup!

The outputs shows two audios, but only one video profile.

When I ffprobe the m3u8 I get:

 fliston@Fliston-Ubuntu  ~  ffprobe http://192.168.1.69/FX_HD_0/FX_HD_0.isml/FX_HD_0.m3u8                                                                             ✔  7349  11:03:13 
ffprobe version 3.3.3 Copyright (c) 2007-2017 the FFmpeg developers
  built with gcc 4.8 (Ubuntu 4.8.4-2ubuntu1~14.04.3)
  configuration: --extra-libs=-ldl --prefix=/opt/ffmpeg --mandir=/usr/share/man --enable-avresample --disable-debug --enable-nonfree --enable-gpl --enable-version3 --enable-libopencore-amrnb --enable-libopencore-amrwb --disable-decoder=amrnb --disable-decoder=amrwb --enable-libpulse --enable-libfreetype --enable-gnutls --disable-ffserver --enable-libx264 --enable-libx265 --enable-libfdk-aac --enable-libvorbis --enable-libtheora --enable-libmp3lame --enable-libopus --enable-libvpx --enable-libspeex --enable-libass --enable-avisynth --enable-libsoxr --enable-libxvid --enable-libvidstab --enable-libwavpack --enable-nvenc --enable-libzimg
  libavutil      55. 58.100 / 55. 58.100
  libavcodec     57. 89.100 / 57. 89.100
  libavformat    57. 71.100 / 57. 71.100
  libavdevice    57.  6.100 / 57.  6.100
  libavfilter     6. 82.100 /  6. 82.100
  libavresample   3.  5.  0 /  3.  5.  0
  libswscale      4.  6.100 /  4.  6.100
  libswresample   2.  7.100 /  2.  7.100
  libpostproc    54.  5.100 / 54.  5.100
[hls,applehttp @ 0x3f32540] Opening 'http://192.168.1.69/FX_HD_0/FX_HD_0.isml/FX_HD_0-audio_eng=64000-video=2000000.m3u8' for reading
[hls,applehttp @ 0x3f32540] Opening 'http://192.168.1.69/FX_HD_0/FX_HD_0.isml/FX_HD_0-audio_eng=64000.m3u8' for reading
[hls,applehttp @ 0x3f32540] Opening 'http://192.168.1.69/FX_HD_0/FX_HD_0.isml/FX_HD_0-audio_eng=64000-video=2000000-3.ts' for reading
[hls,applehttp @ 0x3f32540] Opening 'http://192.168.1.69/FX_HD_0/FX_HD_0.isml/FX_HD_0-audio_eng=64000-3.ts' for reading
[hls,applehttp @ 0x3f32540] Opening 'http://192.168.1.69/FX_HD_0/FX_HD_0.isml/FX_HD_0-audio_eng=64000-4.ts' for reading
[hls,applehttp @ 0x3f32540] Opening 'http://192.168.1.69/FX_HD_0/FX_HD_0.isml/FX_HD_0-audio_eng=64000-video=2000000-4.ts' for reading
Input #0, hls,applehttp, from 'http://192.168.1.69/FX_HD_0/FX_HD_0.isml/FX_HD_0.m3u8':
  Duration: N/A, start: 18.408400, bitrate: N/A
  Program 0 
    Metadata:
      variant_bitrate : 2407000
    Stream #0:0: Audio: aac (LC) ([15][0][0][0] / 0x000F), 48000 Hz, stereo, fltp
    Metadata:
      variant_bitrate : 2407000
    Stream #0:1: Video: h264 (Main) ([27][0][0][0] / 0x001B), yuv420p, 1920x1080 [SAR 1:1 DAR 16:9], 29.97 fps, 29.97 tbr, 90k tbn, 59.94 tbc
    Metadata:
      variant_bitrate : 2407000
  Program 1 
    Metadata:
      variant_bitrate : 75000
    Stream #0:2: Audio: aac (LC) ([15][0][0][0] / 0x000F), 48000 Hz, stereo, fltp
    Metadata:
      variant_bitrate : 75000


The second audio appear on a different program.

Any solution?

Change History (1)

comment:1 by Facundo, 6 years ago

Summary: Error with two audio inputError with two audio inputs and at least two videos profiles
Note: See TracTickets for help on using tickets.