[
{
"Name": "libaom (Two-pass)",
"Description": "2-pass, In order to create more efficient encodes when a particular target bitrate should be reached.",
"First_pass": "-pass 1 -an -sn -c:v libaom-av1 -b:v 2M -usage good -cpu-used 4 -row-mt 1 -tiles 2x2 -g 250 -keyint_min 250 -pix_fmt yuv420p -f null",
"Second_pass": "-pass 2 -c:v libaom-av1 -b:v 2M -usage good -cpu-used 4 -row-mt 1 -tiles 2x2 -g 250 -keyint_min 250 -pix_fmt yuv420p -map 0:v? -map_chapters 0 -map 0:s? -c:a: libopus -compression_level 5 -map 0:a:? -map_metadata 0",
"Supported_list": "",
"Output_extension": "mkv"
}
]
Using the provided code block as reference, create a videomass preset that converts a video file to av1 with close to lossless quality while also reducing file size. make sure it is two-pass.
Assistant
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.
Here is an example of a two-pass Videomass preset that converts a video file to AV1 with close to lossless quality while also reducing file size using the libvaom encoder:
Changed the name to "libaom (Lossless-ish)" to reflect the goal of maintaining close to lossless quality.
Changed the description to "2-pass, In order to create more efficient encodes while maintaining close to lossless quality."
Changed the bitrate (-b:v) to 0 and added the constant rate factor (-crf) with a value of 18. The CRF value can be adjusted to achieve the desired balance between file size and quality. A lower CRF value will result in higher quality but larger file size, while a higher CRF value will result in lower quality but smaller file size.
Removed the -usage option, as it is not necessary for achieving close to lossless quality.
Note that this preset is for Videomass, a video encoding tool, and it is not compatible with other video encoding tools.
Also note that achieving true lossless compression with AV1 is not possible, but this preset should get you close.
Please keep in mind that encoding with a CRF of 18 will take longer time to encode and the file size will be bigger than the default CRF of 28.
Also, this is just a example you may need to adjust the CRF value and other parameters depending on your source file and desired outcome.