Page 1 of 1

command line, records 'n split

Posted: 12 Mar 2008 07:11
by FFMG
Hi,

Currently, I can record record a stream using...

Code: Select all

vlc.exe -vvv mms://xxx.yyy.net :sout=#transcode{vcodec=mp1v,acodec=mpga,vb=256}:std{access=file,mux=mpeg1,dst=c:\\dir\\test.mpg}
But the file quickly becomes too big, (over 24 hours), so I would like to split it into 30 minutes chunks.

Is it possible to do the same as above but also split it over time/size?

otherwise can VLC split a file?

Thanks

FFMG

Re: command line, records 'n split

Posted: 08 Sep 2008 07:54
by lefish
hey, sir, did you solve it?

Re: command line, records 'n split

Posted: 08 Sep 2008 16:00
by dionoea
This

Code: Select all

vlc --loop --no-sout-keep <the input> --sout '#...:std{access=file,mux=...,dst=myfile-%Y%m%d-%H%M%s.ext}' --run-time 1800
should work. Of course you'll need VLC 0.9.0 or later. See Documentation:Play_HowTo/Format_String for more info about format strings in VLC.

Re: command line, records 'n split

Posted: 08 Sep 2008 18:32
by FFMG
This

Code: Select all

vlc --loop --no-sout-keep <the input> --sout '#...:std{access=file,mux=...,dst=myfile-%Y%m%d-%H%M%s.ext}' --run-time 1800
should work. Of course you'll need VLC 0.9.0 or later. See Documentation:Play_HowTo/Format_String for more info about format strings in VLC.
Thanks for that, it looks like what I need.

Where could I get the version 0.9 from? Is it a nightly build?

Thanks

FFMG

Re: command line, records 'n split

Posted: 08 Sep 2008 19:34
by dionoea
http://nightlies.videolan.org has some builds (depending on the OS you use). We should release officially with binaries and all in the next few days.