Skip to content

Instantly share code, notes, and snippets.

@jessearmand
Last active February 18, 2024 13:05
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jessearmand/1fcbe142bf4b21685032868631c6b05b to your computer and use it in GitHub Desktop.
Save jessearmand/1fcbe142bf4b21685032868631c6b05b to your computer and use it in GitHub Desktop.
Convert HDZero DVR ts format to mp4 with H265 codec
#!/usr/bin/env sh
# Check if exactly 2 arguments are given
if [ "$#" -ne 2 ]; then
echo "Usage: $0 input_filename.ts output_filename.mp4"
exit 1
fi
input_file="$1"
output_file="$2"
ffmpeg -i "$input_file" -c:v libx265 -vf "fps=fps=90" -c:a aac "$output_file"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment