[MPlayer-dev-eng] flv A/V sync broken

Onur Küçük onur at delipenguen.net
Sun Feb 18 23:20:20 CET 2007


On Sun, 18 Feb 2007 20:52:48 +0100
Michael Niedermayer <michaelni at gmx.at> wrote:

> Hi
> 
> On Sun, Feb 18, 2007 at 07:42:47PM +0200, Onur Küçük wrote:
> > 
> >  Hello,
> > 
> >  While playing flv files (tested with codecs FLV1 / mp3) MPlayer
> > looses sync of audio and video. I guess video is played faster than
> > audio. ffplay plays it correctly. Might be related to lately
> > committed flvdec changes in ffmpeg.
> 
> might? why dont you simply try to revert the change locally and check
> if that makes a difference, such information is very usefull for
> debuging ...

 I tried till back to rev:5171 on flvdec.c (and a few modifications on
related files when necessary), the behaviour did not change.

> also does converting with ffmpeg work? (try -async 1000) if this
> breaks its a ffmpeg issue

 Here is the output of ffmpeg. After doing this conversion, mplayer
also played the file (and some other samples) correct.

 I get the message "Codec frame rate differs from container frame
rate". I don't know if it means the file is buggy (don't know about flv
format) but I came across so many flv files like this.


$ ffmpeg/ffmpeg -i naruto-152.flv -async 1000  silbeni.flv
FFmpeg version SVN-r8020, Copyright (c) 2000-2007 Fabrice Bellard, et al.
  configuration: --enable-gpl --enable-libmp3lame
  libavutil version: 49.3.0
  libavcodec version: 51.33.0
  libavformat version: 51.10.0
  built on Feb 18 2007 23:50:06, gcc: 3.4.6

Seems stream 0 codec frame rate differs from container frame rate: 1000.00 (1000/1) -> 29.97 (30000/1001)
Input #0, flv, from 'naruto-152.flv':
  Duration: 00:23:05.1, start: 0.000000, bitrate: 64 kb/s
  Stream #0.0: Video: flv, yuv420p, 320x240, 29.97 fps(r)
  Stream #0.1: Audio: mp3, 22050 Hz, mono, 64 kb/s
Output #0, flv, to 'silbeni.flv':
  Stream #0.0: Video: flv, yuv420p, 320x240, q=2-31, 200 kb/s, 29.97 fps(c)
  Stream #0.1: Audio: mp3, 22050 Hz, mono, 64 kb/s
Stream mapping:
  Stream #0.0 -> #0.0
  Stream #0.1 -> #0.1
Press [q] to stop encoding
frame=41499 q=6.3 Lsize=   46316kB time=1384.7 bitrate= 274.0kbits/s
video:26984kB audio:10822kB global headers:0kB muxing overhead 22.507623%



-- 
 Onur Küçük                                      Knowledge speaks,   
 <onur.--.-.delipenguen.net>                     but wisdom listens  




More information about the MPlayer-dev-eng mailing list