mortenjust / androidtool-mac

One-click screenshots, video recordings, app installation for iOS and Android
Apache License 2.0
5.43k stars 325 forks source link

Can't record video #99

Open servel333 opened 8 years ago

servel333 commented 8 years ago

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

/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...
servel333 commented 8 years ago

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
hopperd commented 8 years ago

I had the same issue. The workaround provided by @servel333 works but it doesn't work from the App itself.

telemakhos commented 8 years ago

@servel333 workaround works fine...

servel333 commented 8 years ago

Full disclosure, I found that code on the Wiki Troubleshooting page

hataab commented 7 years ago

I have the same problem please we need solution

fspacerpg commented 7 years ago

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.

kazimdsaidul commented 6 years ago

Same problem me too.

jenskuhrjorgensen commented 4 years ago

@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.