Vladimir Eremeev wrote:
> 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

It is apparent here that the bitrates are different at the codec level 
and the container level. Which one is right? (I cant be sure without the 
file size but since WMP reports 1/4 of the duration I would guess it 
uses the bitrate from the v-codec and *that* is incorrect). 15 mbits 
sounds a bit much anyway for a DVB feed.

> 
> vlc and kaffeine say that it has duration of 9 sec.

Let's not consider all players simultaneously. I would suggest (1) 
ffmpeg -i (2) mplayer (3) WMP. *Then* look at vlc and kaffeine.

> 
> 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.
> 



-- 
Michel Bardiaux
R&D Director
T +32 [0] 2 790 29 41
F +32 [0] 2 790 29 02
E mailto:[EMAIL PROTECTED]

Mediaxim NV/SA
Vorstlaan 191 Boulevard du Souverain
Brussel 1160 Bruxelles
http://www.mediaxim.com/
_______________________________________________
libav-user mailing list
[email protected]
https://lists.mplayerhq.hu/mailman/listinfo/libav-user

Reply via email to