How to compress mp4 in one command with ffmpeg

94 , Leave a Comment
With ffmpeg, we can create a free video compresser on our local machine. First, create a shell function on you .bashrc or .zshrc: function mp4-compress() { filename=$(basename -- "$1") extension="${filename##*.}" name="${filename%.*}" ffmpeg -i "$1" -vcodec libx265 -crf 2…

ffmpeg common commands

441 Leave a Comment
Download video with .m3u8 link Download full video ffmpeg -i "https://this-is-your-url-of.m3u8" -c copy -bsf:a aac_adtstoasc "output.mp4" Download specific time range: ffmpeg -ss 04:05:25 -to 04:15:00 -i "https://this-is-your-url-of.m3u8" -c copy -bsf:a aac_adtstoasc "output-c…