Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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? – RobotHumans 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... – RobotHumans 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

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

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .