Opened 12 years ago

Closed 12 years ago

Last modified 12 years ago

#2169 closed defect (fixed)

Remuxing latm into mkv produces a broken output file

Reported by: Resident Owned by:
Priority: important Component: avformat
Version: git-master Keywords: mkv regression
Cc: Blocked By:
Blocking: Reproduced by developer: yes
Analyzed by developer: no

Description

Summary of the bug:
How to reproduce: with the following code in cmd

C:\Users\Resident\Desktop\ffmpeg-20130119-git-89afa63-win32-static\bin\ffmpeg.exe -i C:\Users\Resident\Desktop\01-22_11-34-19_CANAL13HD_.ts -acodec copy -vcodec copy C:\Users\Resident\Desktop\01-22_11-34-19_CANAL13HD_.mkv

file output file .mkv no audio.
https://docs.google.com/file/d/0B2kUHfEcnsF-SmFNYkxKbHFIWEU/edit

% ffmpeg -i input ... original file .ts
https://docs.google.com/file/d/0B2kUHfEcnsF-eHRaYVU5eEZqLU0/edit
ffmpeg version 2013-01-19 git-89afa63
built on ...

log

C:\Windows\System32>C:\Users\Resident\Desktop\ffmpeg-20130119-git-89afa63-win32-
static\bin\ffmpeg.exe -i C:\Users\Resident\Desktop\01-22_11-34-19_CANAL13HD_.ts
-acodec copy -vcodec copy C:\Users\Resident\Desktop\01-22_11-34-19_CANAL13HD_.mk
v
ffmpeg version N-49044-g89afa63 Copyright (c) 2000-2013 the FFmpeg developers
  built on Jan 19 2013 20:36:06 with gcc 4.7.2 (GCC)
  configuration: --enable-gpl --enable-version3 --disable-w32threads --enable-av
isynth --enable-bzlib --enable-fontconfig --enable-frei0r --enable-gnutls --enab
le-libass --enable-libbluray --enable-libcaca --enable-libfreetype --enable-libg
sm --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --e
nable-libopenjpeg --enable-libopus --enable-librtmp --enable-libschroedinger --e
nable-libspeex --enable-libtheora --enable-libtwolame --enable-libvo-aacenc --en
able-libvo-amrwbenc --enable-libvorbis --enable-libvpx --enable-libx264 --enable
-libxavs --enable-libxvid --enable-zlib --enable-filter=frei0r
  libavutil      52. 15.100 / 52. 15.100
  libavcodec     54. 89.100 / 54. 89.100
  libavformat    54. 61.101 / 54. 61.101
  libavdevice    54.  3.102 / 54.  3.102
  libavfilter     3. 32.101 /  3. 32.101
  libswscale      2.  2.100 /  2.  2.100
  libswresample   0. 17.102 /  0. 17.102
  libpostproc    52.  2.100 / 52.  2.100
[h264 @ 00039240] sps_id out of range
[h264 @ 00039240] non-existing SPS 9 referenced in buffering period
[h264 @ 00039240] non-existing PPS referenced
[h264 @ 00039240] sps_id out of range
[h264 @ 00039240] non-existing SPS 9 referenced in buffering period
[h264 @ 00039240] non-existing PPS 0 referenced
[h264 @ 00039240] decode_slice_header error
[h264 @ 00039240] non-existing PPS 0 referenced
[h264 @ 00039240] decode_slice_header error
[h264 @ 00039240] non-existing PPS 0 referenced
[h264 @ 00039240] decode_slice_header error
[h264 @ 00039240] non-existing PPS 0 referenced
[h264 @ 00039240] decode_slice_header error
[h264 @ 00039240] non-existing PPS 0 referenced
[h264 @ 00039240] decode_slice_header error
[h264 @ 00039240] non-existing PPS 0 referenced
[h264 @ 00039240] decode_slice_header error
[h264 @ 00039240] no frame!
[h264 @ 00039240] sps_id out of range
[h264 @ 00039240] non-existing SPS 9 referenced in buffering period
[h264 @ 00039240] non-existing PPS referenced
[h264 @ 00039240] sps_id out of range
[h264 @ 00039240] non-existing SPS 10 referenced in buffering period
[h264 @ 00039240] non-existing PPS referenced
[h264 @ 00039240] sps_id out of range
[h264 @ 00039240] non-existing SPS 9 referenced in buffering period
[h264 @ 00039240] non-existing PPS 0 referenced
[h264 @ 00039240] decode_slice_header error
[h264 @ 00039240] non-existing PPS 0 referenced
[h264 @ 00039240] decode_slice_header error
[h264 @ 00039240] non-existing PPS 0 referenced
[h264 @ 00039240] decode_slice_header error
[h264 @ 00039240] non-existing PPS 0 referenced
[h264 @ 00039240] decode_slice_header error
[h264 @ 00039240] non-existing PPS 0 referenced
[h264 @ 00039240] decode_slice_header error
[h264 @ 00039240] non-existing PPS 0 referenced
[h264 @ 00039240] decode_slice_header error
[h264 @ 00039240] no frame!
[h264 @ 00039240] sps_id out of range
[h264 @ 00039240] non-existing SPS 10 referenced in buffering period
[h264 @ 00039240] non-existing PPS 0 referenced
[h264 @ 00039240] decode_slice_header error
[h264 @ 00039240] non-existing PPS 0 referenced
[h264 @ 00039240] decode_slice_header error
[h264 @ 00039240] non-existing PPS 0 referenced
[h264 @ 00039240] decode_slice_header error
[h264 @ 00039240] non-existing PPS 0 referenced
[h264 @ 00039240] decode_slice_header error
[h264 @ 00039240] non-existing PPS 0 referenced
[h264 @ 00039240] decode_slice_header error
[h264 @ 00039240] non-existing PPS 0 referenced
[h264 @ 00039240] decode_slice_header error
[h264 @ 00039240] no frame!
[h264 @ 00039240] sps_id out of range
[h264 @ 00039240] non-existing SPS 10 referenced in buffering period
[h264 @ 00039240] non-existing PPS referenced
[h264 @ 00039240] sps_id out of range
[h264 @ 00039240] non-existing SPS 11 referenced in buffering period
[h264 @ 00039240] non-existing PPS referenced
[h264 @ 00039240] sps_id out of range
[h264 @ 00039240] non-existing SPS 10 referenced in buffering period
[h264 @ 00039240] non-existing PPS 0 referenced
[h264 @ 00039240] decode_slice_header error
[h264 @ 00039240] non-existing PPS 0 referenced
[h264 @ 00039240] decode_slice_header error
[h264 @ 00039240] non-existing PPS 0 referenced
[h264 @ 00039240] decode_slice_header error
[h264 @ 00039240] non-existing PPS 0 referenced
[h264 @ 00039240] decode_slice_header error
[h264 @ 00039240] non-existing PPS 0 referenced
[h264 @ 00039240] decode_slice_header error
[h264 @ 00039240] non-existing PPS 0 referenced
[h264 @ 00039240] decode_slice_header error
[h264 @ 00039240] no frame!
[h264 @ 00039240] sps_id out of range
[h264 @ 00039240] non-existing SPS 11 referenced in buffering period
[h264 @ 00039240] non-existing PPS 0 referenced
[h264 @ 00039240] decode_slice_header error
[h264 @ 00039240] non-existing PPS 0 referenced
[h264 @ 00039240] decode_slice_header error
[h264 @ 00039240] non-existing PPS 0 referenced
[h264 @ 00039240] decode_slice_header error
[h264 @ 00039240] non-existing PPS 0 referenced
[h264 @ 00039240] decode_slice_header error
[h264 @ 00039240] non-existing PPS 0 referenced
[h264 @ 00039240] decode_slice_header error
[h264 @ 00039240] non-existing PPS 0 referenced
[h264 @ 00039240] decode_slice_header error
[h264 @ 00039240] no frame!
[h264 @ 00039240] sps_id out of range
[h264 @ 00039240] non-existing SPS 11 referenced in buffering period
[h264 @ 00039240] non-existing PPS referenced
[h264 @ 00039240] sps_id out of range
[h264 @ 00039240] non-existing SPS 11 referenced in buffering period
[h264 @ 00039240] non-existing PPS 0 referenced
[h264 @ 00039240] decode_slice_header error
[h264 @ 00039240] non-existing PPS 0 referenced
[h264 @ 00039240] decode_slice_header error
[h264 @ 00039240] non-existing PPS 0 referenced
[h264 @ 00039240] decode_slice_header error
[h264 @ 00039240] non-existing PPS 0 referenced
[h264 @ 00039240] decode_slice_header error
[h264 @ 00039240] non-existing PPS 0 referenced
[h264 @ 00039240] decode_slice_header error
[h264 @ 00039240] non-existing PPS 0 referenced
[h264 @ 00039240] decode_slice_header error
[h264 @ 00039240] no frame!
Input #0, mpegts, from 'C:\Users\Resident\Desktop\01-22_11-34-19_CANAL13HD_.ts':

  Duration: 00:00:37.17, start: 57683.179744, bitrate: 12081 kb/s
  Program 35872
    Stream #0:0[0x311]: Video: h264 (High) ([27][0][0][0] / 0x001B), yuv420p, 19
20x1080 [SAR 1:1 DAR 16:9], 29.97 fps, 59.94 tbr, 90k tbn, 59.94 tbc
    Stream #0:1[0x312]: Audio: aac_latm ([17][0][0][0] / 0x0011), 48000 Hz, ster
eo, fltp
Output #0, matroska, to 'C:\Users\Resident\Desktop\01-22_11-34-19_CANAL13HD_.mkv
':
  Metadata:
    encoder         : Lavf54.61.101
    Stream #0:0: Video: h264 ([27][0][0][0] / 0x001B), yuv420p, 1920x1080 [SAR 1
:1 DAR 16:9], q=2-31, 29.97 fps, 1k tbn, 90k tbc
    Stream #0:1: Audio: aac_latm ([17][0][0][0] / 0x0011), 48000 Hz, stereo
Stream mapping:
  Stream #0:0 -> #0:0 (copy)
  Stream #0:1 -> #0:1 (copy)
Press [q] to stop, [?] for help
frame= 1333 fps=0.0 q=-1.0 size=   31696kB time=00:00:22.68 bitrate=11446.5kbits
frame= 2195 fps=0.0 q=-1.0 Lsize=   52971kB time=00:00:37.06 bitrate=11707.5kbit
s/s
video:52620kB audio:323kB subtitle:0 global headers:0kB muxing overhead 0.052162
%

C:\Windows\System32>

Attachments (1)

latm.ts (358.9 KB ) - added by Carl Eugen Hoyos 12 years ago.

Download all attachments as: .zip

Change History (14)

comment:1 by Carl Eugen Hoyos, 12 years ago

Is it possible that you uploaded the wrong file?
Ie, what is (always) needed is the input sample, I do not easily remember a ticket where the output file was helpful.

comment:3 by Carl Eugen Hoyos, 12 years ago

Component: undeterminedavformat
Keywords: mkv regression added
Priority: normalimportant
Reproduced by developer: set
Status: newopen
Summary: passes from .ts a .mkv audio is not in the final fileRemuxing latm into mkv produces a broken output file
Version: unspecifiedgit-master

Regression since 312645e, related to ticket #8.

$ ffmpeg -i latm.ts -acodec copy out.mkv
ffmpeg version N-49150-g5b10c5e Copyright (c) 2000-2013 the FFmpeg developers
  built on Jan 22 2013 20:45:37 with gcc 4.7 (SUSE Linux)
  configuration: --enable-gpl --disable-indev=jack
  libavutil      52. 15.100 / 52. 15.100
  libavcodec     54. 90.100 / 54. 90.100
  libavformat    54. 61.103 / 54. 61.103
  libavdevice    54.  3.102 / 54.  3.102
  libavfilter     3. 33.100 /  3. 33.100
  libswscale      2.  2.100 /  2.  2.100
  libswresample   0. 17.102 /  0. 17.102
  libpostproc    52.  2.100 / 52.  2.100
[mpegts @ 0x260ef40] max_analyze_duration 5000000 reached at 5034667 microseconds
Input #0, mpegts, from 'latm.ts':
  Duration: 00:00:36.74, start: 1.400000, bitrate: 80 kb/s
  Program 1
    Metadata:
      service_name    : Service01
      service_provider: FFmpeg
    Stream #0:0[0x100]: Audio: aac_latm ([17][0][0][0] / 0x0011), 48000 Hz, stereo, fltp
Output #0, matroska, to 'out.mkv':
  Metadata:
    encoder         : Lavf54.61.103
    Stream #0:0: Audio: aac_latm ([17][0][0][0] / 0x0011), 48000 Hz, stereo
Stream mapping:
  Stream #0:0 -> #0:0 (copy)
Press [q] to stop, [?] for help
size=     330kB time=00:00:36.77 bitrate=  73.5kbits/s
video:0kB audio:323kB subtitle:0 global headers:0kB muxing overhead 2.021099%
$ ffmpeg -i out.mkv
ffmpeg version N-49150-g5b10c5e Copyright (c) 2000-2013 the FFmpeg developers
  built on Jan 22 2013 20:45:37 with gcc 4.7 (SUSE Linux)
  configuration: --enable-gpl --disable-indev=jack
  libavutil      52. 15.100 / 52. 15.100
  libavcodec     54. 90.100 / 54. 90.100
  libavformat    54. 61.103 / 54. 61.103
  libavdevice    54.  3.102 / 54.  3.102
  libavfilter     3. 33.100 /  3. 33.100
  libswscale      2.  2.100 /  2.  2.100
  libswresample   0. 17.102 /  0. 17.102
  libpostproc    52.  2.100 / 52.  2.100
[adpcm_ima_wav @ 0x2a1d1c0] Only 4-bit ADPCM IMA WAV files are supported
    Last message repeated 1 times
Guessed Channel Layout for  Input Stream #0.0 : stereo
Input #0, matroska,webm, from 'out.mkv':
  Metadata:
    ENCODER         : Lavf54.61.103
  Duration: 00:00:36.78, start: 0.000000, bitrate: 73 kb/s
    Stream #0:0: Audio: adpcm_ima_wav ([17][0][0][0] / 0x0011), 48000 Hz, stereo, 384 kb/s (default)
At least one output file must be specified

by Carl Eugen Hoyos, 12 years ago

Attachment: latm.ts added

comment:4 by Carl Eugen Hoyos, 12 years ago

Resolution: fixed
Status: openclosed

Should be fixed, thank you for the report!

comment:5 by Resident, 12 years ago

Resolution: fixed
Status: closedreopened

still have the problem.
now a little better.
no problem.
XMedia Recode.
MPC-HC

error with audio:
TMPGEnc Video Mastering Works.
vlc.
Youtube.
Avidemux.

original file .ts
https://docs.google.com/file/d/0B2kUHfEcnsF-MWdSUVJCZGJiMU0/edit?usp=sharing

log ffmpeg-20130217-git-b8bb661-win64-static:

C:\WINDOWS\system32>G:\ffmpeg\bin\ffmpeg.exe -i G:\1.ts -acodec copy -vcodec cop
y G:\1.mkv
ffmpeg version N-50025-gb8bb661 Copyright (c) 2000-2013 the FFmpeg developers
  built on Feb 17 2013 02:44:12 with gcc 4.7.2 (GCC)
  configuration: --enable-gpl --enable-version3 --disable-w32threads --enable-av
isynth --enable-bzlib --enable-fontconfig --enable-frei0r --enable-gnutls --enab
le-libass --enable-libbluray --enable-libcaca --enable-libfreetype --enable-libg
sm --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --e
nable-libopenjpeg --enable-libopus --enable-librtmp --enable-libschroedinger --e
nable-libsoxr --enable-libspeex --enable-libtheora --enable-libtwolame --enable-
libvo-aacenc --enable-libvo-amrwbenc --enable-libvorbis --enable-libvpx --enable
-libx264 --enable-libxavs --enable-libxvid --enable-zlib
  libavutil      52. 17.101 / 52. 17.101
  libavcodec     54. 91.103 / 54. 91.103
  libavformat    54. 63.100 / 54. 63.100
  libavdevice    54.  3.103 / 54.  3.103
  libavfilter     3. 38.100 /  3. 38.100
  libswscale      2.  2.100 /  2.  2.100
  libswresample   0. 17.102 /  0. 17.102
  libpostproc    52.  2.100 / 52.  2.100
[h264 @ 0000000003be2780] sps_id out of range
[h264 @ 0000000003be2780] non-existing SPS 15 referenced in buffering period
[h264 @ 0000000003be2780] non-existing PPS referenced
[h264 @ 0000000003be2780] sps_id out of range
[h264 @ 0000000003be2780] non-existing SPS 15 referenced in buffering period
[h264 @ 0000000003be2780] non-existing PPS 0 referenced
[h264 @ 0000000003be2780] decode_slice_header error
[h264 @ 0000000003be2780] non-existing PPS 0 referenced
[h264 @ 0000000003be2780] decode_slice_header error
[h264 @ 0000000003be2780] non-existing PPS 0 referenced
[h264 @ 0000000003be2780] decode_slice_header error
[h264 @ 0000000003be2780] non-existing PPS 0 referenced
[h264 @ 0000000003be2780] decode_slice_header error
[h264 @ 0000000003be2780] non-existing PPS 0 referenced
[h264 @ 0000000003be2780] decode_slice_header error
[h264 @ 0000000003be2780] non-existing PPS 0 referenced
[h264 @ 0000000003be2780] decode_slice_header error
[h264 @ 0000000003be2780] no frame!
[h264 @ 0000000003be2780] sps_id out of range
[h264 @ 0000000003be2780] non-existing SPS 19 referenced in buffering period
[h264 @ 0000000003be2780] non-existing PPS referenced
[h264 @ 0000000003be2780] sps_id out of range
[h264 @ 0000000003be2780] non-existing SPS 19 referenced in buffering period
[h264 @ 0000000003be2780] non-existing PPS 0 referenced
[h264 @ 0000000003be2780] decode_slice_header error
[h264 @ 0000000003be2780] non-existing PPS 0 referenced
[h264 @ 0000000003be2780] decode_slice_header error
[h264 @ 0000000003be2780] non-existing PPS 0 referenced
[h264 @ 0000000003be2780] decode_slice_header error
[h264 @ 0000000003be2780] non-existing PPS 0 referenced
[h264 @ 0000000003be2780] decode_slice_header error
[h264 @ 0000000003be2780] non-existing PPS 0 referenced
[h264 @ 0000000003be2780] decode_slice_header error
[h264 @ 0000000003be2780] non-existing PPS 0 referenced
[h264 @ 0000000003be2780] decode_slice_header error
[h264 @ 0000000003be2780] no frame!
[h264 @ 0000000003be2780] sps_id out of range
[h264 @ 0000000003be2780] non-existing SPS 23 referenced in buffering period
[h264 @ 0000000003be2780] non-existing PPS referenced
[h264 @ 0000000003be2780] sps_id out of range
[h264 @ 0000000003be2780] non-existing SPS 23 referenced in buffering period
[h264 @ 0000000003be2780] non-existing PPS 0 referenced
[h264 @ 0000000003be2780] decode_slice_header error
[h264 @ 0000000003be2780] non-existing PPS 0 referenced
[h264 @ 0000000003be2780] decode_slice_header error
[h264 @ 0000000003be2780] non-existing PPS 0 referenced
[h264 @ 0000000003be2780] decode_slice_header error
[h264 @ 0000000003be2780] non-existing PPS 0 referenced
[h264 @ 0000000003be2780] decode_slice_header error
[h264 @ 0000000003be2780] non-existing PPS 0 referenced
[h264 @ 0000000003be2780] decode_slice_header error
[h264 @ 0000000003be2780] non-existing PPS 0 referenced
[h264 @ 0000000003be2780] decode_slice_header error
[h264 @ 0000000003be2780] no frame!
[h264 @ 0000000003be2780] sps_id out of range
[h264 @ 0000000003be2780] non-existing SPS 27 referenced in buffering period
[h264 @ 0000000003be2780] non-existing PPS referenced
[h264 @ 0000000003be2780] sps_id out of range
[h264 @ 0000000003be2780] non-existing SPS 27 referenced in buffering period
[h264 @ 0000000003be2780] non-existing PPS 0 referenced
[h264 @ 0000000003be2780] decode_slice_header error
[h264 @ 0000000003be2780] non-existing PPS 0 referenced
[h264 @ 0000000003be2780] decode_slice_header error
[h264 @ 0000000003be2780] non-existing PPS 0 referenced
[h264 @ 0000000003be2780] decode_slice_header error
[h264 @ 0000000003be2780] non-existing PPS 0 referenced
[h264 @ 0000000003be2780] decode_slice_header error
[h264 @ 0000000003be2780] non-existing PPS 0 referenced
[h264 @ 0000000003be2780] decode_slice_header error
[h264 @ 0000000003be2780] non-existing PPS 0 referenced
[h264 @ 0000000003be2780] decode_slice_header error
[h264 @ 0000000003be2780] no frame!
[h264 @ 0000000003be2780] sps_id out of range
[h264 @ 0000000003be2780] non-existing SPS 7 referenced in buffering period
[h264 @ 0000000003be2780] non-existing PPS referenced
[h264 @ 0000000003be2780] sps_id out of range
[h264 @ 0000000003be2780] non-existing SPS 7 referenced in buffering period
[h264 @ 0000000003be2780] non-existing PPS 0 referenced
[h264 @ 0000000003be2780] decode_slice_header error
[h264 @ 0000000003be2780] non-existing PPS 0 referenced
[h264 @ 0000000003be2780] decode_slice_header error
[h264 @ 0000000003be2780] non-existing PPS 0 referenced
[h264 @ 0000000003be2780] decode_slice_header error
[h264 @ 0000000003be2780] non-existing PPS 0 referenced
[h264 @ 0000000003be2780] decode_slice_header error
[h264 @ 0000000003be2780] non-existing PPS 0 referenced
[h264 @ 0000000003be2780] decode_slice_header error
[h264 @ 0000000003be2780] non-existing PPS 0 referenced
[h264 @ 0000000003be2780] decode_slice_header error
[h264 @ 0000000003be2780] no frame!
[h264 @ 0000000003be2780] sps_id out of range
[h264 @ 0000000003be2780] non-existing SPS 8 referenced in buffering period
[h264 @ 0000000003be2780] non-existing PPS referenced
[h264 @ 0000000003be2780] sps_id out of range
[h264 @ 0000000003be2780] non-existing SPS 8 referenced in buffering period
[h264 @ 0000000003be2780] non-existing PPS 0 referenced
[h264 @ 0000000003be2780] decode_slice_header error
[h264 @ 0000000003be2780] non-existing PPS 0 referenced
[h264 @ 0000000003be2780] decode_slice_header error
[h264 @ 0000000003be2780] non-existing PPS 0 referenced
[h264 @ 0000000003be2780] decode_slice_header error
[h264 @ 0000000003be2780] non-existing PPS 0 referenced
[h264 @ 0000000003be2780] decode_slice_header error
[h264 @ 0000000003be2780] non-existing PPS 0 referenced
[h264 @ 0000000003be2780] decode_slice_header error
[h264 @ 0000000003be2780] non-existing PPS 0 referenced
[h264 @ 0000000003be2780] decode_slice_header error
[h264 @ 0000000003be2780] no frame!
[h264 @ 0000000003be2780] sps_id out of range
[h264 @ 0000000003be2780] non-existing SPS 9 referenced in buffering period
[h264 @ 0000000003be2780] non-existing PPS referenced
[h264 @ 0000000003be2780] sps_id out of range
[h264 @ 0000000003be2780] non-existing SPS 9 referenced in buffering period
[h264 @ 0000000003be2780] non-existing PPS 0 referenced
[h264 @ 0000000003be2780] decode_slice_header error
[h264 @ 0000000003be2780] non-existing PPS 0 referenced
[h264 @ 0000000003be2780] decode_slice_header error
[h264 @ 0000000003be2780] non-existing PPS 0 referenced
[h264 @ 0000000003be2780] decode_slice_header error
[h264 @ 0000000003be2780] non-existing PPS 0 referenced
[h264 @ 0000000003be2780] decode_slice_header error
[h264 @ 0000000003be2780] non-existing PPS 0 referenced
[h264 @ 0000000003be2780] decode_slice_header error
[h264 @ 0000000003be2780] non-existing PPS 0 referenced
[h264 @ 0000000003be2780] decode_slice_header error
[h264 @ 0000000003be2780] no frame!
[h264 @ 0000000003be2780] sps_id out of range
[h264 @ 0000000003be2780] non-existing SPS 10 referenced in buffering period
[h264 @ 0000000003be2780] non-existing PPS referenced
[h264 @ 0000000003be2780] sps_id out of range
[h264 @ 0000000003be2780] non-existing SPS 10 referenced in buffering period
[h264 @ 0000000003be2780] non-existing PPS 0 referenced
[h264 @ 0000000003be2780] decode_slice_header error
[h264 @ 0000000003be2780] non-existing PPS 0 referenced
[h264 @ 0000000003be2780] decode_slice_header error
[h264 @ 0000000003be2780] non-existing PPS 0 referenced
[h264 @ 0000000003be2780] decode_slice_header error
[h264 @ 0000000003be2780] non-existing PPS 0 referenced
[h264 @ 0000000003be2780] decode_slice_header error
[h264 @ 0000000003be2780] non-existing PPS 0 referenced
[h264 @ 0000000003be2780] decode_slice_header error
[h264 @ 0000000003be2780] non-existing PPS 0 referenced
[h264 @ 0000000003be2780] decode_slice_header error
[h264 @ 0000000003be2780] no frame!
[h264 @ 0000000003be2780] sps_id out of range
[h264 @ 0000000003be2780] non-existing SPS 11 referenced in buffering period
[h264 @ 0000000003be2780] non-existing PPS referenced
[h264 @ 0000000003be2780] sps_id out of range
[h264 @ 0000000003be2780] non-existing SPS 11 referenced in buffering period
[h264 @ 0000000003be2780] non-existing PPS 0 referenced
[h264 @ 0000000003be2780] decode_slice_header error
[h264 @ 0000000003be2780] non-existing PPS 0 referenced
[h264 @ 0000000003be2780] decode_slice_header error
[h264 @ 0000000003be2780] non-existing PPS 0 referenced
[h264 @ 0000000003be2780] decode_slice_header error
[h264 @ 0000000003be2780] non-existing PPS 0 referenced
[h264 @ 0000000003be2780] decode_slice_header error
[h264 @ 0000000003be2780] non-existing PPS 0 referenced
[h264 @ 0000000003be2780] decode_slice_header error
[h264 @ 0000000003be2780] non-existing PPS 0 referenced
[h264 @ 0000000003be2780] decode_slice_header error
[h264 @ 0000000003be2780] no frame!
[h264 @ 0000000003be2780] sps_id out of range
[h264 @ 0000000003be2780] non-existing SPS 12 referenced in buffering period
[h264 @ 0000000003be2780] non-existing PPS referenced
[h264 @ 0000000003be2780] sps_id out of range
[h264 @ 0000000003be2780] non-existing SPS 12 referenced in buffering period
[h264 @ 0000000003be2780] non-existing PPS 0 referenced
[h264 @ 0000000003be2780] decode_slice_header error
[h264 @ 0000000003be2780] non-existing PPS 0 referenced
[h264 @ 0000000003be2780] decode_slice_header error
[h264 @ 0000000003be2780] non-existing PPS 0 referenced
[h264 @ 0000000003be2780] decode_slice_header error
[h264 @ 0000000003be2780] non-existing PPS 0 referenced
[h264 @ 0000000003be2780] decode_slice_header error
[h264 @ 0000000003be2780] non-existing PPS 0 referenced
[h264 @ 0000000003be2780] decode_slice_header error
[h264 @ 0000000003be2780] non-existing PPS 0 referenced
[h264 @ 0000000003be2780] decode_slice_header error
[h264 @ 0000000003be2780] no frame!
[h264 @ 0000000003be2780] sps_id out of range
[h264 @ 0000000003be2780] non-existing SPS 13 referenced in buffering period
[h264 @ 0000000003be2780] non-existing PPS referenced
[h264 @ 0000000003be2780] sps_id out of range
[h264 @ 0000000003be2780] non-existing SPS 13 referenced in buffering period
[h264 @ 0000000003be2780] non-existing PPS 0 referenced
[h264 @ 0000000003be2780] decode_slice_header error
[h264 @ 0000000003be2780] non-existing PPS 0 referenced
[h264 @ 0000000003be2780] decode_slice_header error
[h264 @ 0000000003be2780] non-existing PPS 0 referenced
[h264 @ 0000000003be2780] decode_slice_header error
[h264 @ 0000000003be2780] non-existing PPS 0 referenced
[h264 @ 0000000003be2780] decode_slice_header error
[h264 @ 0000000003be2780] non-existing PPS 0 referenced
[h264 @ 0000000003be2780] decode_slice_header error
[h264 @ 0000000003be2780] non-existing PPS 0 referenced
[h264 @ 0000000003be2780] decode_slice_header error
[h264 @ 0000000003be2780] no frame!
Input #0, mpegts, from 'G:\1.ts':
  Duration: 00:00:18.89, start: 20436.336622, bitrate: 10627 kb/s
  Program 224
    Stream #0:0[0xe21]: Video: h264 (High) ([27][0][0][0] / 0x001B), yuv420p, 19
20x1080 [SAR 1:1 DAR 16:9], 29.97 fps, 29.97 tbr, 90k tbn, 59.94 tbc
    Stream #0:1[0xe23]: Audio: aac_latm ([17][0][0][0] / 0x0011), 48000 Hz, ster
eo, fltp
Output #0, matroska, to 'G:\1.mkv':
  Metadata:
    encoder         : Lavf54.63.100
    Stream #0:0: Video: h264 (H264 / 0x34363248), yuv420p, 1920x1080 [SAR 1:1 DA
R 16:9], q=2-31, 29.97 fps, 1k tbn, 90k tbc
    Stream #0:1: Audio: aac_latm ([2][22][0][0] / 0x1602), 48000 Hz, stereo
Stream mapping:
  Stream #0:0 -> #0:0 (copy)
  Stream #0:1 -> #0:1 (copy)
Press [q] to stop, [?] for help
frame=  608 fps=0.0 q=-1.0 size=   20953kB time=00:00:17.15 bitrate=10004.6kbits
frame=  657 fps=0.0 q=-1.0 Lsize=   23472kB time=00:00:18.79 bitrate=10232.2kbit
s/s
video:23298kB audio:163kB subtitle:0 global headers:0kB muxing overhead 0.044966
%

C:\WINDOWS\system32>

comment:6 by Carl Eugen Hoyos, 12 years ago

Resolution: fixed
Status: reopenedclosed
$ ffmpeg -i 1.ts -acodec copy -vcodec copy 1.mkv
$ ffmpeg -i 1.mkv
ffmpeg version N-50044-gdcc73aa Copyright (c) 2000-2013 the FFmpeg developers
  built on Feb 17 2013 16:38:42 with gcc 4.7 (SUSE Linux)
  configuration: --enable-gpl --disable-indev=jack
  libavutil      52. 17.101 / 52. 17.101
  libavcodec     54. 92.100 / 54. 92.100
  libavformat    54. 63.100 / 54. 63.100
  libavdevice    54.  3.103 / 54.  3.103
  libavfilter     3. 38.103 /  3. 38.103
  libswscale      2.  2.100 /  2.  2.100
  libswresample   0. 17.102 /  0. 17.102
  libpostproc    52.  2.100 / 52.  2.100
Input #0, matroska,webm, from '1.mkv':
  Metadata:
    ENCODER         : Lavf54.63.100
  Duration: 00:00:18.93, start: 0.000000, bitrate: 10159 kb/s
    Stream #0:0: Video: h264 (High), yuv420p, 1920x1080 [SAR 1:1 DAR 16:9], 29.97 fps, 29.97 tbr, 1k tbn, 59.94 tbc (default)
    Stream #0:1: Audio: aac_latm ([2][22][0][0] / 0x1602), 48000 Hz, stereo, fltp (default)
At least one output file must be specified

comment:7 by Resident, 12 years ago

not very clear to me.
I have to add the mkv file that FFmpeg left?
my problem or error FFmpeg now?

comment:8 by Carl Eugen Hoyos, 12 years ago

It appears to me that remuxing aac_latm into mkv works fine (with the sample your provided).

comment:9 by Resident, 12 years ago

get error on several programs and youtube.

here the mkv FFmpeg leaving.
https://docs.google.com/file/d/0B2kUHfEcnsF-NDBiWk5CRXF3b00/edit?usp=sharing

vlc test. off, audio and get the error:
log vlc: http://pastebin.com/Vraci5wn

comment:10 by Carl Eugen Hoyos, 12 years ago

$ md5sum test1.mkv
a9dcef845717d60402005428cd833f1a  test1.mkv
$ ffmpeg -i test1.mkv
ffmpeg version N-50046-gcf36180 Copyright (c) 2000-2013 the FFmpeg developers
  built on Feb 17 2013 17:42:24 with gcc 4.7 (SUSE Linux)
  configuration: --enable-gpl --disable-indev=jack
  libavutil      52. 17.101 / 52. 17.101
  libavcodec     54. 92.100 / 54. 92.100
  libavformat    54. 63.100 / 54. 63.100
  libavdevice    54.  3.103 / 54.  3.103
  libavfilter     3. 38.103 /  3. 38.103
  libswscale      2.  2.100 /  2.  2.100
  libswresample   0. 17.102 /  0. 17.102
  libpostproc    52.  2.100 / 52.  2.100
Input #0, matroska,webm, from 'test1.mkv':
  Metadata:
    ENCODER         : Lavf54.63.100
  Duration: 00:00:18.93, start: 0.000000, bitrate: 10159 kb/s
    Stream #0:0: Video: h264 (High), yuv420p, 1920x1080 [SAR 1:1 DAR 16:9], 29.97 fps, 29.97 tbr, 1k tbn, 59.94 tbc (default)
    Stream #0:1: Audio: aac_latm ([2][22][0][0] / 0x1602), 48000 Hz, stereo, fltp (default)
At least one output file must be specified

comment:11 by Carl Eugen Hoyos, 12 years ago

If you want to report this problem to the developers of the failing software, this link may help (search for WAVE_FORMAT_MPEG_LOAS):
http://msdn.microsoft.com/en-us/library/dd317599%28VS.85%29.aspx

comment:12 by Resident, 12 years ago

whether the problem comes from the file recording program (DVBViewer Pro)?

comment:13 by Nuno, 12 years ago

I have been looking at doing exactly the same and apparently it works fine for me using recent build from git (output mkv plays fine on some pc players, audio is set as 0x1602), however I did found that most players (mostly hardware players) apparently have problems with latm aac on mkv container, not sure why, while no problems at all with non-latm aac, I think a really good option would be having a way to convert latm aac to non-latm aac without recompressing audio, I did created a new ticked for such enhancement at: https://ffmpeg.org/trac/ffmpeg/ticket/2439

Note: See TracTickets for help on using tickets.