-
Notifications
You must be signed in to change notification settings - Fork 53
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Filesize #9
Comments
Hi) May be it's just bit-rate setting issue. Can you attach sample 11MB file? |
Here's a link to the file: I think you are right, I'm just testing a few more options (changing qp_min and qp_max, and desired_frame_bytes, vbv_size_bytes) and I'm able to get it down to ~2 MB with your libraries without a huge quality loss. I'm not entirely sure how to go about setting these flags though, do you have any suggestions that might be sorta similar to "fast" / "slow" profiles? |
Yep, looks like it. ffmpeg -i minih264-output.mp4 minih264-ffmpeg.mp4 With h264enc_x64 -kbps6849 minih264_1920x1080.yuv out.264 I'm able to produce comparable size. So I adjust vbv buffer size to 2 seconds based on kbps:
And now quality is comparable. Other things to adjust for performance/quality is run_param.encode_speed and create_param.temporal_denoise_flag. |
Hey Lieff, thanks for this library and
minimp4
, I'm compiling them to WASM for the web here using Emscripten and it's working well.Something that came up is a filesize concern. I did a quick test with 30 1920x1080 frames of Big Buck Bunny and the resulting MP4 is 11MB (gop=20, speed=0, qp_min=10, qp_max=10). But, using that output MP4, running default
ffmpeg -i vid.mp4 vid2.mp4
produces a 181KB file. Is there something I might be doing wrong in minih264 that would produce such high file sizes compared to ffmpeg's default encoders?The text was updated successfully, but these errors were encountered: