Scrcpy: Hotkeys for record screen

Created on 25 Mar 2019  路  4Comments  路  Source: Genymobile/scrcpy

To record a video I need to run the command:
scrcpy -r file.mkv
This method is inconvenient if the scrcpy is already running and I need to make a video. I will have to return to the console, close the program, enter the command. After recording the video, I will have to close the scrcpy and reopen it without parameters.

I would like to be able to manage the recording of video from the scrcpy, namely

  1. Start recording
  2. Pause recording
  3. Stop recording

For this, I can use third-party software as OBS, but when I test mobile applications in the scrcpy, switching to between different windows is distracting.

feature request record

Most helpful comment

I think you should not ask the user to manually set the file name. It can be automatically generated. For example:
"Scrcpy screen record 2019-03-25 at 7.30.40.mkv"
I think we should add a new parameter to specify the directory for recorded videos.
For example:
scrcpy --record-dir ~/android_videos

All 4 comments

The problem for this is UX: how do you pass the filename when you record at any time (possibly several times per session)?

I think you should not ask the user to manually set the file name. It can be automatically generated. For example:
"Scrcpy screen record 2019-03-25 at 7.30.40.mkv"
I think we should add a new parameter to specify the directory for recorded videos.
For example:
scrcpy --record-dir ~/android_videos

Any news regarding this request?

Ref: https://github.com/Genymobile/scrcpy/issues/1186#issuecomment-592386916

Recording may only start on new keyframe (it may not just be "passive", record where you are). To start recording in the middle of the stream, the client must request to the device to generate a new keyframe (typically, just restart the encoding like on device rotation), then ignore all frames received before that keyframe (+ the config packet).

Was this page helpful?
0 / 5 - 0 ratings

Related issues

singleNeuron picture singleNeuron  路  3Comments

YurieCo picture YurieCo  路  4Comments

tonyyang924 picture tonyyang924  路  4Comments

BloodPHamtOm picture BloodPHamtOm  路  3Comments

SamuelBlickle picture SamuelBlickle  路  3Comments