Cinelerra, x264, exiftool

Cinelerra-cv is a feature-rich tool to cut/process video. However, built-in h264 output doesn’t really work, so piping through x264 is next-best option to render result.

File/Render, first audio=mp3, then video=YUV4MPEG Stream.

Video configure/pipe: crf is quality (default 23). y4m contains fps rate/frame size.

# apt-get install x264
x264 --crf 25 --demuxer y4m --output % -

Muxing:

ffmpeg -i x.m2v -i x.mp3 -acodec copy -vcodec copy \
       -metadata title="My title" out.mp4

Copy exif data from original (needs exiftool 9.40+ to write MP4):

exiftool -tagsFromFile ~/d7k/DSC_3946.MOV -overwrite_original -m out.mp4

Tada!

$ file out.mp4
out.mp4: ISO Media, MPEG v4 system, version 1
$ exiftool out.mp4 |grep Origi
Date/Time Original              : 2013:12:20 21:16:14