Date taken tag for video files

Andrey Goreev aegoreev at gmail.com
Mon Jan 15 16:52:02 GMT 2018


Look for compress2mp4.sh here: https://github.com/AndriusWild/dam_scripts
Module #15 is responsible for writing the date. I take the data from the
tag: QuickTime:CreateDate
I suggest you to check your videos with exiftool -a -G1 -s FILE and see
which tag you can use.
If you have video file formats or videos created by different cameras,
phones or processed with different software make sure to check every single
type. For example (I am pretty sure) you won't find
QuickTime:CreateDate in *.avi files but you will find it in *.mp4 or *.mov
files


Once you figured out your script you can add it to the Open With menu for
the media type or create a service menu which will speed up your process in
future.

Digikam appimage does not show "Open With" menu correctly on some
distros/DEs though.
In that case you can either call the script from the file manager or call
it from digikam via right click - open with - other - and then type (the
following command will work on KDE only): konsole --noclose -e
/path/to/your/script.sh %U
Digikam will remember that command from then.
Some people also use Batch Processing Tool in digikam for that but last
time I tried it (probably ver. 4.12) it was crashing all the time. It is
probably fixed by now but I already got used to my workflow so I never
bothered to give it a second chance.

# 15. Writing FileModifyDate from QuickTime:CreateDate using exiftool

count="1"
for f in "$@"; do
if [ -e "${f%.*}_${suffix}_${suffix2}.mp4" ]; then
echo -e "${GREEN}Copying QuickTime.CreateDate to FileModifyDate using
ExifTool for file ${count}/${#@} ${UNDERLINE}"$(basename "${f%.*}_${suffix}_
${suffix2}.mp4")"${NC}"
echo -e "${BLUE}exiftool -api quicktimeutc=1
'-FileModifyDate<QuickTime:CreateDate' -overwrite_original
${UNDERLINE}"$(basename
"${f%.*}_${suffix}_${suffix2}.mp4")"${NC}"
exiftool -api quicktimeutc=1 "-FileModifyDate<QuickTime:CreateDate"
-overwrite_original "${f%.*}_${suffix}_${suffix2}.mp4" || exit 1
fi
((count++))
done

Best regards,

On Mon, Jan 15, 2018 at 5:37 AM, nonobio <nonobio at gmail.com> wrote:

> Hi,
>
> Is your linux method a script you created yourself ? If not, can you give
> me
> the name of tools used ? Maybe i could serach for an windows alternative ..
>
> So you use the "created date" metadata. Is it generic "file" date or is it
> a
> specific "taken date" tag ?
>
> Is it planned in next digikam version to reintroduce video file taken date
> editing ?
>
> Thanks
>
>
>
> --
> Sent from: http://digikam.1695700.n4.nabble.com/digikam-users-
> f1735189.html
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/digikam-users/attachments/20180115/f7bb8c4d/attachment.html>


More information about the Digikam-users mailing list