How to (quick and dirty) convert 100+ mkvs to mp4s

dizzie

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)







Reclaim your culture, it's within your reach!

My Blog | Facebook | Twitter | G+ | VSIDO |

statmonkey

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 .............

dizzie

#2
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
Reclaim your culture, it's within your reach!

My Blog | Facebook | Twitter | G+ | VSIDO |