Skip to content

Instantly share code, notes, and snippets.

@parnexcodes
Last active February 13, 2025 23:15
Show Gist options
  • Save parnexcodes/601df332dd06effea254be38132b9c61 to your computer and use it in GitHub Desktop.
Save parnexcodes/601df332dd06effea254be38132b9c61 to your computer and use it in GitHub Desktop.
Note : These are the settings i wrote by observing the Mediainfo of RARBG Encodes , these might not be 100% identical to RARBG Encodes.
These are FFMPEG Settings.
See comment below to see the code
@zaZay1991
Copy link

The -vn flag specifies only audio should be encoded. Should be removed. I think the following should be a bit closer to RARBG/ION10 settings, but welcome any improvement:

1080p 
$ ffmpeg -i input.mkv -ac 6 -ar 48000 -ab 224k -c:a aac -codec:v libx264 -pix_fmt yuv420p -b:v 2500k -vf "scale=1920:trunc(ow/a/2)*2" output.mp4

720p 
$ ffmpeg -i input.mkv -ac 6 -ar 48000 -ab 224k -c:a aac -codec:v libx264 -pix_fmt yuv420p -b:v 1500k -vf "scale=1280:trunc(ow/a/2)*2" output.mp4

480p $ ffmpeg -i input.mkv -ac 2 -ar 48000 -ab 256k -c:a aac -codec:v libx264 -pix_fmt yuv420p -b:v 1100k -vf "scale=720:trunc(ow/a/2)*2" output.mp4

Do you have RARBG x265 encoding installed?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment