androidtool-mac
androidtool-mac copied to clipboard
Can't record video
Phone: Samsung Galaxy S4 Verizon (SCH-I545) Android version: 5.0.1 Developer mode: enabled USB Debugging: enabled Android Tool Version 1.66 (1) OS X El Capitan 10.11.6 (15G31) MacBook Pro (Retina, 15-inch, Late 2013)
Steps to reproduce
- Enable debug, auth computer, etc...
- Connect phone
- Click camera icon
Observed
- Icon changes to red square briefly
- A zero byte file is created in the screenshot directory
- Quicktime opens but shows an error that it can't play the file
Terminal output
/Users/**/Downloads/GoCoinWallet-2016-08-01/AndroidTool.app/Contents/Resources/startRecordingForSerial.sh
Recording from phone...
Main display is 1080x1920 @60.00fps (orientation=0)
Configuring recorder for 1080x1920 video/avc at 3.02Mbps
ERROR: unable to configure video/avc codec at 1080x1920 (err=-1010)
/Users/**/Downloads/GoCoinWallet-2016-08-01/AndroidTool.app/Contents/Resources/postProcessMovieForSerial.sh
###### /Users/**/Downloads/AndroidScreenshots
copying from phone...
cleaning up
Opening file...
This code does work to create a recording:
~/Applications/AndroidTool.app/Contents/Resources/adb shell screenrecord --verbose /sdcard/demo.mp4
(press Ctrl-C to stop)
~/Applications/AndroidTool.app/Contents/Resources/adb pull /sdcard/demo.mp4
I had the same issue. The workaround provided by @servel333 works but it doesn't work from the App itself.
@servel333 workaround works fine...
Full disclosure, I found that code on the Wiki Troubleshooting page
I have the same problem please we need solution
I had the same problem when I ran the tool from the Downloads folder. I moved the app to Applications folder and it worked like a charm. Must be some relative paths not set correctly inside app code.
Same problem me too.
@servel333 I tried to use your solution, but at first it didn't work because i had installed AndroidTool in the root /Applications
. I moved the application to my private user ~/Applications and your script worked. After moving the application the application actually started working too, so like @fspacerpg suggested, it is probably due to some relative paths.