Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I've multiple jpegs uploaded form IP cam via FTP, I use mencoder to periodically pack them into single avi file, problem is that sometimes one or two jpegs submitted by cam are broken, and this make mencoder exit, without producing movie :/

Is there a way to force mencoder to skip broken jpeg files?

share|improve this question
    
why not just validate every individual jpeg before trying to make the avi? –  hbdgaf Jan 16 '11 at 23:03
    
sorry it just sounds too much like build my commercial app for me based on open source products for me to really post a constructive solution... –  hbdgaf Jan 16 '11 at 23:04
    
@aking1012, how can i validate jpegs? and for second comment, sorry but I do not undersand Yours comment... –  canni Jan 16 '11 at 23:29
add comment

1 Answer

I have the same problem - mencoder quits 25% or so along the way with the -mf:*jpg option.

I initially used IrfanView and did a 100% jpeg batch convert on a directory.

That told me there was a 0 byte file which it couldn't load there.

Because my files are all jpg's from a cctv they are all about the same size - 40k, so I decided all i have to do is look for any files < 38k and remove them.

DIR /OS > Files_in_Size_Order_Smallest_First.txt

Then just delete the few files which are likely corrupt being under 10k or so (found a lot of good files are smaller than 38k)

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.