Page 1 of 1

Transcoding Script Trouble

Posted: 29 Mar 2010 02:06
by clcoulte
I wrote a little script to try to convert avi files into mpg for use with the Tivo server Galleon. (Tivo boxes can only play mpeg2 files) but the script keeps stopping at a certain point.

Script:

Code: Select all

#!/bin/bash for a in *.avi; do vlc -I dummy -vvv "$a" --sout "#transcode{vcodec=mp2v,vb=1500,width=720,height=480,fps=24,scale=1,acodec=mpga,ab=128,channels=2}:standard{access=file,mux=ps,dst=\"/home/MYUSERNAME/Videos/TivoFiles/ToTivo/$a.mpg\"}"vlc://quit done
My actual user name was edited to MYUSERNAME btw

The script stops at after these lines and I have to interrupt in order to get to the next iteration:

Code: Select all

[0x9d34260] main playlist debug: changing item without a request (current 0/1) [0x9d34260] main playlist debug: nothing to play

Re: Transcoding Script Trouble

Posted: 29 Mar 2010 04:58
by Arite
Put a space in before vlc://quit (as it is treated as a separate playlist entry).

Could you post more messages?

Arite.

Re: Transcoding Script Trouble

Posted: 30 Mar 2010 01:20
by mc2man
If you want to not have .avi in the new name then maybe work this into your dst
"${a%.avi}.mpg"
sorta like - picking up at the dst

Code: Select all

dst=\"/home/username/Videos/"${a%.avi}.mpg"\"}" vlc://quit done

Re: Transcoding Script Trouble

Posted: 30 Mar 2010 17:54
by clcoulte
that seems to have fixed it, and thanks for the tip about the filename :)