Transcoding Script Trouble

*nix specific usage questions
clcoulte
New Cone
New Cone
Posts: 2
Joined: 29 Mar 2010 01:57

Transcoding Script Trouble

Postby clcoulte » 29 Mar 2010 02:06

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

Arite
Big Cone-huna
Big Cone-huna
Posts: 2478
Joined: 26 Jun 2007 20:40
VLC version: 3.0.20
Operating System: Debian Testing|Win10

Re: Transcoding Script Trouble

Postby Arite » 29 Mar 2010 04:58

Put a space in before vlc://quit (as it is treated as a separate playlist entry).

Could you post more messages?

Arite.
Don't use PMs for support questions.

mc2man
Blank Cone
Blank Cone
Posts: 51
Joined: 26 Jan 2009 03:42

Re: Transcoding Script Trouble

Postby mc2man » 30 Mar 2010 01:20

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

clcoulte
New Cone
New Cone
Posts: 2
Joined: 29 Mar 2010 01:57

Re: Transcoding Script Trouble

Postby clcoulte » 30 Mar 2010 17:54

that seems to have fixed it, and thanks for the tip about the filename :)


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

Who is online

Users browsing this forum: No registered users and 20 guests