[FFmpeg-trac] #884(FFmpeg:closed): Wrong duration on long video from HDPVR

FFmpeg trac at avcodec.org
Tue Jan 10 00:14:05 CET 2012


#884: Wrong duration on long video from HDPVR
-------------------------------------+-------------------------------------
             Reporter:  jgauthier    |                    Owner:
                 Type:  defect       |                   Status:  closed
             Priority:  normal       |                Component:  FFmpeg
              Version:  0.9          |               Resolution:
             Keywords:  duration     |  needs_more_info
             Blocking:               |               Blocked By:
Analyzed by developer:  0            |  Reproduced by developer:  0
-------------------------------------+-------------------------------------
Changes (by cehoyos):

 * status:  new => closed
 * resolution:   => needs_more_info


Comment:

 I made two long mpegts recordings, one contains h264, ac3 and mp2, the
 other only aac, both contain a pts-wrap. For both streams, the "Duration"
 information is nearly correct.

 If you want to reopen this ticket, please explain for which bs / count /
 skip values (when using dd to cut the sample) the issue is reproducible /
 not reproducible and / or provide a sample, You can upload up to 100MB to
 http://www.datafilehost.com/ please use incoming for larger samples, see
 http://ffmpeg.org/bugreports.html
 {{{
 $ ffmpeg -i ptsreset.ts -vn -f null -
 ffmpeg version N-36635-gceb0dd9 Copyright (c) 2000-2012 the FFmpeg
 developers
   built on Jan  9 2012 23:05:33 with gcc 4.5.3
   configuration: --cc='/usr/local/gcc-4.5.3/bin/gcc -m32'
   libavutil      51. 34.100 / 51. 34.100
   libavcodec     53. 54.100 / 53. 54.100
   libavformat    53. 29.100 / 53. 29.100
   libavdevice    53.  4.100 / 53.  4.100
   libavfilter     2. 58.100 /  2. 58.100
   libswscale      2.  1.100 /  2.  1.100
   libswresample   0.  6.100 /  0.  6.100

 ...

 [mpegts @ 0x8dcbaa0] max_analyze_duration 5000000 reached at 5024000
 [mpegts @ 0x8dcbaa0] Could not find codec parameters (Unknown: none
 ([5][0][0][0] / 0x0005))
 [NULL @ 0x8dd0a00] start time is not set in estimate_timings_from_pts
 [mpegts @ 0x8dcbaa0] PES packet size mismatch
     Last message repeated 2 times
 Input #0, mpegts, from 'ptsreset.ts':
   Duration: 07:42:30.20, start: 78997.822822, bitrate: 4182 kb/s
   Program 10001
     Stream #0:0[0x20]: Unknown: none ([5][0][0][0] / 0x0005)
     Stream #0:1[0x64]: Video: h264 (Main) ([27][0][0][0] / 0x001B),
 yuv420p, 1280x720 [SAR 1:1 DAR 16:9], 59.60 fps, 50 tbr, 90k tbn, 100 tbc
     Stream #0:2[0x65](deu): Audio: mp2 ([3][0][0][0] / 0x0003), 48000 Hz,
 stereo, s16, 160 kb/s
     Stream #0:3[0x66](eng): Audio: mp2 ([4][0][0][0] / 0x0004), 48000 Hz,
 stereo, s16, 160 kb/s
     Stream #0:4[0x67](deu): Audio: ac3 ([6][0][0][0] / 0x0006), 48000 Hz,
 stereo, s16, 448 kb/s
     Stream #0:5[0x69](deu): Subtitle: dvb_teletext ([6][0][0][0] / 0x0006)
   Program 10002
 Output #0, null, to 'pipe:':
   Metadata:
     encoder         : Lavf53.29.100
     Stream #0:0(deu): Audio: pcm_s16le, 48000 Hz, stereo, s16, 1536 kb/s
 Stream mapping:
   Stream #0:2 -> #0:0 (mp2 -> pcm_s16le)
 Press [q] to stop, [?] for help

 ...

 size=       0kB time=07:42:23.49 bitrate=   0.0kbits/s
 video:0kB audio:5201906kB global headers:0kB muxing overhead -100.000000%
 }}}
 {{{
 $ ffmpeg -i aac.ts -f null -
 ffmpeg version N-36635-gceb0dd9 Copyright (c) 2000-2012 the FFmpeg
 developers
   built on Jan  9 2012 23:05:33 with gcc 4.5.3
   configuration: --cc='/usr/local/gcc-4.5.3/bin/gcc -m32'
   libavutil      51. 34.100 / 51. 34.100
   libavcodec     53. 54.100 / 53. 54.100
   libavformat    53. 29.100 / 53. 29.100
   libavdevice    53.  4.100 / 53.  4.100
   libavfilter     2. 58.100 /  2. 58.100
   libswscale      2.  1.100 /  2.  1.100
   libswresample   0.  6.100 /  0.  6.100
 [mpegts @ 0x8dcbaa0] max_analyze_duration 5000000 reached at 5034667
 [mpegts @ 0x8dcbaa0] PES packet size mismatch
 Input #0, mpegts, from 'aac.ts':
   Duration: 25:22:11.84, start: 10297.518889, bitrate: 120 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, 57 kb/s (clean effects)
   Program 20013
 Output #0, null, to 'pipe:':
   Metadata:
     encoder         : Lavf53.29.100
     Stream #0:0(deu): Audio: pcm_s16le, 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

 ...

 size=       0kB time=25:19:57.18 bitrate=   0.0kbits/s
 video:0kB audio:8549736kB global headers:0kB muxing overhead -100.000000%
 }}}

-- 
Ticket URL: <https://ffmpeg.org/trac/ffmpeg/ticket/884#comment:6>
FFmpeg <http://ffmpeg.org>
FFmpeg issue tracker


More information about the FFmpeg-trac mailing list