Thread Locked This thread is locked - replies are not allowed.


This question is answered. Helpful answers available: 2. Correct answers available: 1.


Permlink Replies: 56 - Pages: 4 [ Previous | 1 2 3 4 ] - Last Post: 23-Jan-2020 15:56 Last Post By: jGromit Threads: [ Previous | Next ]
sburke

Posts: 21
Registered: 18-Sep-2019
Re: Creation time on videos
Posted: 09-Nov-2019 21:28   in response to: jGromit in response to: jGromit
 
Attachment IMG_4160.mp4 (472.3 KB)
RobM wrote:
There are other tools that will show you how to process all videos in a project, rather than a selected video. video from images is one that uses ffmpeg too.
Thanks RobM - that is very helpful.

jGromit wrote:
Can you give us a (small) sample video that includes metadata using your own "standard?" And what's the field called?
Here is one. As indicated in earlier posts I am planning to use the XMP-exif:DateTimeOriginal tag for storing the local creation date (in this sample there is a 2 hour difference compared to CreateDate). I'm not wedded to this though - any other appropriate field would be OK so long as it isn't intended to store something different.

jGromit wrote:
Then, even if ME can pull that field, what will jAlbum do with it? The jAlbum core isn't open-source, so you wouldn't be able, for example, to modify jAlbum to use that xmp field as the originalDate variable (for sorting album objects). And asking David to modify the core to accommodate a home-brewed metadata field would be a bit much.
Aww crap! I just assumed that as there are ao.setTitle() and ao.setComment() functions, there would also be an ao.setOriginalDate() function. Just checked the api and there isn't. As you no doubt already knew.
(Just tried
Scope vrs = ao.getVars();
vrs.put("originalDate", "10 Nov 2020 20:20");
ao.setVars(vrs);

but that didn't do anything useful either.)

Back to the drawing board.

Just about to go on holiday so I will mull this over for the next couple of weeks. Be nice if I knew what I was doing.
jGromit

Posts: 7,599
Registered: 31-Jan-2006
Re: Creation time on videos
Posted: 09-Nov-2019 21:54   in response to: sburke in response to: sburke
 
Well, if ME is modified so that it can extract metadata from videos properly, including xmp fields, the routine within a skin becomes fairly simple:
realTime=meta.get("xmp.exif:DateTimeOriginal");
But of course, the jAlbum core has to bind everything that ME extracts to the meta variable.

Still no help for sorting the album objects before making the album, though I suppose a skin could force the issue. Lots of extra effort.
jGromit

Posts: 7,599
Registered: 31-Jan-2006
Re: Creation time on videos
Posted: 09-Nov-2019 21:57   in response to: sburke in response to: sburke
 
sburke wrote:
Here is one.

I was virtually certain about this, but as expected, ME picks up only the File and MP4 metadata, not the xmp.
RobM

Posts: 3,184
Registered: 4-Aug-2006
Re: Creation time on videos
Posted: 09-Nov-2019 23:33   in response to: sburke in response to: sburke
 
Just a flippant thought for an embedded date/time that will always be available as long as the video can be played, add a few seconds of an intro image showing the date, time, location or whatever to the video,

Sorry, couldn’t resist thinking differently ;)
jGromit

Posts: 7,599
Registered: 31-Jan-2006
Re: Creation time on videos
Posted: 09-Nov-2019 23:50   in response to: RobM in response to: RobM
 
You've been into the cooking sherry again, haven't you.
RobM

Posts: 3,184
Registered: 4-Aug-2006
Re: Creation time on videos
Posted: 09-Nov-2019 23:51   in response to: jGromit in response to: jGromit
 
jGromit wrote:
You've been into the cooking sherry again, haven't you.
More of a rum do ;)
sburke

Posts: 21
Registered: 18-Sep-2019
Re: Creation time on videos
Posted: 16-Jan-2020 18:08   in response to: RobM in response to: RobM
 
I don't have a solution for the main problem which is the subject of this thread, but I have fixed my particular issue which was the the inability to display the local creation time of videos. In case anyone is interested, this is how I did it.
There are two issues:
(1) As previously mentioned videos mostly do not store the local (as distinct from UTC) creation date/time in their metadata. I fixed this simply by choosing a metadata tag to use and (using exiftool.exe) writing the local creation date/time in that field. I chose the XMP:DateTimeOriginal tag. You can work out the local time from the UTC time and a knowledge of where the photo was taken. In fact I wrote a Python program which uses the stored UTC time and stored GPS data (or a default timezone if no GPS data available) to calculate and then write the local date/time into the metadata field. This isn't needed if the video happens to have a CreationDate (not CreateDate) metadata field, because this stores the UTC date in the form of local date/time + offset.
(2) Metadata used to store the local time (e.g. XMP or CreationDate fields) is not readable by the metadata extractor supplied with jAlbum. I fixed this by writing a tool (see https://jalbum.net/forum/thread.jspa?threadID=55916&tstart=0) which uses exiftool to extract the data. The tool also has other uses.
RobM

Posts: 3,184
Registered: 4-Aug-2006
Re: Creation time on videos
Posted: 18-Jan-2020 00:06   in response to: sburke in response to: sburke
 
sburke wrote:
I don't have a solution for the main problem which is the subject of this thread, but I have fixed my particular issue which was the the inability to display the local creation time of videos. In case anyone is interested, this is how I did it.
In the tool post you wrote:
(a) I have lots of photos in which I have tagged people (using Picasa). The tool extracts a comma separated list of these names (from the RegionName field) and adds each to the image's keywords, allowing me to search for images by the name of the person. There might be a different way of doing this in jAlbum but if so I haven't found it.
jAlbum has a face/region tagging option, Explore > Context menu > On thumbnails > Set area tags and it stores the region data in the image's metadata under xml.mwg-rs:Regions/mwg-rs. For example:
xmp.mwg-rs:Regions/mwg-rs:AppliedToDimensions/stDim:h=720
xmp.mwg-rs:Regions/mwg-rs:AppliedToDimensions/stDim:unit=pixel
xmp.mwg-rs:Regions/mwg-rs:AppliedToDimensions/stDim:w=491
xmp.mwg-rs:Regions/mwg-rs:RegionList[1]/mwg-rs:Area/stArea:h=0.277778
xmp.mwg-rs:Regions/mwg-rs:RegionList[1]/mwg-rs:Area/stArea:unit=normalized
xmp.mwg-rs:Regions/mwg-rs:RegionList[1]/mwg-rs:Area/stArea:w=0.407332
xmp.mwg-rs:Regions/mwg-rs:RegionList[1]/mwg-rs:Area/stArea:x=0.366599
xmp.mwg-rs:Regions/mwg-rs:RegionList[1]/mwg-rs:Area/stArea:y=0.277778
xmp.mwg-rs:Regions/mwg-rs:RegionList[1]/mwg-rs:Description=Tag Descrption Text
xmp.mwg-rs:Regions/mwg-rs:RegionList[1]/mwg-rs:Name=New Tag
xmp.mwg-rs:Regions/mwg-rs:RegionList[1]/mwg-rs:Type=Face


You can try it by adding a region in jAlbum and then listing the metadata, which should look like the above. You could maybe use that information to copy the RegionName data to the area that jAlbum uses.

Your coding skill is much better than mine by the way.
sburke

Posts: 21
Registered: 18-Sep-2019
Re: Creation time on videos
Posted: 19-Jan-2020 01:29   in response to: RobM in response to: RobM
 
Thanks very much Rob.

I had no idea jAlbum had that option. I’ll take a look at it.
RobM

Posts: 3,184
Registered: 4-Aug-2006
Re: Creation time on videos
Posted: 19-Jan-2020 11:48   in response to: sburke in response to: sburke
 
Reminder how to List metadata
RobM

Posts: 3,184
Registered: 4-Aug-2006
Re: Creation time on videos
Posted: 19-Jan-2020 11:57   in response to: RobM in response to: RobM
 
Oh, be aware that jAlbum 19.3 beta has revealed a bug at affecting area tagging, see https://jalbum.net/forum/message.jspa?messageID=338234#338234
You might need to revert to jAlbum 19.0.6 if you have a problem on your OS.
jGromit

Posts: 7,599
Registered: 31-Jan-2006
Re: Creation time on videos
Posted: 23-Jan-2020 15:56   in response to: RobM in response to: RobM
 
Legend
Forum admins
Helpful Answer
Correct Answer

Point your RSS reader here for a feed of the latest messages in all forums