alexheretic / ab-av1

AV1 re-encoding using ffmpeg, svt-av1 & vmaf.
MIT License
483 stars 30 forks source link

How to set audio bitrate when using auto-encode? #184

Closed SamTheRuby closed 9 months ago

SamTheRuby commented 9 months ago

Hi quick question, If I have a command that looks like this: ab-av1.exe auto-encode --input "%%f" --encoder libx265 --preset slow --min-vmaf !minVmaf! --max-encoded-percent !maxEncodedPercent! --min-crf 5 --max-crf 24 --thorough --crf-increment 0.5 --acodec libopus

where would I specify the audio bitrate if I want to use opus at 192kbps with vbr on?

alexheretic commented 9 months ago

You can do this using --enc to submit the ffmpeg option.

SamTheRuby commented 9 months ago

how do I specify 2 commands such as b:a=192k and vbr on? what is the proper syntax?

alexheretic commented 9 months ago

You can use --enc multiple times to specify multiple ffmpeg options.

SamTheRuby commented 9 months ago

You can use --enc multiple times to specify multiple ffmpeg options.

That worked, thanks!