Skip to content

Instantly share code, notes, and snippets.

@mngyuan
Created October 18, 2020 22:27
Show Gist options
  • Save mngyuan/12bdf1990333495813e1c6188a6a542d to your computer and use it in GitHub Desktop.
Save mngyuan/12bdf1990333495813e1c6188a6a542d to your computer and use it in GitHub Desktop.
Download video and transcode to macOS friendly HEVC h265 mp4
# usage: ./download.sh example-file.m3u8 output-name
# credit @brandur see https://brandur.org/fragments/ffmpeg-h265
ffmpeg -i "$1" -c:v libx265 -crf 35 -preset fast -tag:v hvc1 -c:a eac3 -b:a 224k $2.mp4
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment