Created
May 9, 2025 18:33
-
-
Save PythonCoderAS/a2561da1d2be01da64e6e80fe0c47789 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| for file in huge/*.mp4 | |
| do | |
| ffprobe -loglevel error -show_entries stream_tags:format_tags -of json "$file" | jq -r '.format.tags.creation_time' | sed -E 's/\-0(4|5):00//g' | sed -E 's/[T:\.\-]/ /g' | read year month day hour minute second _ | |
| [[ "$year" = "null" ]] && { echo "Could not parse year from $file, got null, aborting"; break }; mv -vi $file "$(dirname "$file")"/"Dailies $year-$((month))-$((day)) $((hour))-$((minute))-$((second)).mp4" | |
| done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment