BlackBerry Forums Support Community               

Closed Thread
 
LinkBack Thread Tools
Old 02-18-2010, 01:32 AM   #1 (permalink)
Knows Where the Search Button Is
 
Join Date: Jan 2010
Model: 8900
PIN: N/A
Carrier: trainee
Posts: 30
Post Thanks: 0
Thanked 0 Times in 0 Posts
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 (permalink)
BlackBerry Master
 
dankarlinski's Avatar
 
Join Date: May 2007
Model: 1
Carrier: 1
Posts: 3,391
Post Thanks: 1
Thanked 2 Times in 2 Posts
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 (permalink)
Knows Where the Search Button Is
 
Join Date: Jan 2010
Model: 8900
PIN: N/A
Carrier: trainee
Posts: 30
Post Thanks: 0
Thanked 0 Times in 0 Posts
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 (permalink)
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
Post Thanks: 0
Thanked 2 Times in 2 Posts
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 (permalink)
Knows Where the Search Button Is
 
Join Date: Jan 2010
Model: 8900
PIN: N/A
Carrier: trainee
Posts: 30
Post Thanks: 0
Thanked 0 Times in 0 Posts
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 (permalink)
Knows Where the Search Button Is
 
Join Date: Jan 2010
Model: 8900
PIN: N/A
Carrier: trainee
Posts: 30
Post Thanks: 0
Thanked 0 Times in 0 Posts
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 (permalink)
Thumbs Must Hurt
 
Join Date: Apr 2005
Location: Kitchener, ON
Model: 8120
Carrier: Rogers
Posts: 93
Post Thanks: 0
Thanked 0 Times in 0 Posts
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  




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