![]() mediaDates.sh '/run/media/100GOPRO' ' 3 years 6 months 11 days 7 hours 5 minutes' New_date=`date -d "$old_date $date_change"` įormated_date=`date " %Y:%m:%d %H:%M:%S %Z" -d "$new_date"` Įxiftool "-AllDates=$formated_date" "-TrackCreateDate=$formated_date" "-TrackModifyDate=$formated_date" "-MediaCreateDate=$formated_date" "-MediaModifyDate=$formated_date" -overwrite_original "$image" Īfter we extracted the script to a folder we were able to use it as follows: Old_date=`exiftool -d "%a %b %d %T %Z %Y" -CreateDate -S -s "$image"` MediaDates.sh (compressed) (365 downloads)įind "$directory" \( -iname "*.mp4" -o -iname "*.lrv" -o -iname "*.jpg" -o -iname "*.thm" \) -type f -execdir sh -c ' ![]() We usually use Fedora, so we used dnf to install the application with all needed dependencies as follows:Īfter installing exiftool, we used the following script to change the dates and times of the media files using an offset between the camera date and the real date: To update the dates in the produced video and photo files we used the exiftool that is shipped in the perl-Image-ExifTool package. ![]() Due to that, the date and time configuration of the camera was wrong and the resulting video files had wrong metadata information in their EXIF. Recently, we took some videos and pictures with our GoPro camera which was not used for some time and discharged. 25 July 2018 in GNU/Linux tagged date / EXIF / exiftool / GoPro / metadata by Tux ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |