Opened 6 years ago

Closed 6 years ago

Last modified 6 years ago

#6825 closed defect (fixed)

hlsenc muxer in fmp4 mode creates broken init.mp4 with ac3 surround sound input

Reported by: Aman Owned by:
Priority: normal Component: avformat
Version: git-master Keywords: hls
Cc: Blocked By:
Blocking: Reproduced by developer: no
Analyzed by developer: no

Description

Given a sample file with a 5.1 ac3 track:

$ curl -o sample.mpg tmm1.s3.amazonaws.com/h264.ts
$ ffprobe sample.mpg
ffprobe version 3.4 Copyright (c) 2007-2017 the FFmpeg developers
Input #0, mpegts, from 'sample.mpg':
  Duration: 00:00:21.54, start: 86589.358267, bitrate: 4956 kb/s
  Program 1256
    Stream #0:0[0xa01]: Video: h264 (High) ([27][0][0][0] / 0x001B), yuv420p(tv, bt709, top first), 1920x1080 [SAR 1:1 DAR 16:9], Closed Captions, 29.97 fps, 29.97 tbr, 90k tbn, 59.94 tbc
    Stream #0:1[0xa02]: Audio: ac3 ([129][0][0][0] / 0x0081), 48000 Hz, 5.1(side), fltp, 384 kb/s

Using the hls muxer to create a fmp4 HLS stream appears to work:

$ ffmpeg -i sample.mpg -c copy -hls_segment_type fmp4 stream.m3u8
Output #0, hls, to 'stream.m3u8':
  Metadata:
    encoder         : Lavf57.83.100
    Stream #0:0: Video: h264 (High) ([27][0][0][0] / 0x001B), yuv420p(tv, bt709, top first), 1920x1080 [SAR 1:1 DAR 16:9], q=2-31, 29.97 fps, 29.97 tbr, 30k tbn, 29.97 tbc
    Stream #0:1: Audio: ac3 ([129][0][0][0] / 0x0081), 48000 Hz, 5.1(side), fltp, 384 kb/s
Stream mapping:
  Stream #0:0 -> #0:0 (copy)
  Stream #0:1 -> #0:1 (copy)

However, the generated init.mp4 is marked as having only two channels, which causes the stream.m3u8 to be unplayable in Safari.

$ ffmpeg -i init.mp4
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'init.mp4':
  Metadata:
    major_brand     : iso5
    minor_version   : 512
    compatible_brands: iso6mp41
    encoder         : Lavf57.83.100
  Duration: N/A, bitrate: N/A
    Stream #0:0(und): Video: h264 (avc1 / 0x31637661), none, 1920x1080, SAR 1:1 DAR 16:9, 30k tbr, 30k tbn, 60k tbc (default)
    Stream #0:1(und): Audio: ac3 (ac-3 / 0x332D6361), 48000 Hz, stereo, fltp (default)

Change History (7)

comment:1 by Carl Eugen Hoyos, 6 years ago

To make this a valid ticket, please test current FFmpeg git head and provide your ffmpeg command line together with the complete, uncut console output, ffprobe output is unnecessary.

Does playback with Safari (or QT) work if tho remux the input file to mov or fmp4 (without hls)?

comment:2 by Aman, 6 years ago

Yes, it works fine when remuxing into mp4 directly:

$ ffmpeg -i sample.mpg -c copy -y test.mp4
$ ffmpeg -i test.mp4
...
    Stream #0:1(und): Audio: ac3 (ac-3 / 0x332D6361), 48000 Hz, 5.1(side), fltp, 384 kb/s (default)
..

Reproduced on git-master:

$ /tmp/ffmpeg-master/bin/ffmpeg -i sample.mpg -c copy -hls_segment_type fmp4 stream.m3u8
ffmpeg version N-88676-g51090133b3 Copyright (c) 2000-2017 the FFmpeg developers
  built with Apple LLVM version 9.0.0 (clang-900.0.38)
  configuration: --prefix=/tmp/ffmpeg-master --enable-shared --disable-static
  libavutil      56.  0.100 / 56.  0.100
  libavcodec     58.  1.100 / 58.  1.100
  libavformat    58.  2.100 / 58.  2.100
  libavdevice    58.  0.100 / 58.  0.100
  libavfilter     7.  0.101 /  7.  0.101
  libswscale      5.  0.101 /  5.  0.101
  libswresample   3.  0.101 /  3.  0.101
[h264 @ 0x7f8c74826200] SPS unavailable in decode_picture_timing
[h264 @ 0x7f8c74826200] non-existing PPS 1 referenced
[h264 @ 0x7f8c74826200] SPS unavailable in decode_picture_timing
[h264 @ 0x7f8c74826200] non-existing PPS 1 referenced
[h264 @ 0x7f8c74826200] decode_slice_header error
[h264 @ 0x7f8c74826200] no frame!
[h264 @ 0x7f8c74826200] SPS unavailable in decode_picture_timing
[h264 @ 0x7f8c74826200] non-existing PPS 1 referenced
[h264 @ 0x7f8c74826200] SPS unavailable in decode_picture_timing
[h264 @ 0x7f8c74826200] non-existing PPS 1 referenced
[h264 @ 0x7f8c74826200] decode_slice_header error
[h264 @ 0x7f8c74826200] no frame!
[h264 @ 0x7f8c74826200] SPS unavailable in decode_picture_timing
[h264 @ 0x7f8c74826200] non-existing PPS 1 referenced
[h264 @ 0x7f8c74826200] SPS unavailable in decode_picture_timing
[h264 @ 0x7f8c74826200] non-existing PPS 1 referenced
[h264 @ 0x7f8c74826200] decode_slice_header error
[h264 @ 0x7f8c74826200] no frame!
[h264 @ 0x7f8c74826200] SPS unavailable in decode_picture_timing
[h264 @ 0x7f8c74826200] non-existing PPS 1 referenced
[h264 @ 0x7f8c74826200] SPS unavailable in decode_picture_timing
[h264 @ 0x7f8c74826200] non-existing PPS 1 referenced
[h264 @ 0x7f8c74826200] decode_slice_header error
[h264 @ 0x7f8c74826200] no frame!
[h264 @ 0x7f8c74826200] SPS unavailable in decode_picture_timing
[h264 @ 0x7f8c74826200] non-existing PPS 1 referenced
[h264 @ 0x7f8c74826200] SPS unavailable in decode_picture_timing
[h264 @ 0x7f8c74826200] non-existing PPS 1 referenced
[h264 @ 0x7f8c74826200] decode_slice_header error
[h264 @ 0x7f8c74826200] no frame!
[h264 @ 0x7f8c74826200] SPS unavailable in decode_picture_timing
[h264 @ 0x7f8c74826200] non-existing PPS 1 referenced
[h264 @ 0x7f8c74826200] SPS unavailable in decode_picture_timing
[h264 @ 0x7f8c74826200] non-existing PPS 1 referenced
[h264 @ 0x7f8c74826200] decode_slice_header error
[h264 @ 0x7f8c74826200] no frame!
[h264 @ 0x7f8c74826200] SPS unavailable in decode_picture_timing
[h264 @ 0x7f8c74826200] non-existing PPS 1 referenced
[h264 @ 0x7f8c74826200] SPS unavailable in decode_picture_timing
[h264 @ 0x7f8c74826200] non-existing PPS 1 referenced
[h264 @ 0x7f8c74826200] decode_slice_header error
[h264 @ 0x7f8c74826200] no frame!
[h264 @ 0x7f8c74826200] SPS unavailable in decode_picture_timing
[h264 @ 0x7f8c74826200] non-existing PPS 1 referenced
[h264 @ 0x7f8c74826200] SPS unavailable in decode_picture_timing
[h264 @ 0x7f8c74826200] non-existing PPS 1 referenced
[h264 @ 0x7f8c74826200] decode_slice_header error
[h264 @ 0x7f8c74826200] no frame!
[h264 @ 0x7f8c74826200] SPS unavailable in decode_picture_timing
[h264 @ 0x7f8c74826200] non-existing PPS 1 referenced
[h264 @ 0x7f8c74826200] SPS unavailable in decode_picture_timing
[h264 @ 0x7f8c74826200] non-existing PPS 1 referenced
[h264 @ 0x7f8c74826200] decode_slice_header error
[h264 @ 0x7f8c74826200] no frame!
[h264 @ 0x7f8c74826200] SPS unavailable in decode_picture_timing
[h264 @ 0x7f8c74826200] non-existing PPS 1 referenced
[h264 @ 0x7f8c74826200] SPS unavailable in decode_picture_timing
[h264 @ 0x7f8c74826200] non-existing PPS 1 referenced
[h264 @ 0x7f8c74826200] decode_slice_header error
[h264 @ 0x7f8c74826200] no frame!
[h264 @ 0x7f8c74826200] SPS unavailable in decode_picture_timing
[h264 @ 0x7f8c74826200] non-existing PPS 1 referenced
[h264 @ 0x7f8c74826200] SPS unavailable in decode_picture_timing
[h264 @ 0x7f8c74826200] non-existing PPS 1 referenced
[h264 @ 0x7f8c74826200] decode_slice_header error
[h264 @ 0x7f8c74826200] no frame!
[h264 @ 0x7f8c74826200] SPS unavailable in decode_picture_timing
[h264 @ 0x7f8c74826200] non-existing PPS 1 referenced
[h264 @ 0x7f8c74826200] SPS unavailable in decode_picture_timing
[h264 @ 0x7f8c74826200] non-existing PPS 1 referenced
[h264 @ 0x7f8c74826200] decode_slice_header error
[h264 @ 0x7f8c74826200] no frame!
[h264 @ 0x7f8c74826200] SPS unavailable in decode_picture_timing
[h264 @ 0x7f8c74826200] non-existing PPS 1 referenced
[h264 @ 0x7f8c74826200] SPS unavailable in decode_picture_timing
[h264 @ 0x7f8c74826200] non-existing PPS 1 referenced
[h264 @ 0x7f8c74826200] decode_slice_header error
[h264 @ 0x7f8c74826200] no frame!
[h264 @ 0x7f8c74826200] SPS unavailable in decode_picture_timing
[h264 @ 0x7f8c74826200] non-existing PPS 1 referenced
[h264 @ 0x7f8c74826200] SPS unavailable in decode_picture_timing
[h264 @ 0x7f8c74826200] non-existing PPS 1 referenced
[h264 @ 0x7f8c74826200] decode_slice_header error
[h264 @ 0x7f8c74826200] no frame!
[h264 @ 0x7f8c74826200] SPS unavailable in decode_picture_timing
[h264 @ 0x7f8c74826200] non-existing PPS 1 referenced
[h264 @ 0x7f8c74826200] SPS unavailable in decode_picture_timing
[h264 @ 0x7f8c74826200] non-existing PPS 1 referenced
[h264 @ 0x7f8c74826200] decode_slice_header error
[h264 @ 0x7f8c74826200] no frame!
[h264 @ 0x7f8c74826200] SPS unavailable in decode_picture_timing
[h264 @ 0x7f8c74826200] non-existing PPS 1 referenced
[h264 @ 0x7f8c74826200] SPS unavailable in decode_picture_timing
[h264 @ 0x7f8c74826200] non-existing PPS 1 referenced
[h264 @ 0x7f8c74826200] decode_slice_header error
[h264 @ 0x7f8c74826200] no frame!
[mpegts @ 0x7f8c74800000] PES packet size mismatch
    Last message repeated 1 times
Input #0, mpegts, from 'sample.mpg':
  Duration: 00:00:21.54, start: 86589.358267, bitrate: 4956 kb/s
  Program 1256
    Stream #0:0[0xa01]: Video: h264 (High) ([27][0][0][0] / 0x001B), yuv420p(tv, bt709, top first), 1920x1080 [SAR 1:1 DAR 16:9], Closed Captions, 29.97 fps, 29.97 tbr, 90k tbn, 59.94 tbc
    Stream #0:1[0xa02]: Audio: ac3 ([129][0][0][0] / 0x0081), 48000 Hz, 5.1(side), fltp, 384 kb/s
    Stream #0:2[0xa03]: Audio: ac3 ([129][0][0][0] / 0x0081), 48000 Hz, mono, fltp, 64 kb/s
    Stream #0:3[0xa04]: Data: scte_35
[hls @ 0x7f8c74801e00] Opening 'init.mp4' for writing
[mp4 @ 0x7f8c76012a00] track 1: codec frame size is not set
Output #0, hls, to 'stream.m3u8':
  Metadata:
    encoder         : Lavf58.2.100
    Stream #0:0: Video: h264 (High) ([27][0][0][0] / 0x001B), yuv420p(tv, bt709, top first), 1920x1080 [SAR 1:1 DAR 16:9], q=2-31, 29.97 fps, 29.97 tbr, 30k tbn, 29.97 tbc
    Stream #0:1: Audio: ac3 ([129][0][0][0] / 0x0081), 48000 Hz, 5.1(side), fltp, 384 kb/s
Stream mapping:
  Stream #0:0 -> #0:0 (copy)
  Stream #0:1 -> #0:1 (copy)
Press [q] to stop, [?] for help
[NULL @ 0x7f8c74826200] non-existing PPS 1 referenced
    Last message repeated 15 times
[hls @ 0x7f8c74801e00] Opening 'stream0.m4s' for writing
[hls @ 0x7f8c74801e00] Opening 'stream.m3u8.tmp' for writing
[hls @ 0x7f8c74801e00] Opening 'stream1.m4s' for writing
[hls @ 0x7f8c74801e00] Opening 'stream.m3u8.tmp' for writing
[mp4 @ 0x7f8c76012a00] Track 0 starts with a nonzero dts 35715, while the moov already has been written. Set the delay_moov flag to handle this case.
[hls @ 0x7f8c74801e00] Opening 'stream2.m4s' for writing
[hls @ 0x7f8c74801e00] Opening 'stream.m3u8.tmp' for writing
[hls @ 0x7f8c74801e00] Opening 'stream3.m4s' for writing
[hls @ 0x7f8c74801e00] Opening 'stream.m3u8.tmp' for writing
[hls @ 0x7f8c74801e00] Opening 'stream4.m4s' for writing
[hls @ 0x7f8c74801e00] Opening 'stream.m3u8.tmp' for writing
[hls @ 0x7f8c74801e00] Opening 'stream5.m4s' for writing
[hls @ 0x7f8c74801e00] Opening 'stream.m3u8.tmp' for writing
[hls @ 0x7f8c74801e00] Opening 'stream6.m4s' for writing
[hls @ 0x7f8c74801e00] Opening 'stream.m3u8.tmp' for writing
[hls @ 0x7f8c74801e00] Opening 'stream7.m4s' for writing
[hls @ 0x7f8c74801e00] Opening 'stream.m3u8.tmp' for writing
[hls @ 0x7f8c74801e00] Opening 'stream8.m4s' for writing
[hls @ 0x7f8c74801e00] Opening 'stream.m3u8.tmp' for writing
[hls @ 0x7f8c74801e00] Opening 'stream9.m4s' for writing
[hls @ 0x7f8c74801e00] Opening 'stream.m3u8.tmp' for writing
[hls @ 0x7f8c74801e00] Opening 'stream10.m4s' for writing
[hls @ 0x7f8c74801e00] Opening 'stream.m3u8.tmp' for writing
[hls @ 0x7f8c74801e00] Opening 'stream11.m4s' for writing
[hls @ 0x7f8c74801e00] Opening 'stream.m3u8.tmp' for writing
[mpegts @ 0x7f8c74800000] PES packet size mismatch
[hls @ 0x7f8c74801e00] Opening 'stream.m3u8.tmp' for writing
frame=  606 fps=0.0 q=-1.0 Lsize=N/A time=00:00:21.37 bitrate=N/A speed= 514x
video:11291kB audio:974kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: unknown
$ /tmp/ffmpeg-master/bin/ffmpeg -hide_banner -nostats -i init.mp4
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x7fa237002600] Could not find codec parameters for stream 0 (Video: h264 (avc1 / 0x31637661), none, 1920x1080): unspecified pixel format
Consider increasing the value for the 'analyzeduration' and 'probesize' options
Guessed Channel Layout for Input Stream #0.1 : stereo
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'init.mp4':
  Metadata:
    major_brand     : iso5
    minor_version   : 512
    compatible_brands: iso6mp41
    encoder         : Lavf58.2.100
  Duration: N/A, bitrate: N/A
    Stream #0:0(und): Video: h264 (avc1 / 0x31637661), none, 1920x1080, SAR 1:1 DAR 16:9, 30k tbr, 30k tbn, 60k tbc (default)
    Metadata:
      handler_name    : VideoHandler
    Stream #0:1(und): Audio: ac3 (ac-3 / 0x332D6361), 48000 Hz, stereo, fltp (default)
    Metadata:
      handler_name    : SoundHandler

Note that the pixel format for the video track is also missing in init.mp4

comment:3 by Steven Liu, 6 years ago

I try use the sample.mpg remux to dash, it also have problem:

liuqideMBP:Test liuqi$ ~/multimedia/ffmpeg/xxx/ffmpeg -i sample.mpg -c copy -f dash -use_timeline 1 output/a.mpd
ffmpeg version N-88638-gc72abbd0dc Copyright (c) 2000-2017 the FFmpeg developers

built with Apple LLVM version 8.1.0 (clang-802.0.42)
configuration: --enable-fontconfig --enable-gpl --enable-libass --enable-libbluray --enable-libfreetype --enable-libmp3lame --enable-libspeex --enable-libx264 --enable-libx265 --enable-libfdk-aac --enable-version3 --cc='ccache gcc' --enable-nonfree --enable-videotoolbox
libavutil 56. 0.100 / 56. 0.100
libavcodec 58. 1.100 / 58. 1.100
libavformat 58. 2.102 / 58. 2.102
libavdevice 58. 0.100 / 58. 0.100
libavfilter 7. 0.101 / 7. 0.101
libswscale 5. 0.101 / 5. 0.101
libswresample 3. 0.101 / 3. 0.101
libpostproc 55. 0.100 / 55. 0.100

[h264 @ 0x7f8d6f801000] SPS unavailable in decode_picture_timing
[h264 @ 0x7f8d6f801000] non-existing PPS 1 referenced
[h264 @ 0x7f8d6f801000] SPS unavailable in decode_picture_timing
[h264 @ 0x7f8d6f801000] non-existing PPS 1 referenced
[h264 @ 0x7f8d6f801000] decode_slice_header error
[h264 @ 0x7f8d6f801000] no frame!
[h264 @ 0x7f8d6f801000] SPS unavailable in decode_picture_timing
[h264 @ 0x7f8d6f801000] non-existing PPS 1 referenced
[h264 @ 0x7f8d6f801000] SPS unavailable in decode_picture_timing
[h264 @ 0x7f8d6f801000] non-existing PPS 1 referenced
[h264 @ 0x7f8d6f801000] decode_slice_header error
[h264 @ 0x7f8d6f801000] no frame!
[h264 @ 0x7f8d6f801000] SPS unavailable in decode_picture_timing
[h264 @ 0x7f8d6f801000] non-existing PPS 1 referenced
[h264 @ 0x7f8d6f801000] SPS unavailable in decode_picture_timing
[h264 @ 0x7f8d6f801000] non-existing PPS 1 referenced
[h264 @ 0x7f8d6f801000] decode_slice_header error
[h264 @ 0x7f8d6f801000] no frame!
[h264 @ 0x7f8d6f801000] SPS unavailable in decode_picture_timing
[h264 @ 0x7f8d6f801000] non-existing PPS 1 referenced
[h264 @ 0x7f8d6f801000] SPS unavailable in decode_picture_timing
[h264 @ 0x7f8d6f801000] non-existing PPS 1 referenced
[h264 @ 0x7f8d6f801000] decode_slice_header error
[h264 @ 0x7f8d6f801000] no frame!
[h264 @ 0x7f8d6f801000] SPS unavailable in decode_picture_timing
[h264 @ 0x7f8d6f801000] non-existing PPS 1 referenced
[h264 @ 0x7f8d6f801000] SPS unavailable in decode_picture_timing
[h264 @ 0x7f8d6f801000] non-existing PPS 1 referenced
[h264 @ 0x7f8d6f801000] decode_slice_header error
[h264 @ 0x7f8d6f801000] no frame!
[h264 @ 0x7f8d6f801000] SPS unavailable in decode_picture_timing
[h264 @ 0x7f8d6f801000] non-existing PPS 1 referenced
[h264 @ 0x7f8d6f801000] SPS unavailable in decode_picture_timing
[h264 @ 0x7f8d6f801000] non-existing PPS 1 referenced
[h264 @ 0x7f8d6f801000] decode_slice_header error
[h264 @ 0x7f8d6f801000] no frame!
[h264 @ 0x7f8d6f801000] SPS unavailable in decode_picture_timing
[h264 @ 0x7f8d6f801000] non-existing PPS 1 referenced
[h264 @ 0x7f8d6f801000] SPS unavailable in decode_picture_timing
[h264 @ 0x7f8d6f801000] non-existing PPS 1 referenced
[h264 @ 0x7f8d6f801000] decode_slice_header error
[h264 @ 0x7f8d6f801000] no frame!
[h264 @ 0x7f8d6f801000] SPS unavailable in decode_picture_timing
[h264 @ 0x7f8d6f801000] non-existing PPS 1 referenced
[h264 @ 0x7f8d6f801000] SPS unavailable in decode_picture_timing
[h264 @ 0x7f8d6f801000] non-existing PPS 1 referenced
[h264 @ 0x7f8d6f801000] decode_slice_header error
[h264 @ 0x7f8d6f801000] no frame!
[h264 @ 0x7f8d6f801000] SPS unavailable in decode_picture_timing
[h264 @ 0x7f8d6f801000] non-existing PPS 1 referenced
[h264 @ 0x7f8d6f801000] SPS unavailable in decode_picture_timing
[h264 @ 0x7f8d6f801000] non-existing PPS 1 referenced
[h264 @ 0x7f8d6f801000] decode_slice_header error
[h264 @ 0x7f8d6f801000] no frame!
[h264 @ 0x7f8d6f801000] SPS unavailable in decode_picture_timing
[h264 @ 0x7f8d6f801000] non-existing PPS 1 referenced
[h264 @ 0x7f8d6f801000] SPS unavailable in decode_picture_timing
[h264 @ 0x7f8d6f801000] non-existing PPS 1 referenced
[h264 @ 0x7f8d6f801000] decode_slice_header error
[h264 @ 0x7f8d6f801000] no frame!
[h264 @ 0x7f8d6f801000] SPS unavailable in decode_picture_timing
[h264 @ 0x7f8d6f801000] non-existing PPS 1 referenced
[h264 @ 0x7f8d6f801000] SPS unavailable in decode_picture_timing
[h264 @ 0x7f8d6f801000] non-existing PPS 1 referenced
[h264 @ 0x7f8d6f801000] decode_slice_header error
[h264 @ 0x7f8d6f801000] no frame!
[h264 @ 0x7f8d6f801000] SPS unavailable in decode_picture_timing
[h264 @ 0x7f8d6f801000] non-existing PPS 1 referenced
[h264 @ 0x7f8d6f801000] SPS unavailable in decode_picture_timing
[h264 @ 0x7f8d6f801000] non-existing PPS 1 referenced
[h264 @ 0x7f8d6f801000] decode_slice_header error
[h264 @ 0x7f8d6f801000] no frame!
[h264 @ 0x7f8d6f801000] SPS unavailable in decode_picture_timing
[h264 @ 0x7f8d6f801000] non-existing PPS 1 referenced
[h264 @ 0x7f8d6f801000] SPS unavailable in decode_picture_timing
[h264 @ 0x7f8d6f801000] non-existing PPS 1 referenced
[h264 @ 0x7f8d6f801000] decode_slice_header error
[h264 @ 0x7f8d6f801000] no frame!
[h264 @ 0x7f8d6f801000] SPS unavailable in decode_picture_timing
[h264 @ 0x7f8d6f801000] non-existing PPS 1 referenced
[h264 @ 0x7f8d6f801000] SPS unavailable in decode_picture_timing
[h264 @ 0x7f8d6f801000] non-existing PPS 1 referenced
[h264 @ 0x7f8d6f801000] decode_slice_header error
[h264 @ 0x7f8d6f801000] no frame!
[h264 @ 0x7f8d6f801000] SPS unavailable in decode_picture_timing
[h264 @ 0x7f8d6f801000] non-existing PPS 1 referenced
[h264 @ 0x7f8d6f801000] SPS unavailable in decode_picture_timing
[h264 @ 0x7f8d6f801000] non-existing PPS 1 referenced
[h264 @ 0x7f8d6f801000] decode_slice_header error
[h264 @ 0x7f8d6f801000] no frame!
[h264 @ 0x7f8d6f801000] SPS unavailable in decode_picture_timing
[h264 @ 0x7f8d6f801000] non-existing PPS 1 referenced
[h264 @ 0x7f8d6f801000] SPS unavailable in decode_picture_timing
[h264 @ 0x7f8d6f801000] non-existing PPS 1 referenced
[h264 @ 0x7f8d6f801000] decode_slice_header error
[h264 @ 0x7f8d6f801000] no frame!
[mpegts @ 0x7f8d6f803200] PES packet size mismatch

Last message repeated 1 times

Input #0, mpegts, from 'sample.mpg':

Duration: 00:00:21.54, start: 86589.358267, bitrate: 4956 kb/s
Program 1256

Stream #0:0[0xa01]: Video: h264 (High) ([27][0][0][0] / 0x001B), yuv420p(tv, bt709, top first), 1920x1080 [SAR 1:1 DAR 16:9], Closed Captions, 29.97 fps, 29.97 tbr, 90k tbn, 59.94 tbc
Stream #0:1[0xa02]: Audio: ac3 ([129][0][0][0] / 0x0081), 48000 Hz, 5.1(side), fltp, 384 kb/s
Stream #0:2[0xa03]: Audio: ac3 ([129][0][0][0] / 0x0081), 48000 Hz, mono, fltp, 64 kb/s
Stream #0:3[0xa04]: Data: scte_35

[dash @ 0x7f8d7100de00] No bit rate set for stream 0
[dash @ 0x7f8d7100de00] Opening 'output/init-stream0.m4s' for writing
[mp4 @ 0x7f8d71013c00] Tag [27][0][0][0] incompatible with output codec id '27' (avc1)
Could not write header for output file #0 (incorrect codec parameters ?): Invalid data found when processing input
Stream mapping:

Stream #0:0 -> #0:0 (copy)
Stream #0:1 -> #0:1 (copy)

Last message repeated 1 times

liuqideMBP:Test liuqi$

comment:4 by Aman, 6 years ago

Huh. I'm not sure about that DASH error. It seems like a different bug.

For example, here is another command which works with DASH:

$ ffmpeg -i sample.mpg -c:v libx264 -c:a ac3 -f dash -use_timeline 1 stream.mpd

And same variation with HLS:

$ ffmpeg -i sample.mpg -c:v libx264 -c:a ac3 -hls_segment_type fmp4 stream.m3u8

The init.mp4 generated by the HLS muxer is broken. But the init-stream1.m4s generated by DASH is correct.

$ ffmpeg -i init.mp4
  Stream #0:1(und): Audio: ac3 (ac-3 / 0x332D6361), 48000 Hz, stereo, fltp (default)

$ ffmpeg -i init-stream1.m4s
  Stream #0:0(und): Audio: ac3 (ac-3 / 0x332D6361), 48000 Hz, 5.1(side), fltp (default)
Last edited 6 years ago by Aman (previous) (diff)

comment:5 by Steven Liu, 6 years ago

comment:6 by Steven Liu, 6 years ago

Resolution: fixed
Status: newclosed

comment:7 by Carl Eugen Hoyos, 6 years ago

Keywords: hls added
Note: See TracTickets for help on using tickets.