Android :: How To Use MediaRecorder To Record Video Without Causing A Segmentation Fault

Nov 30, 2009

I'm trying to use android.media.MediaRecorder to record video, and no matter what I do the android runtime segmentation faults when I call prepare().

Here's an example:

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

Android :: How to use MediaRecorder to record video without causing a segmentation fault


Android :: Segmentation Fault On Emulator Startup?

Nov 23, 2009

When I start the emulator with the command emulator -avd Android2.0 it comes up with Segmentation fault (core dumped) if i start it without sound it works emulator -no-audio -avd Android2.0. I'm using Fedora Core 12 64bit. If i run emulator -verbose -avd Android2.0

.................

why the emulator is getting a problem with sound? I'm trying to write an app that uses sound so really need to get this working but i'm stumped.

View 5 Replies View Related

Android :: How To Use MediaRecorder To Record Highest Quality Video

Jan 28, 2010

Is there a way to get the best quality of video recording possible using MediaRecorder? the camcorder app does a lot better in terms of quality.

View 5 Replies View Related

Android :: MediaRecorder Class To Record A Video - Exception

Jun 17, 2010

I try to use the MediaRecorder class to record a video but I get an exception : failed to get Camera parameters. Prepare failed.

Here's my code :

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

View 1 Replies View Related

General :: Record Video Via MediaRecorder?

Apr 12, 2012

I have a question regarding the Android MediaRecorder -

My test device
HTC Desire HD
Firmware 2.3.5

I want to write an app, which records a video. This should be implementet via the MediaRecorder (not via Intents). On the Google-Developers site I found a "tutorial" [URL]

My problem:

I followed the whole tutorial. When I'm starting my application on my test device it throws an exception ("start failed") at recorder.start() if I set the quality to high (CamcorderProfile.QUALITY_HIGH). If I change the setting to QUALITY_LOW the app starts recording for 1-2 seconds. After that the screen freezes and my LogCat tracks the following errors:

media server died!
camera server died
ICamera died

I also get ERROR 100

View 2 Replies View Related

General :: Java Shell Root Access (segmentation Fault)

Aug 24, 2013

So i've been trying to flash modules from within the phone without having to boot into the recovery, and i found that i can just extract the update-binary and execute it through shell and it will do the trick!!

However, know im trying to do that through my app, I successfully got root access using Chainfire's libsuperuser, however, whenever i send the commands to run update-binary i get "segmentation fault(core dumped)" Error.

the command i using in both shell and from within the app is "./update-binary 3 stdout ./modules.zip".

This might be irrelevent but when ever i add a number before stdout (e.g 7stdout) i get segmentation fault during shell as well, other than that, i can't find the problem.

This is a logcat of the process through strace, if we have a linux debugger here

Code:
08-24 17:06:43.568 8703-9188/com.thunder.kernel.lighter D/libsuperuser: [libsuperuser][SU*] execve("./update-binary", ["./update-binary", "3", "recovery", "./KernelLighter.zip"], [/* 24 vars */]) = 0
08-24 17:06:43.573 8703-9188/com.thunder.kernel.lighter D/libsuperuser: [libsuperuser][SU*] gettid() = 9202

[Code] .......

View 5 Replies View Related

Android :: Video With MediaRecorder

May 6, 2009

Does anyone know how to use the MediaRecorder to API to capture video?

I am writing an application where I want to be able to capture video. I am trying to use the MediaRecorder API in 1.5, which is supposed to support video capture. However, there are no examples in the documentation on how to use this API for video (only for audio, and that works perfect). Basically what I do is the following:

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

This gives me the following error: E/CameraInput( 37): No surface is available for display E/MediaRecorder( 7609): prepare failed: -2147483648

OK, so I have to have a surface to preview the video? Could be useful I guess, but not something I really need.

Could I use the VideoView widget for this, or is that only for playback?

Or am I supposed to use a SurfaceView to preview the video? I saw someone use that to capture images, but they used android.hardware.Camera to open the camera and capture a frame, and did not use MediaRecorder.

HOw to capture video, or even better have some example code?

View 1 Replies View Related

Android :: How To Get The Video Stream From MediaRecorder

Jul 10, 2009

I want to get the stream and send it to server directly by using MediaRecorder.

Actually, I am able to record the video,and able to store it into sdcard. Now I want to it to stream (live stream) to server rather than storing it.

View 5 Replies View Related

Android :: MediaRecorder Buffers 1 Second Of Video

Aug 30, 2010

I'm using MediaRecorder.setOutputFile(FileDescriptor fd) over a UNIX socket, so that local code on the device can see the encoded stream in real time (for video streaming out).

What I observed is that the encoder doesn't write encoded frames continuously, when they are produced, but by "bursts", exactly one second apart. I tried both containers (THREE_GPP and MPEG_4) and all three available codecs (MPEG_4_SP, H263, H264), the behavior is always the same. This one-second period is notably unrelated to framerate or bitrate, so it is not flushing by size; rather, it seems to be flushing by time (possibly to mask SD card write overheads ? Bummer, I 'm not using the SD here !). Is it a known limitation ? Is there a known workaround ?

View 2 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 :: How To Change Video Orientation In MediaRecorder To Portrait

Oct 10, 2010

When I record video by MediaRecorder, it always records in landscape mode, regardless of real device orientation. How to force MediaRecorder/Camera use real orientation ?

View 1 Replies View Related

Android :: Android: How To Initialize MediaRecorder Without A Valid Surface For Video Preview

Aug 9, 2009

I am building a camera app, where videos are continuously being captured and saved to the SD card. The videos are short (few minutes), and their length are preset with setMaxDuration().

The whole process works fine, while the main activity is in the foreground. But, when I go to another activity (e.g. settings), the video recording works in the background only until max duration is reached. The file is saved, but a new sequence can not be started
because prepare() fails, apparently because setPreviewDisplay() doesn't like not having a proper surface to attach to.

I tried to use a dummy Surface, a dummy SurfaceHolder, lockCanvas(), and various other tricks, but nothing works. Is there a way to initialize MediaRecorder without a valid surface?

View 3 Replies View Related

Android :: Record A Video Of The Screen

May 18, 2009

I know you can use the ddms view in eclipse to take a snapshot of the screen, but can you somehow make a video like that?

View 4 Replies View Related

Android :: How To Record A Video As A Service

Sep 28, 2010

I just wanted a small piece of information. I am trying to record a video in background as a service. But, I am unable to record it. Can you tell me first of all that is it possible or not.

View 2 Replies View Related

Android :: Record Video In A Service

Oct 19, 2010

Is it possible to record video in a service, that is without setting the setPreviewDisplay? I tried it on a HTC Desire, however it is throwing this info in the log.

MediaRecorder Prepare Failed: -1

CameraInput No surface is available for display

Is there some additional properties to be set?

View 1 Replies View Related

Android : How To Record A Video Into SDCard?

Jun 23, 2010

I am trying to record a video into sdCard. But everytime I click on the Button to record, it shows "stopped unexpectedly" error.

View 1 Replies View Related

Android :: How To Record A Video Of Emulator Running

Feb 25, 2010

What's the best way to record a video showing things running on the Android Emulator? I want to record little demo videos of stuff running so I can put it on YouTube. I'm running the emulator on either Windows or a Mac.

View 6 Replies View Related

General :: Is It Possible To Screen-record Own App To Video In Android

Apr 14, 2014

any easy way to record the activities and views on my Android app to a video without root access. To be a bit more specific, I am looking for a screen-recording solution so that I can get a video of the user's interaction with the app interface. Connecting the phone to any device such as a computer to do the recording is not an option.

Here is a sample gif that I created using a Mac screen recorder to record the iOS simulator interface. It gives a rough idea of what I would like to achieve on Android, except for the fact that I would like the same to be from the actual phone (not the emulator) and without having to connect the phone to a computer or any other device.

View 2 Replies View Related

Android : How To Record Video From Front Facing Camera?

Aug 7, 2010

we got a requirement to record video from front and rear cameras simultaniously.. In the Android 2.1 SDK we only have the MediaRecorder.VideoSource.CAMERA and DEFAULT, but not FRONT_CAMERA and REAR_CAMERA. So, is there any other way to record from Front camera.. like any third party API's.

View 1 Replies View Related

Motorola Droid 2 : Android 2 Have 720p Video Record?

Jun 24, 2010

I know the droid x does, but how about the droid 2?

View 25 Replies View Related

Android :: Video Record - Upload - Transcode - Download - Play

Aug 31, 2010

I'm researching the development of an Android (2.2) app/service that will enable users to record short (I do emphasize short, < 30seconds) video on their phones and then upload that video (HTTP) to a server that will then transcode the video to other formats. That same user can download videos from other Android users and play them.

Now, I get a bit lost with everyones recommended approaches to all the issues in doing something like this because I haven't seen any ask this in a cohesive context. Ideally I would like a non commercial solution to this (as in no vendor/service being needed for the the video hosting/transcoding), but, feel free to include those as a recommendation (I've marked this as a wiki) as I know many like to use youtube and vimeo for the middle layer in all this.

The questions are

What server technologies do yo recommend for hosting and transcoding? What technology do you recommend for streaming the video (it would be nice to offer a high and low quality encoding depending on the users network connection) What video format and software do you recommend for converting the uploaded video on the server to be viewable later by other Android owners. Im assuming it's bad to do any transcoding on the phone prior to upload (battery/proc issues), but, if I'm wrong with that assumption what do you recommend?

The video will only need to render on an Android device, and in the future in a webkit html5 browser.
Bandwidth isnt cheap (even with numerous 30 second videos), so a good mix of video quality and video file size is important (streaming if needed to ensure quality vs. download). This is for android 2.2 devices with a video camera of course and medium to high density screen of 800x400 min. Open source solutions (server to receive the uploads, code to do the transcoding, server to do the streaming) are preferred, but not required. CDN's are an option, but I don't think that really figures in to the picture right now.

View 1 Replies View Related

Android : Need To Record Audio - Video Recording Files In 3gp / Mp4 Format

Jul 19, 2010

I need to record audio and video files in 3gp/mp4 format at the same file and same time.

When i run my application file is created with videofile.3gp but video does not record in sd card on the emulator.please let me clear one thing does video records on the emulator? if i run this code on android supported device do these error clear.
Please help me. I am new to this topic.please find the code and errors below.

package com.video;

* @copy Rights
* audio.java
* sample code for Eminosoft Developerworks Article
* Android development Team
* www.eminosoft.cm

import java.io.File;
import java.io.FileOutputStream;
import java.io.IOException;
import android.app.Activity;
import android.content.ContentResolver;
import android.content.ContentValues;
import android.content.Context;
import android.content.Intent;
import android.media.MediaPlayer;
import android.media.MediaRecorder;
import android.net.Uri;
import android.os.Bundle;
import android.os.Environment;
import android.provider.MediaStore;
import android.provider.Settings;
import android.util.Log;
import android.view.View;
import android.widget.Button;

public class video extends Activity {

public MediaRecorder mrec = null;
private Button startRecording = null;
private Button stopRecording = null;
private static final String TAG = "SoundRecordingDemo";
File audiofile;
File video;
private MediaPlayer mMediaPlayer;}

View 2 Replies View Related

HTC EVO 4G :: How To Record Video With Flash On?

Jun 5, 2010

To do this, simply download "LED Desire Light" in the market, then enable the light after install. Now press the home button and bring up the camera. Set to video and voila! You've got a nice video flashlight for night capturing. Just be sure to go back to the LED Desire Light prog to disable it after use.

View 3 Replies View Related

Media :: Record Video On G1

Oct 31, 2008

Any way to record video on the G1?

View 5 Replies View Related

HTC EVO 4G :: How To Record HD Video On Your Phone

Aug 8, 2010

so the evo has HD video capabilities but how do you record such videos? In other words do you just go to camcorder and record and you record in HD or do you need some kind of program or need to do something to get actual hd quality.

View 16 Replies View Related

General :: CM9 - App To Record Video

Mar 19, 2012

Is there any app to record video cm9 dont like the cm9 one

View 1 Replies View Related

General :: How To Record Received RTSP Video Streaming On Android Client

Oct 3, 2012

How to record the received rtsp video streaming on android client.

I need record the received video by a android smartphone via rtsp streaming (DSS 6) in mp4 or yuv file format.

I can do this using a pc/linux client but i do know how to do this on android.

Also, can an i access a android device using ssh and execute vlc, mobo or mplayer on it? How?

View 1 Replies View Related

HTC Incredible :: How To Send Video I Record?

Aug 15, 2010

I've had my Incredible for a few weeks now, love it, been stalking these forums reading whatever I can when I can, last night I went and took a video(s) of a fire I had in my yard(fire pit, not an Oh shit, Fire!) to send my girlfriend to rub in the fact that she was working,First video was 15 seconds, second 5, neither would send. They said the file size was too large, are there settings I have to change to be able to send videos?.My buddy has a Moto Droid, its got a MMS setting, I can't seem to find that on the Incredible.

View 3 Replies View Related

HTC Desire :: Any Way To Record Video In MP4 Format?

Jun 15, 2010

In the camcorder application, I have chosen to record the video's in MP4. However, when you then side load them to the PC or what-not they appear as 3GPP or something. Is 3GPP a version of MP4 or is the camcorder telling fibs? If it's not, how do I record in plain old MP4?

View 4 Replies View Related

HTC EVO 4G :: Length U Can Record A Video For Messaging?

Jun 24, 2010

does anyone know the length u can record a video for messaging? im trying to read fox in socks on cam.

View 1 Replies View Related







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