Skip to content

Instantly share code, notes, and snippets.

@tarcisiozf
Created November 24, 2020 21:44
Show Gist options
  • Save tarcisiozf/1542f88d28babd509335ad5ff285bf17 to your computer and use it in GitHub Desktop.
Save tarcisiozf/1542f88d28babd509335ad5ff285bf17 to your computer and use it in GitHub Desktop.
Video Utils
#!/bin/bash
VIDEO_ADDRESS=$1
OUTPUT_FILE=$2
ffmpeg -i "${VIDEO_ADDRESS}" -bsf:a aac_adtstoasc -vcodec copy -c copy -crf 50 "${OUTPUT_FILE}"
#!/bin/bash
INPUT=$1
OUTPUT=$2
ffmpeg -i "${INPUT}" -c:v libx265 -crf 28 "${OUTPUT}"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment