VSIDO Community

VSIDO Support => Scripts and How To's => How To's => Topic started by: dizzie on October 08, 2013, 12:11:51 AM

Title: How to (quick and dirty) convert 100+ mkvs to mp4s
Post by: dizzie on October 08, 2013, 12:11:51 AM
I for one dislike the mkv format very much (the fact that neither my tv or xbox can read/play mvks, made me google)


$ sudo apt-get install libav-tools


When done, cd to whereever your mkvs are. Fx.


$ cd /stuff/movies


then


$ avconv -i input.mkv -codec copy output.mp4


But this is going to take ages if you have many mkv's so...


I asked for help on IRC, and a friend came up with this neat bash magic :


$ for file in `ls | grep "\.mkv$"`; do avconv -i "$file" -codec copy "${file%.*}.mp4"; done


When done, do :


$ rm *.mkv


You are welcome  8)







Title: Re: How to (quick and dirty) convert 100+ mkvs to mp4s
Post by: statmonkey on October 08, 2013, 06:15:10 AM
That is wonderful dizzie.  Thanks for posting. I made some mods and got read of a ton of ape files that I have been meaning to dispose of/convert.  Then I modded again and turned a bunch of worthless pdf's into mobi files. Next ... I can't stop .............
Title: Re: How to (quick and dirty) convert 100+ mkvs to mp4s
Post by: dizzie on October 08, 2013, 06:47:58 AM
I'm sure you can adapt it to fit any massconvert you need, this isnt just for mkv to mp4, but as an example.... Glad you can pick it up... pdf's are evil :) I prefer .mobi or .epub hehe