Executing vlc from a shell script

*nix specific usage questions
satya
Blank Cone
Blank Cone
Posts: 10
Joined: 16 May 2006 19:19

Executing vlc from a shell script

Postby satya » 20 May 2006 01:17

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!

satya
Blank Cone
Blank Cone
Posts: 10
Joined: 16 May 2006 19:19

problem solved

Postby satya » 22 May 2006 18:35

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;


Return to “VLC media player for Linux and friends Troubleshooting”

Who is online

Users browsing this forum: No registered users and 16 guests