Page 1 of 1

VLC as recoding tool (avi -> ts || ps)

Posted: 30 Oct 2004 16:22
by Guest
Hi, people.
I want use VLC as movie recoder from *.avi to TS.
In fact, I can do this with next command:

Code: Select all

$ vlc -vvv file:/home/errno/video/Fight\ Club.avi --sout '#std{access=file,mux=ts,url=test.ts}'
Is the question, how I need start VLC for automatical finishing VLC process on the end of AVI file?

Any tips or other (more effective) method of recoding are invited, too.

P. S. Sorry, english isn't my native :)

P. P. S. VLC-0.7.2 / Gentoo Linux

Posted: 30 Oct 2004 16:26
by errno
Timeouted cookie :(((
Above, it's me :)

Posted: 31 Oct 2004 14:08
by markfm
try vlc --longhelp --advanced.

I'm not sure, but you might want to try vlc:quit at the end of your command line (or maybe right after where you list the movie for vlc to play), see if that works.

Posted: 01 Nov 2004 17:09
by errno
Thanks, option "vlc:quit" makes VLC quit on the end of file, but after quiting result-file become empty :(((
When converting in progress, file growing, on finish filesize = zero.
How understand this behavior?

Posted: 01 Nov 2004 17:19
by The DJ
that's because --sout is a global option, and vlc-quit is considered to be an "input" file (even though it is bogus). So this overwrites the output file.
instead use an input specific option. like this.


vlc -vvv file:/file.avi :sout '#transcode etc.' vlc:quit

Posted: 01 Nov 2004 19:12
by errno
It's does not work with ":sout", I tring:

Code: Select all

vlc -vvv file:/mnt/floppy/home/gav/video/Fight\ Club.avi :sout '#std{access=file,mux=ts,url=/share/test.ts}' vlc:quit
says:

Code: Select all

[00000193] main decoder debug: no usable vout present, spawning one [00000195] main video output debug: looking for video output module [00000195] main video output debug: probing 4 candidates [00000194] mpeg_audio decoder: MPGA channels:2 samplerate:48000 bitrate:128 [00000194] main decoder debug: no aout present, spawning one [00000195] xvideo video output error: cannot open display [00000196] main audio output debug: looking for audio output module [00000196] main audio output debug: probing 5 candidates
I can't understend your verdict about "vlc:quit" as input definition. If it's true, why VLC listen this option and quits? It must stay running with empty output, like this option does not set.
Explaine, please.

Posted: 03 Nov 2004 11:22
by errno
Hi, people :)))
I solve trouble :) My task with batch-style recoding can be done with next commad:

Code: Select all

vlc -vv file:/share/test.avi :sout=file/ts:/share/test.ts vlc:quit
It was surprise, that syntax for input specific sout is different from global sout definition.

Thanks, for all.