First, import your video: dvgrab -rewind -f mpeg2/hdv -showstatus -a timestamp
Next, convert your hdv mpeg2 stream to a mov container so Final Cut Pro can import it: ffmpeg -i timestamp001.m2t -vcodec copy -acodec copy -f mov timestamp001.mov
FCP X is buggy, so we need to export the audio from our movie individually: ffmpeg -i timestamp001.m2t timestamp001.aiff
Import your mov
in FCP X, open the clip in the timeline, delete the audio, attach your aiff
audio instead of the original audio (if you don't replace the audio FCP X will crackle and pop audio when you export). Re-combine your audio and video into a Compound Clip.
Edit, cut, blade, transition, re-order, export video.
On your exported timeline from FCP, extract its audio like we did for the original camcorder footage: ffmpeg -i exported.mov exported.aiff
(I'm assuming you aren't manipulating audio in motion.)
Edit, add effects, keyframe your animations, export.
When you export from Motion, it will re-corrupt your audio from FCP X. This sucks. What we have to do is export from Motion, remove the audio, then add our exported audio from FCP (exported.aiff
above).
We don't want to re-encode the video, so we use the ffmpeg copy codec while attaching the exported audio to our rendered Motion composition: ffmpeg -i exported.aiff -i exported-from-motion.mov -vcodec copy -f mov exported-from-motion-with-proper-audio.mov
Whew. Now we're done. Upload your exported-from-motion-with-proper-audio.mov
everywhere for the world to see. Also, stop using HDV tape. Maybe a nice Canon Vixia G10 would be better than your four year old Canon HV20.