Page 1 of 1

Batch Convert

Posted: 30 May 2007 05:25
by ScottB
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.

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

Posted: 30 May 2007 10:29
by Jean-Baptiste Kempf

Posted: 31 May 2007 01:29
by ScottB
I got my own page. I feel special now :D

Thanks for posting that. I'll keep it updated as I expand the scripts in the future.