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

.avi a little bit heavy #5657

Open
toto6976 opened this issue Dec 12, 2024 · 1 comment
Open

.avi a little bit heavy #5657

toto6976 opened this issue Dec 12, 2024 · 1 comment

Comments

@toto6976
Copy link

hi,
currently I use the command "scrcpy --record=file1.mp4". The files are a bit heavy. Is there a way to have smaller files?

@rom1v
Copy link
Collaborator

rom1v commented Dec 12, 2024

Encoding is performed by the device. The bit rate is by default requested to 8Mbps (but the encoder decides depending on frame complexity).

Since it's live (hardware) encoding, it's not the most efficient.

For a better quality per size ratio, I suggest to record with a high quality (scrcpy --record=file.mp4 -b16M), then reencode with ffmpeg more slowly. For example:

In H264:

ffmpeg -i file.mp4 -c:v libx264 -qp 25 output.mp4

In AV1:

ffmpeg -i file.mp4 -c:v libsvtav1 -preset 7 -crf 35 -c:a copy output.mp4 

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