How to convert media format?
Hi All:
Does any one know how to convert the media format in JMF?
Is there any APIs or Demo about how to convert mp3,avi to the uncompressed wav format?
In windows platform, we can use DirectShow APIs. It's a component of the DirectX SDK. DirectX can help us to decompress the video or audio from compressed format to uncompressed format
(RGB for video, PCM for audio) and it supports streaming also.
Is there any familar APIs in JMF or Opensource for Mac?
Your feedbacks are highly appreciated!
Best Regards,
Tango
Hi,
You can set the codec chain in the Processor (during configured Stage) object which allow you to define your desired Codec, Multiplexer, etc.
For more information, you can look at the JMF API Guide. Since I know that JMF doesn't come with mp3 codec, I think you have to download a codec pack called "ffmpeg" etc which add more Codec to JMF.
About the Mac, I am sorry that I really don't know.
Best Regards
Ferdinand Ng
Similar Messages
-
Don't know how to convert media format! Urgent!
Hey,
Here is my code to convert between format
try
mainProcessor = Manager.createProcessor(new
MediaLocator("file:///c:\\j.wav"));
mainProcessor.configure();
mainProcessor.realize();
}catch (Exception e) {e.printStackTrace();}
DataSink sink;
MediaLocator dest = new MediaLocator
("file:///c:\\newfile.wav");
try{
sink = Manager.createDataSink
(mainProcessor.getDataOutput(), dest);
sink.open();
sink.start();
mainProcessor.start();
} catch (Exception err) { err.printStackTrace();}
I get a problem when I create the datasink object, the program give me such exception:
javax.media.NoDataSinkException: Cannot find a DataSink for: com.sun.media.multiplexer.RawBufferMux$RawBufferDataSource@1a75a2
Can anyone help me to correct the code, or tell me where can I get the code that can convert the format.
Thanks!
NachiTry this:
http://java.sun.com/products/java-media/jmf/2.1.1/solutions/Transcode.html -
How to convert date format dd.mm.yy into yyyymmdd?
Hello experts,
how to convert date format dd.mm.yy into yyyymmdd?
Thanx
AxelHi
go through these previous threads on similar question
https://forums.sdn.sap.com/click.jspa?searchID=673529&messageID=1763194
Date Conversion in Flat File
converting the DATE(yyyymmdd) into MONTH(yyyymm) format
Date Format Conversion from MM.DD.YYYY to YYYYMMDD
gives clear idea
Reagrds
Kiran
Message was edited by:
ravi kiran naalla -
How to convert Date format into day in ssrs reports?
Hi
How to convert date format into day?
10/01/2010 as like Monday like that?=weekdayname(datepart("w",Fields!mydate.Value))
-Vaibhav Chaudhari -
How to convert date format to MM/DD/YYYY
Hi,
How to convert date format to MM/DD/YYYY.
Thanks,
Senthilhi,
tri with this function module
data :l_date(10) type c
CALL FUNCTION 'CONVERT_DATE_TO_EXTERNAL'
EXPORTING
DATE_INTERNAL = SY-DATUM
IMPORTING
DATE_EXTERNAL = l_date.
this function module converts date from 20050601 to external format which is specified in user profile
cheers,
sasi -
How to convert date format in VC 7.0 to DD.MM.YYYY
Hi
I am on VC 7.0.
My requirment is to show Current date as a default value for a input field.
I am using date function now() as default value...and it is displaying the current date
08.07.2009 as Jul 08,2009
But my requirment is to display it as 08.07.2009
Please update me how to convert the data format to be displayed as DD.MM.YYYY format
ThanksHi,
Use DSTR method to change date format. Check the below link for details.
http://help.sap.com/saphelp_nw70/helpdata/en/49/032e66f4a4105ee10000000a42189d/frameset.htm
Regards
Basheer -
How to convert date format in XI? Help!
Hi Experts,
PIP is the input for XI.
The PIP has date as : <DateTimeStamp>20030515T000000.000Z</DateTimeStamp>.
How to convert it into MM/DD/YYYY format in XI?
Thanks
Gopalhi,
use two standard functions:
<b>substring </b>(to take first 8 chars from this field)
<b>DateTrans</b> to change 20030515 to MM/DD/YYYY
http://help.sap.com/saphelp_nw04/helpdata/en/43/c4cdfc334824478090739c04c4a249/content.htm
that's all you need to do very simple
Regards,
michal
<a href="/people/michal.krawczyk2/blog/2005/06/28/xipi-faq-frequently-asked-questions"><b>XI / PI FAQ - Frequently Asked Questions</b></a> -
How to convert well format xml in coldfusion?
Hi,
I am consuming asp.net webservice in coldfusion.It returns xml but it is not in wellformat.
Please suggest me how to convert to well format xml.
Advance Thanks,chandra12345 wrote:
I am consuming asp.net webservice in coldfusion.It returns xml but it is not in wellformat.
Please suggest me how to convert to well format xml.
Technically speaking, a piece of text must be well-formed before it can be called an XML document. So you cannot yet say the returned text is XML.
The first thing to do is to check whether it is. Use, for example, isXml(someString) to check whether someString is well-formed XML.
There is no one standard way to convert text to well-formed XML. This is because there are infinitely many ways in which text can fail to be well-formed. The easiest solution for you will be to learn the rules for well-formed XML.
Any elementary book on XML will teach you that. If you find books old-fashioned, then you could instead google well-formed xml . -
How to convert date format into sap standard format?
Hi All,
In SAPUI5 screen i have one simple form in form i have date field which is format (MM/DD/YYYY). but i am getting POST error while inserting the data in to sap table.
I want convert date format in sap format (YYYY/MM/DD).
One more issue, when i am fetching the data from sap table,but the date display with time and time zone.
eg. Sat Aug 02 2014 05:30:00 GMT+0530 (India Standard Time)
I want to display only date.
Thanks,
Prashant.Now i am using <DatePicker id="Emp_fsdate" displayFormat="yyyy-MM-dd"/>
I checked in console, but date is display like mm/dd/yy
In my controller.js file i have written code
OData.request
requestUri: "http:sap/opu/odata/sap/ZSERVICE_FINAL_SRV/es_sodata",
method: "GET",
headers:
"X-Requested-With": "XMLHttpRequest",
"Content-Type": "application/atom+xml",
"DataServiceVersion": "2.0",
"X-CSRF-Token":"Fetch"
function (data, response){
var header_xcsrf_token = response.headers['x-csrf-token'];
OData.request
requestUri:
"http://sap/opu/odata/sap/ZSERVICE_FINAL_SRV/es_sodata",
method: "POST",
headers:
"X-Requested-With": "XMLHttpRequest",
"Content-Type": "application/atom+xml",
"DataServiceVersion": "2.0",
"Accept": "application/atom+xml,application/atomsvc+xml,application/xml",
"X-CSRF-Token": header_xcsrf_token
data:
Empid:Emp_id,
Empname:Emp_name,
Start_Date:Emp_sdate,
// End_Date:Emp_edate,
Status:Emp_status,
City:Emp_city,
Location:Emp_location,
and in my CREATE_ENTITY method
method ES_SODATA_CREATE_ENTITY.
DATA: ls_request_input_data TYPE zcl_zservice_final_mpc=>ts_et_sodata,
ls_userinfo TYPE zsodata.
DATA ls_temp TYPE sy-datum.
* Read Request Data
io_data_provider->read_entry_data( IMPORTING es_data = ls_request_input_data ).
* Fill workarea to be inserted
ls_userinfo-Empid = ls_request_input_data-Empid.
ls_userinfo-Empname = ls_request_input_data-Empname.
ls_userinfo-Start_Date = ls_request_input_data-Start_Date.
ls_userinfo-End_Date = ls_request_input_data-End_Date.
ls_userinfo-Status = ls_request_input_data-Status.
ls_userinfo-City = ls_request_input_data-City.
ls_userinfo-Location = ls_request_input_data-Location.
* Insert Data in table ZUSERINFO
INSERT zsodata FROM ls_userinfo.
IF sy-subrc = 0.
er_entity = ls_request_input_data. "Fill Exporting parameter ER_ENTITY
ENDIF.
endmethod.
But still i am getting an error
POST http://sap/opu/odata/sap/ZSERVICE_FINAL_SRV/es_sodata 500 (Internal Server Error)
I am able to insert all field except date field. How to insert date field in sap table. -
How to convert Julian format date to regular date format
Hi,
I'm trying to convert Julian date(e.g. 2455657) passed to regular date format(e.g. 2011/4/6), but the Julian date is shown without conversion.
I set the following code, and changed the format to "Date" with "yyyy/M/d" format, but "2455657" is displayed, not "2011/4/6".
<?xdofx:to_date(HIRE_DATE_J,'J')?>
I also set the following with "Text" format field, but it still shows "2455657".
<?xdofx:to_char(to_date(HIRE_DATE_J,'J'),'YYYY/MM/DD')?>
How can I convert Julian format to regular date format?
Thanks in advance
ToruTake a look at the following post: http://blogs.oracle.com/xmlpublisher/2007/08/more_date_calculations.html
and look at the comments section. Based on the comments, it appears that you can not convert from Julian format and you would have to do this in your query.
Thanks,
BIPuser -
How to set media format in IMFMediaSource
I'm, trying to implement a grabber using IMFMediaSource, IMFMediaSession and IMFTopology. I built a topology including the IMFMediaSource and an IMFSampleGrabberSinkCallback. My problem is how to set the current media format. I found a function in msdn:
HRESULT cMFDevice::setDeviceFormat(IMFMediaType *i_type)
IMFPresentationDescriptor *presentationDescriptor = nullptr;
HRESULT hr = m_mediaSource->CreatePresentationDescriptor(&presentationDescriptor);
if (SUCCEEDED(hr))
BOOL selected = FALSE;
IMFStreamDescriptor *streamDescriptor = nullptr;
hr = presentationDescriptor->GetStreamDescriptorByIndex(0, &selected, &streamDescriptor);
if (SUCCEEDED(hr))
IMFMediaTypeHandler *handler = nullptr;
hr = streamDescriptor->GetMediaTypeHandler(&handler);
if (SUCCEEDED(hr))
hr = handler->SetCurrentMediaType(i_type);
SafeRelease(&handler);
SafeRelease(&streamDescriptor);
SafeRelease(&presentationDescriptor);
return hr;
That function works. But only once. If I start the session and stopped it, the current format does change. All return values are fine, but format does not changes in OnProcessSample callback. Any ideas? Do I have to rebuilt complete topology? Must I stop
the session?See Chapter 6 of the Pages User Guide PDF. You can download it from the Help menu.
Once you have mastered Styles, you should be on top of this problem. You may have some specific questions on formatting along the way, and there are lots of experts here to help you.
Jerry -
How to convert dvd format to HD AVI
How do I convert DVD format to HD AVI or HD MP4 from either iMovie or iDVD applications, please help, thank you
You need to convert them to mp4 or m4v. Handbrake is good for this. Mpegstreamclip and Format Factory(pc only) also work. they are all freeware. I'd recommend the handbrake since it also has presets for ipods and i think the ipad, and it has a queue feature....meaning if your dvd has several clips on it you can set it up to do all of them without starting each one individually.
-
How to convert date format(mm/dd/yy) into dd-mm-yy
I want to convert date format(mm/dd/yy) into dd-mm-yy
like 12/23/06 into 23-sep-06hey, you can use SimpleDateFormat to format your date. this is sample code, maybe could help you.
class dateFormat
public static void main(String[] args)
Date now = new Date();
System.out.println("Before format : "+now);
SimpleDateFormat sdf = new SimpleDateFormat( "dd-MM-yy" );//Change your date format in here.
String display = sdf.format(now);
System.out.println("After format : "+display);
}If you already understand about my sample code, i think it's easy to make your own date format. Just modified few line of my code. -
How to convert date format automatically
My question is that how to define fix format of date for hole form, suppose i enter the data in date column
the date should take automatically format how to this for example, type only 01012010 when i press enter after that at once show 01-01-2010. but you remeber for hole form because i dont want to fire trigger for each column.
I also tried on post-change and post-query but it doesn't work.The following best coding for your help, if you follow this coding, you will not also get error in text column.
Pre-text-item -- DEFINE TRIGGER AT FORM LEVEL
declare
dummy varchar2(20);
begin
if :system.trigger_item is not null then
dummy := get_item_property(:system.trigger_item,item_type);
if dummy = 'TEXT ITEM' then
dummy := get_item_property(:system.trigger_item,datatype);
end if;
if dummy = 'DATE' then
set_item_property(:system.trigger_item,format_mask,'DDMMYYYY');
end if;
end if;
end;
post-text-item -- DEFINE TRIGGER AT FORM LEVEL
declare
dummy varchar2(20);
begin
if :system.trigger_item is not null then
dummy := get_item_property(:system.trigger_item,item_type);
if dummy = 'TEXT ITEM' then
dummy := get_item_property(:system.trigger_item,datatype);
end if;
if dummy = 'DATE' then
set_item_property(:system.trigger_item,format_mask,'DD-MM-YYYY');
end if;
end if;
end;Thank you, -
How to convert date format to ISO8601 in Oracle BPEL
Hi,
I need to convert date format from YYYY/MM/DD 00:00:00 to YYYY-MM-DDThh:mm:ss format in oracle BPEL. Can any of you help me out. Thanks in advance.Hi Anuj,
I have use the below mentioned code to convert the date format.
<db:P_X_DATE_FROM>
<xsl:value-of select='concat(substring(../VALUE,1.0,4.0),"-",substring(../VALUE,6.0,2.0),"-",substring(../VALUE,9.0,2.0),"T",substring(../VALUE,12.0,8.0))'/>
</db:P_X_DATE_FROM>
Thanks & Regards,
Jyotirmoy.
Maybe you are looking for
-
Is iPhoto the program I need?
I've have just posted a version of this in the iMovie forum, and they suggested I go to the iPhoto forum. Here is what I want to do: 1. Prepare a presentation of member's photos (slides, prints, digital) for a camera club. The presentation will consi
-
me and my wife are having trouble udating our iphones with itunes our passwords havent changed. when i try to udate my iphone her email address comes up and wants her password and when she udates her iphone apps my email address comes up and sometime
-
Adding new fields in Item details screen in VA01 tcode
Hi all, My requirement is to add custom fields in 'Additional Data B' tab of VA01 transaction. That is, after entering the material and quantity, if i double click tat material, it goes to item details screen. In taht, 'Additional data B' tab is ther
-
Windows 7 IE9 will not open up PDF after acrboat reader XI Install
Hello, We have many users getting this problem. We have Acrobat Standard 9 installed on all of our computers. Some have installed Acrobat reader XI and I am not sure why. I suspect they were prompted somehow. After the intsall we can no longer open u
-
Assigning a Custom URL to a Blog? Possible?
Any chance of assigning a custom URL to a specific weblog? For example http://weblog.mycustomerdomain.com