[MPlayer-dev-eng] [PATCH] get_time

Dan Oscarsson Dan.Oscarsson at tieto.com
Sun Sep 12 13:58:24 CEST 2010


This is patch 1 of 7, each building on the previous ones.

This patch just adds a get_time call that returns time in 64-bit 
quantities so that time do not wrap. As I only have Linux I cannot
test it if works under MacOS or MS Windows.

This and the following six patches contains most of my work on
mplayer for the last 18 months. I did this to be able to watch
movies on my LCD TV.
Most code changes/additions is in libvo/vo_vdpau.c (about 300 lines 
more), libmpcodecs/dec_audio.c (about 300 lines more) and mplayer.c 
(about 1200 lines more).

As this code adds a new way to handle a-v-sync, frame scheduling and
dropping, I have added an option to activate it with.
This way you can still use mplayer as before.

If someone just want to try the entire package of patches I have them 
and a script to quickly apply them all.

   Dan


 1: Get time in 64 bit quantities so it does not wrap
 2: Vdpau enhancements, vsync interval detection, vsync time detection,
    drop frames if too far off, fixes to reduce flashing
 3: Much more stable audio pts values (for example mp3 pts generation
    varies around correct value in normal mplayer)
 4: A-V sync based on pts timing, frame scheduling taking into account
    time between vsyncs and time of vsyncs to display frames at best
    moment
 5: Make it possible to sync playback speed to display refresh rate
 6: Sync audio and video after a seek so it starts in sync
 7: Sync audio and video after a pause so it starts in sync (even with 
    ao=oss)

Included are also:
 - changing speed keeps a-v in sync
 - start audio before video, if audio stream starts before video.
   start video before audio, if audio stream starts after video.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: osdep-get_time.diff
Type: text/x-patch
Size: 1676 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/mplayer-dev-eng/attachments/20100912/c23a734a/attachment.bin>


More information about the MPlayer-dev-eng mailing list