Discussion Board

Results 1 to 9 of 9
  1. #1
    Regular Contributor neel.soft's Avatar
    Join Date
    Oct 2008
    Posts
    95
    hi,
    i want to convert .amr file into .wma and .mp3 file. for that i m using CMMFCodec class .

    But problem is instance of CMMFCodec is not creating.

    Can anybody help me out.

  2. #2
    Registered User Sorcery-ltd's Avatar
    Join Date
    Dec 2006
    Posts
    2,280
    How are you trying to create the codec and on what device?

    Encoders to .wma and .mp3 are NOT available on any devices that I'm aware of. Most, but I think not all devices have an AMR encoder that you can access via CMMFCodec. In this case, it's usually easier to record direct to AMR though.

    I'm sure I answered an extremely similar question very recently.

    If you really need to encode to .wma and .mp3 then you'll need to write/port/buy and license your own codecs.

    Sorcery

  3. #3
    Regular Contributor neel.soft's Avatar
    Join Date
    Oct 2008
    Posts
    95
    hi,


    i m trying to do it with N95. Is conversion supported on specific devices.

    I M USING CMMFCodec class .the applecationb crashes (kern exec3 on n95) &
    on n76 and n80 it leaves .

    what is the exact problem ..

    plz can u explain .

    thanks in advance

  4. #4
    Registered User Sorcery-ltd's Avatar
    Join Date
    Dec 2006
    Posts
    2,280
    If you try to create a codec of a type that isn't present in the device then you'll get a leave with KErrNotSupported. If you get a Kern-EXEC 3 panic then it's probably because of a BC break in the interface, although there are other possible explanations, like a simple firmware bug.

    If the codec isn't present on a device then you certainly can't do conversion with the converter utility either.

    Which codec are you trying to create? (you could paste the line of code where you create it with FourCC types).

    Sorcery

  5. #5
    Regular Contributor neel.soft's Avatar
    Join Date
    Oct 2008
    Posts
    95
    hi,

    i m sure


    i m showing line of code what i got from forum:

    // 1. CMMFCodec* iOCodec = CMMFCodec::NewL(TFourCC(KMMFFourCCCodeAMR), TFourCC(KMMFFourCCCodeMP3));

    or

    // 2.CMMFCodec* iOCodec = CMMFCodec::NewL(TUid::Uid(0x101FAF67));


    what i think is the object of CMMFCodec is the problem?

    the object is giving kern-exec3.




    Can u plz tell me what other 0x101FAF67 uids are there.

    i m not getting the details of these uids . Can u help me out abt these uid?

  6. #6
    Registered User Sorcery-ltd's Avatar
    Join Date
    Dec 2006
    Posts
    2,280
    Hi,

    The FourCC codes should work fine, but the ones you are requesting won't work - as I keep trying to say. The only codecs in the device go to or from PCM16, there are no direct conversion codecs! There are also very few codecs that go from PCM16 to another format.

    You shouldn't use UIDs for creating codecs, that interface is really only for testing by device manufacturers, or for 3rd party developers who've written their own codec and want to be sure that their application or controller plug-in uses their codec. It's not portable across device manufactuers or even models in some cases otherwise.

    Sorcery

  7. #7
    Regular Contributor neel.soft's Avatar
    Join Date
    Oct 2008
    Posts
    95
    hi,

    thanks for ur information..
    what i got now is i Should convert amr to pcm16 and then pcm16 to mp3...

    or any other format i would like to convert ....

    now is it possible to convert like this:

    1. amr->pcm16->mp3

    2. amr->pcm16->wma

    3. amr->pcm16->aac


    i want to convert my recording into all these formats.which one are convertible?

  8. #8
    Nokia Developer Champion qxiaoyuan's Avatar
    Join Date
    Jul 2007
    Location
    ShenZhen, China
    Posts
    4,346
    if you use CMdaAudioInputStream, u can set DataType to pcm16, so it will skip amr --> pcm16.

    and u can do pcm16 --> mp3, pcm16 --> aac, but it will not exist codec pcm16 --> wma.
    it seems u need do it by yourself.
    ----------------------------
    坚持学习, 坚持编码
    http://www.devdiv.net/
    qxiaoyuan

  9. #9
    Registered User Sorcery-ltd's Avatar
    Join Date
    Dec 2006
    Posts
    2,280
    Hi,

    Are you sure about PCM16 -> MP3? There wasn't an MP3 encoder last time I checked.

    Sorcery

Similar Threads

  1. CMMFCodec no longer works in FP2
    By siancu in forum Symbian Media (Closed)
    Replies: 9
    Last Post: 2010-02-01, 13:36
  2. Problem with CAknDoubleStyleListBox with a CAknSearchField
    By jjig in forum Symbian User Interface
    Replies: 2
    Last Post: 2009-09-17, 00:58
  3. Problem with eglSwapBuffers and heap corruption
    By greatape in forum Symbian Media (Closed)
    Replies: 2
    Last Post: 2007-05-24, 03:35
  4. netcards - Problem with opening adapter
    By kernj in forum Symbian Tools & SDKs
    Replies: 5
    Last Post: 2007-01-10, 08:56
  5. Problem: S60 SDK for CW in PC with .NET
    By anttij in forum Carbide.c++ IDE and plug-ins (Closed)
    Replies: 1
    Last Post: 2005-02-28, 11:36

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Nokia Developer aims to help you create apps and publish them so you can connect with users around the world.

京ICP备05048969号  © Copyright Nokia 2013 All rights reserved