Page 1 of 1

Executing vlc from a shell script

Posted: 20 May 2006 01:17
by satya
hi,
I am having a hard time executing a shell script line like this:

`vlc file.avi -I dummy --sout='#transcode{vcodec=mp4v, acodec=mp4a}:std{access=file, mux=mp4, url=file.mp4}' `

(i.e a transcoder in back-quotes)

this simply wil not work with bash; vlc is adding file.avi, url=file.mp4 and many sustrings of the command as playlist-items!

has anyone tried this before? please share your experience... thanks!

problem solved

Posted: 22 May 2006 18:35
by satya
This problem is sloved; The solution is to use quotes generously like this:

CMD="vlc -I dummy --sout=""#transcode{vcodec=mp4v, acodec=mp4a}:std{access=file, mux=mp4, url=file.mp4}"" $SRC_FILE"

and then execute CMD; I just put

$CMD

in the shell script to exec it;