FFmpeg
lossless cut video
ffmpeg -i video.mp4 -codec: copy -ss 00:00:00 -t 00:00:30 output.mp4
VP9 (webm)
ffmpeg.exe -i "in.mov" -speed 2 -c:v libvpx-vp9 -b:v 4M "out.webm"
macOS GPU acceleration
ffmpeg -i in.mp4 -c:v h264_videotoolbox -c:a copy -vf scale=1280:720 -b:v 2000k out.mp4
to HLS
ffmpeg -i video.mp4 -codec: copy -start_number 0 -hls_time 10 -hls_list_size 0 -f hls output/output.m3u8
FLAC to ALAC (https://www.reddit.com/r/AppleMusic/comments/wnrsc1/what_is_a_good_flac_to_alac_converter/)
ffmpeg -i track.flac -acodec alac track.m4a
Batch cmd
FLAC to ALAC
for f in *.flac; do ffmpeg -i "$f" -acodec alac "${f%.flac}.m4a"; done