Problem in transmitting audio stream

Hi,
i tried the files AVCustomTrans.java and AVCustomrecv.java file it is working fine if i start the transmission first and the receiver next. but if i start the receiver and then the transmitter it is giving error. Can anybody tell me what the problem might be.

hey!!
i am also getting the same problem .....have u got the solution then plz let me know...
regards,
sumit

Similar Messages

  • Transmitting audio stream by RTP

    Hello:
    I am trying to transmit audio stream with this code, but i dont get it work well.
    The output is:
    C:\RUN\EX14>java AVTransmit2 file:/c:/run/format/au/drip.au 1.1.9.147 45200
    Track 0 is set to transmit as:
    ULAW/rtp, 8000.0 Hz, 8-bit, Mono, FrameSize=8 bits
    Created RTP session: 1.1.9.147 45200
    Start transmission for 60 seconds...
    Code to AVTransmit2.java:
    * Use the RTPManager API to create sessions for each media track of the processor.
    private String createTransmitter() {
         // Cheated. Should have checked the type.
         PushBufferDataSource pbds = (PushBufferDataSource)dataOutput;
         PushBufferStream pbss[] = pbds.getStreams();
         rtpMgrs = new RTPManager[pbss.length];
         SessionAddress localAddr, destAddr;
         InetAddress ipAddr;
         SendStream sendStream;
         int port;
         SourceDescription srcDesList[];
         for (int i = 0; i < pbss.length; i++) {
         try {
              rtpMgrs[i] = RTPManager.newInstance();     
    // The local session address will be created on the
    // same port as the the target port. This is necessary
    // if you use AVTransmit2 in conjunction with JMStudio.
    // JMStudio assumes - in a unicast session - that the
    // transmitter transmits from the same port it is receiving
    // on and sends RTCP Receiver Reports back to this port of
    // the transmitting host.
              port = portBase + 2*i;
              ipAddr = InetAddress.getByName(ipAddress);
              localAddr = new SessionAddress();
    //*          InetAddress.getLocalHost(),
    //*                                   port);
              destAddr = new SessionAddress( ipAddr,
                                  port);
              rtpMgrs.initialize( localAddr);
              rtpMgrs[i].addTarget( destAddr);
              System.err.println( "Created RTP session: " + ipAddress + " " + port);
              sendStream = rtpMgrs[i].createSendStream(dataOutput, i);          
              sendStream.start();
         } catch (Exception e) {
              return e.getMessage();
         return null;
    The code receptor is working well, because I tried it with JMStudio.
    Why it doesnt transmit ?
    I need your greatly help.
    Thanks.

    What is different from your previous question ?

  • Problem with Transmitting media using JMF

    Hello Everyone !!
    I am working on an application called SIPSpeaker which listens for incoming calls, answer the call and plays a message. I am done with the first two parts of the application, i.e. it can successfully answers the call. I am now facing problem with transmitting audio to the SIP Phone (the caller). I am using JMF and I am trying to send the audio over RTP.
    My code looks something like this....
    locator = new MediaLocator("rtp://130.237.214.124:" + port + "/audio");
            f = new File("C:/1.wav");
            try {
                ds = Manager.createDataSource(f.toURL());         
            } catch (NoDataSourceException ex) {
                ex.printStackTrace();
            } catch (MalformedURLException ex) {
                ex.printStackTrace();
            } catch (IOException ex) {
                ex.printStackTrace();
            format = new Format[]{new AudioFormat(AudioFormat.GSM_RTP,8000,8,1)};
            contentDesc = new ContentDescriptor(ContentDescriptor.RAW_RTP);
                    processor = Manager.createProcessor(ds);
                    waitForState(processor,Processor.Configured);
                    processor.setContentDescriptor(contentDesc);
                    processor.getTrackControls()[0].setFormat(format[0]);
                    waitForState(processor,Processor.Realized);
    try {
                sink = Manager.createDataSink(processor.getDataOutput(),locator);
                System.out.println("6");
            } catch (NotRealizedError ex) {
                ex.printStackTrace();
            } catch (NoDataSinkException ex) {
                ex.printStackTrace();
    processor.start();
            try {
                sink.open();
                sink.start();
            } catch (SecurityException ex) {
                ex.printStackTrace();
            } catch (IOException ex) {
                ex.printStackTrace();
               we are required to work with a .wav file as input ....
    i am new to java and to JMF and i have absolutely no idea whats going wrong...
    please help me
    Regards,
    Sanjay !!

    Hello
    following is the error i get
    Failed to realize: com.sun.media.ProcessEngine@618d26
    Cannot build a flow graph with the customized options:
    Unable to transcode format: mpeglayer3, 44100.0 Hz, 16-bit, Stereo, LittleEndian, Signed, 16000.0 frame rate, FrameSize=32768 bits
    to: mpegaudio/rtp, 8000.0 Hz, 8-bit, Mono
    outputting to: RAW/RTP
    Error: Unable to realize com.sun.media.ProcessEngine@618d26
    what could be the problem ???

  • Problem with xvid videos with two audio streams

    / Hi,
    recently I purchased a Creative Zen X-FI2, it is working perfectly, but I only have one problem, I have some videos xvid with two audio streams (mpga), on VLC I can select either of the two audio streams but I haven't found if I can select the audio stream on the Zen player.
    Does anyone knows how to select among different audio streams on a video?

    The X-Fi2 doesn't have such an option.
    If you still want to be able to watch the video with the second audio stream, I think the only possibility is to re-encode it using the second audiostream (or disable the first).

  • Problem Recording Audio Stream: audacity, HDA Intel ALC882, Stereo Mix

    Hi,
    I am trying to record an audio stream using Audacity, but I am having problems. From the mixer toolbar dropdown, I have various options for mic, line, cd, but there is no option for 'stereo mix.'  I have looked at alsamixer, and none of the capture channels are muted.  I would be grateful if someone could point me in the correct direction.
    Regards,
    Ian Sutherland

    You need pulseaudio to capture from the mixer. Try this:
    http://www.ubuntugeek.com/sound-solutio … users.html
                    it worked for me in my Lenovo T61 with HDA Intel sound
    Good luck

  • Audio Stream Problem

    Hello - I'm exporting little movies to QuickTime with a DV-Pal codec. Theys eem to emerge with two differnt audio streams, onesays it the First Audio Stream at 1Hz and 3 channels and the other is the second, 2 channels PCM. Problem is, it won't work on Sprenson squeeze. Why are there two different audio streams, what are they, and can I get rid of the first one..??
    Thanks!
    dave

    Aww, do you know, I tried so many different things that I ran out of options and bought premiere pro - which works like a charm and actually allows me to export directly to flvs anyway...
    So sledgehammer to crack a sledge.
    But thanks ever so for trying to look into it for me...
    All the best
    david
    Pozzitive Television Ltd     
    [email protected] <mailto:[email protected]>
    Follow me on Twitter: '@DavidTylerPozz'
    Tel: +44 (0)207 734 3258
    Mobile: +44 (0)777 445 7823
    www.pozzitive.co.uk <http://www.pozzitive.co.uk>  - new site now live!
    www.youtube.com/pozzitivecomedy - our official YouTube channel now live!
    This message and any attachment are confidential and may be privileged or otherwise protected from disclosure. If you are not the intended recipient, you should not copy it, re-transmit it, use it or disclose its contents, but should return it to the sender immediately and delete your copy from your system. Thank you for your cooperation.

  • Audio - streaming I have a problem and don't know where to ask the question

    I have a MacBook pro, I also have a presonus 16.4.2 FireWire mixing consule.  My band is going to play a online show that will stream through ustream.tv .  When I am connected to the mixer via FireWire the board is recieving audio and on ustreams web ap it shows a place where I can select the presonus for audio but when I select it it does not show any audio input.  Does anyone know how to make it work so I can use the sound coming from the mixer as the sound being broadcast for the stream?  I've never tried using the 8th inch audio input on the Mac but do you think taking two mono quarter inches from the main of the mixer into a stereo 8th inch would work?  Any help is appreciated, the show is this Thursday and I'd like to make it sound as good as possible and avoid having to use the internal microphone.  Or if any of you know a better forum to ask this question please direct me.
    Thanks,
    Aaron

    This will work to get the audio into the console, go to system preferences and set input to line and use the slider for level control.
    If you go to the Apple site, support and search "streaming audio" there is a number of articles that might help.
    Also, if you search" audio streaming firewire"
    Too much to list here.

  • How do I stream music from non-iTunes apps to Airport (mac air core-i7 OS 10.7.5 airport firmware 7.6.1 --- option-clicking speaker icon only shows internal speakers - audio streaming works from iTunes just fine.

    How do I stream music from non-iTunes apps to Airport (mac air core-i7 OS 10.7.5 airport firmware 7.6.1 --- option-clicking speaker icon only shows internal speakers - audio streaming works from iTunes just fine.

    Hello Achates:
    I did not read the rather long post. If you wish to reinstall OS X 10.4, use your software install DVD. Backup is essential. To minimize your risk, I would use an archive and install:
    http://docs.info.apple.com/article.html?artnum=107120
    In that way, you will have a fresh copy of OS X and your current settings will be preserved.
    Incidentally, I do not agree that the printer problem is best solved by reinstalling OS X. I have had HP printers for sometime and, on one occasion, had difficulty after an upgrade. HP technical support walked me through uninstalling all traces of the HP driver and then reinstalling.
    Barry

  • Error encountered while copying audio stream

    In Captivate 4, I attempt to capture screens. I hear the clicking as it captures, I click END when finished. Program attempts to save and then a dialog box displays with "error encountered while copying audio stream". I am not attempting to record any audio.
    I searched the web and found references to this error back two versions and two years - but no solution.
    Does anyone know of a solution? Thanks.

    Hi there,
    I have experienced this on Windows XP. In my case this was due to a dll (Dynamic Link Library) file not being corectly registered in the Windows XP Registry. If you are using XP then take a look at the following blog post.
    Adobe Captivate 4 Installation Issues on Microsoft Windows XP 
    If this doesn't solve the problem or you are using Windows Vista then please report this issue to the Adobe Captivate team using the web address I have included below.
    Adobe Captivate Feature Request/Bug Report Form 
    Best - Mark
    Visit the macrofireball blog

  • IPhone 4S and iPhone 5 Running iOS 6.0.1 and A2DP audio streaming on a 2012 Lexus RX350 (Factory Car Stereo)

    Hello Everyone,
    Before the release of iOS6 and the iPhone 5, I was able to use the A2DP audio streaming on my car no problems and I was really a happy camper, when upgraded my iPhone 4S to the iPhone 5 (Which came already with iOS6) that funtionality did not work any more, I reconnected my iPhone 4s running iOS 5.1.1 and worked like a charm, then I thought my brand new iPhone has bluetooth problem , that same night (Release data iPhone 5 and iOS 6), I update my iPhone 4S and prepare it to give it to my wife, then It occured to me to go and test the phone back on the car but now Running iOS 6 and "viola", the phone did not stream audio via A2DP. So yesterday Apple Release a minor update for iOS (6.0.1) and after reading the release notes (which it did not say anything Bluetooth enhancements) and updating my iPhone, went and try to test again the phone and did not work. (No A2DP audio streaming), Definatelly there is a problem, I called iOS Tech support and open a Case.  Here are the screenshots for the iphone and car stereo.
    Iphone:
    Car Stereo:
    Phone (Voice Feature) works fine with the car.
    This happens when trying to Connect the phone manually.
    If anyone had this problem in the past and solved, please let us know.
    Thanks
    Rommel J. Jimenez

    I had this problem with my iPhone 4 after upgrading to ios 6.0 (10A403).  I called apple support and was given a fix for my problem.  The Apple support rep had me do a reset on my Iphone.  The iPhone then worked with streaming music through bluetooth to my Lexus and also now works with the usb tether.  I did not have to delete the pairing, but that certainly wont hurt.

  • Streaming audio from my IPAD to my Apple TV from Rhapsody application.  when Apple TV go into Screen Saver mode, about 5 minutes after that it stops playing the Audio Stream and goes into Sleep mode.

    I am Streaming audio from my IPAD to my Apple TV from Rhapsody application.  when Apple TV go into Screen Saver mode, about 5 minutes after that it stops playing the Audio Stream and goes into Sleep mode.  I am using the Optical Out from the Apple TV to my receiver, the Apple TV is hard Wired to the Network, the IPAD is Wirelessly attached to the network (it continues to play the Audio Stream).  When the Apple TV is turned back on it resumes playing once I manual select it for output from the IPAD.  All device are on current releases of software.  I have no Video hooked up to the Apple TV.  How do I correct this?

    Intermittent problems are often a result of interference. Interference can be caused by other networks in the neighbourhood or from household electrical items.
    You can download and install iStumbler (NetStumbler for windows users) to help you see which channels are used by neighbouring networks so that you can avoid them, but iStumbler will not see household items.
    Refer to your router manual for instructions on changing your wifi channel or adjusting your multicast rate.
    There are other types of problems that can affect networks, but this is by far the most common, hence worth mentioning first. Networks that have inherent issues can be seen to work differently with different versions of the same software. You might also try moving the Apple TV away from other electrical equipment.

  • How to publish a local audio stream using NetStream?

    As all we know, if we want to publish a stream to FMS or Red5, we can code like below:
    var nc:NetConnection = new NetConnection();
    nc.connect("rtmp://localhost/myApp");
    var ns:NetStream = new NetStream(nc);
    ns.attachAudio(Microphone);
    ns.publish("audio", "live");
    my problem is that we can pass an instance of Microphone to ns.attachAudio() only, if I want to attach a local audio stream,like playing a local sample.flv file to become a audio stream, how can I do?
    this issue has been asked 7 years ago, see the post. but i can not find any solutions.
    any tips will be appreciated. thx in advance.

    how to watch my local network stream using java,help!http://www.ethereal.com - a third party program (but not using java)

  • IOS 8 and Bluetooth Phone and Audio Streaming Failing

    I have a 2013 Nissan Pathfinder and a 2015 Nissan Leaf, both with bluetooth phone integration and audio streaming support.  Both cars worked fine when I had two iPhone 5s paired to both cars and running latest iOS 7.  Both phones worked in both cars and could fully integrate to make calls and also to stream audio from device to car.
    When I upgraded one iPhone 5s to iOS 8 and replaced the other with an iPhone 6Plus running iOS 8, both are having problems with both cars.
    1.  Both gave a "failed connection" message but the phones do actually pair.
    2.  Both cars show a phone handset with a line through it on the in-car display which means no connection.
    3.  The "5 bars" cell signal indicator on the in-car display no longer shows up.
    3.  Outgoing calls made from phone and put through car system work fine except for some garbled audio.
    4.  Incoming calls make the wrong screen appear on the nissan display and can not be answered by the display on the car.  Pushing the answer button on the in-car display doesn't do anything.
    Lots of other tiny issues.  Apple needs a fix here.  I called Nissan and they said it's 100% Apple's fault.
    Anyone else having issues with Nissan Bluetooth integration or any other manufacturer?

    We have a 2008 Nissan Sentra - The bluetooth pairs ok.  When a call comes in on my 5S or my wife's 4S the bluetooth does not do anything.  The bluetooth does not ring and it does not connect to the call.  The call has to be answered on the phone.  Like I said, the phones are paired.  You can access Siri through the bluetooth to initiate a call.  Once the call is connecting, the bluetooth drops off and there is no sound.  Just like when you receive a call.  Apple needs to fix this.  This is completely ridiculous.  I WAS going to buy an iPhone 6.  I will not if this is not fixed.

  • C# Webbrowser using VLCplugin to play online audio stream

    Hello all,
    I have been trying to get the VLC to play a audio stream from a URL address.
    I created a forms application and added a webbroswer from the toolbox. I can navigate no problem but if I goto a link like
    http://audio.wgbh.org/otherWaysToListen/wcai.m3u
    I get a popup dialog that asked do I want to open this file. If i accept VLC opens and it plays no issue.
    However, what I want is it to play without the popup and in my application not with the VLC installed on my computer.
    I have seem many things about VLC selecting files but I have not been able to find a reference for pulling a stream with my C# form when browsing with the webbrowser item on my form.
    Any help would be thankful.

    Hi Badidea,
    >> However, what I want is it to play without the popup and in my application not with the VLC installed on my computer.
    Do you want to open the url without the popup? If so, I think you could block downloads from the webbrowser control, the link below shows the details:
    # How to block downloads in .NET WebBrowser control?
    http://stackoverflow.com/questions/483262/how-to-block-downloads-in-net-webbrowser-control
    But with this way, I am afraid that you could not open the audio. If you want to open the audio without the popup, I think you could automatically download the file, more information you could turn to the link below:
    # Suppressing the Save/Open Dialog box in a WebBrowser control
    http://stackoverflow.com/questions/3538874/suppressing-the-save-open-dialog-box-in-a-webbrowser-control
    But if you want to open the audio in your application without the VLC, I am afraid that you could not achieve that. As you know, the audio needs the special player from the URL, I think it is restricted if you want to open the audio without the player.
    Sorry for the inconvenient.
    Best Regards,
    Edward
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click HERE to participate the survey.

  • Airplay audio streaming from Iphone to ATV crashes when changing randomly title?

    Why does airplay audio streaming from Iphone 4S iOS 7.04 crashes when changing randomly title? The ATV is not connected to a TV, only to an AV Receiver. Anywhere the same problem?
    Thx a lot
    Nolame

    Oops - I messed up the title-
    This is with iOS 7.0.2 and Apple TV 6.0.

Maybe you are looking for

  • Error While Creating Fast Refresh Materialized view.

    Table Scripts: CREATE TABLE CONTRACT_MASTER   CONTRACT_SEQ                    NUMBER(10)    NOT NULL,   PDN                             CHAR(5)       NOT NULL,   APPID                           NUMBER(10)    NOT NULL,   CONTRACT_LOB_DESC             

  • Help with starting sql developer

    Hi everyone I have had oracle express and sql developer on my laptop before untill my hard drive went, now iv installed them again but when I start sql developer I make a new connection then go to create a new user, but when I click create new user,

  • Cannot connect to ANIServer 7.0 - Unknown Error

    Hello! The topology stopped working. Shows that it can not connect to ANIServer for unknown reason. In the shell is visible that the services and ANIServer ANIDbEngine are down. But I can not start because automatically return down. Process          

  • Error while executing FILE to CRM scenario

    Hi I am working on xml file to crm scenario. When I am execting the scenrio I can see success message in XI system but in CRM system SXMB_MONI I found the following error DYNAMIC_CALL_ILLEGAL_METHOD Unable to call the application dynamically. Method

  • Can we import RAW photos into iphoto?

    My brother-in-law has many photos from past reunions that are in RAW format. Can we import these into iphoto and have it work? I really want the photos but he thinks it won't work. What are the steps? He says the file sizes are very large