I know jAlbum unfortunately doesn't currently make extensive use of metadata in videos, but I nevertheless wanted to preserve the metadata (including GPS data) in the jAlbum conversion process. At least it will be there for anyone who downloads the video. I struggled for hours to figure out how to do it, mainly because (a) ffmpeg documentation leaves something to be desired, and (b) I don't really know what I am doing. Anyway, here's what worked for me, in case anyone else is interested:
1. I needed to update the version of ffmpeg which came with my (relatively recent) jAlbum release. Otherwise my changes below will cause conversion failure. See
https://jalbum.net/forum/thread.jspa?threadID=51390&tstart=0
2. Go to Settings/Video and click on 'Use custom settings'. Change the value of the
-movflags setting from 'faststart' to '+faststart'. Create a new entry just before this line. The new entry name should also be
-movflags, and the value should be 'use_metadata_tags'. Create another new entry (I did this just above the
$outputPath entry). This new entry name should be
-map_metadata and its value is 0.
A quick way of accomplising the value changes in step 2 would be to open the jalbum-settings.jap file for the album, find the line
videoParameters=-y\=,-i\=$inputPath,-vf\=hqdn3d\\\=1.5\:1.5\:6\:6\\,scale\\\=min(iw\\\\\\,trunc(iw*min($videoWidth/iw\\\\\\,$videoHeight/ih)*0.5)*2)\:min(ih\\\\\\,trunc(ih*min($videoWidth/iw\\\\\\,$videoHeight/ih)*0.5)*2)\\,unsharp\\\=3\:3\:1.0\:3\:3\:0.0\\,$normalizeOrientation,-ss\=$clipStart,-t\=$clipLength,-threads\=0,-b\:a\=96k,-ac\=2,-ar\=44100,-vcodec\=libx264,-crf\=$videoQuality,-metadata\:s\:v\:0\=rotate\\\=0,-movflags\=faststart,-pix_fmt\=yuv420p,$outputPath\=
and replace it with
videoParameters=-y\=,-i\=$inputPath,-vf\=hqdn3d\\\=1.5\:1.5\:6\:6\\,scale\\\=min(iw\\\\\\,trunc(iw*min($videoWidth/iw\\\\\\,$videoHeight/ih)*0.5)*2)\:min(ih\\\\\\,trunc(ih*min($videoWidth/iw\\\\\\,$videoHeight/ih)*0.5)*2)\\,unsharp\\\=3\:3\:1.0\:3\:3\:0.0\\,$normalizeOrientation,-ss\=$clipStart,-t\=$clipLength,-threads\=0,-b\:a\=96k,-ac\=2,-ar\=44100,-vcodec\=libx264,-crf\=$videoQuality,-metadata\:s\:v\:0\=rotate\\\=0,-movflags\=use_metadata_tags,-movflags\=+faststart,-pix_fmt\=yuv420p,-map_metadata\=0,$outputPath\=
This may not preserve
all metadata, but it seems to work for at least Quicktime GPS and creation dates.
Edited by: sburke on 25-Oct-2019 15:27