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

Support screen recording #116

Closed
desugar-64 opened this issue Apr 6, 2018 · 9 comments
Closed

Support screen recording #116

desugar-64 opened this issue Apr 6, 2018 · 9 comments

Comments

@desugar-64
Copy link

Feature request: Support screen recording

@meiser79
Copy link

duplicate of #21

@rom1v rom1v closed this as completed Apr 10, 2018
@rom1v rom1v added the record label Nov 9, 2018
@rom1v
Copy link
Collaborator

rom1v commented Nov 11, 2018

This is implemented in v1.5:

scrcpy --record file.mp4

🎉

@Noob567
Copy link

Noob567 commented Nov 23, 2018

And how to stop screen recording?

@rom1v
Copy link
Collaborator

rom1v commented Nov 23, 2018

@Noob567 It stops when you close scrcpy.

@KeronCyst
Copy link

In the above code where it says file.mp4, could file be made dynamic (like maybe *.mp4 where the filename becomes a timestamp) to prevent accidental overwriting? That'd rock!

@KeronCyst
Copy link

Also, is it possible for non-microphone audio recording to be added?

@lae
Copy link

lae commented Feb 2, 2019

@KeronCyst you can do this in bash.

scrcpy --record $(date +%s).mp4

There's also the audio branch but I haven't been able to get it working myself.

@KeronCyst
Copy link

Sorry, by "bash" do you mean I can just enter that exactly as you put?

@lae
Copy link

lae commented Feb 3, 2019

In a terminal, yes.

For context, the default shell in most Linux distributions is usually bash, which has its own scripting syntax. What I wrote basically runs the date +%s command in a subshell (you can think of it as an embedded command), which gives you the current timestamp (the date command can be used to output any date format, check out date --help), then feeds it into the original shell, e.g. scrcpy --record "movie-$(date +%s).mp4" turns into scrcpy --record "movie-1549232396.mp4".

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

6 participants