Last active
February 18, 2024 13:05
-
-
Save jessearmand/1fcbe142bf4b21685032868631c6b05b to your computer and use it in GitHub Desktop.
Convert HDZero DVR ts format to mp4 with H265 codec
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
#!/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