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

Krzysztof Duchnowski amidk75 at gmail.com
Wed Apr 3 16:52:05 CEST 2013


On 03.04.2013 16:32, lynx.abraxas at freenet.de wrote:

>>> 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?

For that particular numbers you can use BS=4 ;p

But did you tried 'Project X' or 'tsMuxeR' ('tsMuxerGUI')?

-- 
Krzysztof 'DK75' Duchnowski
GetFirefox - http://www.getfirefox.net/
Konfiguracja UTF-8 dla czytników - http://evil.pl/pip/utf/


More information about the MPlayer-users mailing list