Does JMF support audio PCMA or PCMU codec?

Hi experts,
The first thing I must say that I'm really not good at audio/video/codec field, so I'm not sure I can use the term exactly. Please correct me if any mistakes.
I use JMF and make a desktop application to record my voice, and packetize to RTP packet formatted with ULAW_RTP, GSM_RTP or Gxxx_RTP before sending them to my other android application. My Android app supports two codecs - PCMA and PCMU, and it cannot understand those packets sent from the desktop one.
So I wonder if I can use JMF to create RTP packet which is understandable for Android. Does anyone experience on this problem?
Thanks,
H
Edited by: 866652 on Jun 17, 2011 8:56 AM
I must correct something after reading several lovely complains of Andrew Thompson :-)

hoangtuansu wrote:
their payloadtype's value is the same, in this case is 0. But Android can not undersatnd it, and in addition, their ULAW packet's size is also different, from Android -> PC (PC can understand) is 172 but the one from PC->Android is 492 (???). Things like sample rate, sample size, number of channels, etc will affect the packet size. Additionally, mobile devices may very well have a lower MTU than a normal machine, so that can affect it too.
Even then, there's nothing saying how big an RTP packet should be, how many encoded samples it should hold, etc. So it could be a simple as the PC packing more data per packet.
Most likelly the issue is that Android is 0-4 years old, whereas JMF is 12 years old... so it's almost definately using different versions of the RTP standard.

Similar Messages

  • I have a mid 2009 Macbook Pro and i know the Mini-display port does not support audio out but does it support HDMI out? or do i have to buy a Mini-display to DVI and then a DVI to HDMI adapters?

    I have a mid 2009 Macbook Pro and i know the Mini-display port does not support audio out but does it support HDMI out? or do i have to buy a Mini-display to DVI and then a DVI to HDMI adapters?

    Run MDP to HDMI for picture. Use a cable like this to run sound from your audio out on your Mac to your TV's audio in.  That's about all  you can do.

  • Does JMF Support multilingual absolute paths for video playback?

    Hi everyone,
    I hope I can find some answer here.
    Does JMF supports multilingual paths for videos? E.g. I have a video located by the following URL:
    G:\video\Stürmische\video.mp4
    When I try to open this video by JMF, I get the following Exception: Problem playing video+
    javax.media.NoPlayerException: Cannot find a Player for :file:/G:/video/Stürmische/video.mp4_
    When I use the same video.mp4 file with path containing only simple latin letters, it's played normally.
    Is there any problem with JMF regarding to multilingual paths?
    Many thanks,
    Armine

    868310 wrote:
    I assume that it's a JMF cons. and IMHO, multilingual support for video paths/names should be added in it.Several things...
    1) JMF is designed to play both local files and RTP/RTSP file sources. As such, it uses URLs as resource locators. It makes perfect sense to make that design decision.
    2) URL encoding only allows alphanumeric characters and a handful of special characters. Considering the internet was invented by the United States army and our keyboards don't have those symbols, it makes perfect sense to make that design decision.
    3) Most importantly, JMF hasn't been updated since 2002 and development has been completely discontinued... so "multilingual support" won't ever be added to it.
    And it isn't multilingual support you're asking for, it's support for non-ASCII characters.
    It is my understanding that you can take a path like:
    G:\video\Stürmische\video.mp4
    Run it through some encoding procedure, and come out with a usable URL like:
    G:%5Cvideo%5CSt%FCrmische%5Cvideo.mp4
    Which I got by using the encoder on the following website:
    http://www.blooberry.com/indexdot/html/topics/urlencoding.htm
    Coincidentally, had you done the research that I suggested you do, you might have learned that Java already has something built in to handle encoding non-compliant URLs for you.
    http://download.oracle.com/javase/1.5.0/docs/api/java/net/URLEncoder.html
    So, I'd expect you could use the URLEncoder class to implement suggestion #3 from my previous post.

  • Premiere Pro Does Not Support Audio-Only Capture For Some Formats, Such As HDV?

    In the PPro CS 5.5 Help file  under, "Recording audio", it says:
    "Note: To capture an audio-only file from a digital video source, choose Audio from the Capture menu in the Logging pane of the Capture panel.
    "Premiere Pro does not support audio-only capture for some formats, such as HDV."
    I'm shooting in HDV and if I want to capture audio only, would I just need to switch my setting to DV?
    The only thing is my Canon HV20's HDV audio is MPEG-1 Audio Layer 2, 16 bit, 48 kHz.
    My DV setting is PCM audio, which I think is a better quality format, right?
    Would there be any noticeable difference?
    Thanks.

    Capture your HDV material in the normal way and just drag audio only from the source monitor to the timeline.

  • Does jmf support rtsp protocol?

    i wanna know does jmf support rtsp protocol? now, i play an video(rtsp://localhost/test.avi) by JMStudio, but failed(Controller Error: Failed to realize).
    Anybody can give me some suggestion on how to solve this problem?
    I also know whether i can implement rtsp protocol by jmf? thanks in advance!

    Hi,
    From what I understand optomux is a standard that determines the syntax of the command sent. The commands are sent through serial or Ethernet. You can use LabVIEW (the VISA VIs) to communicate with a device using serial or Ethernet. However, there are no VIs that will build the optomux commands.
    I'm not familiar with them, but you can check out the optomux VIs included with the Fieldpoint explorer. That should give you an idea of how to use the VISA to implement optomux communication.
    DiegoF
    National Instruments.

  • How does jmf support for avi format

    I have written code to play audio and video filesusing JMF..My code is able to run only in mp3 and other 2 formats, but it is failed to run other formats like avi, mov etc..Now i need to play my video file which is their in avi format. Please tell me how does my code supports in other formats too...I had searched in google and it has given me some sites, but i didnt get any solution from them.

    Ok, I rant about this same thing again
    AVI is a file format. Think of it like a can. Either you have a can openor or not, but just because you have the ability to open the can doesn't mean you can necessarily eat what's inside.
    AVI is simply a file format that you can embed audio and video data into. The video itself is going to be encoded using some video encoding, like, RGB or DivX or something like that.
    JMF supports the AVI filetype, but it only supports a few video encodings for the AVI.
    [http://java.sun.com/javase/technologies/desktop/media/jmf/2.1.1/formats.html]
    Same with MOV files. Again, a filetype. You need to make sure the encoding inside the file is supported by JMF, otherwise it won't be able to play it.

  • Does JMF support RTP packets being sent "Faster than real time"?

    I have a situation where some stored audio is passed to a speech recogniser using RTP. This is all working well with JMF. However, since this operation is "offline" (i.e. no live person is actually speaking or hearing this audio stream) and the recognizer is capable of processing the audio very quickly, then the RTP stream could be sending the audio in "faster than real time". What settings in the following components would allow this?
    DataSource _dataSource = Manager.createDataSource(source);
    Processor _processor = Manager.createProcessor(_dataSource);
    TrackControl[] trackControls = _processor.getTrackControls();
    Codec codec[] = new Codec[3];
    codec[0] = new com.ibm.media.codec.audio.rc.RCModule();
    codec[1] = new com.ibm.media.codec.audio.ulaw.JavaEncoder();
    codec[2] = new com.sun.media.codec.audio.ulaw.Packetizer();
    ((com.sun.media.codec.audio.ulaw.Packetizer) codec[2]).setPacketSize(160);
    _processor.realize();
    DataSource dataOutput = _processor.getDataOutput();
    SendStream _sendStream = _rtpManager.createSendStream(dataOutput, 0);
    _sendStream.start();          
    _processor.start();I tried "setRate" on the processor but this had no effect. getRate showed that it was still 1.0
    Best Regards,
    Jamie

    I wrote my own RTP client in about an hour - (seemed simpler than navigating JMF options). It is very basic, but works as I want. The RTP server (the speech recognizer it able to consume the stream and gives exactly the same results).
    package com.sss.mrcp;
    import java.io.InputStream;
    import java.net.DatagramPacket;
    import java.net.DatagramSocket;
    import java.net.InetAddress;
    import java.util.Random;
    public class RTP extends Thread {
         InputStream is;
         String address;
         int port;
         int localPort;
         public RTP(InputStream is, int localPort, String address, int port) {
              this.is = is;
              this.address = address;
              this.port = port;
              this.localPort = localPort;
         public void run()  {
              try {
              DatagramSocket socket = new DatagramSocket(localPort);
              Random r = new Random();
              int sequenceNumber = r.nextInt();
              int syncId = r.nextInt();
              int timeStamp = 0;
              int len = 256;
              byte[] buf = new byte[len];
              int code = 0;
              int headerLength = 12;
              while ((code = is.read(buf, headerLength, len - headerLength)) > -1) {
                   int i = 0;
                   buf[i++] = (byte) 0x80; // version info
                   buf[i++] = (byte) 0x08;     // 8=alaw,0=ulaw
                   sequenceNumber++;
                   buf[i++] = (byte) (sequenceNumber / 0x100);
                   buf[i++] = (byte) (sequenceNumber % 0x100);
                   timeStamp += (len - 12);
                   int timeStampTop = (timeStamp / 0x10000);
                   buf[i++] = (byte) (timeStampTop / 0x100);
                   buf[i++] = (byte) (timeStampTop % 0x100);
                   int timeStampBottom = (timeStamp % 0x10000);
                   buf[i++] = (byte) (timeStampBottom / 0x100);
                   buf[i++] = (byte) (timeStampBottom % 0x100);
                   int syncIdTop = (syncId / 0x10000);
                   buf[i++] = (byte) (syncIdTop / 0x100);
                   buf[i++] = (byte) (syncIdTop % 0x100);
                   int syncIdBottom = (syncId % 0x10000);
                   buf[i++] = (byte) (syncIdBottom / 0x100);
                   buf[i++] = (byte) (syncIdBottom % 0x100);
                   DatagramPacket packet = new DatagramPacket(buf, code+headerLength, InetAddress.getByName(address), port);
                   socket.send(packet);
                   Thread.sleep(1); // this sets the speed of delivery "faster than real time"
              } catch (Exception e) {
                   throw new RuntimeException(e);
    }

  • Does JMF support Firewire digital cameras?

    To get right to it, I'm wondering if I will be able to capture video from a Firewire digital camera. This is in Windows with the newest JMF and a Unibrain Fire-i digital camera. Is it any different from capturing from a USB webcam?
    That said, is this a viable way of capturing video ? Performance wise especially, I'm looking for 30 FPS+ and 640x384 resolution. I've been recommended using LabVIEW (got a license through school). I've got almost zero experience with LabVIEW, but this seems like overkill just to capture some video (?)

    Java doesn't actually care about what hardware the video stream comes from, because all that Java does is use the VFW or DirecShow Windows interfaces to grab the video stream. If the firewire camera is VFW or DirecShow compliant, then maybe JMF will be able to capture from it.
    Your best bet would be to see if JMStudio will detect it and show it. If so, then you're good to go with JMF. Otherwise, it may or may not work but it won't "work" very easily.

  • ITunes does not support audio format of iTubes store song

    I downloaded some songs from the store but some of them say that they cannot be copied because the audio format is not supported by my iPod. The songs do not play in iTunes either. I have a nano with the latest update. What is happening and how do I fix it?
    iMac   Mac OS X (10.4.9)  

    Contact the iTunes Email Support with the names of the songs using the link at the bottom of this page:
    http://www.apple.com/support/itunes/store/authorization/
    Songs from the iTunes Store are in ACC format & should play in iTunes & on your iPod...So it sounds like the songs didn't download correctly.

  • Does Logic support Audio Interface and MIDI simultaneously over USB?

    Hi -
    I'm new to this so please bear with me :-). I have a MacBook running Logic. Also have a MIDI controller hooked up via USB.
    I also have a USB Mixer that I'd like to hookup to the Mac's audio output. Currently, I have the MacBook's headphone output going into the mixer. I'd love to get the cleaner sound afforded by the USB connection. Is this possible while keeping the MIDI connection over USB?

    Thanks, Fox. You're right - I just tried it out and it worked out very well (although I'm getting I high-pitched noise through my monitor speakers only when Logic is running. The noise stops when I exit out of Logic.)
    I couldn't get myself to believe that the Mac/Logic could keep the USB data straight - MIDI on one, and audio on the other, but sure enough, it works just fine. :-)
    Thanks!

  • HT201338 Does thunderbolt support the HDMI audio signal?

    I often do presentation that include audio.  None of the Thunderbolt to HDMI cables carry the audio signal.  I typically end up using my Apple TV  or an external speaker via the audio out.  Does Thunderbolt support audio?  I find no documentation on this.

    Yes it does if your TB to HDMI adapter supports it and the cable.
    If you are having problems getting it to work go into the Sound applet of System Preferences and make sure the Output is to HDMI.

  • Does the lightning to 30 pin adapter support audio?

    I have an iPod touch 5th generation and can't listen to it in the car because the wire from the cars FM transmitter has a 30 pin connection. I was just wondering if the lightning to 30 pin adapter would support the audio.

    Hey treshz98,
    Thanks for the information, I believe the following article addresses your question:
    Lightning to 30-pin Adapter: Using video adapters or other 30-pin accessories
    http://support.apple.com/kb/HT5498
    When you connect an iPod or iPhone with the Lightning to 30-pin Adapter, the iPod or iPhone will be treated like an iPod that does not support iPod Out. You should still be able to navigate through and play your music using the vehicle's built-in user interface.
    Additional information:
    Lightning to 30-pin Adapter - Apple Store (U.S.)
    http://store.apple.com/us/product/MD823ZM/A/lightning-to-30-pin-adapter?fnode=45
    Thanks,
    Matt M.

  • HT3775 i need codec format to support audio to play movies?

    i need codec format to support audio to play movies

    Just download the free, open-source media player VLC. It plays pretty much anything.Get VLC here:
    http://www.videolan.org/vlc/download-macosx.html
    Also, beware of dodgy internet sites that say you can't play a movie and offer to install a 'codec' for you. They're typically malware or spyware.

  • Does FCP support the new Panasonic AVC Intra codec?

    Does FCP support the new Panasonic AVC Intra codec?
    NOT AVCHD but AVC Intra?
    Will it require more rendering or converting before I can use it?
    I am looking at buying the HPX-2000 with the new AVC Intra board, recording to P2. AVC Intra is H.264 codec.

    I don't think this is supported yet.. but the camera's ability to shoot DVCPROHD certainly is.
    Jerry
    Message was edited by: Jerry Hofmann

  • TS4268 Does Iphone4 support Facetime Audio/Video using 3G? Or only when using Wifi?

    Does Iphone4 support Facetime Audio/Video using 3G? Or only when using Wifi?

    iPhone 4 does not support FaceTime over cellular, only Wi-Fi.
    You need iPhone 4S or later and also only if the carrier supports it, 

Maybe you are looking for

  • How do I retieve photos

    How do I retrieve photos off Adobe Photoshop Album Starter Edition to include in my new Adobe Photoshop Elements 11 album?? The trial period has long run out an the product is no longer available to purchase? thanks

  • How do I edit an Image Rollover?

    This is driving me nuts. I've got an Image Rollover and I just want to edit it. The second state isn't on the Properties menu. Is there no way to get back to the initial dialogue that asks you to link the two images? And I truly don't want to be a tr

  • Re-addressing of WAE's management port

    Hi, I would like to re-address management port of WAE. What is the correct method for doing it? Because the WAE is registered in the central manager WAE. When I re-address management port of WAE, the central manager has problem with the new address.

  • REMOVE NESTED LOOP

    HI SAP GURUS I AM USING THE NESTED LOOP   LOOP AT IBKPF into IBKPF_str.     loop at IBSEG into IBSEG_Str.       if IBSEG_Str-BUKRS = IBKPF_Str-BUKRS and IBSEG_Str-BELNR = IBKPF_Str-BELNR and IBSEG_Str-GJAHR = IBKPF_Str-GJAHR.         Move-Correspondi

  • Left speaker on macbook pro retina buzzing!?

    A slight buzzing sound can be heard from the left speaker on low frequency sounds, its not that loud but is noticable and quite annoying. Macbook is still under warranty, is it worth taking it into the store or is this not a problem they would consid