Michel, thank you for your answers.
> So, in short: ffmpeg reports, correctly, a duration of 10' on the file
> produced by your program.
Exact!
> Now *this* is very interesting, the change between the 2 versions of VLC
> shows they were aware the duration was wrong in 1 place, fixed it, but
> it is still wrong in another place. I would say there is simply another
> vlc bug. Try the latest vlc maybe?
Another example.
I have another file, produced in the similar way, now of 15 min.
ffmpeg writes:
$ ffmpeg -i p8204_163_92_2008-04-04-14-20-00_2008-04-04-14-35-00.mpg
FFmpeg version SVN-r12661, Copyright (c) 2000-2008 Fabrice Bellard, et al.
configuration: --enable-memalign-hack --disable-shared --enable-static --
enable-pthreads --disable-stripping --prefix=/home/wl
libavutil version: 49.6.0
libavcodec version: 51.54.0
libavformat version: 52.13.0
libavdevice version: 52.0.0
built on Apr 2 2008 10:26:52, gcc: 4.2.1 (Ubuntu 4.2.1-5ubuntu4)
Input #0, mpeg, from 'p8204_163_92_2008-04-04-14-20-00_2008-04-04-14-35-00.mpg':
Duration: 00:15:01.2, start: 35237.460000, bitrate: 4404 kb/s
Stream #0.0[0x1e0]: Video: mpeg2video, yuv420p, 720x576 [PAR 16:15 DAR
4:3], 15000 kb/s, 25.00 tb(r)
Stream #0.1[0x1c0]: Audio: mp2, 48000 Hz, stereo, 256 kb/s
vlc and kaffeine say that it has duration of 9 sec.
I asked my colleague to load this file in the Windows Media Player on his Vista
machine.
This player said that the file was 4 min 32 sec, and after playing that amount
of time, media player has stopped for a while and then continued playing.
PS Apple's iTunes has correctly reported the video duration in all cases.
_______________________________________________
libav-user mailing list
[email protected]
https://lists.mplayerhq.hu/mailman/listinfo/libav-user