π

Fixing aspect ratio on Hubsan x4 H107d recordings with Linux and ffmpeg

Show Sidebar

I own a Hubsan x4 H107d FPV quadcopter (my German blog post). Its video recordings result in 720x240 aspect ratio files. However, they are crimped. If you force your video playback tool to use 4:3 aspect ratio, the videos are OK again.

In order to convert a H107d video permanently to the correct aspect ratio and probably to save some Megabytes as well, you can stick to the usual GUI tools, mainly for MS Windows.

I wrote a shell script which does the conversion using ffmpeg, a GNU/Linux command line tool. You can find my recoding script on github.

With this, you can use following shell command to convert multiple recordings in parallel:

recode-h107d-videos.sh *.AVI	  

In case you want to add time-stamps to the file names as well (make sure that the real time clock in your Hubsan remote control is set accordingly), you might as well be interested in my date2name script.

With following commands, you add time-stamps to the files before you recode them:

date2name --withtime *.AVI
recode-h107d-videos.sh 201*.AVI	  

This way, you end up with files like follwing examples:

2014-04-18T20.01.48_002 -- h107d recoded.avi
2014-04-18T19.04.40_004 -- h107d recoded.avi
2014-04-18T19.05.52_005 -- h107d recoded.avi	  

Related articles that link to this one:

Comment via email (persistent) or via Disqus (ephemeral) comments below: