Dropbox

DJI Sparkで撮影した動画にログファイルから速度や高度などの情報を重ね合わせて表示する方法の紹介です。

Let me introduce how to overlay flight information gauge to Spark footage.

[ ログファイルの取り出し / Retrieve flight information log file ]
Androidの場合です。内部ストレージの DJI/dji.go.v4/FlightRecord/DJIFlightRecord*.txt が目的のログファイルです。ファイル名にタイムスタンプが含まれています。目的の動画のタイムスタンプより少し前のものを選びます。拡張子はtxtですが実際にはバイナリーファイルです。

For Android, flight information log file is at DJI/dji.go.v4/FlightRecord/DJIFlightRecord*.txt of Android internal storage. File name includes timestamp. File extension is ‘txt’, but this is binary file actually.

[ ログファイルの変換 / Convert log file to csv ]
ログファイルを読める形に変換しなければなりません。いくつかの方法があるようですが、わたしは以下のwebサイトを使用しました。出力はcsvファイルです。

Flight information log file has to be converted to csv file. I use following web site.

http://www.djilogs.com/#/

[ ログデータと動画の合成 / Overlay log data to footage ]
DashWareというWindowsプログラムで行いました。
わたしはうまく組み込めていませんが、DJI Phantom用の追加ゲージなども公開されています。

I use Windows program called DashWare. There is additional gauge data for DJI Phantom also (I can not use this well yet).

– Project画面で動画ファイルとcsv変換したログファイルを追加します。Gaugeについては後から変更しますのでProject Templateは気にしなくても良いです。 Add footage file and csv converted log file on the project wizard. You do not need to care about ‘Project Template’ here, we can change the gauge later.

– Gauge Toolboxで好みのゲージを探して貼り付けます。 Add your favorite gauges from Gauge Toolbox.

– Synchronization画面で動画とログの同期を行います。 Adjust synchronization point by using Synchronization tab.

以上です。ここまでは試行錯誤あるもののさほど難しくはありません。 That’s all about setup.

[ Create Videoでエラー / Error when Create Video ]
最後にCreate Videoで合成後のビデオを出力します。この時に”Error rendering in MediaFoundationMedia Foundation Error + -2147467259″というエラーが出てビデオを作る事が出来ませんでした。海外の掲示板に元のビデオになんでも良いから音声トラックを付けるとエラーしないと書かれていました。確かにSparkから取り出した動画には音声トラックがありません、適当なMP3ファイルをiMovieで動画ファイルに付けたらエラーしなくなりました。

I got an error message ‘Error rendering in MediaFoundationMedia Foundation Error + -2147467259’ when I initiated Create Video function. It could be fixed by adding any audio tracks to the Spark footage (original Spark footage on the micro SD card does not have audio) before add the DashWare project.

[ 高度が0から始まらない / Altitude does not start from 0 ]
飛行高度の表示が目的でしたが離陸時の高度が0ではありませんでした。説明では海抜になっていますが、ちょっと変な数字です。いずれにしても欲しいのは離陸場所からの相対的な高度です。これにはちょっとしたトリックが必要です。

I want display altitude meter on my Spark video. However it does not start from 0. Some of explanation texts said that it is sea level altitude, but it seems to me something different from the sea level also.

公式FAQの”Altitude is based on sea level, how do I make it ground-based”にさらっと方法が書かれています。説明が簡単すぎてなかなか理解出来ませんでした。具体的な手順は以下のリンクを御覧ください。

Official DashWare FAQ mentions about how to change the altitude value from the sea level to ground level. But it is difficult to understand because of too simple explanation. I wrote how to change altitude from sea level to ground level below. This article written in Japanese, but you may find some screenshots for your reference.

DashWare+Sparkビデオで高度表示をグランドレベルにする

Trackback

only 1 comment untill now

  1. […] ね合わせたビデオが作ることが出来ます。詳しくは以前の記事を御覧ください。 […]

Add your comment now