RD32II Action Camera AVI file issues

I recently used a small video camera for an overseas journey and realised on return that the video files generated are formatted in such a way that prevents them from being read by most professional video editing/converting software. To get around this took a little research, so for those who are having similar issues I thought I’d post how I fixed the files. These instructions are for Windows, if anyone converts for use on OSX please post in the comments.

  • First, download ffmpeg, look for the link with “Static” in the title under the correct OS type heading (32-bit or 64-bit).
  • Open this compressed file (might need to install 7zip if you can’t immediately open the archive).
  • Extract the bin/ffmpeg.exe file from the archive and copy it into the folder with your video files.
  • Create a new text file in the same folder and add this text into it:
1
2
for %%a in ("*.*") do ffmpeg -i "%%a" -c:v libx264 -preset slow -crf 20 -c:a libvo_aacenc -b:a 128k "newfiles\%%~na.mp4"
pause
  • Rename this file “Convert.bat”.
  • Double-click this file

It will create new video files (in H264 format), after which you can delete the original AVI files.
Now you should be able to move these two files into any folder with the broken video files, run the “Convert.bat” file and it fix your videos.

If, like me, you had your camera mounted upside-down for practical purpose, then use this script instead, which will also rotate the video 180 degrees.

1
2
for %%a in ("*.*") do ffmpeg -i "%%a" -c:v libx264 -vf "vflip,hflip" -preset slow -crf 20 -c:a libvo_aacenc -b:a 128k "newfiles\%%~na.mp4"
pause

3 Comments

  1. I see. That can certainly be useful as the files do get quite big.

    In case you are interested, I did manage to just repackage the avi file to mp4 with ffmpeg

    ffmpeg -i video.avi -acodec copy -vcodec copy outfile.mp4

  2. Hey Tom,
    Does this command involve transcoding, or does it only “repackage” the avi file (i.e. no conversion so no loss of data)?
    I had the same problem with the files generated by my RD32II and ended up using mp4box, instead of ffmpeg. I do it by demuxing/remuxing the avi file without actually converting the video stream. The problem that I have with that though is that the acc (audio) file created in the demuxing process is not recognized my mp4box (?) itself, so I end up with silent video. But if I can do the same with ffmpeg, and generate a usable audio file, I could switch to your solution.

    Thanks!

    Nicola

    • Hi Nicola,
      I believe I attempted with mp4box and had the same issue.
      This ffmpeg solution completely reencodes both video and audio. This also gives you a chance to get a better compression ratio than the in-camera encoder achieves.

Leave a Reply

Your email address will not be published.

*

© 2017 Thomas Byrne

Theme by Anders NorenUp ↑