appium / appium/java-client

can not record video on real device iOS on my mac m1

Open
#1,502 6 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Java
Stars
1.3k
Forks
752
Avg merge
6d 21h
Merged PRs (30d)
8

Description

The problem

when try to record video in real device iOS
then i reinstall also ffmpeg by
brew install ffmpeg

the video is recorded by corrupted 0 byte
it appeared issue
unknown server-side error occurred while processing the command. Original error: ‘ffmpeg’ binary is not found in PATH. Install it using ‘brew install ffmpeg’. Check https://www.ffmpeg.org/download.html 1 for more details.

Environment

info AppiumDoctor ✔ The Node.js binary was found at: /opt/homebrew/bin/node
info AppiumDoctor ✔ Node version is 16.4.1
info AppiumDoctor ✔ Xcode is installed at: /Applications/Xcode.app/Contents/Developer
info AppiumDoctor ✔ Xcode Command Line Tools are installed in: /Applications/Xcode.app/Contents/Developer
info AppiumDoctor ✔ DevToolsSecurity is enabled.
info AppiumDoctor ✔ The Authorization DB is set up properly.
info AppiumDoctor ✔ Carthage was found at: /opt/homebrew/bin/carthage. Installed version is: 0.38.0
info AppiumDoctor ✔ HOME is set to: /Users/mohamedgamal
info AppiumDoctor ✔ ANDROID_HOME is set to: /Users/mohamedgamal/Library/Android/sdk
info AppiumDoctor ✔ JAVA_HOME is set to: /Library/Java/JavaVirtualMachines/jdk-16.0.1.jdk/Contents/Home
info AppiumDoctor Checking adb, android, emulator
info AppiumDoctor 'adb' is in /Users/mohamedgamal/Library/Android/sdk/platform-tools/adb
info AppiumDoctor 'android' is in /Users/mohamedgamal/Library/Android/sdk/tools/android
info AppiumDoctor 'emulator' is in /Users/mohamedgamal/Library/Android/sdk/emulator/emulator
info AppiumDoctor ✔ adb, android, emulator exist: /Users/mohamedgamal/Library/Android/sdk
info AppiumDoctor ✔ 'bin' subfolder exists under '/Library/Java/JavaVirtualMachines/jdk-16.0.1.jdk/Contents/Home'
info AppiumDoctor ### Diagnostic for necessary dependencies completed, no fix needed. ###
info AppiumDoctor
info AppiumDoctor ### Diagnostic for optional dependencies starting ###

info AppiumDoctor ✔ opencv4nodejs is installed at: /opt/homebrew/lib. Installed version is: 5.6.0

info AppiumDoctor ✔ ffmpeg is installed at: /opt/homebrew/bin/ffmpeg. ffmpeg version 4.4 Copyright (c) 2000-2021 the FFmpeg developers

info AppiumDoctor ✔ mjpeg-consumer is installed at: /opt/homebrew/lib. Installed version is: 2.0.0
info AppiumDoctor ✔ set-simulator-location is installed
info AppiumDoctor ✔ idb and idb_companion are installed
info AppiumDoctor ✔ applesimutils is installed at: /opt/homebrew/bin/applesimutils. Installed versions are: applesimutils 0.9.2
info AppiumDoctor ✔ ios-deploy is installed at: /opt/homebrew/bin/ios-deploy. Installed version is: 1.11.4
info AppiumDoctor ✔ bundletool.jar is installed at: /Users/mohamedgamal/Library/Android/sdk/bundle-tool/bundletool.jar
info AppiumDoctor ✔ gst-launch-1.0 and gst-inspect-1.0 are installed at: /opt/homebrew/bin/gst-launch-1.0 and /opt/homebrew/bin/gst-inspect-1.0

  • Desktop OS/version used to run Appium: mac m1
  • Node.js version (unless using Appium.app|exe):
  • Npm or Yarn package manager:
  • Mobile platform/version under test: iPhone 12 -ios 14.7

Link to Appium logs

Code To Reproduce Issue

	((CanRecordScreen) driver).startRecordingScreen(  new IOSStartScreenRecordingOptions().withVideoType("h264").enableForcedRestart());

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 at the startRecordingScreen entry point shown in the issue and trace the iOS recording path and its ffmpeg lookup. The report names no source file or test, so first reproduce it with the supplied iPhone 12 and Mac M1 environment while capturing Appium logs. Done means recording produces a usable non-zero video without the binary-not-found error.

Written by the indexing model from the issue text.

Assessment

Tech stack
ios, java, macos
Domain
mobile, testing
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.