damonkohler / sl4a

SL4A brings scripting languages to Android by allowing you to edit and execute scripts and interactive interpreters directly on the Android device.
Apache License 2.0
2.42k stars 804 forks source link

recorderCaptureVideo results in blank video #208

Open damonkohler opened 9 years ago

damonkohler commented 9 years ago

From @GoogleCodeExporter on May 31, 2015 11:27

What device(s) are you experiencing the problem on?

Samsung Captivate

What firmware version are you running on the device?

2.1

What steps will reproduce the problem?
1. use recorderCaptureVideo in a python script
2. ???
3. don't profit?

What is the expected output? What do you see instead?

The expected output was a video saved in the location I passed into the 
function.  The file shows up once recording is finished, but it has no video, 
only audio.

What version of the product are you using? On what operating system?

The latest SL4A release _r2, I believe and Python 2.6.2.  Android 2.1 is the OS.

Please provide any additional information below.

Here's the script:

import android
droid = android.Android()
droid.recorderCaptureVideo("sdcard/videos/testvid.3gp", 5, 0)

Original issue reported on code.google.com by evanbooth@gmail.com on 16 Sep 2010 at 8:15

Copied from original issue: damonkohler/android-scripting#435

damonkohler commented 9 years ago

From @GoogleCodeExporter on May 31, 2015 11:27

I forgot to mention that cameraCapturePicture and 
startInteractiveVideoRecording both work just fine.

Original comment by evanbooth@gmail.com on 16 Sep 2010 at 8:18

damonkohler commented 9 years ago

From @GoogleCodeExporter on May 31, 2015 11:27

On my T-Mobile Touch G2 (aka HTC Hero) startInteractiveVideoRecording ignores 
the path argument completely (it records to \100MEDIA\VIDEOnnnn.g3p), 
cameraCapturePicture honores the path, but produces a completely black 1024x768 
picture. cameraInteractiveCapturePicture works, sort of, but is fixed to a 
640x480 (i.e. low) resulution. 

(SL4A V4, Python 2.6.2)

Original comment by willison...@googlemail.com on 25 Dec 2010 at 11:23