Batch Convert

*nix specific usage questions
ScottB
New Cone
New Cone
Posts: 6
Joined: 30 May 2007 01:46

Batch Convert

Postby ScottB » 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.

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

Jean-Baptiste Kempf
Site Administrator
Site Administrator
Posts: 37523
Joined: 22 Jul 2005 15:29
VLC version: 4.0.0-git
Operating System: Linux, Windows, Mac
Location: Cone, France
Contact:

Postby Jean-Baptiste Kempf » 30 May 2007 10:29

Jean-Baptiste Kempf
http://www.jbkempf.com/ - http://www.jbkempf.com/blog/category/Videolan
VLC media player developer, VideoLAN President and Sites administrator
If you want an answer to your question, just be specific and precise. Don't use Private Messages.

ScottB
New Cone
New Cone
Posts: 6
Joined: 30 May 2007 01:46

Postby ScottB » 31 May 2007 01:29

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.


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

Who is online

Users browsing this forum: No registered users and 11 guests