<html><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8"></head><body><div>I have similar issues with some video files.</div><div>I think it has to deal with UTC conversion.</div><div>I am 6(7) behind UTC and some videos shown with 6(7) hours difference.</div><div><br></div><div id="composer_signature"><div style="font-size:85%;color:#575757" dir="auto">Sent from my Samsung Galaxy smartphone.</div></div><div><br></div><div style="font-size:100%;color:#000000"><!-- originalMessage --><div>-------- Original message --------</div><div>From: Gilles Caulier <caulier.gilles@gmail.com> </div><div>Date: 2019-02-27  10:09 AM  (GMT-07:00) </div><div>To: digiKam - Home Manage your photographs as a professional with the power of open source <digikam-users@kde.org> </div><div>Subject: Re: [digiKam-users] Date taken tag for video files </div><div><br></div></div><div dir="ltr"><div dir="ltr"><div>Hi,<br></div><div><br></div>The video file metadata are extracted, with... ffmpeg libraries.<div><br></div><div>So, the difference can be relevant of codec implementation in ffmpeg. In fact we ask to fmmpeg to extract all metadata and pass the result that we parse to populate the database.</div><div><br></div><div>If you want to compare yourself, open a console, go to your video file and run ffmpeg -i file. Exemple :</div><div><br></div><div><div>[gilles@localhost Video]$ ffmpeg -i small.mp4 </div><div>ffmpeg version 3.3.9 Copyright (c) 2000-2018 the FFmpeg developers</div><div>  built with gcc 5.5.0 (Mageia 5.5.0-1.mga6)</div><div>  configuration: --prefix=/usr --enable-shared --libdir=/usr/lib64 --shlibdir=/usr/lib64 --incdir=/usr/include --disable-stripping --enable-postproc --enable-gpl --enable-pthreads --enable-libtheora --enable-libvorbis --disable-encoder=vorbis --enable-libvpx --enable-runtime-cpudetect --enable-libdc1394 --enable-libschroedinger --enable-librtmp --enable-libspeex --enable-libfreetype --enable-libnut --enable-libgsm --enable-libcelt --enable-libopus --enable-libopencv --enable-libopenjpeg --enable-libtwolame --enable-libxavs --enable-frei0r --enable-libmodplug --enable-libass --enable-gnutls --enable-libcdio --enable-libpulse --enable-libv4l2 --enable-avresample --enable-opencl --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-version3 --enable-libx264 --enable-libx265 --enable-libvo-amrwbenc --enable-libxvid</div><div>  libavutil      55. 58.100 / 55. 58.100</div><div>  libavcodec     57. 89.100 / 57. 89.100</div><div>  libavformat    57. 71.100 / 57. 71.100</div><div>  libavdevice    57.  6.100 / 57.  6.100</div><div>  libavfilter     6. 82.100 /  6. 82.100</div><div>  libavresample   3.  5.  0 /  3.  5.  0</div><div>  libswscale      4.  6.100 /  4.  6.100</div><div>  libswresample   2.  7.100 /  2.  7.100</div><div>  libpostproc    54.  5.100 / 54.  5.100</div><div>Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'small.mp4':</div><div>  Metadata:</div><div>    major_brand     : mp42</div><div>    minor_version   : 0</div><div>    compatible_brands: mp42isomavc1</div><div>    creation_time   : 2010-03-20T21:29:11.000000Z</div><div>    encoder         : HandBrake 0.9.4 2009112300</div><div>  Duration: 00:00:05.57, start: 0.000000, bitrate: 551 kb/s</div><div>    Stream #0:0(und): Video: h264 (Constrained Baseline) (avc1 / 0x31637661), yuv420p(tv, bt709), 560x320, 465 kb/s, 30 fps, 30 tbr, 90k tbn, 60 tbc (default)</div><div>    Metadata:</div><div>      creation_time   : 2010-03-20T21:29:11.000000Z</div><div>      encoder         : JVT/AVC Coding</div><div>    Stream #0:1(eng): Audio: aac (LC) (mp4a / 0x6134706D), 48000 Hz, mono, fltp, 83 kb/s (default)</div><div>    Metadata:</div><div>      creation_time   : 2010-03-20T21:29:11.000000Z</div><div>At least one output file must be specified</div></div><div><br></div><div>Look the "creation_time" tags.</div><div><br></div><div>Gilles Caulier</div><div><br></div></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">Le mer. 27 févr. 2019 à 15:39, nonobio <<a href="mailto:nonobio@gmail.com">nonobio@gmail.com</a>> a écrit :<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Hi :)<br>
<br>
Since my last message i didn't tried anything new : i just use the file name<br>
as it is the best "taken date" info i have.<br>
<br>
I just updated Digikam to version 6.0.0 and as it have a new video files<br>
management, i make a new try.<br>
<br>
After analyse a video file metadata with Digikam 6.0.0, it find a new field<br>
displayed in file view : "dititalized date". It seems to display the same<br>
date that "created date".<br>
<br>
Anyway, this is what i see and understand about differents date fields in<br>
list view :<br>
<br>
<<a href="http://digikam.1695700.n4.nabble.com/file/t376394/gfH5Sh1.png" rel="noreferrer" target="_blank">http://digikam.1695700.n4.nabble.com/file/t376394/gfH5Sh1.png</a>> <br>
<br>
1- File name : file is named with the actual date as soon as i start video<br>
capture. It isn't a metadata but it is the real "taken date".<br>
2- Last modified. File date attribute is writed at the end of the capture.<br>
It isn't the good "date taken" because it is the "end" of the video, not the<br>
"start". I think it have more sense to use "beginning date".<br>
3- Created date : it is the end of the video but not the good : it has an<br>
error of "one hour". I think it is about "GMT" ?<br>
4- Digitalized date : new field sinc Digikam 6.0.0 but same problem that<br>
created date (one hour less).<br>
<br>
Because the "file name" is the only good "taken time", i only use it and not<br>
the others fields. For that i just rename it to match my others file names<br>
preferences (yyyymmddhhmmss). It is ok but when i explore my videos, i have<br>
to sort them by "name", not by "date"...<br>
<br>
Am i wrong about what i understand for the different dates ?<br>
Why is there a delta of one hour for created and digitalized date, and how<br>
to correct it ?<br>
Do you have any recommandations ?<br>
<br>
Thanks<br>
<br>
<br>
<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.nabble.com/digikam-users-f1735189.html</a><br>
</blockquote></div>
</body></html>