Sumero <s...@gmx.us> added the comment:

Here are the statistics..


ffmpeg -i test.mov test.mp4
FFmpeg version SVN-r20337, Copyright (c) 2000-2009 Fabrice Bellard, et al.
  built on Oct 21 2009 16:15:21 with gcc 4.3.3
  configuration: --enable-gpl --enable-nonfree --enable-pthreads 
--enable-libfaac --
enable-libfaad --enable-libmp3lame --enable-libtheora --enable-libx264 --enable-
libxvid --enable-x11grab
  libavutil     50. 3. 0 / 50. 3. 0
  libavcodec    52.37. 0 / 52.37. 0
  libavformat   52.39. 2 / 52.39. 2
  libavdevice   52. 2. 0 / 52. 2. 0
  libswscale     0. 7. 1 /  0. 7. 1
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x10c43c0]max_analyze_duration reached

Seems stream 0 codec frame rate differs from container frame rate: 5994.00 
(5994/1) 
-> 23.98 (24000/1001)
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'test.mov':
  Duration: 00:02:29.19, start: -20.-208542, bitrate: 126 kb/s
    Stream #0.0(eng): Video: h264, yuv420p, 848x448, 23.98 tbr, 2997 tbn, 5994 
tbc
    Stream #0.1(eng): Audio: aac, 44100 Hz, 6 channels, s16
    Stream #0.2(eng): Data: tmcd / 0x64636D74
  Metadata
    major_brand     : qt  
    minor_version   : 537199360
    compatible_brands: qt  
    comment         : Encoded and delivered by apple.com/trailers/
    comment-eng     : Encoded and delivered by apple.com/trailers/
    copyright       : ? 2009 All Rights Reserved
    copyright-eng   : ? 2009 All Rights Reserved
    title           : Bad Lieutenant
    title-eng       : Bad Lieutenant
[aac @ 0x10d3c40]This encoder does not yet enforce the restrictions on LFEs. 
The 
output will most likely be an illegal bitstream.
Output #0, mp4, to 'test.mp4':
    Stream #0.0(eng): Video: mpeg4, yuv420p, 848x448, q=2-31, 200 kb/s, 24k 
tbn, 
23.98 tbc
    Stream #0.1(eng): Audio: aac, 44100 Hz, 6 channels, s16, 64 kb/s
Stream mapping:
  Stream #0.0 -> #0.0
  Stream #0.1 -> #0.1
Press [q] to stop encoding
frame=  198 fps= 70 q=31.0 Lsize=     606kB time=6.04 bitrate= 821.9kbits/s    
video:548kB audio:53kB global headers:0kB muxing overhead 0.802071%

=========================================

as you can see at the end it says time=6.04
when the test.mp4 is played it plays for 8 seconds.

here is the same video converted to yuv this time.


ffmpeg -i test.mov test.yuv
FFmpeg version SVN-r20337, Copyright (c) 2000-2009 Fabrice Bellard, et al.
  built on Oct 21 2009 16:15:21 with gcc 4.3.3
  configuration: --enable-gpl --enable-nonfree --enable-pthreads 
--enable-libfaac --
enable-libfaad --enable-libmp3lame --enable-libtheora --enable-libx264 --enable-
libxvid --enable-x11grab
  libavutil     50. 3. 0 / 50. 3. 0
  libavcodec    52.37. 0 / 52.37. 0
  libavformat   52.39. 2 / 52.39. 2
  libavdevice   52. 2. 0 / 52. 2. 0
  libswscale     0. 7. 1 /  0. 7. 1
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x10c43c0]max_analyze_duration reached

Seems stream 0 codec frame rate differs from container frame rate: 5994.00 
(5994/1) 
-> 23.98 (24000/1001)
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'test.mov':
  Duration: 00:02:29.19, start: -20.-208542, bitrate: 126 kb/s
    Stream #0.0(eng): Video: h264, yuv420p, 848x448, 23.98 tbr, 2997 tbn, 5994 
tbc
    Stream #0.1(eng): Audio: aac, 44100 Hz, 6 channels, s16
    Stream #0.2(eng): Data: tmcd / 0x64636D74
  Metadata
    major_brand     : qt  
    minor_version   : 537199360
    compatible_brands: qt  
    comment         : Encoded and delivered by apple.com/trailers/
    comment-eng     : Encoded and delivered by apple.com/trailers/
    copyright       : ? 2009 All Rights Reserved
    copyright-eng   : ? 2009 All Rights Reserved
    title           : Bad Lieutenant
    title-eng       : Bad Lieutenant
Output #0, rawvideo, to 'test.yuv':
    Stream #0.0(eng): Video: rawvideo, yuv420p, 848x448, q=2-31, 200 kb/s, 90k 
tbn, 
23.98 tbc
Stream mapping:
  Stream #0.0 -> #0.0
Press [q] to stop encoding
frame=  629 fps=197 q=0.0 Lsize=  350038kB time=26.23 bitrate=109303.0kbits/s   
 
video:350038kB audio:0kB global headers:0kB muxing overhead 0.000000%

==============================================

now it reports time=26.23

as you can see same exact video, two different times

=====================================================

problem can be replicated by downloading any video trailer
from apple.com and then modifying it with quicktime on an imac
use quicktime's "trim to selection" feature to chop the video
and test it.

=========================================================

i am also including the file "test.mov" so you can test it
yourself.  ( test.mov is from apple.com/trailers
i trimmed it with quicktime"

you can also run ffmpeg -i test.mov
and here's what it shows...


===========================================================


 ffmpeg -i test.mov
FFmpeg version SVN-r20337, Copyright (c) 2000-2009 Fabrice Bellard, et al.
  built on Oct 21 2009 16:15:21 with gcc 4.3.3
  configuration: --enable-gpl --enable-nonfree --enable-pthreads 
--enable-libfaac --
enable-libfaad --enable-libmp3lame --enable-libtheora --enable-libx264 --enable-
libxvid --enable-x11grab
  libavutil     50. 3. 0 / 50. 3. 0
  libavcodec    52.37. 0 / 52.37. 0
  libavformat   52.39. 2 / 52.39. 2
  libavdevice   52. 2. 0 / 52. 2. 0
  libswscale     0. 7. 1 /  0. 7. 1
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x10c43c0]max_analyze_duration reached

Seems stream 0 codec frame rate differs from container frame rate: 5994.00 
(5994/1) 
-> 23.98 (24000/1001)
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'test.mov':
  Duration: 00:02:29.19, start: -20.-208542, bitrate: 126 kb/s
    Stream #0.0(eng): Video: h264, yuv420p, 848x448, 23.98 tbr, 2997 tbn, 5994 
tbc
    Stream #0.1(eng): Audio: aac, 44100 Hz, 6 channels, s16
    Stream #0.2(eng): Data: tmcd / 0x64636D74
  Metadata
    major_brand     : qt  
    minor_version   : 537199360
    compatible_brands: qt  
    comment         : Encoded and delivered by apple.com/trailers/
    comment-eng     : Encoded and delivered by apple.com/trailers/
    copyright       : ? 2009 All Rights Reserved
    copyright-eng   : ? 2009 All Rights Reserved
    title           : Bad Lieutenant
    title-eng       : Bad Lieutenant
At least one output file must be specified


================================================================

as you can see the DURATION is incorrect.

---------------------------------------------------------------



thanks,

 sumero.
File 'test.mov' not attached - you can download it from 
https://roundup.ffmpeg.org/roundup/ffmpeg/file583.

----------
substatus: needs_more_info -> open

_____________________________________________________
FFmpeg issue tracker <iss...@roundup.ffmpeg.org>
<https://roundup.ffmpeg.org/roundup/ffmpeg/issue1496>
_____________________________________________________

Reply via email to