Archive

Archive for the ‘batch’ Category

mass-repair avi videos with broken index

September 15th, 2008 2 comments

so yeah, my camera makes broken avi videos and I had a bunch of them to repair :

for i in *.avi; do mencoder -idx $i -ovc copy -oac copy -o $i.repaired.avi; done

( that’s a command-line for those who wonder )

this only repairs the index, no re-encoding

divfixpp repairs indexes as well, but I didn’t try it

hope it helps

Categories: avi, batch, broken, divfixpp, index, mencoder, repair Tags:

Batch convert a huge number of jpg images into one single pdf file

February 7th, 2006 1 comment

1 – Convert all the jpg files into pdf files with ImageMagick :

$ for i in *.jpg; do convert $i $i.pdf; done

2 – Merge, concantenate, join all the pdf files into one with pdftk :

$ pdftk *.pdf cat output output.pdf

Note : convert from ImageMagick won’t work if there are too many files or too little memory :

$ convert *.jpg output.pdf

Categories: batch, convert, ebook, imagemagick, jpg, pdf, pdftk, scan Tags: