Skip to content
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

Mpeg 4 file size #9

Closed
mancda opened this issue Feb 8, 2024 · 3 comments
Closed

Mpeg 4 file size #9

mancda opened this issue Feb 8, 2024 · 3 comments

Comments

@mancda
Copy link

mancda commented Feb 8, 2024

Is there a way to reduce the size of the mpeg4 file created by StartRecordingAsync ? I have set the resolution size to the lowest the camera will support but it is still large.

Thanks for your help

@janusw
Copy link
Owner

janusw commented Feb 8, 2024

Things that come to mind:

  • Reduce the frame rate.
  • Reduce the bitrate.
  • Use a different video format.

Note that all of this is currently hardcoded in StartRecordingAsync (on Android):

mediaRecorder.SetOutputFormat(OutputFormat.Mpeg4);
mediaRecorder.SetOutputFile(file);
mediaRecorder.SetVideoEncodingBitRate(10000000);
mediaRecorder.SetVideoFrameRate(30);

@janusw
Copy link
Owner

janusw commented Feb 9, 2024

This issue is very similar to #8.

@janusw
Copy link
Owner

janusw commented Feb 22, 2024

Fixed via #11.

@janusw janusw closed this as completed Feb 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants