Skip to content

Instantly share code, notes, and snippets.

View T4ng10r's full-sized avatar

T4ng10r

  • Poland
View GitHub Profile
@T4ng10r
T4ng10r / timestamp_movie.sh
Last active November 5, 2017 16:26
Adding timestamp to movies with ffmpeg, Assumption is that Verdana.ttf is in the same folder (as font file), creation time in file metadata is writen in GMT+0 and expected timestamp in movies should be in local time.
#!/bin/bash
#-vx
TARGET_VCODEC='libx264'
TARGET_ACODEC='aac'
OUTPUT_FORMAT="-hide_banner -c:a $TARGET_ACODEC -c:v $TARGET_VCODEC -ac 2\
-r 30 -strict -2 -s 1280x720 -ar 48000 -profile:v high422 -pix_fmt yuvj422p -video_track_timescale 60000 -y"
which ffprobe > /dev/null || (echo "Lack of 'ffprobe'. Install it";exit)
which ffmpeg > /dev/null || (echo "Lack of 'ffmpeg'. Install it";exit)