To ensure safety and security, we need some special tools to edit audio or video metadata. Further, video tags allow you to arrange and manage files easily, plus sort and search the target video file promptly. Most importantly, video tags give information about your video to Google search and YouTube, such as your video's category, topic, note boundaries, and more. Further, video tags are contemplated as an important ranking factor in algorithm and YouTube's search. The video tag includes one or more tags with various video sources, and the browser will select the source it supports.ĭo you know why to use these tags? The video tags are illustrative keywords that can add to the video to help viewers search the content. The tag lets you insert video content or a media player in a document, for example, to embed a movie clip or other different video streams. Should be a comment but I don't have enough rep.Part 2: What is Video Tag, and why should you use it? The example works under both Linux and Windows. The example also shows how the exiftool command can include variables, e.g. %50b will create a new marker for every 2% of files processed by exiftool. The progress bar will appear in the frame of the window in which exiftool is running. $exifdata = invoke-expression $exifargs | ConvertFrom-Json $exifargs = 'exiftool -json -d %Y%m%dT%H%M%S%z -Model -DateTimeOriginal -ext jpg -progress:%50b -r ' + $sourcedir Rather than rework your example, the code below is an extract from working code: $sourcedir = 'fewphotos' (Note: For this feature to function correctly on Mac/Linux, stderr must go to the console.) May be combined with the normal -progress option to also show the progress count in console messages. In the string, %f represents the file name, %p is the progress as a percent, %r is the progress as a ratio, %#b is a progress bar of width "#" (20 characters if "#" is omitted), and %% is a % character. If no TITLE is given, a default TITLE string of "ExifTool %p%%" is assumed. progress:), the console window title is set according to the specified TITLE string. When combined with the -if option, the total count includes all files before the condition is applied, but files that fail the condition will not have their names printed. Implies the -v0 option, causing the names of processed files to also be printed when writing. Without a colon, the -progress option adds a progress count in brackets after the name of each processed file, giving the current file number and the total number of files to be processed. You can add -Recurse to Get-ChildItem $FolderPath -Filter *.* | so it would be Get-ChildItem $FolderPath -Filter *.* -Recurse | to look at all files in all - to show progress, you can use the 'progress' feature of exiftool as documented in the exiftool 'pod' Or you can change it to Write-Host "$_" if you only want the file name. Obviously you can remove the Write-Host "$FileName" (file path and name) if you just want a list of coordinates. # Convert them to Degrees Minutes Seconds Ref # Read your desirered metadata, if it doesn't contain any, say NONE # Get the file name and path, write it out to screen Get-ChildItem $FolderPath -Filter *.* | where | It's not the tidiest, but it's self explanatory: cls Using and answers, I came up with the following to run through all files in a folder. Write-host $n, " " $photo.CreateDate, $photo.GPSLatitude, $photo.GPSLongitude $data = (exiftool -if '$gpsdatetime' -s -s -s -json -ext jpg -filename -FileTypeExtension -Directory -CreateDate -GPSDateTime -GPSLatitude -GPSLongitude -n -r $photoYear ) | ConvertFrom-Json Only at the end does it give a summary: # $photoYear is the root folder with the images One little thing: this exiftool option set gives no "feedback" when running. Here's the key snippets of the code (below). As I became more confident with JSON that toolset became more obvious for me. I have used it before and it's excellent. I will try Exiftool to see if it's easier. In-camera value says -37.8622 and taken at 10:42:10 local, so happy with that, including the '-' for South # So final latitude is 37 deg 51 min 43.92 sec S This is a subset easy to copy in GpsLongitude for the other one :-) $('GpsLatitude').Value.Value $image = New-Object -ComObject Wia.ImageFile # Create an ImageFile object and load an image file To help others, here's what I discovered: # Based on answer from (above) Thanks to everyone, particularly I've learned a lot and managed to work out how to extract my exact values, including the important N,S,E,W.
0 Comments
Leave a Reply. |