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.

Android : Direct Video Encoder Access


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(); }

View 3 Replies View Related

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

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 :: Direct Api That Allows Access To CPU Usage Statistics

Sep 6, 2010

Does anyone know of a direct api that allows access to CPU usage statistics for different applications/tasks running inside android? All I can find is data available by accessing a file "/proc/stat" but this seems a little cumbersome. ActivityManager holds data about processes/tasks etc but no CPU usage stats.

View 12 Replies View Related

Android :: Direct Database Access Instead Of Content Providers

Sep 2, 2010

Just found out that I don't need content providers if I don't need to share data with other applications. But since the examples I've seen all use content providers, I'm not sure how to proceed without them and populate activities with data derived from accessing my application's database directly.

View 2 Replies View Related

Android : Media Database Direct Access From Code

Jul 20, 2010

Can I access android MediaProvider (Images & Videos) databases directly from my code rather then through a content provider ?

I'm planning to have my own Cursor implementation so inside it I want to access the media databases directly, possible or android does not allow it ?

View 1 Replies View Related

Android : Play Video Direct From URL

May 21, 2009

I am new to Android. I have depeloped a video player app. through Sd card.

Now i want to play video direct from URL.

Can anybody provide me sample code for the same.

View 10 Replies View Related

Android : Direct Access To GEARS Geolocation Without Going Through The Browser Interface

Jul 15, 2009

information on direct access to GEARS geolocation functions from an Android application. To date, I have not found any. geolocation includes three Android-specific public Java classes, AndroidGpsLocationProvider, AndroidRadioLocationProvider, and AndroidWifiLocationProvider. The fact that they are Android-specific and that they are public lead me to conclude that I should be able to use these classes in my application. However, not surprisingly, when I try to access these classes, my application fails (see log below) because, among other things, I have no way to correctly identify nativeObject in the java classes. At the very least, I would like to understand the purpose of the three Android-specific public Java classes, and how we should use them.

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

(Native Method)

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

View 4 Replies View Related

Android : Content Provider Vs Direct Database Access - Transaction Management

Aug 7, 2010

I understand, at least on paper, the basic difference between the Content Provider and just directly accessing the SQLiteDatabase. I have a functioning prototype for my application, and currently it is just directly hitting the database. I don't really have any experience using the Content Provider pattern, but I have found out that I will need to share some data with another application.

I will only be sharing about 2 out of a dozen or so tables, so I was wondering if I should be just completely redoing the data layer to follow the Content Provider pattern, or just expose only those tables via a Content Provider for the sake of the other application and still directly access the database in the primary application.

One of the issues I ran into with my prototype was that I have some fairly complex transactions, and the code I wrote to get that working is not designed particularly well and isn't reusable at all. As I add more functionality to this app, I'm going to need a better designed data access layer, before I set off writing my own, does anyone know of any good resources with design patterns for this type of thing already? Also, if I need to go the Content Provider route, am I going to have solid control over the database transactions?

View 2 Replies View Related

Sony Ericsson Xperia X10 : Twitter Direct Access

Sep 10, 2010

I'm having problems with the Twitter direct access on the phone, I'm getting an error stating that my ID or password are incorrect, but if I go to www.twitter.com on same phone using the web browser have no problem with my ID.

View 4 Replies View Related

App Requires Direct Phone Access And Can Make Calls Without Asking First

Apr 8, 2013

I've just published an app to Google Play. It is an app that allows people (mostly tourists) in my area to easily find businesses around them. One functionality that my app offers is to make a phone call to these companies by tapping a button in the app, including emergency numbers.

Google Play says that the app requires "direct phone access, it can call phone numbers without your intervention, which can lead to a high phone bill, but not emergency numbers". This doesn't completely fit my intention.

My app would work just fine if it had to ask the user every time it wanted to make a call, and it doesn't call anything when no buttons are tapped, plus I DO want the app to be able to call emergency numbers (with the user's consent off course).

View 4 Replies View Related

General :: Direct Access To Time Zone Function?

Oct 16, 2013

I've used XDA many times before, normally for specific questions on ARHD ROMs.

I work on a cruise ship and we're continually crossing time zones. Currently, to alter the time zone on my (rooted) HTC OneX, I need to pull down the notifications tray, select settings, scroll down and select date and time, then select time zone. I can't use the Auto function, as the network time on the ship (satellite) is only available over Wi-Fi, for which I have to pay an exorbitant rate.

I'm looking for an app that will allow me one-tap access to changing the time zone. 'Time Zone Widget Light' almost does the job, as a tap on the widget scrolls through pre-set time zones, but this only allows me to step forward, and sometimes I need to go backwards as well (sadly our ship itineraries refuse to follow pre-set time zones, although I'm working on it!)

Any app, or perhaps a toolkit that lets me drill down to sub-layers of the android settings menu and create a short-cut?

View 3 Replies View Related

General :: How To Make Shortcut To Desktop With Direct Access To Single Image

Jul 20, 2012

How do I make a "short cut" to my "Desktop" with direct access to a single image

View 1 Replies View Related

Android :: Customize Icons For Direct Message - Direct Dial?

Jul 5, 2010

I am looking to customize my icons for direct message direct dial, to the best of my knowledge better cut can do this, however i have heard it is not compatible with launcher pro beta that i use, so does anyone know what it is compatible with? also what size do i need to make my icons and what format do i save them in?

View 1 Replies View Related

Android : Mp3 Encoder - Record Audio In Mp3 Format

Aug 2, 2010

I want to record audio in MP3 format in my android application. I know I can read PCM audio using the audioRecord class. Is there a java library compatible with android that will encode PCM to MP3? Is it possible to use the Lame mp3 encoder library?

View 1 Replies View Related

General :: Which File Is Char Encoder On Android

Jan 28, 2014

I get a new phone a month ago.(tronsmart TS7 - mtk6582) and in some place the hebrew language (my longuage) doesn't render

for example:

when I port a rom from another MTK6582 phone (W450) the font was perfect, but a lot other thing was a mess (cam,GPU driver/codec) my Q is with file is the one that make this "render" so I can port just this file from the other phone rom?

View 1 Replies View Related

General :: MP3 To AAC Encoder / Converter

Mar 24, 2012

Music takes up too much space on my phone.. What aac converter for music transfers to phones? it must preserve the tags in mp3s. the artworks etc

View 3 Replies View Related

Motorola Droid : Way To Access Video Camera When App Set As Default?

Jan 12, 2010

I can't figure out how to access the video camera when this app is set as the default camera.

View 2 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

Android :: Direct Tv Application?

Nov 10, 2009

Anyone hear of and app for the Droid like the one for the iphone that attaches to ur direct tv account?? this is the only app i really miss from my iphone

View 30 Replies View Related

Android :: Direct Search Shortcut?

May 31, 2010

I recently installed LauncherPro on my Droid and am trying to make use of the additional home screen space. One thing I would like to do is create a on-click shortcut to search for nearby hardware stores (I'm a contractor and sometimes need to pickup task-specific materials). I could swear there used to be a shortcut available called "Direct Search" or something like that, that would do just what I'm looking for, but I don't see it when I try to add a shortcut to the home screen. Did this used to exist, or was it just my imagination? Is there anything like it now? I know I could make a bookmark in the browser and place a shortcut to the bookmark on the home screen, but I was hoping for the results to come up in Google Maps.

View 2 Replies View Related

Android :: Bug In IntBuffer.put() When Using Direct Buffers

Jun 16, 2009

In a process of switching from indirect to direct buffers for OpenGL geometry specification I've found a problem with the following function in java.nio.IntBuffer class: IntBuffer put(int[] src, int off, int len) this function is supposed to do a bulk transfer of int data from the given array starting at the specified offset. It should be an optimized version of the following code: for (int i = 0; i < len; i++) {buffer.put(src[off + i]);}

View 2 Replies View Related

Developing Using WiFi Direct On Android 3.2

Mar 16, 2012

I have an Android 3.2 and the Wifi direct works fine.The problem is, I'm trying to compile this sample but it says that the import "android.net.wifi.p2p" cannot be resolved.Well, if Android 3.2 supports Wifi Direct an actually I'm able to send files through this, why I'm not able to develop for this?

this error don't happen when the project is configured to run over Android 4.0.

View 5 Replies View Related

Android :: Note To Self Or Direct Email Shortcut?

Nov 18, 2009

I'm looking for an app that I can create a shortcut on the home screen and it will automatically email a specific email address. I know there are things that are close to this (add contact to home screen) but then you have to click again to send an email, etc. I'm looking for the equivalent of a fast "note to self" application for quick capture of ideas.

View 5 Replies View Related

Android :: Universal Inbox Direct Shortcut

Jul 28, 2010

I have a droid X running 2.1 update 1: I want a direct link to my universal inbox from my homescreen that drills directly into the inbox displaying all my messages. Currently, the best I can do is to use the "messaging" shortcut, which then goes and displays another shortcut to my "universal inbox" along with my individual mailboxes. I want to cut out the two-step approach, and get a direct shortcut.

View 2 Replies View Related

Android :: No Voice With Direct Navigation Link

May 17, 2010

So - I *love* Google Maps with Navigation and I just recently upgraded to the new version of maps where it gives you a direct link to Navigation. My issue though is that I do not have any voice navigation when I start Navigation directly but I do have it when I just go through the regular Maps link and then select Navigation in there. I checked the menu and it is not muted. The sounds is also set to high. As I said, the sound works perfectly well if I go through the main app. Just not with the new direct link. Anyone else seeing this or worked this out?

View 2 Replies View Related

Android :: Recording Direct System Audio?

Nov 9, 2009

Im trying to record audio directly from the system. Using the standard API, you can only record from the MIC or phonecalls, ala: MediaRecorder.Some ways I've tried is to read from /dev/audio and /dev/eac from my app, but I think the sandbox of the app is preventing this.Im thinking about using the NDK, but Im not sure if that would overcome the sandbox aspect ? Ideally, there is some solution outthere to access the audio sub- system directly. Whether it be directly to alsa, to the AudioFlinger, to /dev/eac

View 16 Replies View Related

Android : Recording Into Direct ByteBuffer With Offset

Feb 13, 2010

Is there a way to capture the audio using AudioRecord or any other API into a Direct ByteBuffer created using ByteBuffer.allocatedirect call with an offset?

From the documentation it is not clear that at which offset, calling the following method, will place the data: audiorecord.read(directbytebuffer, size);

View 2 Replies View Related

Android : Opengl Direct/NonDirect Buffer

Aug 4, 2010

Been getting a headache with some 2d Opengl coordinates and putting them in a direct buffer.

I have a basic square defined as such

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

This runs, no segfault or anything, and when I iterate through the buffer the size and values seem exactly the same (8 elements, ordered just as the array). What happens though is that my draw() function draws nothing, it works one way, but doesn't work the other way. I use Direct Buffers in a lot of my other geometry. I have to get direct buffers working or I know that my software might not be reliable.

CODE:.........

My Drawing function is as follows.

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

View 2 Replies View Related







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