Page 1 of 1
quit vlc using command line
Posted: 13 Mar 2005 06:47
by karmegam
i am using vlc for transcoding a mp1video file. i am doing it using shell scripting in LINUX. i want vlc to close after the file is transcoded.
I tried the comman vlc:quit but still vlc is not closing.
anybody plz help out.
thanks
Posted: 13 Mar 2005 14:48
by dionoea
could you paste the command line you use ?
the code i used
Posted: 14 Mar 2005 03:10
by karmegam
thanks for your reply,
the code i used is,
vlc -vvv INPUTFILE.mpg --sout #transcode {vcodec=mp4v,acodec=mpga, vb=256,ab=64,scale=0.5} :standard{access=file,url=OUTPUTFILE.mpg}
this works fine, but if i use vlc:quit the transcoding doesnt take place properly.
what shall i do then?
Posted: 14 Mar 2005 17:27
by The DJ
That's because due to --sout it also does the transcoding on the vlc:quit item, which will result in an empty file. You need to use file specific options instead of global options.
--sout is global
:sout is file specific.
vlc -vvv INPUTFILE.mpg :sout=#transcode{vcodec=mp4v,acodec=mpga, vb=256,ab=64,scale=0.5}:standard{access=file,url=OUTPUTFILE.mpg} vlc:quit
should be a working commandline for you.
thanks
Posted: 22 Mar 2005 11:29
by karmegam
thanks, its working now.