Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 168185 - media-video/mplayer audio sync problems with some .flv files
Summary: media-video/mplayer audio sync problems with some .flv files
Status: RESOLVED WORKSFORME
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo Media-video project
URL: http://chi-v189.chi.youtube.com/get_v...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-02-23 19:37 UTC by ta2002
Modified: 2007-02-26 23:21 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description ta2002 2007-02-23 19:37:43 UTC
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)
Comment 1 Reimar Döffinger 2007-02-24 10:32:48 UTC
Use -mc 10 or, if your version is recent enough, -correct-pts.
Comment 2 ta2002 2007-02-25 01:24:59 UTC
(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