Lars Täuber <[email protected]> added the comment:
Hi,
I have the same problem with a h264 file in mp4 container from my camcorder
(Sanyo Xacti HD2000) but only when filmed in 1080p60 mode.
The other modes 1080p30 and 720p30 don't produce this error.
Is this a bug or are the 1080p60 files non-standard?
File uploaded: SANY0461.MP4
Here is my output:
$ ffmpeg -i SANY0461.MP4 -an -vcodec copy -y sanyo-xacti-hd2000-h264.mp4
FFmpeg version SVN-r19508, Copyright (c) 2000-2009 Fabrice Bellard, et al.
configuration: --enable-gpl --enable-pthreads --enable-libfaac
--enable-libfaadbin --enable-libgsm --enable-libmp3lame --enable-libschroedinger
--enable-libtheora --enable-libvorbis --enable-libxvid --enable-nonfree
libavutil 50. 3. 0 / 50. 3. 0
libavcodec 52.32. 0 / 52.32. 0
libavformat 52.36. 0 / 52.36. 0
libavdevice 52. 2. 0 / 52. 2. 0
libswscale 0. 7. 1 / 0. 7. 1
built on Jul 26 2009 19:44:42, gcc: 4.2.4 (Ubuntu 4.2.4-1ubuntu4)
[mov,mp4,m4a,3gp,3g2,mj2 @ 0xfdd360]Invalid timestamps stream=0, pts=0,
dts=1001, size=136
[mov,mp4,m4a,3gp,3g2,mj2 @ 0xfdd360]Invalid timestamps stream=0, pts=2002,
dts=3003, size=11080
[mov,mp4,m4a,3gp,3g2,mj2 @ 0xfdd360]Invalid timestamps stream=0, pts=4004,
dts=5005, size=15208
[mov,mp4,m4a,3gp,3g2,mj2 @ 0xfdd360]Invalid timestamps stream=0, pts=6006,
dts=7007, size=19176
[mov,mp4,m4a,3gp,3g2,mj2 @ 0xfdd360]Invalid timestamps stream=0, pts=8008,
dts=9009, size=33056
[mov,mp4,m4a,3gp,3g2,mj2 @ 0xfdd360]Invalid timestamps stream=0, pts=10010,
dts=11011, size=41368
[mov,mp4,m4a,3gp,3g2,mj2 @ 0xfdd360]Invalid timestamps stream=0, pts=12012,
dts=13013, size=46488
[mov,mp4,m4a,3gp,3g2,mj2 @ 0xfdd360]Invalid timestamps stream=0, pts=14014,
dts=15015, size=33936
[mov,mp4,m4a,3gp,3g2,mj2 @ 0xfdd360]Invalid timestamps stream=0, pts=16016,
dts=17017, size=34112
[mov,mp4,m4a,3gp,3g2,mj2 @ 0xfdd360]Invalid timestamps stream=0, pts=18018,
dts=19019, size=38792
[mov,mp4,m4a,3gp,3g2,mj2 @ 0xfdd360]Invalid timestamps stream=0, pts=20020,
dts=21021, size=45352
[mov,mp4,m4a,3gp,3g2,mj2 @ 0xfdd360]Invalid timestamps stream=0, pts=22022,
dts=23023, size=45544
[mov,mp4,m4a,3gp,3g2,mj2 @ 0xfdd360]Invalid timestamps stream=0, pts=24024,
dts=25025, size=32024
[mov,mp4,m4a,3gp,3g2,mj2 @ 0xfdd360]Invalid timestamps stream=0, pts=26026,
dts=27027, size=40472
[mov,mp4,m4a,3gp,3g2,mj2 @ 0xfdd360]Invalid timestamps stream=0, pts=28028,
dts=29029, size=47264
Seems stream 0 codec frame rate differs from container frame rate: 119.88
(120000/1001) -> 59.94 (60000/1001)
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'SANY0461.MP4':
Duration: 00:00:05.38, start: 0.000000, bitrate: 23618 kb/s
Stream #0.0(eng): Video: h264, yuv420p, 1920x1080 [PAR 1:1 DAR 16:9], 59.94
tbr, 60k tbn, 119.88 tbc
Stream #0.1(eng): Audio: aac, 48000 Hz, 2 channels, s16
Output #0, mp4, to 'sanyo-xacti-hd2000-h264.mp4':
Stream #0.0(eng): Video: 0x0021, yuv420p, 1920x1080 [PAR 1:1 DAR 16:9],
q=2-31, 120k tbn, 59.94 tbc
Stream mapping:
Stream #0.0 -> #0.0
Press [q] to stop encoding
[NULL @ 0xfed050]error, pts < dts
av_interleaved_write_frame(): Error while opening file
it can be played with ffplay but after the first frame come some strange gray
artefacts till it as displayed correctly after some seconds again
$ ffplay -an SANY0461.MP4
FFplay version SVN-r19508, Copyright (c) 2003-2009 Fabrice Bellard, et al.
configuration: --enable-gpl --enable-pthreads --enable-libfaac
--enable-libfaadbin --enable-libgsm --enable-libmp3lame --enable-libschroedinger
--enable-libtheora --enable-libvorbis --enable-libxvid --enable-nonfree
libavutil 50. 3. 0 / 50. 3. 0
libavcodec 52.32. 0 / 52.32. 0
libavformat 52.36. 0 / 52.36. 0
libavdevice 52. 2. 0 / 52. 2. 0
libswscale 0. 7. 1 / 0. 7. 1
built on Jul 26 2009 19:44:42, gcc: 4.2.4 (Ubuntu 4.2.4-1ubuntu4)
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x1081ed0]Invalid timestamps stream=0, pts=0,
dts=1001, size=136
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x1081ed0]Invalid timestamps stream=0, pts=2002,
dts=3003, size=11080
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x1081ed0]Invalid timestamps stream=0, pts=4004,
dts=5005, size=15208
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x1081ed0]Invalid timestamps stream=0, pts=6006,
dts=7007, size=19176
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x1081ed0]Invalid timestamps stream=0, pts=8008,
dts=9009, size=33056
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x1081ed0]Invalid timestamps stream=0, pts=10010,
dts=11011, size=41368
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x1081ed0]Invalid timestamps stream=0, pts=12012,
dts=13013, size=46488
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x1081ed0]Invalid timestamps stream=0, pts=14014,
dts=15015, size=33936
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x1081ed0]Invalid timestamps stream=0, pts=16016,
dts=17017, size=34112
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x1081ed0]Invalid timestamps stream=0, pts=18018,
dts=19019, size=38792
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x1081ed0]Invalid timestamps stream=0, pts=20020,
dts=21021, size=45352
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x1081ed0]Invalid timestamps stream=0, pts=22022,
dts=23023, size=45544
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x1081ed0]Invalid timestamps stream=0, pts=24024,
dts=25025, size=32024
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x1081ed0]Invalid timestamps stream=0, pts=26026,
dts=27027, size=40472
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x1081ed0]Invalid timestamps stream=0, pts=28028,
dts=29029, size=47264
[h264 @ 0x1082f00]B picture before any references, skipping
[h264 @ 0x1082f00]decode_slice_header error
[h264 @ 0x1082f00]no frame!
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x1081ed0]Invalid timestamps stream=0, pts=30030,
dts=31031, size=33640
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x1081ed0]Invalid timestamps stream=0, pts=32032,
dts=33033, size=6448
...
Regards
Lars
----------
priority: normal -> important
status: closed -> open
substatus: needs_more_info -> reproduced
____________________________________________________
FFmpeg issue tracker <[email protected]>
<https://roundup.ffmpeg.org/roundup/ffmpeg/issue419>
____________________________________________________