[MPlayer-users] arbitrary file location seeks & "remote" control?
Arpi
arpi at thot.banki.hu
Fri Nov 2 18:22:57 CET 2001
Hi,
> This is probably more of a feature request than anything else, but I think
> I lack a really indepth knowledge of how mplayer works internally.
> Here's what I'd like to do:
>
> I've written a GOP-accurate MPEG2 editor, and I use stock mpeg2dec
> right now to render individual GOPs. I'd like to be able to use mplayer
> to play them (that way I'd have proper framerate, audio, and av sync).
>
> The first problem is controlling mplayer from another application. I
> figure that since lirc works, this wouldn't be hard for me to hack.
>
> The second problem is telling mplayer "start playing at file position X,
> and stop when you get to Y". From what I can tell, all the seek
> interfaces are time-based (as they should be for a player).
>
> How possible would it be to do file position seeks?
see -ss and -sb options.
btw, if you want to use mplayer's stuff in your app, you should get
mplayer.c and modify for your needs - set the start/end file position after
opening the stream so it will play only that bytes.
A'rpi / Astral & ESP-team
--
mailto:arpi at thot.banki.hu
http://esp-team.scene.hu
More information about the MPlayer-users
mailing list