Using ffmpeg on macOS to Correct AVI Index Errors and Convert to MP4


I’ve had a dashcam in my car for several years. My first dashcam worked great but after a few years it died. I replaced it with a less expensive unit and, as they say, you get what you pay for. It works OK. The quality and perspective isn’t as good as my first dashcam – it also doesn’t record GPS and current speed. If I replace this one I’m definitely going to get one that has features more similar to my first dashcam.

In addition, the video that I pull from the SD cards it records to usually have index errors, which prevent the videos from playing in most players (it works in VLC but requires a little bit of preprocessing to correct index issues). Obviously, this isn’t very good for something recording video that might one day be provided to law enforcement, compiled into a video poking fun at bad drivers or perhaps on the rare ocassion you’re nearly hit by a horse and rider as they gallop across a busy highway. I used ffmpeg to correct this issue with the last video prevoiusly linked.

Continue reading

Handbrake Crashes When Converting XVID Encoded AVI


I had some video files sitting around that I wanted to convert to a format that I could use with the Apple TV (Second Generation). I tried dumping them into Handbrake on the Mac, which usually does an excellent job of converting, but it crashed every time.

I tried the same in the Windows version but it also crashed

As far as I could tell these files were encoded with XVID. I’m not 100% certain but that appeared to be the issue.

To get around this problem I ended up using ffmpegx. In my case, it worked perfectly. I used it to convert the XVID encoded avi files to H.264. I was then able to watch them via the Apple TV.