[MPlayer-cygwin] Any interest in a hack I made?

Diego Biurrun diego at biurrun.de
Thu Oct 20 10:21:29 CEST 2005


On Thu, Oct 20, 2005 at 05:45:52AM +0200, Reinier Zwitserloot wrote:
> 
>  hack #1: Allows specifying start and end  byte position within a
> file. Useful for, amongst other things, using mplayer as a backend for
> playing video files embedded inside another, larger, data file.
> 
> Usage:
> 
> mplayer mybigcontainer.dat at pos:1234:5678
> 
> will act exactly the same as if trying to play a file that's been
> created by extracting all bytes in mybigcontainer.dat from byte
> position 1234 to byteposition 5678.
> 
> it 'beats' the -sb parameter by also allowing specification of an end
> position, and as it works on a per-playlist-entry basis, you can
> specify different positions on different playlist items. Seeking
> through such bounded files works just the same as if you actually
> extracted the specified range to a separate file.
> 
> the endposition is optional; if it omitted, the end of the file is assumed.

This sounds interesting if implemented cleanly.  But why didn't you just
add a -eb or -endbyte option?

Read DOCS/tech/patches.txt and send us a patch.

Diego




More information about the MPlayer-cygwin mailing list