0 Members and 1 Guest are viewing this topic.
ffmpeg -i input.mp4 -c:v libx265 -crf 21 -preset slow -an output.mkv
Code: [Select]ffmpeg -i input.mp4 -c:v libx265 -crf 21 -preset slow -an output.mkvYou can vary the value of the crf parameter. Smaller equals better quality (but bigger file size). I've found values between 20 and 23 a good compromise in terms of quality / size ratio.
Quote from: if_then_else on February 20, 2024, 12:19:09 AMCode: [Select]ffmpeg -i input.mp4 -c:v libx265 -crf 21 -preset slow -an output.mkvYou can vary the value of the crf parameter. Smaller equals better quality (but bigger file size). I've found values between 20 and 23 a good compromise in terms of quality / size ratio.where exactly do i change the crf value in handbrake ?thx u
Quote from: wordgroove on February 20, 2024, 12:41:34 AMQuote from: if_then_else on February 20, 2024, 12:19:09 AMCode: [Select]ffmpeg -i input.mp4 -c:v libx265 -crf 21 -preset slow -an output.mkvYou can vary the value of the crf parameter. Smaller equals better quality (but bigger file size). I've found values between 20 and 23 a good compromise in terms of quality / size ratio.where exactly do i change the crf value in handbrake ?thx uOn the "Video" tab there is a slider for "Quality" that goes from 51 "Lower Quality" to 0 "Placebo Quality." I dunno if that is direct 1-1 of the ffmpeg "crf" value but I think it is. There is also an option for avg bitrate. That might work better for your application since you have a desired file size you can just select that based on the file length and desired final size. With the Quality slider you might have to adjust and redo several times to get the filesize/quality you want.