Target size ignores audio streams
Encoding a video with a target size of 8mB results in slightly larger than the target file size if it has an audio stream. Original size: 9,115KB With sound: 8,410KB (over 8mB) Without sound: 8,162KB (perfectly under 8mB)
It does have logic to take audio into account, but it doesn't work in all situations. What codec and audio encoding settings are you using?
It does have logic to take audio into account, but it doesn't work in all situations. What codec and audio encoding settings are you using?
MP4 H.264 Preset: Very Slow Web optimized Align A/V start Target Size: 8MB 2-pass encoding Constant framerate: Same as source
Audio codec: AAC Sample rate: Same as source Passthrough if possible
Edit: Looks like it's because of audio passthrough, would it be possible to account for that?
Maybe. It does try to calculate the audio size when using audio passthrough, but it could be that the bitrate information isn't available or it's using quality-based encoding. Check the encode log and you should see some messages that start with "Calculating bitrate". Can you paste that portion over here?
Ahh, I see. I have some code that runs to determine passthrough and audio encoder auto-fallback, but that's not running where we calculate audio size. I'll work on a fix.