Android :: Video Recording / Source And Encoder Giving Error

Nov 18, 2009

When I add video source and video encoder, it gives error in recoreder.prepare() (prepare failed) while the same code is working only for audio. I am not finding what I am doing wrong.

setContentView(R.layout.camera);
preview=(SurfaceView)findViewById(R.id.surface);
previewHolder=preview.getHolder(); previewHolder.setType(SurfaceHolder.SURFACE_TYPE_PUSH_BUFFERS);
recorder = new MediaRecorder();
String url = "/sdcard/dcim/test.3gp";
camera = Camera.open();
Camera.Parameters parameters = camera.getParameters();
parameters.setPreviewSize(352, 288);
parameters.set("orientation", "portrait");
camera.setParameters(parameters);
recorder.setAudioSource(MediaRecorder.AudioSource.MIC); recorder.setVideoSource(MediaRecorder.VideoSource.CAMERA);
recorder.setOutputFormat(MediaRecorder.OutputFormat.THREE_GPP);
recorder.setOutputFile(url);
recorder.setVideoFrameRate(15);
recorder.setVideoSize(480, 320);
recorder.setAudioEncoder(MediaRecorder.AudioEncoder.AMR_NB); recorder.setVideoEncoder(MediaRecorder.VideoEncoder.H263);
recorder.prepare(); recorder.start(); Thread.sleep(100000);
recorder.stop(); recorder.release();
} catch (Exception e) { e.getMessage(); }

Android :: Video Recording / Source and Encoder giving Error


Android :: Video Camera Recorder - Source And Encoder Lines

May 26, 2009

I've been trying to develop an application for the android 1.5 sdk version that allows the user to simply recorder a video but it has been a long road. I can record audio with the simple example on the android developers website but when I put the VideoSource and the VideoEncoder lines it gives a 100 error that means that the Camera server died. Here is an example of the code.
recorder.setCamera(mCamera); recorder.setAudioSource(MediaRecorder.AudioSource.MIC);
recorder.setVideoSource(MediaRecorder.VideoSource.CAMERA);
recorder.setOutputFormat(MediaRecorder.OutputFormat.THREE_GPP); recorder.setAudioEncoder(MediaRecorder.AudioEncoder.AMR_NB);
recorder.setOutputFile("/sdcard/dcim/Camera/test.3gp");
recorder.setVideoEncoder(MediaRecorder.VideoEncoder.MPEG_4_SP);
recorder.prepare(); recorder.start(); ...

Here is the debug error messages:
05-26 11:37:55.331: INFO/ServiceManager(30): service 'media.audio_flinger' died 05-26 11:37:55.331: INFO/ServiceManager(30): service 'media.player' died 05-26 11:37:55.331: INFO/ServiceManager(30): service 'media.camera' died 05-26 11:37:55.331: WARN/MediaPlayer(690): MediaPlayer server died! 05-26 11:37:55.331: ERROR/MediaPlayer(690): error (100, 0) 05-26 11:37:55.331: WARN/Camera(1462): Camera server died! 05-26 11:37:55.331: WARN/Camera(1462): ICamera died 05-26 11:37:55.341: ERROR/MediaPlayer(690): Error (100,0) 05-26 11:37:55.341: INFO/SONGSEARCH(690): album="The Assassination of Jesse James" 05-26 11:37:55.391: INFO/DEBUG(1485): debuggerd: Apr 21 2009 13:42:23 05-26 11:37:55.401: INFO/ActivityManager(60): Displayed activity org.reccamera.com/.camera: 5276 ms 05-26 11:37:55.421: ERROR/Camera(1462): Error 100 05-26 11:37:55.421: WARN/AudioSystem(60): AudioFlinger server died!

View 2 Replies View Related

Android :: Video Recording - Source Code For Camcorder

Jul 3, 2009

Where can I get source code for camcorder? Also, it would be of much help to me if anyone could post a simple example for video recording.

View 3 Replies View Related

Android :: PV MediaRecorder Native Video Recording Error

Aug 7, 2010

Dear PV engineer: I have try several days for this. We want to add video conference function in PV opencore, so we need to create video capture node in native mode, I try the following code to capture video, My code is like this:

CODE:......................

View 2 Replies View Related

Android : Direct Video Encoder Access

Apr 16, 2009

Does anybody know of a way to directly access the Video Encoders provided by the(android.media.MediaRecorder) API? I'd like to make changes to the raw camera data "before" it gets encoded.

View 4 Replies View Related

Media :: Save Encoded Video Steam From Encoder And Add Custom Composer Engine?

Dec 5, 2009

First, I want to save the encoded video stream from the encoder,And then, the encoder recieves the uncompressed video stream from camera. How can my application recieve the compressed stream from the encoder?

Second, I'd like to add the custom composer engine to media framework(opencore), And then I'll use the already-launched device, HTC Hero and Motrola Droid, etc. The custom composer engine will recieve the video stream from the encoder. And, save the stream using the custom file format. Is it possible add the custome engine using the already-lauched device? If it is posselbe, where can I find the references?

View 2 Replies View Related

Android : Background Is Giving Error

Feb 2, 2010

I dont what to give any background to activity when i leave this propery blank it gives me error, and i have tried using @null as a value but it shows black background.can any one guide how to make it transparent?

View 2 Replies View Related

Android :: Using Merge With Layouts Giving Error For One File

Sep 28, 2010

I am creating a few layouts with the root element being merge. inside the merge element i have a ScrollView containing a TextView. I am getting 2 errors: there is no resource to match the layout_below and layout above names i have put in.I have another layout xml file including very similar components, some of which also reference @id/headingLayout and @id/tabsLayout. Both of these XML layout files do not contain the component with name headingLayout or tabsLayout.Why is it that one layout file has no errors about these references and the other layout file does? What the crap am i doing wrong, the app will build and run like i expect, until i add this merge to another layout?I have even tried copying the xml from the working layout file, to find that it gives the same errors, something must be wrong with my new layout file. I have tried cleaning, rebuilding, opening/closing eclipse..

View 1 Replies View Related

Android :: SQLite Query In Application Giving Error

Sep 30, 2010

Am I going wrong anywhere here ? because this is giving runtime error. application stopped unexpectedly.
I may b wrong in syntax.

CODE:..................

View 1 Replies View Related

General :: Android Kernel Compilation Giving Error

Aug 21, 2013

I am new to android. i am try to compile android kernel 3.4.0 for HTC device.After running cross compile command,

"export CROSS_COMPILE=/home/jharvard/ndk-x86/toolchains/arm-linux-androideabi-4.6/prebuilt/linux-x86/bin/arm-linux-androideabi-"

when I run make clean command "make clean && make mrproper".It shows errors,

/home/jharvard/kernel-code/linux/scripts/gcc-version.sh: line 25: arm-eabi-gcc: command not found
/home/jharvard/kernel-code/linux/scripts/gcc-version.sh: line 26: arm-eabi-gcc: command not found

View 1 Replies View Related

Media : Media Encoder - Can't Use Handbrake - Keep Getting Error With It When Try To Compile Movies To Mp4

Apr 23, 2010

That isn't handbrake. I can't use handbrake. I keep getting a weird error with it when I try to compile my movies to mp4. The devs for handbrake basically said they were sorry but it wont work on my system. Anyway, anyone know of a good program I can use to encode for the droid?

View 2 Replies View Related

APK Files Giving Parse Error?

Jul 9, 2013

I have recently gotten back into developing Android applications. However, every time I try to run an application on my phone now, I get the error message - "Parse Error - There is a problem parsing the package."

Two years ago, I used Eclipse to develop projects, which is what I'm using now. Though, I had to reinstall eclipse and everything else. So it's a new setup but I believe it's the same general setup.

I can put my old .apk files on my phone, and they work fine. If I put any newly created .apk files on my phone, I get the parse error.

I also found that if I compile any OLD projects and then copy those onto my phone, that I get the parse error.

This leads me to believe I've got something set up wrong in Eclipse that my phone isn't liking.

I thought maybe it was the virtual device manager, so I've tried several combinations of virtual devices - 1.5, 2.1, 2.2, 2.3.3 - using any of them still gives the parse error when trying to run the applications on my phone.

By the way, all of these projects work in the emulator running through Eclipse, so I know they work.

View 10 Replies View Related

General :: Open Source App For Call Recording?

Mar 9, 2013

Within all the call recorder app available on the play store, which one has fulfill your needs ? One of them is open source ? I don't know which one to choose and there are no reviews about it...And I heard that a lot of these apps record only mic and not the other voice during the call.

View 7 Replies View Related

General :: Install ROM Onto Phone / Keeps Giving Error

Feb 22, 2014

Lately I have been trying to install a ROM on to my phone, but I cant get the files onto my SD card. Keeps saying, "Cannot copy item. The device has either stopped responding or has been disconnected.". I just rooted the phone about a week ago and figured I would change the ROM. Also tried unblocking the files but got nowhere. Also tried other ROMs, nothing is working. But I can transfer files to and from my SD card with no error.

View 3 Replies View Related

Android :: Smack API Giving Error While Logging Into Tigase Server Setup Locally

Jun 4, 2010

I am currently developing android XMPP client to communicate with the Tigase server setup locally.Before starting development on Android I am writing a simple java code on PC to test connectivity with XMPP server.My XMPP domain is my pc name "mwbn43-1" and administrator username and passwords are admin and tigase respectively.Could anyone please tell me the solution for this problem.I checked the XMPPConnection.java file in the Smack API and it looks the same as given in the link solution.

View 3 Replies View Related

Samsung Captivate :: Browser Giving Error Often While On WiFi

Jul 22, 2010

Does anyone else have find their browser giving this error often while on WiFi? I have to disable and move to 3G just to get my connection back.

View 49 Replies View Related

General :: Galaxy Nexus On Stock 4.1.1 - Giving DF-BPA-09 Error?

Sep 15, 2012

Running a Galaxy Nexus on Stock 4.1.1 (rooted).Last week, Play Store randomly started giving me the DF-BPA-09 Error when I wanted to download new apps. Old apps would update fine. I searched XDA and found that turning Google Sync Off and restarting the phone solved it. It worked once or twice, but the problem kept coming back.

Then read another thread that said go to All Apps > Play Store >Uninstall Updates and Clear Data. I did this, and now when I start Play Store, it permenantly gives me 'Server Error', with a Retry Button below it.I have Titanium Backup Pro, so tried restoring an older version, tried Freezing and Unfreezing the App, still not working.

DF-BPA-09 Error used to come, Cleared Play Store Data and now stuck at Server Error.

View 4 Replies View Related

HTC Droid Eris :: Preloaded YouTube Application Giving Error?

Apr 8, 2010

My youtube app that came installed on the phone already gives me an error when trying to play videos.

View 6 Replies View Related

HTC EVO 4G :: Yahoo Mail Not Working And Giving Authentication Error When Trying To Re-add Account?

Sep 8, 2010

Is anyone else all of a sudden having problems with Yahoo mail not working and giving an authentication error when trying to re-add the account?

ETA: I just found that these settings work but I have to disable WiFi which is total BS
For Incoming Server Settings set the IMAP server to imap.mail.yahoo.com and the Port to 143
For Outgoing Server Settings set the SMTP Server to "smtp.mobile.mail.yahoo.com and the Port to 587

View 2 Replies View Related

General :: Samsung Galaxy ACE 2 - Create Folder Giving Error Creation Failed?

Jun 27, 2012

Im here because of my problem with SGA 2.Few days ago I bought ACE 2 and I found few problems with "external_sd".So the problems are

1. When I try to create folder it gives me error "Creation failed"

2. When trying to move folder from internal memory to external sd it gives me error like "Moving failed", while copying goes fine.

3. I can move/copy any file to sd card, but sometimes those files got corrupted, gives me error about memory when trying to open pictures, same problem when saved camera saved photo to sd card. Even getting error when trying to play video.

APK files got corrupted too.

4. When I have moved apps to sd card some while apps work great, but after some time cant launch apps because it gives me error about that app doesnt exist.

I tried formatting sd card with pc and android.

Factory reset.

Repartition to same firmware with Odin.

Wipe cache, wipe data.

I dunno what causes those error, bugs, glitches. Is it phone or android sytem?

Tried many sd card and always got same errors. But when I mounted mine sd card to another phone it worked perfect.

View 2 Replies View Related

Android :: Video Recording Available In V1.1?

Mar 25, 2009

I am looking for video recording example, it suppose to be in api - sample but not available. I am wondering if 1.1 release still missing this feature?

If it does support then in which format and where is the example. Also I am trying to figure out MP3 encoding long ago but still no solution. I have recorded an audio ()which is in AMR by default, how can I convert it in MP3 (any external package I can use?)

View 6 Replies View Related

Android :: Android App Keeps Giving Me A Leak Found Error

Oct 31, 2010

I am working on an Android app but I keep getting a Leak Found error. Here's the Call Stack:
11-01 11:26:47.087: ERROR/Database(7317): Leak found
11-01 11:26:47.087: ERROR/Database(7317): java.lang.IllegalStateException: /data/data/com.noshufou.android.su/databases/permissions.sqlite SQLiteDatabase created and never closed
11-01 11:26:47.087: ERROR/Database(7317): at android.database.sqlite.SQLiteDatabase.<init>(SQLiteDatabase.java:1792)
11-01 11:26:47.087: ERROR/Database(7317): at android.database.sqlite.SQLiteDatabase.openDatabase(SQLiteDatabase.java:798)
11-01 11:26:47.087: ERROR/Database(7317): at android.database.sqlite.SQLiteDatabase.openOrCreateDatabase(SQLiteDatabase.java:857)
11-01 11:26:47.087: ERROR/Database(7317): at android.database.sqlite.SQLiteDatabase.openOrCreateDatabase(SQLiteDatabase.java:850)
11-01 11:26:47.087: ERROR/Database(7317): at android.app.ApplicationContext.openOrCreateDatabase(ApplicationContext.java:535)
11-01 11:26:47.087: ERROR/Database(7317): at android.content.ContextWrapper.openOrCreateDatabase(ContextWrapper.java:193)
11-01 11:26:47.087: ERROR/Database(7317): at android.content.ContextWrapper.openOrCreateDatabase(ContextWrapper.java:193)
11-01 11:26:47.087: ERROR/Database(7317): at android.database.sqlite.SQLiteOpenHelper.getWritableDatabase(SQLiteOpenHelper.java:98)
11-01 11:26:47.087: ERROR/Database(7317): at com.noshufou.android.su.DBHelper.<init>(DBHelper.java:28)
11-01 11:26:47.087: ERROR/Database(7317): at com.noshufou.android.su.UninstallReceiver.onReceive(UninstallReceiver.java:10)
11-01 11:26:47.087: ERROR/Database(7317): at android.app.ActivityThread.handleReceiver(ActivityThread.java:2637)
11-01 11:26:47.087: ERROR/Database(7317): at android.app.ActivityThread.access$3100(ActivityThread.java:119)
11-01 11:26:47.087: ERROR/Database(7317): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1913)
11-01 11:26:47.087: ERROR/Database(7317): at android.os.Handler.dispatchMessage(Handler.java:99)
11-01 11:26:47.087: ERROR/Database(7317): at android.os.Looper.loop(Looper.java:123)
11-01 11:26:47.087: ERROR/Database(7317): at android.app.ActivityThread.main(ActivityThread.java:4363)
11-01 11:26:47.087: ERROR/Database(7317): at java.lang.reflect.Method.invokeNative(Native Method)
11-01 11:26:47.087: ERROR/Database(7317): at java.lang.reflect.Method.invoke(Method.java:521)
11-01 11:26:47.087: ERROR/Database(7317): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:862)
11-01 11:26:47.087: ERROR/Database(7317): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:620)
11-01 11:26:47.087: ERROR/Database(7317): at dalvik.system.NativeStart.main(Native Method)
The problem is I don't use a database anywhere in my code.EDIT:Here is the code snippet of the whole program. Also I only get this error sometimes and sometimes I don't which is another weird thing. Here is the main Activity:public class SetAlarmUI extends Activity {TextView mTimeDisplay;Button setAlarmButton;
private Calendar time;
private int alarmHour;
private int alarmMin;
static final int TIME_DIALOG_ID = 0;Toast toast

View 2 Replies View Related

Android :: Support For Video Recording In 1.5?

Apr 28, 2009

Is video recording supported in 1.5? I got it mostly working with the Haykuro 1.5 ADP image - the video file was legally formatted but didn't play properly.

With yesterday's official 1.5 images, it doesn't work at all.
setVideoEncoder() fails,
with the wonderfully informative error message
"setVideoEncoder failed".

View 6 Replies View Related

Android :: Any Application For HD Video Recording?

Nov 6, 2010

I'm running my HTC Legend with the stock "Camcorder" app and the most I can record with is 480p. Since the iPhone 4 has the same MP (5) and can shoot HD, why can't the Legend. Is there an app for such a thing? Any way without rooting, since I still want to keep my warranty till it expires.

View 2 Replies View Related

Android :: Audio Playback Error While Recording

Oct 16, 2009

I have a Java application where in I am trying to read Audio samples from the mic into a buffer and then write the samples back to speaker from a buffer for playing. I have used AudioRecord and AudioTrack interfaces. Below are my configurations for the Record and Track object creation. AudioTrack(0, 8000, 2, 2, playBufSize, 1); AudioRecord(1, 8000, 2, 2, recBufSize); Using AudioRecord interface I am able to read the samples from mic continiously (8000 sampling rate and 640 samples per read). In the similar way I am also able to write some pcm samples to the speaker from a buffer and play it continuously using the AudioTrack interface (without record). But when I try to do both record and play simultaneously I am able to only record audio from mic but I am not able to play any samples to speaker. I am getting this error " ------- attemp playback while recording, cheat it! ----- " in the log cat.

I have given the following permissions "android.permission.RECORD_AUDIO" and "android.permission.MODIFY_AUDIO_SETTINGS" in the Manifest file. I didn't find any special permission to play the audio. Is there anything else that I need to enable?

View 3 Replies View Related

Android :: Any Application For Automated Video Recording?

Aug 7, 2010

I am looking for an app that allows for automated video recording given a start time and stop time. I searched the market and message boards but no luck so far. Does anyone know if there is an application like this?

View 2 Replies View Related

Android :: No Alternate Video Recording Apps?

Sep 29, 2010

Is it really true, that there isn't any 3rd party video recording apps available for the Android platform?iPhone has got several really cool ones (Vintage Video Maker etc.)!

View 4 Replies View Related

Android : Doesn't 1.0 Support Recording Video Well?

Apr 21, 2009

I just experienced the video recording on G1 based on the system.img of android1.0. The process just lasts about 3 seconds, then blocks. And the generated file is empty. What's the matter? Doesn't this version support video recording, yet?

View 4 Replies View Related

Android : Got Video Recording Sample - Want To Share

Nov 30, 2009

Does anyone got the video recording sample for android , if yes could you please share the same.

View 4 Replies View Related

Android : Does Anyone Make Video Recording Work At 1.5

Jun 21, 2009

Do you have any simple sample code for video recording?

View 3 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved