×

Discussion Board

Results 1 to 5 of 5
  1. #1
    Registered User
    Join Date
    Apr 2010
    Posts
    4

    Video Recording problem using MP4

    Hi all,
    i'm trying to write a probem that recordes a video and stores it into a byte array for replay later or to save the video. The problem that I have is how do I find out the format that the byte array is stored in, i.e is it mp4 or 3gp.
    I want to be able to force java to record the video as mp4.
    Has anyone achieved this?
    I've tried setting the encoding when i start the player with
    capture://video?encoding=mp4
    but that just fails.

    One thing that i've noticed is that when I use the camera on the phone without java (normal software on phone) it appears to choose to record using mp4 or 3gp depending on the resolution that you are recording your video with. For example if you save a low resolution video is selects a 3pg file however if you save a higher resolution video it save this as a .mp4 file.

    Anyhow any help on with would be appreciated
    Joey

  2. #2
    Registered User
    Join Date
    Dec 2009
    Location
    Bangalore/Mysore, Karnataka, India.
    Posts
    43

    Re: Video Recording problem using MP4

    Hi Joey,

    To record video in mp4 format, your phone should support it.
    Check if your phone supports mp4 by querying system propertly "video.encodings".
    System.getProperty("video.encodings")

    BTW, are you getting any exceptions?
    -Roopesh.
    (http://trivialdust.blogspot.com/)

  3. #3
    Registered User
    Join Date
    Apr 2010
    Posts
    4

    Re: Video Recording problem using MP4

    yea, it does support mp4, but it does not get past the capture://video?encoding=mp4 it says that it cannot locate device...

  4. #4
    Registered User
    Join Date
    Dec 2009
    Location
    Bangalore/Mysore, Karnataka, India.
    Posts
    43

    Re: Video Recording problem using MP4

    Hi,

    Did you try capturing video with default format? Try it using "capture://video" only.
    And please share a brief Codelet, so that we can try executing your code.
    -Roopesh.
    (http://trivialdust.blogspot.com/)

  5. #5
    Registered User
    Join Date
    Oct 2009
    Location
    Noida
    Posts
    941

    Re: Video Recording problem using MP4

    Quote Originally Posted by joey.enfield View Post
    Hi all,
    I've tried setting the encoding when i start the player with
    capture://video?encoding=mp4
    but that just fails.

    One thing that i've noticed is that when I use the camera on the phone without java (normal software on phone) it appears to choose to record using mp4 or 3gp depending on the resolution that you are recording your video with. For example if you save a low resolution video is selects a 3pg file however if you save a higher resolution video it save this as a .mp4 file.

    Anyhow any help on with would be appreciated
    Joey
    Try capture://video?encoding=160x120
    and capture://video?encoding=320x240
    Thanks,
    Ekta

Similar Threads

  1. MP4 video playback problem with N70...
    By Mattloaf in forum Streaming and Video
    Replies: 9
    Last Post: 2010-05-05, 16:09
  2. Replies: 1
    Last Post: 2009-01-21, 13:00
  3. Video Recording problem
    By vishaljaiswal in forum Mobile Java Media (Graphics & Sounds)
    Replies: 5
    Last Post: 2008-07-03, 10:43
  4. Please Help Recording mp4 audio.....
    By codsw2 in forum Mobile Java Media (Graphics & Sounds)
    Replies: 0
    Last Post: 2007-10-08, 15:24
  5. Embed mp4 Video or watch video on the mobile
    By superklass in forum Streaming and Video
    Replies: 1
    Last Post: 2006-10-15, 03:08

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
×