镜像站点 · 本页由第三方 GitHub 只读镜像提供,非 GitHub 官方站点,不接受任何登录或凭据输入。前往 github.com
Skip to content

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

Description

@tewbie

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))

Activity

  1. mykola-mokhnach commented on Aug 7, 2023

    @mykola-mokhnach
    Contributor

    Duplicate of appium/appium#17087 ?

  2. tewbie commented on Aug 8, 2023

    @tewbie
    Author

    Duplicate of appium/appium#17087 ?

    I have tried to set the videoType. Whether it is libx264 or h264, the output mp4 file still cannot be opened.

  3. tewbie commented on Aug 8, 2023

    @tewbie
    Author

    appium.log

    This is the log at runtime, hope it can help.

  4. tewbie commented on Aug 9, 2023

    @tewbie
    Author

    I tried it on my Mac and the video plays.But in the Windows environment, the output video file still cannot be played.

  5. reopened this on Aug 9, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions