[Ffmpeg-devel] "error, non monotone timestamps" on PPC

herve.flores herve.flores
Wed Jul 5 17:16:12 CEST 2006


Hi, I'm on Mac OSX PPC
I have a possible "bug report" but it seems to occurs only on PPC: I  
submitted once, but the pb wasn't reproducible on others platforms  
(Michael Niedermayer said it).
I manage to reproduce it -with every compile since last year- on mac  
ppc. then I think it's perhaps a big-endian pb...

the problem is with -f yuv4mpegpipe (with last SVN or older  
releases), a loose of frames during transfert

Only a part of frames are transfered to output (but all the frames  
are correctly decoded)
I have this problem with AVI (most of time)

ex with this file http://www.kay-kay.com/files/spaceman_01.avi (2Mo  
to DL)
my process is :
ffmpeg -v 1 -i spaceman_01.avi -r pal -f yuv4mpegpipe - | ffmpeg -v 1  
-f yuv4mpegpipe -i - -y output.avi

During decoding, ffmpeg decoder tells "error, non monotone timestamps 0"
Result decoding: "frame=  124 q=0.0 Lsize=   43133kB time=5.0  
bitrate=70108.2kbits/s dup=0 drop=0 "
Stream resulting: "frame=   71 q=0.0 Lsize=     552kB time=2.8  
bitrate=1614.5kbits/s"
...I lost a lot of frames :-( (exactly one frame lost by "error, non  
monotone timestamps 0")
I have 53 lines with "error, non monotone timestamps"
53 lignes/frames lost + 71 (from result) seems to mach with 124  
frames decoded (it's just for information, I try to understand...)
The timecode written in the output is "Duration   : 00:00:02.21" (in  
a PAL rate, then 71 frames too)
then I used to decode 100 frames first, then parse the verbose to  
know if I find "error, non monotone timestamps" and then use another  
decoder than ffmpeg.
But it's not a good solution ;-)

with some other sources, I saw the same problem.
The "four letters tags"(videocodec) of these sources are "mpeg4" with  
ffmpeg verbose.
But QuickTime can give me differents complementary informations like  
"XVID", "DX50", ...

PS: don't propose to make an unique proces, my aim is to pipe some  
mjpegtools between the 2 processes of ffmpeg.

and the full verbose is:

cag06-1-82-234-130-166:~ herve$ ffmpeg -v 2 -i '/Volumes/Video/ 
DVD_suite/BA_CM/_SOURCES A PROBLEME/_DECODAGE FF dur\303\251e/ 
spaceman_01.avi' -f yuv4mpegpipe - | ffmpeg -v 1 -f yuv4mpegpipe -i -  
-y out.avi
FFmpeg version SVN-r5619, Copyright (c) 2000-2004 Fabrice Bellard
   configuration:  --enable-pthreads --enable-static --disable-shared  
--enable-a52 --enable-x264 --enable-gpl --enable-amr_nb --enable- 
amr_wb --enable-amr_if2 --enable-xvid --enable-mp3lame --enable- 
libogg --enable-libgsm --enable-dts --enable-faac
   libavutil version: 49.0.0
   libavcodec version: 51.9.0
   libavformat version: 50.4.0
   built on Jul  5 2006 16:36:56, gcc: 4.0.1 (Apple Computer, Inc.  
build 5341)
Input #0, avi, from '/Volumes/Video/DVD_suite/BA_CM/_SOURCES A  
PROBLEME/_DECODAGE FF dur?e/spaceman_01.avi':
   Duration: 00:00:05.0, start: 0.000000, bitrate: 3306 kb/s
   Stream #0.0, 1/25: Video: mpeg4, yuv420p, 720x576, 1/25, 25.00 fps(r)
   Stream #0.1, 1/3000: Audio: mp3, 24000 Hz, mono, 24 kb/s
FFmpeg version SVN-r5619, Copyright (c) 2000-2004 Fabrice Bellard
   configuration:  --enable-pthreads --enable-static --disable-shared  
--enable-a52 --enable-x264 --enable-gpl --enable-amr_nb --enable- 
amr_wb --enable-amr_if2 --enable-xvid --enable-mp3lame --enable- 
libogg --enable-libgsm --enable-dts --enable-faac
   libavutil version: 49.0.0
   libavcodec version: 51.9.0
   libavformat version: 50.4.0
   built on Jul  5 2006 16:36:56, gcc: 4.0.1 (Apple Computer, Inc.  
build 5341)
Output #0, yuv4mpegpipe, to 'pipe:':
   Stream #0.0, 1/90000: Video: rawvideo, yuv420p, 720x576, 1/25,  
q=2-31, 200 kb/s, 25.00 fps(c)
Stream mapping:
   Stream #0.0 -> #0.0
Press [q] to stop encoding
Input #0, yuv4mpegpipe, from 'pipe:':
   Duration: N/A, bitrate: N/A
   Stream #0.0: Video: rawvideo, yuv420p, 720x576, 25.00 fps(r)
Output #0, avi, to 'out.avi':
   Stream #0.0: Video: mpeg4, yuv420p, 720x576, q=2-31, 200 kb/s,  
25.00 fps(c)
Stream mapping:
   Stream #0.0 -> #0.0
error, non monotone timestamps 10800 >= 3600
error, non monotone timestamps 10800 >= 7200
error, non monotone timestamps 21600 >= 14400
error, non monotone timestamps 21600 >= 18000
error, non monotone timestamps 32400 >= 25200
error, non monotone timestamps 32400 >= 28800
error, non monotone timestamps 43200 >= 36000
error, non monotone timestamps 43200 >= 39600
error, non monotone timestamps 54000 >= 46800
error, non monotone timestamps 54000 >= 50400
error, non monotone timestamps 61200 >= 57600
error, non monotone timestamps 68400 >= 64800
error, non monotone timestamps 75600 >= 72000
frame=   21 q=0.0 size=    4860kB time=0.9 bitrate=45243.2kbits/s  
dup=0 drop=0  error, non monotone timestamps 82800 >= 79200
error, non monotone timestamps 97200 >= 93600
frame=   35 q=0.0 size=   12150kB time=1.4 bitrate=69121.0kbits/s  
dup=0 drop=0  error, non monotone timestamps 144000 >=  
140400rate=1251.4kbits/s
error, non monotone timestamps 151200 >= 147600
error, non monotone timestamps 162000 >= 154800
error, non monotone timestamps 162000 >= 158400
error, non monotone timestamps 172800 >= 165600
error, non monotone timestamps 172800 >= 169200
error, non monotone timestamps 180000 >= 176400
frame=   50 q=0.0 size=   17010kB time=2.0 bitrate=68307.7kbits/s  
dup=0 drop=0  error, non monotone timestamps 187200 >= 183600
error, non monotone timestamps 194400 >= 190800
error, non monotone timestamps 201600 >= 198000rate=1110.7kbits/s
frame=   62 q=0.0 size=   22478kB time=2.5 bitrate=73070.6kbits/s  
dup=0 drop=0  error, non monotone timestamps 230400 >= 226800
error, non monotone timestamps 241200 >= 234000rate=1059.9kbits/s
error, non monotone timestamps 241200 >= 237600
error, non monotone timestamps 248400 >= 244800
error, non monotone timestamps 255600 >= 252000
error, non monotone timestamps 266400 >= 259200
error, non monotone timestamps 266400 >= 262800
error, non monotone timestamps 277200 >= 270000
frame=   76 q=0.0 size=   26123kB time=3.1 bitrate=68589.1kbits/s  
dup=0 drop=0  error, non monotone timestamps 277200 >= 273600
error, non monotone timestamps 284400 >= 280800
error, non monotone timestamps 291600 >= 288000
error, non monotone timestamps 298800 >= 295200
error, non monotone timestamps 309600 >= 306000rate= 973.6kbits/s
error, non monotone timestamps 316800 >= 313200
error, non monotone timestamps 324000 >= 320400
error, non monotone timestamps 331200 >= 327600
frame=   93 q=0.0 size=   31590kB time=3.8 bitrate=68102.2kbits/s  
dup=0 drop=0  error, non monotone timestamps 338400 >= 334800
frame=  105 q=0.0 size=   38273kB time=4.3 bitrate=73255.1kbits/s  
dup=0 drop=0  error, non monotone timestamps 381600 >= 378000
error, non monotone timestamps 388800 >= 385200
error, non monotone timestamps 399600 >= 396000
error, non monotone timestamps 406800 >= 403200
error, non monotone timestamps 417600 >= 410400rate= 942.0kbits/s
error, non monotone timestamps 417600 >= 414000
error, non monotone timestamps 428400 >= 421200
error, non monotone timestamps 428400 >= 424800
error, non monotone timestamps 439200 >= 432000
error, non monotone timestamps 439200 >= 435600
error, non monotone timestamps 450000 >= 450000
frame=  124 q=0.0 Lsize=   43133kB time=5.0 bitrate=70108.2kbits/s  
dup=0 drop=0
video:0kB audio:0kB global headers:0kB muxing overhead inf%
frame=   71 q=24.8 Lsize=     321kB time=2.8 bitrate= 927.2kbits/s
video:315kB audio:0kB global headers:0kB muxing overhead 1.971183%

bye

Herv?





More information about the ffmpeg-devel mailing list