Opened 12 years ago
Closed 12 years ago
#1553 closed defect (invalid)
Remuxing mpeg2video from transport stream to matroska fails
Reported by: | Carl Eugen Hoyos | Owned by: | |
---|---|---|---|
Priority: | normal | Component: | undetermined |
Version: | git-master | Keywords: | mpegts mpeg2video av_interleaved_write_frame roundup |
Cc: | fturco@fastmail.fm | Blocked By: | |
Blocking: | Reproduced by developer: | no | |
Analyzed by developer: | no |
Description
(Second, unrelated sample from issue 1719)
Remuxing mpeg2video from ts to mkv fails:
$ ffmpeg -i Ts\ cannot\ be\ muxed\ to\ mkv.ts -vcodec copy -an out.mkv ffmpeg version N-42605-g5784a46 Copyright (c) 2000-2012 the FFmpeg developers built on Jul 18 2012 20:29:06 with gcc 4.3.2 configuration: --cc=/usr/local/gcc-4.3.2/bin/gcc --enable-gpl --enable-libopenjpeg --enable-libvorbis --enable-libspeex --enable-libmp3lame --enable-libtheora --extra-ldflags=-lm --enable-libvpx --enable-libxavs --enable-x11grab --enable-libass libavutil 51. 65.100 / 51. 65.100 libavcodec 54. 41.100 / 54. 41.100 libavformat 54. 17.100 / 54. 17.100 libavdevice 54. 1.100 / 54. 1.100 libavfilter 3. 2.100 / 3. 2.100 libswscale 2. 1.100 / 2. 1.100 libswresample 0. 15.100 / 0. 15.100 libpostproc 52. 0.100 / 52. 0.100 [mpegts @ 0x90774e0] PES packet size mismatch [mpegts @ 0x90774e0] Could not find codec parameters for stream 2 (Audio: ac3 ([129][0][0][0] / 0x0081), 0 channels, s16): unspecified sample rate Consider increasing the value for the 'analyzeduration' and 'probesize' options [NULL @ 0x907c140] start time is not set in estimate_timings_from_pts [mpegts @ 0x90774e0] PES packet size mismatch Input #0, mpegts, from 'Ts cannot be muxed to mkv.ts': Duration: 00:00:01.78, start: 58016.615744, bitrate: 9158 kb/s Program 1 Stream #0:0[0x31]: Video: mpeg2video (Main) ([2][0][0][0] / 0x0002), yuv420p, 1440x1080 [SAR 4:3 DAR 16:9], 90000 kb/s, 29.97 fps, 29.97 tbr, 90k tbn, 59.94 tbc Stream #0:1[0x34]: Audio: ac3 ([129][0][0][0] / 0x0081), 48000 Hz, stereo, s16, 384 kb/s Stream #0:2[0x35]: Audio: ac3 ([129][0][0][0] / 0x0081), 0 channels, s16 Output #0, matroska, to 'out.mkv': Metadata: encoder : Lavf54.17.100 Stream #0:0: Video: mpeg2video ([2][0][0][0] / 0x0002), yuv420p, 1440x1080 [SAR 4:3 DAR 16:9], q=2-31, 90000 kb/s, 29.97 fps, 1k tbn, 90k tbc Stream mapping: Stream #0:0 -> #0:0 (copy) Press [q] to stop, [?] for help [matroska @ 0x907f080] Can't write packet with unknown timestamp av_interleaved_write_frame(): Invalid argument
Attachments (1)
Change History (6)
by , 12 years ago
Attachment: | Ts cannot be muxed to mkv.ts added |
---|
comment:1 by , 12 years ago
comment:2 by , 12 years ago
Works fine with -fflags +genpts:
$ ffmpeg -fflags +genpts -i Ts\ cannot\ be\ muxed\ to\ mkv.ts -vcodec copy -an out.mkv
Please provide a sample if this does not work for you.
comment:3 by , 12 years ago
Cc: | added |
---|
comment:4 by , 12 years ago
Keywords: | roundup added |
---|
comment:5 by , 12 years ago
Resolution: | → invalid |
---|---|
Status: | new → closed |
I created ticket #1979 with the enhancement request to automatically insert -fflags +genpts if necessary.
Note:
See TracTickets
for help on using tickets.
I get a very similar error message, but my input file format is MPEG-PS: