[MPlayer-users] mplayer -sb and -endpos with -dumpstream

lynx.abraxas at freenet.de lynx.abraxas at freenet.de
Wed Apr 3 16:32:52 CEST 2013


On 03/04/13 13:53:58, Reimar Döffinger wrote:
> On Wed, Apr 03, 2013 at 12:17:18PM +0200, lynx.abraxas at freenet.de wrote:
> > Hello!
> > 
> > 
> > I'm trying to cut a DVB-T stream dumped with -dumpstream to a ts-file. 
> > 
> > The ts-file was created with (stopped with  kill $mplayer-PID):
> > mplayer -dumpfile test.ts -dumpstream dvb://
> > 
> > I added to .mplayer/input.conf to get stream pos reported:
> > 
> > #print stream pos to console
> > P get_property stream_pos
> > 
> > With this I get 370735812 for starting pos and 473272892 for ending pos.
> > 
> > This works fine if I run:
> > mplayer test.ts -sb 370735812 -endpos 473272892b 
> > 
> > But if I try to dump again to a stream it ignores -endpos:
> > mplayer test.ts -sb 370735812 -endpos 473272892b -dumpfile test_cut.ts -dumpstream 
> > 
> > What am I doing wrong?
> 
> Well, you probably should be using a tool intended for this purpose like
> dd.
> Otherwise the answer is that this feature isn't implemented for the
> -dump* options.

Thanks Reimar for Your quick  answer. I tried:

dd if=test.ts of=test_cut.ts skip=371957248c count=473511464c bs=1

but it is extremely slow with bs=1, but without bs=1 it says it cannot seek to the specified position. 
Is there a better way to do this?

Many thanks
Lynx



More information about the MPlayer-users mailing list