Ticket #1626 (closed defect: fixed)
Initial seek in transport stream with timestamp wrap fails
| Reported by: | cehoyos | Owned by: | |
|---|---|---|---|
| Priority: | normal | Component: | avformat |
| Version: | git-master | Keywords: | mpegts |
| Cc: | Blocked By: | ||
| Blocking: | Reproduced by developer: | no | |
| Analyzed by developer: | no |
Description
I will attach a transport stream with 169 seconds aac sound. Timestamps wrap approximately in the middle.
The resulting file is ~0.2 seconds long.
$ ffmpeg -ss 1 -i timestamp_wrap.ts out.wav
ffmpeg version N-43375-g5d8e54f Copyright (c) 2000-2012 the FFmpeg developers
built on Aug 9 2012 07:54:23 with gcc 4.3.2 (GCC)
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 --enable-nonfree --enable-libfaac --enable-libopus --enable-libfdk-aac
libavutil 51. 67.100 / 51. 67.100
libavcodec 54. 51.100 / 54. 51.100
libavformat 54. 22.103 / 54. 22.103
libavdevice 54. 2.100 / 54. 2.100
libavfilter 3. 7.100 / 3. 7.100
libswscale 2. 1.101 / 2. 1.101
libswresample 0. 15.100 / 0. 15.100
libpostproc 52. 0.100 / 52. 0.100
[mpegts @ 0x9116500] max_analyze_duration 5000000 reached at 5034667
[mpegts @ 0x9116500] PES packet size mismatch
Last message repeated 1 times
Input #0, mpegts, from 'timestamp_wrap.ts':
Duration: 00:02:49.21, start: 95364.014889, bitrate: 121 kb/s
Program 20001
Program 20002
Program 20003
Program 20011
Program 20012
Stream #0:0[0x20](deu): Audio: aac ([15][0][0][0] / 0x000F), 24000 Hz, stereo, s16, 56 kb/s (clean effects)
Program 20013
Output #0, wav, to 'out.wav':
Metadata:
encoder : Lavf54.22.103
Stream #0:0(deu): Audio: pcm_s16le ([1][0][0][0] / 0x0001), 24000 Hz, stereo, s16, 768 kb/s (clean effects)
Stream mapping:
Stream #0:0 -> #0:0 (aac -> pcm_s16le)
Press [q] to stop, [?] for help
[mpegts @ 0x9116500] PES packet size mismatch
[aac @ 0x911d380] Input buffer exhausted before END element found
Error while decoding stream #0:0: Operation not permitted
size= 20kB time=-26:-27:-55.-28 bitrate= -0.0kbits/s
video:0kB audio:20kB subtitle:0 global headers:0kB muxing overhead 0.224609%
Seeking in timestamp_wrap.ts with ffplay works very well, both mplayer -demuxer mpegts and mplayer -demuxer lavf mostly fail to seek.
Attachments
Change History
Note: See
TracTickets for help on using
tickets.



