[MPlayer-dev-eng] [PATCH] further dvr-ms playback improvements

John Donaghy johnfdonaghy at gmail.com
Thu Aug 24 23:52:44 CEST 2006


Here's a patch to make playback of dvr-ms file works better. It
resolves the following issues:

- the picture can be jerky though you have to look carefully at the
sample on mplayerhq.com to see the problem. I've noticed it more on
some of my tv show recordings when watching them on a TV rather than a
monitor.

- the framesize is wrong and this is a real problem when playing HD content

The fix works by obtaining the framerate, bitrate and picture size
from the codec and it borrows heavily from techniques used be the
ffmpeg asf demuxer. I copied the code to parse an mpeg frame header
from ffmpeg. I had wanted to call video_read_properties() when opening
the stream after filling the buffer but too many things would have
needed to be changed to make that work. I think this is the least
intrusive way of doing it.

I had to include asf.h in video.c becasue I cant see another way of
doing what I did there but I'm open to suggestions.

John
-------------- next part --------------
A non-text attachment was scrubbed...
Name: asffps.patch
Type: application/octet-stream
Size: 9960 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/mplayer-dev-eng/attachments/20060824/34711cf0/attachment.obj>


More information about the MPlayer-dev-eng mailing list