androidtool-mac icon indicating copy to clipboard operation
androidtool-mac copied to clipboard

Can't record video

Open servel333 opened this issue 7 years ago • 8 comments

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

servel333 avatar Aug 03 '16 19:08 servel333

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

servel333 avatar Aug 03 '16 19:08 servel333

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

hopperd avatar Aug 08 '16 18:08 hopperd

@servel333 workaround works fine...

telemakhos avatar Aug 15 '16 15:08 telemakhos

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

servel333 avatar Aug 17 '16 13:08 servel333

I have the same problem please we need solution

hataab avatar Jan 20 '17 02:01 hataab

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.

fspacerpg avatar Mar 19 '17 04:03 fspacerpg

Same problem me too.

kazimdsaidul avatar Sep 14 '18 12:09 kazimdsaidul

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

jenskuhrjorgensen avatar Nov 19 '19 15:11 jenskuhrjorgensen