Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
...
#ffmpeg -i "${INPUT}" -vf drawtext="fontsize=30:fontcolor=yellow:text='%{pts\:localtime\:${EPOCH}}':x=(w-text_w) - 10:y=(h-text_h) - 10" -vcodec libx265 -crf 28 "${OUTPUT}"

ffmpeg -i "${INPUT}" -vf drawtext="fontsize=30:fontcolor=white:text='%{pts\:localtime\:${EPOCH}}':x=(w-text_w) - 10:y=10" -crf 28 "${OUTPUT}"
...

Joining Video Files

Code Block
echo file DIVE_2_1_GH010089.corrected.MP4 >  mylist.txt 
echo file DIVE_2_2_GH020089.corrected.MP4 >>  mylist.txt 

ffmpeg -f concat -i mylist.txt -c copy output.mp4


Get Video File Information

...

ScriptDescription 
This script extracts the creation_time, removes the timezone and assigns the local timezone. It then converts this back to UTC and write it back to the video. This fixes issue with GoPro Videos.
Adds Timestamp in the top right hand corner of the video.

Sets the time to the local time specified and stores in the video as UTC.

USAGE: ./setTime.sh video.mp4 '2012-01-01T12:01:01'