Problems with video recording

Hello

I have some problems with the video recording on the BlackBerry.

On the BB 9700 my application crashes when I try to stop recording. The file produced
the app is empty.
On BB 9800 I have the same problem unless I have explicitly defined the video resolution, but
in this case, the resolution of the resulting video is different from what I
specify (640 x 480 instead of 320 x 240).
On BB 9300 an application works without problem.

Here's the example I use:

//////////////////////////////////////// App.java
VCR package;

Import net.rim.device.api.ui.UiApplication;

public class App extends UiApplication
{

Public Shared Sub main (String [] args)
{
final App app = new App();
app.enterEventDispatcher ();
}

public App()
{
last screen VideoRecorderScreen = new VideoRecorderScreen();
pushScreen (screen);
}

}

VideoRecorderScreen.java
VCR package;

import java.io.IOException;
import java.util.Timer.
java.util.TimerTask to import;

Import javax.microedition.media.MediaException;

Import net.rim.device.api.ui.UiApplication;
Import net.rim.device.api.ui.component.Dialog;
Import net.rim.device.api.ui.container.MainScreen;

/ public final class VideoRecorderScreen extends screen
{

Private final int DELAY = 1000;

Private final String VIDEO_PATH = "file:///SDCard/BlackBerry/videos/video.3gp";
Private final String VIDEO_ENCODING = "video/3gpp";
Private final int VIDEO_DURATION = 5000;
Private final int VIDEO_WIDTH = 320;
Private final int VIDEO_HEIGHT = 240;

recorder recorder private;

Public Sub onDisplay()
{
new timer() .schedule (new TimerTask() {}
public void run() {}
Start();
}
(}, DELAY);
}

private void start()
{
Exception Exception = null;
try {}
This.Recorder = new recorder (this. VIDEO_ENCODING, this. VIDEO_WIDTH, this. VIDEO_HEIGHT);
This.Recorder.record (this.) VIDEO_PATH);
} catch (MediaException ex) {}
Exception = ex;
} catch (IOException ex) {}
Exception = ex;
}

If (exception! = null) {}
Warn (exception);
return;
}

new timer() .schedule (new TimerTask() {}
public void run() {}
try {}
VideoRecorderScreen.this.recorder.end ();
warn ("check");
} catch (IOException ex) {}
Warn (ex);
}
}
}, this. VIDEO_DURATION);
}

private void warn (Object, object)
{
the final String message = String.valueOf (object);
UiApplication.getApplication () .invokeLater (new Runnable() {}
public void run() {}
Dialog.Alert (message);
}
});
}

}

Recorder.Java
VCR package;

import java.io.IOException;

Import javax.microedition.media.Manager;
Import javax.microedition.media.MediaException;
Import javax.microedition.media.Player;
Import javax.microedition.media.control.RecordControl;

public class logger
{

Final private player vp;

private RecordControl rc;

Recorder of public (encoding String, int w, int h)
throws MediaException, IOException
{
This.VP = Manager.createPlayer ("capture://video?encoding=" + coding
+ '&' + 'Width' + '=' + w
+ '&' + 'height' + '=' + h);
}

public void save (String path)
throws MediaException, IOException
{
This.VP.Start ();

This.RC = this.vp.getControl ("RecordControl") (RecordControl);
If (this.rc == null) {}
throw new MediaException ("RecordControl could not be obtained");
}

this.rc.setRecordLocation (path);
this.rc.startRecord ();
}

public void end()
throws IOException
{
If (this.rc == null) {}
throw new IllegalStateException ("RecordControl not initialized");
}

this.rc.stopRecord ();
This.rc.Commit ();

//
This.VP.Close ();
}

}

Upgrade to an operating system that has the fix is the only solution I'm aware of, but depending on who may or may not be an option.

Tags: BlackBerry Developers

Similar Questions

  • Skype 'problem with sound recorder '.

    After working perfectly for months, when I now try to use Skype I get the above message.  CD works perfectly all the other its OK.  Skype gave me a chapter and verse to uninstall and reinstall Skype without change.  I guess the problem is in the web cam that contains the microphone and there is no purple light on that.  What can I do else?

    After working perfectly for months, when I now try to use Skype I get the above message.  CD works perfectly all the other its OK.  Skype gave me a chapter and verse to uninstall and reinstall Skype without change.  I guess the problem is in the web cam that contains the microphone and there is no purple light on that.  What can I do else?

    "Problem with sound recorder" suggests that there may be a problem with your input device.

    Open Device Manager (right click on my computer > properties > hardware > Device Manager) and search for "imaging devices". Click on the + to expand the category.  There is a warning (yellow!)? Right-click and select Properties.  Is it the box at low say "use this device (enable)"? If not, do so and click OK.

    While still in the Device Manager, click on the + next to "Sound, video controllers and game."  Locate the entry of your webcam microphone. There is a warning (yellow!)? Right-click and select Properties.  Is it the box at low say "use this device (enable)"? If not, do so and click OK.

    Take a look at control panel > sounds and Audio devices

    Click on the tab "Audio".  What is the default device for sound recording?  It should be your webcam; If this is not the case, adjust it using the drop-down list box.  Same thing for the "Voice" tab and the default device for voice recording.  Be sure to click on the "Apply" or the OK button.

    Click Start , point to programs , point toAccessories , point to entertainment and then clicksound recorder .  That you get error messages when you open or you try to open the sound recorder? If so, please include the entire message, without paraphrase, in your response.

  • Problem with video player

    Hi experts,

    I'm under 2 problems with video player in my application:

    1. the backlight turns off automatically after 30 seconds by default during playback of a video file.

    2. impossible to adjust the volume, he always plays with the highest volume.

    When I try to play the video by media player integrated BB Bold, the volume is adjustable and the backlight is on during the display of the video. Is it possible to do the same thing in my application?

    Thanks in advance,

    Kind regards

    Binh Nguyen

    -For the first problem, you will need to set the backlight to yourself in the code, something like:

    If ((Display.getProperties () & Display.DISPLAY_PROPERTY_REQUIRES_BACKLIGHT)! = 0)
    {
    Backlight.Enable (true, 20);
    }

    Be careful about the number of seconds that you pass to the enable(). They are tp limited 255 seconds even if you spend a lot. This means that if your video is longer than 255 seconds, you must call the activate more than once. I usually call it the timer as well as check the status

    -For volume control, the player does not meet the default control buttons. You need to implement it in your code.

    Set the class of player that you use to implement the method as follows:

      protected boolean keyControl(char c,int status,int time)
        {
            if(c == Characters.CONTROL_VOLUME_UP)
            {
                //IncreaseVolume;
            }
            else if(c == Characters.CONTROL_VOLUME_DOWN)
            {
                //decreaseVolume();
            }
            return super.keyControl(c,status,time);
        }
    

    Where the increseVolume is something like:

    If (_Kit! = null) //_vc = player VolumeControl
    {
    _vc.setLevel (volumeLevel);
    }

    Rab

  • Problem running videos recorded by Xperia Z2

    Videos recorded by the cell phone does not work correctly when transferred to the computer. I get a black picture and no sound, but the progress of the Player bar shows that the video is running. It is not a problem in the codecs in my computer since I run any video file in it with no problem, including MP4, it's the same video file used by the phone. Not to mention, while browsing the net, I found many other owners of this model having the same problem as me.

    Any help will be appreciated, thanks.

    PS: I instaled already all the updates available for it.

    If you use only one option 'import' via the PC, then it would generally be the likes of Windows Media Player import fact. You are the best of either drag and drop or use the MediaGo software to perform this function, then you have found the raw file.


    What are your thoughts on this forum? Let us know by making this short film survey.

  • Problem with video calling

    Dear community of Skype,

    These days, I have a weird problem with my Skype. I want to use the video calling option but my video is all messed up. So you can see what is my problem, I have included a screenshot. In the screenshot its my webcam that mess, but when I call a friend its their video that looks like this. I have no idea how to solve this probem and hope you can help. I reinstalled Skype already and installed the latest version but the problem remains. I also tested my webcam with different chat like Facebook video chat programs, but there is no problem.

    I hope that my problem will be solved because I really like using Skype!

    PS I apologize for some grammar mistakes. English is not my native language

    What is the name/model of your version of map and graphics driver?

    If your graphics card is nVidia, then see this:

    http://community.Skype.com/T5/video-on-Windows/video-reception-not-right/m-p/1447456#M11141

    http://community.Skype.com/T5/Windows-desktop-client/webcam-problem/m-p/1515620/highlight/true#M1289...

  • Problem with video calling on Android...

    Everything works fine but the video call is very dark on my android 4.1.2. Either way, my front cam is 1.3 mega pixels, but the same problem with my camera back which is 8.0 Mega Pixels... but when I open my camera its light show app. In this way I hate this... Please solve the problem of video calling...

    qa60
    Check your internet connection or check your microphone or try again with handfree...

  • HP Slimline problem with video card?

    Hello

    I got a Slimline s3020n for a few years and have never had a problem with it. A few days ago when I turned it on there is no picture on the monitor except the box that is displayed when you turn it on and it says: "no signal". I plugged into another computer to the screen to see if the monitor was the problem and it worked fine. I swapped the hard drive thinking that might work, but still had the same problem. All lights turn on and it seems that everything works (hard drive, fans) which leads me to think, maybe it's a problem with the video card. My question is if you have advice on what could be the problem and I think that the video card is integrated into the motherboard, so I have to replace the whole motherboard to fix this. Thank you.

    -Chris

    Chris,

    Your PC has built-in video on the motherboard.  If it is simply a matter of graphic, a low profile card could be added to the system.   However, you can view the following link - depending on when you purchased your product - you may qualify for an extended warranty - the problem, he describes sounds similar to what you mentioned.  I found this on the page of the product of the s3020n, btw.

    http://support.HP.com/us-en/document/c01514044

    -dm (an employee of HP, but the time and the comments here are my own, not my employer)

  • Problem with video playback... Help, please...

    I have problem with watch and listen to the youtube video in my player. I have Windows XP, Windows media player 11, Real player, player time Quik and nothing happens. The videos are uploaded but no work. I pray for the advice...

    Hello

    · Do you receive an error message or error code when you try to play the file?

    · Were there any changes made on the computer before the show?

    · What is the file format of the video file?

    · It's happens on any particular video that you downloaded?

  • problem with the recorder on my clip

    I recently had problems with my clip. It was freezing, slow (20 seconds for any action), and stoped working in total recorder. because of these problems, I reformatted it and solved all the problems. the only problem I have is that after reformatting, the recordings began to make a constant hum in the background, and I was wondering if there is any way to fix it.

    and a two second recording takes up double the memory of what a record of one hour ahead

    Download the firmware and reinstall it in the drive.

  • Problems with video files on 8 gb microSDHC

    to understand my problem, you should first read the following problem.

    [thread quote: http://forums.sandisk.com/sansa/board/message?board.id=sansafuse&thread.id=5849]

    Incompatibility issue with technology Kingston 8 GB microSDHC memory card and playing video files. ASIN: B001CQT0X4 SDC4 / 8GB

    I recently bought a Kingston 8 GB microSDHC card on Amazon.com technology for my 8gig Sansa Fuze (the 1.01.15 firmware version). I formatted the card while it was plugged into my rocket through Windows XP. Charge of some songs and a video file to the ext memory card.

    During playback the video has been dried then blocking at least one minute, causing the fuse to be reset. The music seemed however read (even if I don't concentrate on the test of music files). I worked with Amazon to replace the card with another card of 8 GB of Kingston, and had exactly the same problem.

    [/ quote]

    I have the same problems with a platinum 8 GB class 4 microSDHC card. Now I formatted the card in fat32 and the problem seems to be resolved.

    It will be easier to mention what memory cards can be used in the rocket.

    Hi all,

    I want only to inform you:

    Now, I found a memory of 1 GB SanDisk microSD Card in my collection of memory card. I copied the two films on this subject, put it in my works fine fuze and als. Now I'm looking for a microSD SanDisk 8 GB SDHC memory Card, which is not so large.

    After that I changed the card memory, I will report.

    Good day

  • HP 250 G3 - J4T62EA: problem with video card

    Hi, today I bought a Free back of HP 250 G3 - J4T62EA version. I installed Windows 7 64 bit and the drivers located on the HP website. I am facing a problem with my video card in the video display. In the video window, in any program, top of the video seems to move at a different speed, resulting an image of scrumbled. Is it a software or a hardware problem? The id of the map is:

    PCI\VEN_8086 & DEV_0A16 & SUBSYS_2211103C & REV_0B
    PCI\VEN_8086 & DEV_0A16 & SUBSYS_2211103C
    PCI\VEN_8086 & DEV_0A16 & CC_030000
    PCI\VEN_8086 & DEV_0A16 & CC_0300

    Fingers crossed for a solution )

    After you have installed windows 8.1 all does work smoothly, no problems at all!

  • Cannot use Skype download message problem with the recording device.

    Original title: Windows Livecam

    Hi my Skype can't my webcam micro and constantly sentds me a message saying "problem with recording device" How can I solve this problem?

    He also says that my audio device is disabled in windows. I don't know what to do if someone could help that would be great :)

    I had this problem too. This isn't a matter of Skype but there is a problem with the Audio driver on your system.

    I used the following steps to detect the problem:

    (a) I uninstalled the existing version of Skype

    (b) installed the new version of Skype

    (c) check if the problem still persists. Given that the problem still persisted.

    (d) consulted the sound link in the Panel control, updated sound card driver software.

    Problem solved.

  • Problem with microphone recording in Windows 7

    Original title: problem with the microphone

    Sir my drivers are perfectly fine but my microphone does not work and my default set and apply the buttons are grayed out in the record of devices.when im trying to put my problem its evrything saying isn't alrght theres no problem in my drivers... when im recording my voice, I found another seems not my voice... what should I do Sir

    Hello

    1 - is a built-in microphone? If Yes, what is the brand and model of the computer?

    If not, then what is the brand and model of the Microphone?

    2 did you recent hardware or software changes to your computer before this problem?
    3. what applications do you use to make use of the Microphone?
    4. are you able to record sounds using the sound recorder?

    5. what exactly do you mean when you say an different sound and not my voice?

    I suggest you to follow the steps and check if it helps.

    Method 1:

    Try to run the Audio recording utility and check if it helps.

    http://Windows.Microsoft.com/en-us/Windows7/open-the-recording-audio-Troubleshooter

    Method 2:

    I suggest you to check if the microphone is set as default as playback devices.
    a. click Start, type Sound in the area start search.
    b. click on his research at the top of the start menu.
    c. click the Read tab. Notice the check mark next to the default device. For most users, the default device is speakers. Make sure that the audio settings are configured as expected. Follow these steps:
    d. on the Read tab, select the playback device, click Properties, click the Advanced taband make sure that the default Format is set to the value you expect. When you are finished, close this window to return to the previous window.
    e. on the Read tab, select the playback device, click set upand make sure that the configurations are set correctly.
    f. Select the audio device you want as default audio deviceand then click on set default.
    g. click OK to save your settings and close the sound dialog box.

    Hope this helps and keep us posted.

  • Problem with video playback and color

    Whenever I try to playback video, it has the red and yellow bars vertically above my video. When I rub it, video is fine, but when it is on a fixed image looks like it of a corrupted file and export the files with the same problem. It is not the computer or camera because I can read in an editor similar like Final Cut on the same computer or on a different computer first, and I ingested several file formats (AVCHD, MP4 and MPEG 2) cameras still problem in the exact same manner.

    Is there a software framework I am missing or is there a problem with the first?

    check this: FAQ: Why am I getting yellow and red lines running through my images on pause?

  • Problems with video widget in Muse

    Hi all

    I'm wandering if someone can help me!

    I have been using Muse to design my first website, for my part and was lucky to fall on this 'background video Widget"created by HelloNoam. I tried to implement on my single page site. A single page website of scrolling is obviously not a drawing that you would normally use the widget background for, however, in principle, it works well by putting the widget on a layer below all other Web site content. I have, however, two problems with the site.

    It is a prototype of the Web site without the video widget and as you can see there is a grey white space on the third "page where the video will appear:

    http://www.dominicsimmons.co.UK/nowidget/nowidget.html

    This is the website with the widget (the video may take a while to load one used is large enough, it could be shortened to end use):

    http://www.dominicsimmons.co.UK/widget/widget.html

    The first problem is that when the widget is placed on the page, for some reason any that it will create an additional section at the bottom of the page about the size of a footer (although there is no current footer). There is no explanation for what I can see, and this happens only when the widget is used. As far as I know, this happens in all types of browser.

    The second problem seems to be isolated to when using Safari. When the widget is used, the first 'page' loads but then "pages" later (other than the video page) are white and are displaced. Again I am lost as to why this would be and why it would occur only in Safari and only when the widget is used.

    I talked to Abhishek on the Adobe Live Chat and he advised me to create a new thread here describing the problem. I hope that someone will be able to help/identify the problem because I'm lost as to what is wrong and have little or no experience coding (thus why I use Muse)! It is the only big problem I'm facing and for being a filmmaker, and I want to implement a video design beautiful.

    Many thanks in advance,

    Dominic

    Muse is not video well at all.  Muse is very good at putting up a site of very fast and professional quality with items correctly created, but without video.  Do not use the SWF of Muse recommended files as half of your audience can see your stuff. This is because the HTML 5 is the only way to make it universally visible devices by all static and mobile and more than half of the population now discovers the internet through a mobile device. Learn dreamweaver or other to do it correctly. To bad that Muse could be great if Adobe all down here bits and added the video correctly. Even through code Muse does not well at all. I guess it must be purposely because no company in their right mind would destroy their own potential software without a valid reason.

    Well Adobe?

Maybe you are looking for