Batch Convert
Posted: 30 May 2007 05:25
The script was tested by Tonsofpc's and found to work. So enjoy batch transcoding you massive media colleciton.
My server is tied up for the next few days so I can't test this but if any one has a few spare CPU cycles give this a shot.
It should in theory convert all the files in the directory its executed in that have the targeted format to the selected output format.
Thanks,
Scott
My server is tied up for the next few days so I can't test this but if any one has a few spare CPU cycles give this a shot.
It should in theory convert all the files in the directory its executed in that have the targeted format to the selected output format.
Code: Select all
vcodec="h264"
acodec="mp4a"
bitrate="1024"
arate="192"
ext="mpg"
mux="ts"
vlc="/usr/bin/vlc"
fmt="VOB"
for a in *$fmt; do
$vlc -I dummy -vvv "$a" --sout "#transcode{vcodec=$vcodec,vb=$bitrate,acodec=$acodec,ab=$arate,channels=6}:standard{mux=$mux,dst=\"$a.$ext\",access=file}"
vlc:quit
done
Thanks,
Scott