BlackBerry Forums Support Community
              

Closed Thread
 
Thread Tools
Old 02-18-2010, 01:32 AM   #1
neha.chaudhary
Knows Where the Search Button Is
 
Join Date: Jan 2010
Model: 8900
PIN: N/A
Carrier: trainee
Posts: 30
Default Media is of an Unsupported Format!!!!!!!!

Please Login to Remove!

hi frends!

actually i m trying to record video using MMAPI on blackberry curve 8900.
but d prob is,video is recorded but whn i try to play ,it results ERROR:"the media is being played is unsupported format".however when i transfer this video clip on my desktop and convert it into mp4 or any other format using Converter, it is playing well.
so can anyone tell me,where d prob is??????

thanks and regards,
Neha
Offline  
Old 02-18-2010, 06:09 AM   #2
dankarlinski
BlackBerry Master
 
dankarlinski's Avatar
 
Join Date: May 2007
Model: 1
Carrier: 1
Posts: 3,391
Default

Wirelessly posted (White and Nerdy)

Well, mP4 Is a supported codec. Whatever MMAPI is, must not be supported. Seems straight forward
Offline  
Old 02-18-2010, 06:50 AM   #3
neha.chaudhary
Knows Where the Search Button Is
 
Join Date: Jan 2010
Model: 8900
PIN: N/A
Carrier: trainee
Posts: 30
Default

actually i m newbie in this field .
u mean to say that,video recorded using MMAPI,will not play on device
or is there any way.i m not using any code to play d file.simply going to path of file,click on play menu.

Last edited by neha.chaudhary; 02-18-2010 at 07:27 AM..
Offline  
Old 02-18-2010, 11:18 AM   #4
pshift
CrackBerry Addict
 
pshift's Avatar
 
Join Date: Jun 2008
Location: Right behind you!!!!!
Model: ...
OS: Android
PIN: N/A. Went To Android!
Carrier: Busy Signal :)
Posts: 590
Default

Windows media files are only one of the unsupported formats that will not play back on a BB. Try using a program like MediaCoder - more than a universal audio/video transcoder - MediaCoder official website and convert it to an AVI or MPEG4 file.
Offline  
Old 02-18-2010, 11:32 AM   #5
neha.chaudhary
Knows Where the Search Button Is
 
Join Date: Jan 2010
Model: 8900
PIN: N/A
Carrier: trainee
Posts: 30
Default

thanks for your respone.but i think u r getting my point.actually programmatically i wnt to record vidoe and the where ever it is stored,suppose in blackberry/videos folder.i want to manually go at that place and then play.

actually i want to play it on device. i have also checked video file property.
but it is showing;-

video 174kb 0*0 .3gp
Offline  
Old 02-18-2010, 11:44 AM   #6
neha.chaudhary
Knows Where the Search Button Is
 
Join Date: Jan 2010
Model: 8900
PIN: N/A
Carrier: trainee
Posts: 30
Default

but when i transfer this video file on desktop.after converting it into another format ,may be mp4,3gp.it is playing well

so plz help me regarding this issue.

m using following code:

String PATH = System.getProperty("fileconn.dir.videos") + "vidoe.3gp";
videoEncodings = System.getProperty("video.encodings");

final boolean hasVideoRecording = videoEncodings != null
&& videoEncodings.length() > 0;

if (player == null || recorder == null)
{
if (hasVideoRecording)
{
int encodingSpace = videoEncodings
.indexOf(' ');
if (encodingSpace != -1)
{
videoEncodings = videoEncodings
.substring(0, encodingSpace);
}
player = Manager
.createPlayer("capture://video?"
+ videoEncodings);
player.start();
VideoControl video = (VideoControl) player
.getControl("VideoControl");
final Field cameraView = (Field) video
.initDisplayMode(
VideoControl.USE_GUI_PRIMITIVE,
"net.rim.device.api.ui.Field");
getApplication().invokeLater(new Runnable()
{
public void run()
{
add(cameraView);
}
});

}

else
{
player = Manager
.createPlayer("capture://audio");
player.start();
}
recorder = (RecordControl) player
.getControl("RecordControl");
}
conn = (FileConnection)Connector.open(PATH,Connector.READ _WRITE);
if(!conn.exists())
conn.create();
OutputStream b=conn.openDataOutputStream();
recorder.setRecordStream(b);
recorder.startRecord();
recording = true;
Thread.currentThread().sleep(1000);
recorder.stopRecord();
recorder.commit();
recorder.close();
recording = false;
player.stop();
b.close();
player.deallocate();
player.close();
conn.close();
}

Last edited by neha.chaudhary; 02-18-2010 at 11:54 AM..
Offline  
Old 08-11-2010, 11:58 AM   #7
DJChew
Thumbs Must Hurt
 
Join Date: Apr 2005
Location: Kitchener, ON
Model: 8120
Carrier: Rogers
Posts: 93
Default

Hello,

Most people seem to be missing that is the Developer part of the forums. That means that neha.chaudhary is likely developing a BlackBerry application.

MMAPI is the Multimedia API used for developing applications on the BlackBerry with media elements in them, like recoding video.


neha.chaudhary, I have seen this same issue when using the MMAPI.
The issue appeasrs to be a bug which I think is being addressed in a later BB OS. As a workaround, put the recorder.commit(); first, then the recorder.stopRecord();
recorder.stopRecord(); may not be required if you commit first, I forget.
Offline  
Closed Thread



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


LCD Digital Multimeter Voltmeter Ammeter Ohmmeter Volt AC DC Tester Leads Meter picture

LCD Digital Multimeter Voltmeter Ammeter Ohmmeter Volt AC DC Tester Leads Meter

$9.95



5/10Pcs DC 100V 10A Digital Voltmeter Ammeter LED Amp Volt Meter Current Gauge picture

5/10Pcs DC 100V 10A Digital Voltmeter Ammeter LED Amp Volt Meter Current Gauge

$21.98



Digital Multimeter Voltmeter Ammeter AC DC Volt Ohmmeter Tester Meter Auto Range picture

Digital Multimeter Voltmeter Ammeter AC DC Volt Ohmmeter Tester Meter Auto Range

$9.95



Digital Multimeter AC DC Voltmeter Ammeter Ohmmeter Volt Tester Meter DM850 picture

Digital Multimeter AC DC Voltmeter Ammeter Ohmmeter Volt Tester Meter DM850

$7.95



Genuine Husqvarna 532122822 Ammeter 15 AMP Fits Craftsman AYP 121433X 122822X picture

Genuine Husqvarna 532122822 Ammeter 15 AMP Fits Craftsman AYP 121433X 122822X

$19.58



Vintage Weston Ammeter Electrical Instrument Company Model 45 picture

Vintage Weston Ammeter Electrical Instrument Company Model 45

$49.99







Copyright © 2004-2016 BlackBerryForums.com.
The names RIM © and BlackBerry © are registered Trademarks of BlackBerry Inc.