[MPlayer-dev-eng] [PATCH] vf_ffmpeg, threads and slice callback
Reimar Döffinger
Reimar.Doeffinger at gmx.de
Wed Jul 14 00:32:20 CEST 2010
On Tue, Jul 13, 2010 at 11:24:14PM +0200, Adrian Stutz wrote:
> Hello,
>
> This patch originates from this discussion on mplayer-users:
> http://lists.mplayerhq.hu/pipermail/mplayer-users/2009-December/078410.html
> http://lists.mplayerhq.hu/pipermail/mplayer-users/2010-January/078845.html
>
> Basically, using a ffmpeg decoder that supports slices with multiple
> threads leads to serious video corruption (e.g. when playing DVDs).
>
> I can reproduce the issue with this command line (see the above thread
> for more info):
> mplayer -lavdopts threads=4 dvd:////path/to/VIDEO_TS
>
> I cherry picked this patch from the fix Utoi applied to his unofficial
> git branch.
>
> There's also a much less educated patch from me in this post:
> http://lists.mplayerhq.hu/pipermail/mplayer-users/2010-January/078851.html
>
> Is this ok to apply?
The do_dr1 part should only apply to ffmpeg-mt and should only needlessly
slow things down for normal FFmpeg.
Also a good question is why exactly slices fail with multiple threads...
More information about the MPlayer-dev-eng
mailing list