You are not logged in.

#1 2008-05-10 23:53:35

cell
Member
Registered: 2007-10-23
Posts: 111

todisc scripts

I am using this to convert avi to mpg.

for movie in *.avi; do tovid -ffmpeg -wide -pal -noask -in $movie -out $movie;done

Is there a way to do the same for the next part too, instead of foo1.mpg foo1 etc...
It would be fine if -titles "foo 1" "foo 2" just got the basename from foo1.mpg foo2.mpg etc...Or maybe a more clever way?
I gave it a try with first listing the mpg files and feed them but that didn't work out to well, I am very poor at bash.

todisc -pal -aspect 16:9 -widescreen -videos-are-chapters -button-style text \
-menu-font "/usr/share/fonts/TTF/comicbd.ttf" -chapter-font "/usr/share/fonts/TTF/couri.ttf" \
-align south -title-color "#ff0000" -title-stroke "#ffffff" -titles-stroke "#ff0000" -menu-length 50 -loop 4 \
-menu-title "foo" -menu-fontsize 28 -background xrealbg.mpg -bgvideo-seek 1.0 \
-bgaudio xrealbg.wav -menu-audio-length 48 \
-files foo1.mpg foo2.mpg foo3.mpg \
-titles "foo 1" "foo 2" "foo 3" \
-out foo

Hope someone can help me out, thanks.

Offline

#2 2008-05-25 20:34:03

cell
Member
Registered: 2007-10-23
Posts: 111

Re: todisc scripts

Hi grepper,

Thanks for letting me know about the leaving out -titles option and for the bash, thanks again.

Offline

Board footer

Powered by FluxBB