<div dir="ltr"><div><div><div>Look for compress2mp4.sh here: <a href="https://github.com/AndriusWild/dam_scripts">https://github.com/AndriusWild/dam_scripts</a><br></div>Module #15 is responsible for writing the date. I take the data from the tag:<span class="gmail-pl-s"> QuickTime:CreateDate<br></span></div><span class="gmail-pl-s">I suggest you to check your videos with exiftool -a -G1 -s FILE and see which tag you can use.<br></span></div><span class="gmail-pl-s">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 </span><br><span class="gmail-pl-s"><span class="gmail-pl-s">QuickTime:CreateDate in *.avi files but you will find it in *.mp4 or *.mov files<br></span></span><div><div><br><br></div><div>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.<br></div><div><br>Digikam appimage does not show "Open With" menu correctly on some distros/DEs though.<br></div><div>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<br></div><div>Digikam will remember that command from then.<br></div><div>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.<br></div><div><br><span class="gmail-pl-c"><span class="gmail-pl-c">#</span> 15. Writing FileModifyDate from QuickTime:CreateDate using exiftool</span>
      
      
        <table class="gmail-highlight gmail-tab-size gmail-js-file-line-container"><tbody><tr><td id="gmail-LC199" class="gmail-blob-code gmail-blob-code-inner gmail-js-file-line">
<br></td>
      </tr>
      <tr>
        </tr></tbody></table><table class="gmail-highlight gmail-tab-size gmail-js-file-line-container"><tbody><tr><td id="gmail-LC200" class="gmail-blob-code gmail-blob-code-inner gmail-js-file-line">count=<span class="gmail-pl-s"><span class="gmail-pl-pds">"</span>1<span class="gmail-pl-pds">"</span></span></td>
      </tr>
      <tr>
        </tr></tbody></table><table class="gmail-highlight gmail-tab-size gmail-js-file-line-container"><tbody><tr><td id="gmail-LC201" class="gmail-blob-code gmail-blob-code-inner gmail-js-file-line"><span class="gmail-pl-k">for</span> <span class="gmail-pl-smi">f</span> <span class="gmail-pl-k">in</span> <span class="gmail-pl-s"><span class="gmail-pl-pds">"</span><span class="gmail-pl-smi">$@</span><span class="gmail-pl-pds">"</span></span><span class="gmail-pl-k">;</span> <span class="gmail-pl-k">do</span></td>
      </tr>
      <tr>
        </tr></tbody></table><table class="gmail-highlight gmail-tab-size gmail-js-file-line-container"><tbody><tr><td id="gmail-LC202" class="gmail-blob-code gmail-blob-code-inner gmail-js-file-line">    <span class="gmail-pl-k">if</span> [ <span class="gmail-pl-k">-e</span> <span class="gmail-pl-s"><span class="gmail-pl-pds">"</span><span class="gmail-pl-smi">${f<span class="gmail-pl-k">%</span>.<span class="gmail-pl-k">*</span>}</span>_<span class="gmail-pl-smi">${suffix}</span>_<span class="gmail-pl-smi">${suffix2}</span>.mp4<span class="gmail-pl-pds">"</span></span> ]<span class="gmail-pl-k">;</span> <span class="gmail-pl-k">then</span></td>
      </tr>
      <tr>
        </tr></tbody></table><table class="gmail-highlight gmail-tab-size gmail-js-file-line-container"><tbody><tr><td id="gmail-LC203" class="gmail-blob-code gmail-blob-code-inner gmail-js-file-line">    <span class="gmail-pl-c1">echo</span> -e <span class="gmail-pl-s"><span class="gmail-pl-pds">"</span><span class="gmail-pl-smi">${GREEN}</span>Copying QuickTime.CreateDate to FileModifyDate using ExifTool for file <span class="gmail-pl-smi">${count}</span>/<span class="gmail-pl-smi">${<span class="gmail-pl-k">#@</span>}</span> <span class="gmail-pl-smi">${UNDERLINE}</span><span class="gmail-pl-pds">"</span></span><span class="gmail-pl-s"><span class="gmail-pl-pds">$(</span>basename <span class="gmail-pl-s"><span class="gmail-pl-pds">"</span><span class="gmail-pl-smi">${f<span class="gmail-pl-k">%</span>.<span class="gmail-pl-k">*</span>}</span>_<span class="gmail-pl-smi">${suffix}</span>_<span class="gmail-pl-smi">${suffix2}</span>.mp4<span class="gmail-pl-pds">"</span></span><span class="gmail-pl-pds">)</span></span><span class="gmail-pl-s"><span class="gmail-pl-pds">"</span><span class="gmail-pl-smi">${NC}</span><span class="gmail-pl-pds">"</span></span></td>
      </tr>
      <tr>
        </tr></tbody></table><table class="gmail-highlight gmail-tab-size gmail-js-file-line-container"><tbody><tr><td id="gmail-LC204" class="gmail-blob-code gmail-blob-code-inner gmail-js-file-line">    <span class="gmail-pl-c1">echo</span> -e <span class="gmail-pl-s"><span class="gmail-pl-pds">"</span><span class="gmail-pl-smi">${BLUE}</span>exiftool -api quicktimeutc=1 '-FileModifyDate<QuickTime:CreateDate' -overwrite_original <span class="gmail-pl-smi">${UNDERLINE}</span><span class="gmail-pl-pds">"</span></span><span class="gmail-pl-s"><span class="gmail-pl-pds">$(</span>basename <span class="gmail-pl-s"><span class="gmail-pl-pds">"</span><span class="gmail-pl-smi">${f<span class="gmail-pl-k">%</span>.<span class="gmail-pl-k">*</span>}</span>_<span class="gmail-pl-smi">${suffix}</span>_<span class="gmail-pl-smi">${suffix2}</span>.mp4<span class="gmail-pl-pds">"</span></span><span class="gmail-pl-pds">)</span></span><span class="gmail-pl-s"><span class="gmail-pl-pds">"</span><span class="gmail-pl-smi">${NC}</span><span class="gmail-pl-pds">"</span></span></td>
      </tr>
      <tr>
        </tr></tbody></table><table class="gmail-highlight gmail-tab-size gmail-js-file-line-container"><tbody><tr><td id="gmail-LC205" class="gmail-blob-code gmail-blob-code-inner gmail-js-file-line">    exiftool -api quicktimeutc=1 <span class="gmail-pl-s"><span class="gmail-pl-pds">"</span>-FileModifyDate<QuickTime:CreateDate<span class="gmail-pl-pds">"</span></span> -overwrite_original <span class="gmail-pl-s"><span class="gmail-pl-pds">"</span><span class="gmail-pl-smi">${f<span class="gmail-pl-k">%</span>.<span class="gmail-pl-k">*</span>}</span>_<span class="gmail-pl-smi">${suffix}</span>_<span class="gmail-pl-smi">${suffix2}</span>.mp4<span class="gmail-pl-pds">"</span></span> <span class="gmail-pl-k">||</span> <span class="gmail-pl-c1">exit</span> 1</td>
      </tr>
      <tr>
        </tr></tbody></table><table class="gmail-highlight gmail-tab-size gmail-js-file-line-container"><tbody><tr><td id="gmail-LC206" class="gmail-blob-code gmail-blob-code-inner gmail-js-file-line">    <span class="gmail-pl-k">fi</span></td>
      </tr>
      <tr>
        </tr></tbody></table><table class="gmail-highlight gmail-tab-size gmail-js-file-line-container"><tbody><tr><td id="gmail-LC207" class="gmail-blob-code gmail-blob-code-inner gmail-js-file-line">    <span class="gmail-pl-s"><span class="gmail-pl-pds">((</span>count<span class="gmail-pl-k">++</span><span class="gmail-pl-pds">))</span></span></td>
      </tr>
      <tr>
        </tr></tbody></table><span class="gmail-pl-k">done</span></div></div></div><div class="gmail_extra"><br clear="all"><div><div class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div>Best regards, <br></div></div></div></div>
<br><div class="gmail_quote">On Mon, Jan 15, 2018 at 5:37 AM, nonobio <span dir="ltr"><<a href="mailto:nonobio@gmail.com" target="_blank">nonobio@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi,<br>
<br>
Is your linux method a script you created yourself ? If not, can you give me<br>
the name of tools used ? Maybe i could serach for an windows alternative ..<br>
<br>
So you use the "created date" metadata. Is it generic "file" date or is it a<br>
specific "taken date" tag ?<br>
<br>
Is it planned in next digikam version to reintroduce video file taken date<br>
editing ?<br>
<br>
Thanks<br>
<br>
<br>
<br>
--<br>
Sent from: <a href="http://digikam.1695700.n4.nabble.com/digikam-users-f1735189.html" rel="noreferrer" target="_blank">http://digikam.1695700.n4.<wbr>nabble.com/digikam-users-<wbr>f1735189.html</a><br>
</blockquote></div><br></div>