Reference: https://www.bluebill.net/timestamps.html
Table of Contents |
---|
Fixing GoPro Video Creation Time
Check Creation Time
Code Block |
---|
./correctTime.sh DIVE_2_1_GH010089.MP4 DIVE_2_1_GH010089.MP4 Video Create Time (Zulu): 2023-06-13T19:12:11.000000Z Video Create Time (local): 2023-06-13T15:12:11 -0400 (EDT) -------- Video Create Time (without timezone):2023-06-13T19:12:11 Video Create Time (to local):2023-06-13T19:12:11 -0400 (EDT) -------- Video Create Time (to UTC):2023-06-13T23:12:11.000000Z To update the metadata use --update |
Set File Creation/Modified Date
Code Block |
---|
touch -t [[CC]YY]MMDDhhmm[.ss] <file>
ex:
touch -t 202306131924 Dive2.mp4
|
...
In the above output we see that the local time was recorded as Zulu time. The local time was 19:12:11.
Fix Creation Time
Code Block |
---|
./correctTime.sh DIVE_2_1_GH010089.MP4 --update |
Verify Creation Time
Code Block |
---|
./correctTime.sh DIVE_2_1_GH010089.corrected.MP4
DIVE_2_1_GH010089.corrected.MP4
Video Create Time (Zulu): 2023-06-13T23:12:11.000000Z
Video Create Time (local): 2023-06-13T19:12:11 -0400 (EDT)
--------
Video Create Time (without timezone):2023-06-13T23:12:11
Video Create Time (to local):2023-06-13T23:12:11 -0400 (EDT)
--------
Video Create Time (to UTC):2023-06-14T03:12:11.000000Z
To update the metadata use --update |
Add Timestamp to Video
Get Video File Information
Code Block |
---|
ffprobe -loglevel 0 -print_format json -show_format -show_streams "${INPUT}" | jq -r .format.tags.creation_time |
...