RTP receiving whit AVReceive2.java

Hi ,
I used AVReceive2.java in order to receiver the RTP flows whit JMF.
I create the stream RTP using VLC media player but this error occurs :No format has been registered for payload type 33 (or 96 ,depending the format file in input).
How can I change the encapsulation method in vlc?
Can I use an other streaming server? What kind?
Thanks
Tiziana

I have the same problem. Please tell me how to sovel this problem!
Thanks!

Similar Messages

  • How to use AVReceive2.java to receive more than 1 remote participant?

    the receiver code i used is AVReceive2.java
    and the transmitter i used is AVTransmit2.java
    i tried to run AVReceive2.java in my computer and use another two computer to run AVTransmit2.java, i found that the first stream came in would be presented clearly ,but the second or third stream arrived receiver would not work well, especially the video signal would not be presented well ,thought the server printed that it had detected, i tried to make AVTransmit2.java work with muti-stream but it seemed failed. anyone who can help me ?
    the code is here:
    http://www.cs.odu.edu/~cs778/spring04/lectures/jmfsolutions/examplesindex.html#transmitboth

    You would need to have multiple instances of the AVReceuve2 class running simultaniously to receive more than one RTP stream from multiple participants.
    And if you really want the functionality to work well, you'd probably want to develop your own code that would encapsulate receiving an RTP stream and generating a player for it. And have multiple instances of that running simultaniously, one per RTP stream you're receiving...

  • JMF example AVTransmit2.java and AVReceive2.java is not working for me?

    Dear all
    I want to develop a class which will capture my voice data from my microphone and then will send it to the sound system of my PC following RTP protocol. For that I tried both AVTransmit2.java and AVReceive2.java class from http://java.sun.com/products/java-media/jmf/2.1.1/solutions/ but they just not doing it how I want, I am sure I am making some mistake, please let me know.
    Moreover, when I try AudioBufferControl.java from the above link it is doing it for me what I want, let me hear what I am saying to my microphone, but it is using "javasound", I think that is not using RTP. Again if I use JMStudio even then I can hear my voice from microphone to sound system.
    Pls can you help me write a class and let me know what I am doing wrong!
    With care
    Arif.

    Try to follow these steps:
    1. make sure db tables have the pk and fk's pre-existing.
    2. create a brand new workspace
    a) Select New Business Components: business components from tables.
    b) Select these two tables
    c) on the define view pages (step 2), push both objects over, then just click [finish]
    3. Open the ViewController Node
    a) expand Web Content, then WEB-INF
    b) double click struts-config.xml to open it
    4. In Struts-config.xml
    a) drop a datapage, name it BrowseRoster, double click it, then drag and drop the Roster table from your DataControl Palette, as a READ only table.
    b) insert a column as the first cell in the table and drop the operation: setCurrentRowWithKey as a find Row link. This should create the ANCHOR link, i.e.
    ">Show Emps</a>
    c) create another page, EditOneEmp, double click to open that, and EXPAND the Roster table in the Data Control Palette. Drop the Emp table on this as an input form.
    d) Now go back to the STruts-config.xml and draw a forward from the browse to the detail and name the forward setCurrentRowWithKey.
    e) run the browse page from the struts-config.xml file (right click and run). Click on the hyperlink and you should go to the detail input page.
    You may have messed up in Step 4(c). Also, when you run into these situations, as we've run into this NUMEROUS times at work, follow through the examine again, IN A NEW WORKSPACE, and redo each and every step. You must be EXACT or things don't work.
    Let me know if it works out.
    Thanks.

  • RTP Receiver and setBufferLength

    Hi,
    I have a RTP receiver which receive a G723 8khz flow and send it to a Processor configure to produce 48khz flow.
    I have set the RTP manager to produce 64ms packets by this way :
    rtpManager.initialize(new SessionAddress(InetAddress.getLocalHost(), localPort));
    BufferControl bc = (BufferControl) _rtpManager     .getControl("javax.media.control.BufferControl");
    bc.setBufferLength(64);
    The datasource of my processor always produce buffer with 60ms packets.
    Anybody has a idea ?

    With RTPManager you have a function getGlobalReceptionStats()
    you can write:
         GlobalReceptionStats stats=avReceive.mgrs[0].getGlobalReceptionStats ();
         System.out.println("Statistiques video : ");
         System.out.println("Nombre total de paquets re�us :"+stats.getPacketsRecd());
         System.out.println("Nombre de paquets re�us en RTCP :"+stats.getRTCPRecd());
         System.out.println("Nombre de bytes re�us :"+stats.getBytesRecd());
         System.out.println("Nombre de collisions locales :"+stats.getLocalColls());
         System.out.println("Nombre de collisions distantes :"+stats.getRemoteColls());
         System.out.println("Nombre de paquets non re�us :"+stats.getTransmitFailed());

  • Receive SMS using java

    Is there any posiblity to receive sms using java program?

    hi i am also have the same doubt ..did u get soluation for this means can u reply to me

  • RTP receive audio not working

    I gave up on RTPSocketPlayer - could never get it to bind properly.
    Trying AVReceive2 now. Not getting any errors, but no audio either.
    I am trying to do this from within a Java desktop gui application.
    I'm sure that I did something wrong, but not surprising since I am a Java novice.
    AVReceive2 is installed as a class in my desktop package.
    The addr/port values shown are the IP/port of the remote internet appliance that is transmitting the audio stream.
    Here is the calling code:
    String addr = "192.168.0.111";
    String port = "42154";
    String[] strA = new String[3];;
    strA[0] = addr;
    strA[1] = port;
    strA[2] = "1";
    AVReceive2 AVR = new AVReceive2(strA);
    Any ideas as to what I am doing wrong? Probably simple :)

    You're probably trying to transmit and receive on the same local port.
    Transmitter grabs port 42154, binds it, and starts sending information with it.
    The receiver tries to grab port 42154, but it can't because the transmitter is bound to it.
    You'll have to go through the guts of the transmitter. It should have two SessionAddress objects associated with it, a local one and a destination one. Make sure the local SessionAddress object isn't using the same port as the destination SessionAddress, otherwise it will only be able to send data to other computers.
    P.S. If the code you're using doesn't have SessionAddress objects and instead is just outputting to an RTP stream MediaLocator/DataSource, then you're out of luck. You'll need to manage the RTP session yourself using the RTPManager class.
    http://java.sun.com/javase/technologies/desktop/media/jmf/2.1.1/apidocs/javax/media/rtp/RTPManager.html
    Edited by: captfoss on Sep 30, 2008 6:26 PM

  • Receiver FTP adapter java.lang.StringIndexOutOfBoundsException

    Hi,
    i'm getting the following error trying to reach an FTP server using a Receiver CC:
    Attempt to process file failed with Error occurred while connecting to the FTP server "xxxxxx:21": java.lang.StringIndexOutOfBoundsException
    Any help would be really appreciated
    Thanks
    Simona Milione

    Hi
    check the fixedFieldLength parameter for all the fields in you File COntent COnversion
    there is some field whose length is greater than what you specified in FCC
    regards
    krishna

  • XI SOAP receiver adapter. Java and decentral adapter engine.

    Hi,
    I would like to send the below to a web service... have done a custom mapping to
    produce the entire message below, and turned off Use SOAP envelope option in the
    receiver adapter.
    Can anyone point me in the right direction (in terms of the correct why to go about this)
    or to why it is not working? Because I see it in the payload option of the message fine (in RWB).
    Can java mapping be used to build the entire message?
    <SOAP-ENV:Envelope SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" xsi:noNamespaceSchemaLocation=" EnvelopeStructure.xsd">
    <SOAP-ENV:Header>
    <Q-ENV:Header>
    <Q-ENV:Sender-Id>a03430170001</Q-ENV:Sender-Id>
    <Q-ENV:Receiver-Id>1aa1150001</Q-ENV:Receiver-Id>
    <Q-ENV:Correlation-Id>1231201109096878</Q-ENV:Correlation-Id>
    <Q-ENV:Message-Id>M1231201109096878</Q-ENV:Message-Id>
    <Q-ENV:Date-Sent>26 Apr 2004  18:01:08 CDT</Q-ENV:Date-Sent>
    <Q-ENV:Document-Type>RequestForQuotation</Q-ENV:Document-Type>
    <Q-ENV:Message-Format>Q 1.0</Q-ENV:Message-Format>
    </Q-ENV:Header>
    </SOAP-ENV:Header>
    <SOAP-ENV:Body>
    <Q-ENV:Body>
    <Q-ENV:Content-Type>text/xml</Q-ENV:Content-Type>
    <Q-ENV:Message-Type>xCBL</Q-ENV:Message-Type>
    <Q-ENV:Encoding>UTF-8</Q-ENV:Encoding>
    <Q-ENV:Message-Body>
       blah blah
    </Q-ENV:Message-Body>
    </Q-ENV:Body>
    </SOAP-ENV:Body>
    </SOAP-ENV:Envelope>
    thanks
    Dylan.

    I am getting various errors, because I am not sure I understand how this adapter works exactly.
    I would like to send a custom SOAP message.
    I use a java mapping to create the entire soap message...
    In the soap adapter I turn on "Do not Use SOAP envelope".
    What should the final message sent out of the SOAP adapter look like ? Will a standard SOAP
    envelope be added around it anyway?
    Do I need to add beans after the XISoapAdapter bean in order to remove the soap envelope?
    How do the modules work? Is there a good resource on the subject?

  • Is MJPEG/RTP performance improved in Java 6 (Mustang)?

    Hi,
    I use JMF to stream video from a web cam to a client using the Video JPEG/RTP protocol. I have some performance problems in term of fluidity and image quality.
    Is the (M)JPEG/RTP performance is improved in Java 6 (Mustang)?
    I read that Mustang allows to gain about 50% when loading a JPEG image thanks to optimization of com.sun.image.codec.jpeg.JPEGImageReader (http://weblogs.java.net/blog/campbell/archive/2006/01/400_horsepower.html). If this JMF uses this class for JPEG/RTP, the performance should be increased.
    Does anyone has experience on that point?
    Thanks,
    Julien

    Oops, it's not
    com.sun.image.codec.jpeg.JPEGImageReader but
    com.sun.imageio.plugins.jpeg.JPEGImageReader

  • How to send a string from sender to receiver side using java

    I am doing a project on Digital Signature.I have already done with the GUI using java swing.
    Now i want to send a string from the sender side to the receiver side on the click of a button using socket programming.
    Please can anybody provide me with the code as early as possible.

    http://catb.org/~esr/faqs/smart-questions.html

  • Socket AS3 ( Receive File .TXT ) + Java Socket

    Hi,
    I have Java Socket sending .TXT file ( 10 MB ) . But the AS3 only gets 63 Kb . I do not understand the loss of bytes ...
    Souce Java :
    public void sendFile(String fileName) {
            try {
                //handle file read
                File myFile = new File(fileName);
                byte[] mybytearray = new byte[(int) myFile.length()];
                FileInputStream fis = new FileInputStream(myFile);
                BufferedInputStream bis = new BufferedInputStream(fis);
                DataInputStream dis = new DataInputStream(bis);
                dis.readFully(mybytearray, 0, mybytearray.length);
                OutputStream os = clientSocket.getOutputStream();
                byte[] fileSize = intToByte(mybytearray.length);
                byte[] clientData = new byte[(int) myFile.length() + mybytearray.length];
                System.arraycopy(fileSize, 0, clientData, 0, fileSize.length); // Copy to the file size byte array to the sending array (clientData) beginning the in the 0 index
                System.arraycopy(mybytearray, 0, clientData, 4, mybytearray.length); // Copy to the file data byte array to the sending array (clientData) beginning the in the 4 index
                DataOutputStream dos = new DataOutputStream(os);
                //dos.writeUTF(myFile.getName());
                //dos.writeInt(mybytearray.length);
                dos.write(clientData, 0, clientData.length);
                dos.flush();
    AS3 Source..
    private function onResponse(e:ProgressEvent):void {
      var file:File;
      var fs:FileStream;
      var fileData:ByteArray = new ByteArray();
      file = File.documentsDirectory.resolvePath("tmpReceive.txt");
      fs = new FileStream();
      fs.addEventListener(Event.CLOSE,onCloseFileReceive);
    if(_socket.bytesAvailable > 0) {
      while(_socket.bytesAvailable) {
      // read the socket data into the fileData
      _socket.readBytes(fileData,0,0);
      fs.open(file, FileMode.WRITE);
      // Writing the file
      fs.writeBytes(fileData);
      fs.close();

    Crypto streams, like CipherInputStream andCipherOutputStream, do not behave properly until you
    issue a close() call. So if you are going to do
    crypto, you will need to trap the close() before it
    reaches the underlying socket streams. This is
    because the close() method finalizes the cryptographic
    operation. (Flush() would make more sense, no idea
    why they did it this way). You do want to finalize
    the crypto for any given message, but you need to trap
    the close() before it hits the socket and ends the
    whole affair.
    I don't see anything about that in the bug database.
    No matter what streams you are using, if you aregoing to keep the socket open for multiple
    request-response round-trips, you need to very closely
    pay attention to how much data is being sent on each
    trip. Normally, you can fudge this a bit on a
    request-response because the close() call on the
    output stream will cause the receiving input stream to
    behave more or less properly. However, a flush() will
    not.Why not? I use that all the time with no problem.
    A good practice is to send the content-length of
    the message first, so the receiving input stream
    "knows" when to stop reading, does not block, and then
    can send its own bytes back the other direction.
    (Where the process is repeated).
    An alternative is to use two threads: read and write.
    The read recieves, parses, validates and then pushes complete messages to a queue.
    The write pulls messages from the queue, processes and send a result.
    A variation to the above is what happens when an invalid message is received. The server can ignore it, the read can send a error response, or the read can push a message to the queue which causes the write to send a error response.

  • How to synchronize both audio & video received through AVTransmit2.java ?

    hi,
    I will transmit an local video file using AVTransmit2.java, but the problem is i am not able to synchronize both
    audio & video streams transmitted. I have an applet which receives both the streams(audio & video) but it
    plays in different players. how to synchronize both the players ?
    thanks

    I know that In Midlet development using MMAPI there are APIs available to synronize the players like
    p1.setTimaBase(p2.getTimeBase())
    But I am not using Players. Through http connection I m getting the raw image data and displaying it through ImageItem i.e no players required.
    Therefore If i stream the audio like this How to synchronize that.
    I relly need ur Help
    Thanks

  • Mac Mail 3.3 not RECEIVING certain attachments/java attachment?

    I normally get every attachment, outside of from the helpdesk at work.
    when it sends out a .pdf, I do not see an icon, or anything.
    if someone else in the list (on windows) detaches the attachment, then reattaches it and sends it to me, then I receive it normally.
    the support for the helpdesk product said
    you need to check in your email client "Leopard" whether its blocking the java attachments in the email
    but I can't find any options on that, then gave up knowing nothing about "Mail" on leopard when I asked for more information.

    Well, your helpdesk at work is absolutely worthless; apparently they know nothing about Macs or email, or they would have known that there are no such things as Java attachments, and certainly not as part of a PDF file.
    From my perspective, the problem is that whomever is sending these PDF files or other attachments is doing it from Windows, which uses a different encoding scheme than Macintosh, so you aren't seeing the attachment, even though it is there. The person who sends it to you must be re-encoding it to be compatible with the Macintosh encoding scheme. Of course, they could avoid this trouble by simply compressing these attachments into a Zip archive and emailing that, but that's probably too simple for them to consider.
    Mulder

  • JMF 1.0 supports RTP receive

    Hi all,
    I thought JMF 1.0 only supports playback of media from a network source. But then i came through this power point which says that, it supports RTP but receive only. I am confused, what does this mean ? does this mean that a JMF 1.0 client player does support receiving and playing of real time media. However, it does not support transmitting RTP data. I did search a lot about this topic and did not found a whole lot. I have read the JMF 2.0 spec but did not found any answer related to this topic. I haven't found JMF 1.0 spec yet and would really appreciate if some could explain this topic.
    https://www.research.ibm.com/haifa/p...eo/jmf_std.ppt
    Thanks,
    limbu
    Edited by: 878310 on Aug 9, 2011 8:25 AM
    Edited by: 878310 on Aug 9, 2011 8:26 AM

    The latest version of JMF, 2.1.1, supports both sending and receiving via RTP.
    The fact that you've said you can't find anything on the entire internet specifying that makes me think you're probably a troll...

  • Please help me whit this java code

    Hi!
    I have a litle problem whit this question:
    I try to write a program about Salary. The user writes(puts in from keyboard)
    the workers name, hourePayment and hour(how many hours He has worked).
    The program must compute first week ,second week....fourth week
    The user writes just one time name and hourPayment,
    but he must write hours(total hours he has worked)
    for every week(may be ha has worked 30 hours first week and 40 hours second week.....).
    when the user puts in zero the program stops(while(hour!=0)).
    I wrote the program but I have problem whit
    Test class when the program computes first ,second and...weeks, and if the user don not put in zero the program must compute another persons salary
    we should give new name new houre payement....
    how do I use the same information for second person and computes his salary.
    class Salary{
    private String name;
    private double hourPayment;
    public Salary (String name, double hourPayment, ..){
    this.name= name;
    this.hourPayment=hourPayment;
    public String getNamn(){
    return name;}
    public double getHourPayment(){
    return hourPayment;
    public double compute(int time){
    if(time<=40){
    normalSalary =(hourPayment*time);}
    else if(time>40){
    ....=(((40*hourPayment)+(time-40)*(3/2)*hourPayment));
    else if(timmar>70){
    System.out.println("WARRNING:"+" "+"You have worked more than 30

    The code you wrote only computes one week's salary. You need to wrap that inside loops that collect names, rates and hours. Here's some pseudocode to get you started:
    get name
    while name NOT ""
        get rate
        for i = 1 to 4
            get hours worked
            compute pay // this is the part you've coded
        next i
        get name
    end while

Maybe you are looking for

  • Importing cassette tapes into iTunes

    I may be stupid here, but is there a simple way to get my cassette music library into iTunes? I've got some great stuff from "way back when" and don't want to have to buy the CD's (many probably aren't even available now). Thanks!

  • Order type & Number Ranges

    Dear All, Am having A, B and C products. A & B produced in plant and C in other plant. I have used standard order type PP01 for all the products. Now clients wants different number ranges for A , B & C. How to go about it. Should i create three diffe

  • Correction Invoice with Items TreeType != iNotATree

    Hi, I want to create Correction Invoice document with Items which TreeType = SAPbobsCOM.BoItemTreeTypes.iSalesTree When I'm adding Correction with reference to some document (BaseType = 13 or 165, BaseEntry=... and BaseLine = ...) then everything is

  • Page up/down in iTunes music library with the keyboard?

    Hi guys, does anyone knows how I can scroll in my musiclibrary via keyboard with page up/down function? thanks for an answer!

  • Can't find photos after downgrading from Mountain Lion to Snow Leopard

    I downgraded from Lion to Snow Leopard as my comuter was really slow (probably right at the min requirements for the new OS) I can't locate my photos from my Time Machine. How do I access these? I have reinstalled everything back to Lion to try to ge