Mplayer has problems playing many (I would say more than fifty percent but less than seventy-five percent, but that most likely does not represent a random sample) of the .flv files found on a large video sharing site. The video simply runs faster than the audio (about ten percent), so the clip gets more and more out of sync during playback. Vlc will play the files correctly. Some output (for the URL above): libavformat file format detected. VIDEO: [FLV1] 320x240 0bpp 29.970 fps 0.0 kbps ( 0.0 kbyte/s) ========================================================================== Opening video decoder: [ffmpeg] FFmpeg's libavcodec codec family Selected video codec: [ffflv] vfm: ffmpeg (FFmpeg Flash video) ========================================================================== ========================================================================== Opening audio decoder: [mp3lib] MPEG layer-2, layer-3 AUDIO: 22050 Hz, 2 ch, s16le, 64.0 kbit/9.07% (ratio: 8000->88200) Selected audio codec: [mp3] afm: mp3lib (mp3lib MPEG layer-2, layer-3) ========================================================================== AO: [alsa] 48000Hz 2ch s16le (2 bytes per sample) Starting playback... VDec: vo config request - 320 x 240 (preferred colorspace: Planar YV12) VDec: using Planar YV12 as output csp (no 0) Movie-Aspect is undefined - no prescaling applied. VO: [xv] 320x240 => 320x240 Planar YV12 A: 175.1 V: 192.7 A-V:-17.623 ct:-15.896 4771/4771 1% 0% 1.1% 0 0 Exiting... (End of file)
Use -mc 10 or, if your version is recent enough, -correct-pts.
(In reply to comment #1) > Use -mc 10 or, if your version is recent enough, -correct-pts. Both of those work (the second one actually works a bit better). Maybe I should have seen the first option (the man page doesn't even mention the second one at all), although it seems to me that a media player should (by default) keep the audio and video in sync. Thanks