appium / appium/python-client

appium ios Recording the screen, the saved mp4 file cannot be opened

Open
#900 4 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Python
Stars
1.8k
Forks
570
Avg merge
1d 10h
Merged PRs (30d)
24

Description

The problem

appium ios Recording the screen, the saved mp4 file cannot be opened

Environment

  • Appium version (or git revision) that exhibits the issue:2.0.1
  • Last Appium version that did not exhibit the issue (if applicable):
  • Desktop OS/version used to run Appium: windows
  • Node.js version (unless using Appium.app|exe):
  • Mobile platform/version under test:ios
  • Real device or emulator/simulator:device
  • Appium CLI or Appium.app|exe:

Details

Use appium to connect tidevice to run in windows environment
The mp4 file saved by using the start_recording_screen method to record the screen cannot be opened

Link to Appium Logs

Create a GIST which is a paste of your full Appium logs, and link them here.

Code To reproduce issue

options = {
'videoQuality': 'low',
'timeLimit': 600,
}
self.driver.start_recording_screen(**options)
sleep(3)
recording_data = self.driver.stop_recording_screen()
with open(r'F:\recorded_video.mp4', 'wb') as file:
file.write(base64.b64decode(recording_data))

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the Python client entry points start_recording_screen and stop_recording_screen, then reproduce the iOS recording flow through tidevice on Windows using the provided options and save path. Check the Appium logs and recording_data handling; done means the saved recorded_video.mp4 can be opened successfully.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
mobile-dev
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.