ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
- Install ffmpeg with h265 and h264 libraries
brew install ffmpeg --with-fdk-aac --with-ffplay --with-freetype --with-libass --with-libquvi --with-libvorbis --with-libvpx --with-opus --with-x265 --with-x264
- I want to transcode the video from h265 to h264 and copy the audio stream without re-encoding,
there's multiple streams in the source mkv
ffmpeg -i input.mkv -map 0:v -c:v libx264 -preset slow -crf 22 -map 0:a -c:a copy -strict -2 -c:a aac output.mkv