[openbeosmediakit] Re: MediaFormats ...
- From: Frans van Nispen <xlr8@xxxxxxx>
- To: openbeosmediakit@xxxxxxxxxxxxx
- Date: Wed, 22 May 2002 19:55:15 +0000
>Hmm, ok I suggest you have a look at the sample code in /boot/optional/sample
>-code/media_kit/MediaFile/easy/easy-media-reader.cpp
>
>That shows how to open a file and extract raw audio from it.
>For a more complex one look at /boot/optional/sample-code/media_kit/MediaFile
>/mplay
I already figured that the decoders do not all support float output, so I have
added code
to do so myself.
The big problem I have now is that I want to save the buffers in memory
(floats, mono or stereo)
to a file with a format selected from a popup menu and a chosen codec to use.
Creating the BMediaFile works ok, CheckInit() too, but then trying to create
the BMediaTrack
always failes, no matter what I try.
Does anyone of you have a codesnippet that shows me how to do so ????
I need to be able to save off mono/stereo in 8, 16 or 32 bit with a selected
codec and check
whether the codec does support it.
Regards,
Frans van Nispen.
>
> If you have a valid decoder then it should return you buffers of whatever
>the decoder can handle. Some decoders may not be able to give you what you
>want though, you basically ask for a format but the decoder may say no.
>
>>While the encoders/decoder are under NDA, I am wondering if it is possible
>to
>>create our own without breaking the NDA ?
>>
>>And as Be was still working on this kit, wouldn't it be better to provide a
>>new
>>API
>>for this purpose ??
>
>I believe that this is what will be done. We cannot recreate the current
>BeOS encoder/decoder API as it was never public so a new one will be
>developed.
>
>>So far it looks like I'm better of writing my custom importers / exporters
>>for
>>my
>>media apps.
>
>Hmm, maybe. If you write some code to decoder/encode the data you want I
>can turn it into a decoder/encoder.
>
>What file formats are you trying to do?
>
>
>--
>Cheers
>David
>
>-----BEGIN PGP SIGNATURE-----
>Version: PGPfreeware 5.0i for non-commercial use
>MessageID: dipc5u1ta+kiFMBsP8n5dI0uO8EdILK1
>
>iQA/AwUAOoJlpeukVpGCXs38EQJLrQCdHdXyRe79paTWNPQK7RXJdXs2WpAAoNqs
>KOYrgPTv0AquHh7G1DbmW2gL
>=84aq
>-----END PGP SIGNATURE-----
>
>If you're not very clever you should be conciliatory.
> -- Benjamin Disraeli
>
- References:
- [openbeosmediakit] Re: device driver
- From: Marcus Overhagen
- [openbeosmediakit] MediaFormats ...
- From: Frans van Nispen
- [openbeosmediakit] Re: MediaFormats ...
- From: David McPaul
- [openbeosmediakit] Re: MediaFormats ...
- From: Frans van Nispen
- [openbeosmediakit] Re: MediaFormats ...
- From: David McPaul
Other related posts:
- » [openbeosmediakit] MediaFormats ...
- » [openbeosmediakit] Re: MediaFormats ...
- » [openbeosmediakit] Re: MediaFormats ...
- » [openbeosmediakit] Re: MediaFormats ...
- » [openbeosmediakit] Re: MediaFormats ...
- [openbeosmediakit] Re: device driver
- From: Marcus Overhagen
- [openbeosmediakit] MediaFormats ...
- From: Frans van Nispen
- [openbeosmediakit] Re: MediaFormats ...
- From: David McPaul
- [openbeosmediakit] Re: MediaFormats ...
- From: Frans van Nispen
- [openbeosmediakit] Re: MediaFormats ...
- From: David McPaul