Streaming H264 content via RTP/RTSP: VLC works, Quicktime doesn't

Hello,
We are developping a DSP based system that streams H264 content using RTP/RTSP.
We are feeding Quicktime and VLC with a similar URL: rtsp://212.143.39.228:12654/stream/device71_camera2.sdp
Both clients communicate with our server in the RTSP protocol. The following messages pass between Quicktime client and our server:
DESCRIBE rtsp://212.143.39.228:12654/stream/device71_camera2.sdp RTSP/1.0
CSeq: 1
Accept: application/sdp
Bandwidth: 512000
Accept-Language: nl-NL
User-Agent: QuickTime/7.6.7 (qtver=7.6.7;os=Windows NT 5.1Service Pack 3)
RTSP/1.0 200 OK
CSeq: 1
Content-Type: application/sdp
Content-Length: 435
v=0
o=- 4 16975365 IN IP4 212.143.39.228
s=MRS
t=0 0
b=RS:0
b=RR:0
a=range:npt=now-
a=isma-compliance:2,2.0,2
a=control:rtsp://stream/device71_camera2.sdp
m=video 5438 RTP/AVP 97
c=IN IP4 10.0.0.51
a=control:trackID=1
b=AS:250
a=rtpmap:97 H264/90000
a=fmtp:97 packetization-mode=1;profile-level-id=42801E;sprop-parameter-sets=Z0KAHomVQsEtA EA=,aFOAwGHI
a=mpeg4-esid:201
a=cliprect:0,0,288,352
a=framesize:97 352-288
SETUP rtsp://stream/trackID=1 RTSP/1.0
CSeq: 2
Transport: RTP/AVP;unicast;client_port=6970-6971
x-retransmit: our-retransmit
x-dynamic-rate: 1
x-transport-options: late-tolerance=2.900000
User-Agent: QuickTime/7.6.7 (qtver=7.6.7;os=Windows NT 5.1Service Pack 3)
Accept-Language: nl-NL
RTSP/1.0 200 OK
CSeq: 2
Session: 4
Transport: RTP/AVP;unicast;clientport=6970-6971;serverport=12655-12656
PLAY rtsp://212.143.39.228:12654/stream/device71_camera2.sdp RTSP/1.0
CSeq: 3
Range: npt=0.000000-
x-prebuffer: maxtime=2.000000
Session: 4
User-Agent: QuickTime/7.6.7 (qtver=7.6.7;os=Windows NT 5.1Service Pack 3)
RTSP/1.0 200 OK
CSeq: 3
At this stage our server starts sending H264 RTP frames to port 6970 of Quicktime's host machine. No firewall or NAT exists between the client and server machines. Sometimes it is the same machine.
Quicktime client says:
'Negotiating'
'Waiting for media...'
and after 10 seconds it says 'Not Found' and disconnects from the server.
VLC displays the video stream given the same URL.
Why is Quicktime not finding/displaying the stream?

I have managed to pass this stage by adding an 'RTP-Info' header to the 'PLAY' reply. Now the player does buffering and starts counting the time forward as if it were doing a kind of playback, but all that can bee seen on the Quicktime window is the large blue Quicktime icon with dots below scrolling from side to side.
Movie inspector shows an advancing 'Current Time', 'Movie FPS: 0.00', 'Format: StreamingH.264, 352x288, Millions', a good Bit Rate value and a Quality near 100%.

Similar Messages

  • Stream iPad2 content via wifi on hdtv?

    Is it possible to stream content or share the iPad2 screen on our HDTV via our wireless home internet?  I know we can purchase a cord and connect directly to the tv but we don't want to be limited to the cord length.  We normally sit 10 feet away from the screen.
    Would like to show movies and pictures as well as the occasional app for the kids. 
    I am not interested in viewing content from my TV on my iPad.
    We have a PS3 with internet access and a Samsung LCD HDTV and they are all connected to the wifi.  We are able to see content from our desktop thru the PS3 on our TV via our network.
    Is there a way to do this without Apple TV? 

    You will need an AppleTV which is around $120 or a Digital AV Adapter for $30. your choice

  • VLC works- QT doesn't

    I've seen a few similar questions here, but none with answers. Thought I'd throw mine into the mix!
    I have re-purposed my old 20"iMAc G5 for my kids movies. I have a bunch of our DVDs I ripped using Handbrake. The pre-sets used were for the AppleTV, as that's what we typically use to view movies (streaming into our TV room). In full-screen mode, the movies skip, stutter and hang when playing back either in straight QT or using the iTunes interface.
    I was chalking it up to iMac not being able to handle the bit-rate (which I tend to jack up a bit from the pre-set). But before going back and re-ripping (ugh!) I decided to give VLC a try, and whatta ya know-- they all play with no problem!
    Seems odd to me QT can't handle but VLC can— anyone know why that is?

    You missed something.
    I do have VLC installed on my Mac mini.
    I bought QuickTime 7 Pro after my VLC installed.
    Why did I buy QuickTime 7 Pro since VLC has been doing good anyway?
    Because QuickTime is good at making .mov files using international industry standard H.264 with sound track AAC (better than MP3).
    I was confused too, but now I know, a good player is not how many format of videos it can play, it's how good it is supposed to be at.
    VLC can play almost everything, but play a video is nothing, many software can do that.
    Many people installed some third party plug-in to QuickTime player, make it like VLC or windows media player, such as perian.
    But I don't do that.
    QuickTime Pro is good enough to play lots of videos, it's the core stuff of FrontRow too,
    Because Apple wants us to use .mov as possible as we can. We are fan of Apple right?
    MPEG 2 or WMV or AVI are the past tech. H.264 is the future, it's better than DivX or XviD.
    That's how I think.

  • H264.mov , Flash 9 - QT pro works, Compressor Doesn't???

    Creating h.264 movies with QT Pro. Change extension, to .flv, they play fine in Flash 9 player. Use Compressor to make similar movie, change extension to .flv, it doesn't work.
    I need to batch hundreds of movies as we update our websites, so repeatable, preset driven work flow is a must. Any idea why QT Pro works and Compressor doesn't?
    Thank in advance for your time.
    Frank

    You need a mpeg4 compresson that's is set for h.264. The mpeg4 in Compressor doesn't have the setting. Here read this: http://discussions.apple.com/message.jspa?messageID=8779452#8779452

  • How to stream the content of a buffer[] via RTP?

    Hi,
    I have a buffer[] Objekt with encapsulates my Audiodata. I now have to make a DataSource out of my Buffer Object so that I can stream it via an RTP Manager.
    How to do it?
    regards
    einherjar

    You have to create a custom DataSource and a custom stream for the DataSource. The custom stream must implement/override the read() method. The JMF calls read() to get data from the stream to send via RTP. In the body of the read method, you will take a chunk of your buffer[] data and put it into the Buffer object passed as a parameter.

  • HT201335 I can't find the AirPlay menu through control centre on iPad mini.  I don't have Apple TV. Means I can't stream some content (Netflix is useless now)

    I can't find the AirPlay menu through control centre on iPad mini.  I don't have Apple TV. Means I can't stream some content (Netflix is uselessnow)Everything worked Ok but today an error message said I couln't stream video to TV. Fix suggested is turn off mirroring in AirPlay when there is NO MENU for Airplay in iPad mini or iPhone. All support advice keeps on about Apple Tv. I'm NOT USING Apple TV

    http://support.apple.com/kb/ht5209
    http://support.apple.com/kb/ht4437
    http://support.apple.com/kb/TS4215
    http://ipad.about.com/od/iPad_Troubleshooting/a/How-To-Fix-Airplay-Icon-Missing. htm
     Cheers, Tom

  • Which cable (original apple usb or bmw y) shall i use to connect my 4th gen iPod photo 60 gb to bmw f10 (with com box) is it going to work with the apple usb cable and how long does it take till I can access the 33gb content via the bmw display?

    Which cable (original apple usb or bmw y) shall I use to connect my 4th gen iPod photo 60 gb (old but still working ok) to bmw f10 (with com box), build december 2010 > is it going to work with the apple usb cable and if so, how long does it take till I should be able to access the 33gb content via the bmw display?
    Alternatively: How long does it take if I would have to use the bmw y cable till I can access the 33gb content via the bmw display?

    Which cable (original apple usb or bmw y) shall I use to connect my 4th gen iPod photo 60 gb (old but still working ok) to bmw f10 (with com box), build december 2010 > is it going to work with the apple usb cable and if so, how long does it take till I should be able to access the 33gb content via the bmw display?
    Alternatively: How long does it take if I would have to use the bmw y cable till I can access the 33gb content via the bmw display?

  • H264 and mp3 support in VLC needed ? streaming.ffmpeg

    I have found that I need to VLC (video-lan-client) with mp3 support so I used the cvs version of ffmpeg in the  AUR packages but this doesn't seem to support H264 video.
    How do I add H264 support to the PKGBUILD so I can have both. ?
    Any help greatly appreciated I can stream H264 with current version of ffmpeg but no audio
    Then with the ffmpeg-cvs no audio or video.
    This is the same if I am streaming or playing locally.
    Cliff

    You'll need to install GPAC in order to build ffmpeg with H264 support. I don't believe it compiles properly without it. I couldn't find gpac in any of the repositories or AUR so your best best would be to write a pkgbuild yourself or make a request for  someone in the AUR request forum to do it for you.

  • Can I watch streamed content via the internet on Aplle TV

    I have just connected the apple TV to my stereo and TV, I get the Itunes library just fine, youtube etc etc. I would love to be able to stream live contect via the web is it possible to see this on the TV with this device and I'm being stupid. Just cannot figure it out.
    if the event is being streamed live do I just input that address in the stream location via itunes? I tried a test vis USSTREAMS of stored contect and it did not work.
    thanks in advance
    Jeff

    Jeff
    You need to mirror to do that.  If your mac is mid 2011 (early 2011 for MBP) or newer and running OS X 10.8 Mountain Lion you can.  If it is older then you can use a third party app called airparrot.
    Jules

  • Streaming music via airport express not working anymore

    since i installed Lion software on my imac, sometimes streaming audio from my itunes works or does not work. If not working i receive the follwing message:
    Er heeft zich een fout voorgedaan tijdens de verbinding met het AirPlay-apparaat 'LIVING'. De netwerkverbinding is mislukt.
    In english translated: there is a fault during transmission with the airplay equipment " LIVING". The network connetion failed.
    Via my Ipad all working normal.
    Can somebody help me?

    since i installed Lion software on my imac, sometimes streaming audio from my itunes works or does not work. If not working i receive the follwing message:
    Er heeft zich een fout voorgedaan tijdens de verbinding met het AirPlay-apparaat 'LIVING'. De netwerkverbinding is mislukt.
    In english translated: there is a fault during transmission with the airplay equipment " LIVING". The network connetion failed.
    Via my Ipad and my Macbook Pro which is also using Lion software all working normal. Only my imac is doeing strange?????
    Can somebody help me?

  • How do I get non-iTunes content to stream to AppleTV via airplay?

    I have recently upgraded to Mountain Lion and I want to use the airplay feature to stream web content to my AppleTV.  I saw how to enable airplay in iTunes and did that.  The icon was there and my AppleTV showed up in the list when I clicked it.  It is my understanding that I need to have a recent version of hardware to make use of airplay.  I have a Macbook Air, late 2010 version.
    My AppleTV is on.  I can stream to it with an iPad, so it is functioning.  When I select content in iTunes, nothing happens.  The video window appears and starts playing and... nothing.  Ultimately I want to be able to stream from other apps like Safari.  Any ideas?

    Settings-displays-look at the bottom and you should see an airplay menu select your apple tv
    Also
    AirPlay Mirroring
    Requires a second-generation Apple TV or later. Supports the following Mac models:
    iMac (Mid 2011 or newer)
    Mac mini (Mid 2011 or newer)
    MacBook Air (Mid 2011 or newer)
    MacBook Pro (Early 2011 or newer)

  • Quicktime NO Longer Gets Streamed H264 Video . Why

    for teh past year and ahalf i have streamed live content to our helix server, and have been able to watch it with quicktime on other pc's however in teh past month and few updates, quicktime has broken this. no video is diesplayed at all. if we change our live capture to use regular mpeg-4 we can see the video. but onc ewe try to go back to h264, we no longer see any video. vlc works great, so why is it that h264 streaming from our helix server no longer works with quicktime? also why is there such a huge memory leak when you watch live mpeg4 files streamed from a helix server or quicktime server? its huge like 50k a second. in mpeg-4, h263, and h264??

    even if that drive is not hopelessly fragmented (and chances are that it is) it is still a little too full (more than 80%) and certainly will not be performing at its best
    are these 3 drives dedicated to your media or do they contain all sorts of stuff?
    for best performance, consider keeping your main media drive (the 500GB Lacie) dedicated to your capture scratch only, and wipe it clean at the start of each project
    you can use the other drives for your longer term media / library footage / archive documents
    in the meantime consider changing your capture scratch to the G-DRIVE and see if you fair better with that one and/or dig in to your existing stuff and start freeing up space, consolidating uneeded footage on other drives etc
    best
    Andy

  • Recording/Streaming h264 in AMS 5.01 tries to save flv

    I'm trying to record a live stream to the livepkgr application using the following code:
    var cam:Camera;
    var mic:Microphone;
    var video:Video;
    var nc:NetConnection;
    var ns:NetStream;
    var h264Settings:H264VideoStreamSettings;
    cam = Camera.getCamera();
    mic = Microphone.getMicrophone();
    cam.setMode(320, 240, 30, true);
    cam.setQuality(90000,90);
    cam.setMotionLevel(100,200);
    cam.setKeyFrameInterval(keyframe);
    mic.setLoopBack(false);
    mic.rate = 44;
    video = new Video(vidWidth,vidHeight);
    video.attachCamera(cam);
    nc=new NetConnection();
    nc.addEventListener(NetStatusEvent.NET_STATUS, netStatus);
    nc.connect("rtmp://localhost/livepkgr");
    function netStatus(event:NetStatusEvent):void
              var info:Object = event.info;
              if (info.code == "NetConnection.Connect.Success")
                        ns = new NetStream(nc);
                        ns.attachAudio(mic);
                        ns.attachCamera(cam);
                                  h264Settings = new H264VideoStreamSettings();
                                  h264Settings.setProfileLevel(H264Profile.BASELINE, H264Level.LEVEL_3_1);
                                  h264Settings.setMode(320,240,30);
                                  h264Settings.setQuality(90000, 90);
                                  ns.videoStreamSettings = h264Settings;
                                  ns.publish('mystream1','record');
                                  var metaData:Object = new Object();
                                  metaData.codec = ns.videoStreamSettings.codec;
                                  metaData.profile =  h264Settings.profile;
                                  metaData.level = h264Settings.level;
                                  metaData.fps = cam.fps;
                                  metaData.height = cam.height;
                                  metaData.width = cam.width;
                                  metaData.keyFrameInterval = cam.keyFrameInterval;
                                  ns.send("@setDataFrame", "onMetaData", metaData);
    I get this error in the server core.00.log
    [root logs]# tail -n1000 -f core.00.log
    #Version: 1.0
    #Start-Date: 2013-07-17 00:18:51
    #Software: Adobe Media Server 5.0.1 r1076 x64
    2013-07-17          00:19:41          6724          (w)2581173          /opt/adobe/ams/applications/livepkgr/events/_definst_/mystream1/Event.xml does not exist or is invalid.          -
    2013-07-17          00:19:43          6724          (w)2611179          Warning from libf4f.so: [Utils] [mystream1] Discarded all Media Messages till first Video Key Frame. Total duration of discarded Messages - 0 ms
    2013-07-17          00:19:47          6724          (w)2611179          Warning from libflv.so: Recording H264 to FLV is unsupported, tried in FLV : /opt/adobe/ams/applications/livepkgr/streams/_definst_/mystream1.flv.          -
    If I try to publish like this:
    ns.publish('mp4:mystream1.f4v','record');
    then I get this error in my flash player:
    NetStream.Record.NoAccess
    and the following in the server core.00.log
    2013-07-17
    00:25:19
    6724
    (w)2581173
    /opt/adobe/ams/applications/livepkgr/events/_definst_/mystream1.f4v/Event.xml does not exist or is invalid.
    2013-07-17
    00:25:25
    6724
    (e)2611082
    Failed to record mystream1.f4v.
    Can anyone help in this regards?

    btw looks like the feedback form is broken
    Delivery has failed to these recipients or distribution lists:
    Sent by Microsoft Exchange Server 2007
    Received: from inner-relay-store.corp.adobe.com (153.32.1.53) by nahub01.corp.adobe.com (10.8.189.130) with Microsoft SMTP Server id 8.3.342.0; Tue, 4 Nov 2014 15:50:08 -0800 Received: from da1snv011a (da1snv011a.corp.adobe.com [10.116.76.65])     by inner-relay-store.corp.adobe.com (8.12.9/8.12.9) with ESMTP id sA4No0jV000077 for <>; Tue, 4 Nov 2014 15:50:08 -0800 (PST) Date: Tue, 4 Nov 2014 15:50:08 -0800 From: <> To: <> Message-ID: <25806629.553.1415145008625.JavaMail.jrun@da1snv011a> Subject: [ Bug Report ] MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-Mailer: ColdFusion 9 Application Server Return-Path:
    Feedback Report            : ******BUG******
    Concise problem statement:
    File gets corrupted, this has happened with both video or just audio, over a long period of live recording.  The stream is sent via netstream.append and all users can play subscribe without issue.  however upon playback the file is only partially able to play back. and in many cases the file size is grossly oversized
    Steps to reproduce bug:
    1.record a stream to FMS using flash player
    2. after an 1hr of recording stop publishing the stream
    3. wait 20 seconds and append the stream and let it publish for 19mins then stop for 20...continue to do this till you hit a 2.5hr mark.
    Results: Some recordings will work as expected while 1 in 15  the file will play upto a random time without playing the full duration. The file size is also much greater than an equivalent file playing for the same duration
    Expected results:
    The file should play the full duration and the file size shouldn't be so drastically larger than a file that recorded the same equivalent time.

  • Error message when streaming BBC iPlayer via iPad

    I'm using ATV (v7.0.3) to view BBC iPlayer (v 4.5.0.64) content via an iPad Mini Retina 2 (IOS 8.1.3) so everything is up to date.
    I can watch programmes directly on the iPad from BBC iPlayer either by streaming or downloading. Both work OK.
    When I try to watch streamed content via Apple TV via Airplay, I get a message "An error occurred loading this content. Try again later." Every time. If I mirror, the quality is very pixelated, juddery and keeps stopping, so is really unwatchable.
    I can successfully download programmes to the iPad but when I watch via ATV, it just keeps stopping, showing the spinning disk. I have to go back and start it playing again. Sometimes it stops every few minutes, sometimes it will play for longer, but it is very frustrating.
    We have watched TV programmes Airplayed from other apps, including Netflix app, with no problems. We watch Netflix and Youtube direct on ATV which works flawlessly.
    We do use a VPN service (for BBC iPlayer and for Netflix) but that shouldn't really affect anything.
    I can't understand why it plays perfectly on the iPad but not on ATV. Any ideas please? I see that this question has been addressed before but never adequately answered, and not in the last year.
    Thanks.

    Lesley Fenton1 wrote:
    We do use a VPN service (for BBC iPlayer and for Netflix) but that shouldn't really affect anything.
    Of course it will, using anything other than what is supplied by your ISP is going to introduce streaming issues

  • JMF error - Format of Stream not supported in RTP Session Manager

    java.io.IOException: Format of Stream not supported in RTP Session Manager
    at com.sun.media.datasink.rtp.Handler.open(Handler.java:139)
    why this erro occors?
    I already created the DataSink.
    When I try to do this...
    dsk.open(); //here the error got
    dsk.start();     Code of server of media
    I want to sent audio (wav) like a radio, but from file. Without stop to send streaming. PullBufered
    *Class Server that you offers Streaming of midia
    public class Servidor {
    private MediaLocator ml;
    private Processor pro;
    private javax.media.protocol.DataSource ds;
    private DataSink dsk;
    private boolean codificado = false;
    //start the server service, passing the adress of media
    // ex: d:\music\music.wav
    // pass the ip and port, to make a server works
    public void iniciarServicoServidor(String end,String ip, int porta)
    try {
    //capture media
    capturarMidia(end);
    //creates processor
    criarProcessor();
    // configure the processor
    configurarProcessor();
    //setContent RAW
    descreverConteudoEnviado();
    //format the media in right RTP format
    formatRTP();
    //creat the streaming
    criarStreaming();
    //configure the server
    configurarServidor(ip, porta);
    //in this method raise the excepition
    iniciarServidor();
    //when I try to open the DataSink.open() raises the exception
    //java.io.IOException: Format of Stream not supported in RTP Session //Manager
    // at com.sun.media.datasink.rtp.Handler.open(Handler.java:139)
    } catch (RuntimeException e) {
    System.out.println("Houve um erro em iniciarServicoServidor");
    e.printStackTrace();
    public void capturarMidia(String endereco)
    try {
    System.out.println("**************************************************************");
    System.out.println("Iniciando processo de servidor de multimidia em " + Calendar.getInstance().getTime().toString());
    ml = new MediaLocator("file:///" + endereco);
    System.out.println("Midia realizada com sucesso.");
    System.out.println ("[" + "file:///" + endereco +"]");
    } catch (RuntimeException e) {
    System.out.println("Houve um erro em capturarMidia");
    e.printStackTrace ();
    public void criarProcessor()
    try {
    System.out.println("**************************************************************");
    pro = Manager.createProcessor(ml);
    System.out.println("Processor criado com sucesso.");
    System.out.println("Midia com durcao:" + pro.getDuration().getSeconds());
    } catch (NoProcessorException e) {
    System.out.println("Houve um erro em criarProcessor");
    e.printStackTrace();
    } catch (IOException e) {
    System.out.println ("Houve um erro em criarProcessor");
    e.printStackTrace();
    public void configurarProcessor()
    try {
    System.out.println("**************************************************************");
    System.out.println("Processor em estado de configura��o.");
    pro.configure();
    System.out.println("Processor configurado.");
    } catch (RuntimeException e) {
    System.out.println("Houve um erro em configurarProcessor");
    e.printStackTrace();
    public void descreverConteudoEnviado()
    try {
    System.out.println("**************************************************************");
    pro.setContentDescriptor(new ContentDescriptor(ContentDescriptor.RAW));
    System.out.println("Descritor de conteudo:" + pro.getContentDescriptor().toString());
    } catch (NotConfiguredError e) {
    System.out.println("Houve um erro em descreverConteudoEnviado");
    e.printStackTrace();
    private Format checkForVideoSizes(Format original, Format supported) {
    int width, height;
    Dimension size = ((VideoFormat)original).getSize();
    Format jpegFmt = new Format(VideoFormat.JPEG_RTP);
    Format h263Fmt = new Format(VideoFormat.H263_RTP);
    if (supported.matches(jpegFmt)) {
    // For JPEG, make sure width and height are divisible by 8.
    width = (size.width % 8 == 0 ? size.width :
    (int)(size.width / 8) * 8);
    height = (size.height % 8 == 0 ? size.height :
    (int)(size.height / 8) * 8);
    } else if (supported.matches(h263Fmt)) {
    // For H.263, we only support some specific sizes.
    if (size.width < 128) {
    width = 128;
    height = 96;
    } else if ( size.width < 176) {
    width = 176;
    height = 144;
    } else {
    width = 352;
    height = 288;
    } else {
    // We don't know this particular format. We'll just
    // leave it alone then.
    return supported;
    return (new VideoFormat(null,
    new Dimension(width, height),
    Format.NOT_SPECIFIED ,
    null,
    Format.NOT_SPECIFIED)).intersects(supported);
    public void formatRTP()
    try {
    // Program the tracks.
    TrackControl tracks[] = pro.getTrackControls();
    Format supported[];
    Format chosen;
    for (int i = 0; i < tracks.length; i++) {
    Format format = tracks.getFormat();
    if (tracks[i].isEnabled()) {
    supported = tracks[i].getSupportedFormats();
    // We've set the output content to the RAW_RTP.
    // So all the supported formats should work with RTP.
    // We'll just pick the first one.
    if (supported.length > 0) {
    if (supported[0] instanceof VideoFormat) {
    // For video formats, we should double check the
    // sizes since not all formats work in all sizes.
    chosen = checkForVideoSizes(tracks[i].getFormat(),
    supported[0]);
    } else
    chosen = supported[0];
    tracks[i].setFormat(chosen);
    System.err.println("Track " + i + " is set to transmit as:");
    System.err.println(" " + chosen);
    codificado = true;
    } else
    tracks[i].setEnabled(false);
    } else
    tracks[i].setEnabled(false);
    } catch (RuntimeException e) {
    // TODO Auto-generated catch block
    e.printStackTrace();
    public void tocar()
    pro.start();
    public void criarStreaming()
    try {
    System.out.println("**************************************************************");
    if (codificado)
    System.out.println("Midia codificada...");
    System.out.println("Processor entra em estado de realize.");
    pro.realize();
    System.out.println("Processor realized.");
    System.out.println("Adquirindo o streaming a ser enviado.");
    ds = pro.getDataOutput();
    System.out.println("Streaming adquirido pronto a ser enviado.");
    } catch (NotRealizedError e) {
    System.out.println("Houve um erro em criarStreaming");
    System.out.println(e.getMessage());
    e.printStackTrace();
    catch (Exception e) {
    System.out.println(e.getMessage());
    public void configurarServidor(String ip, int porta)
    System.out.println("**************************************************************");
    String url = "rtp://" + ip + ":" + porta + "/audio/1";
    System.out.println("Servidor ira atender em " + url);
    MediaLocator mml = new MediaLocator(url);
    System.out.println("Localizador de midia ja criado");
    try {
    System.out.println("Criando um DataSink a ser enviado.");
    dsk = Manager.createDataSink(ds, mml);
    System.out.println("DataSink criado.");
    } catch (NoDataSinkException e) {
    e.printStackTrace();
    public void iniciarServidor()
    try {
    System.out.println("**************************************************************");
    dsk.open();
    System.out.println("Servidor ligado.");
    dsk.start();
    System.out.println("Servidor iniciado.");
    } catch (SecurityException e) {
    e.printStackTrace();
    } catch (IOException e) {
    e.printStackTrace();
    Gives that output console.
    All methods are executed but the last doesnt works.
    The method that open the DataSink.
    What can I do?
    Iniciando processo de servidor de multimidia em Sun May 13 22:37:02 BRT 2007
    Midia realizada com sucesso.
    [file:///c:\radio.wav ]
    Processor criado com sucesso.
    Midia com durcao:9.223372036854776E9
    Processor em estado de configura��o.
    Processor configurado.
    Descritor de conteudo:RAW
    Midia codificada...
    Processor entra em estado de realize.
    Processor realized.
    Adquirindo o streaming a ser enviado.
    Streaming adquirido pronto a ser enviado.
    Servidor ira atender em rtp://127.0.0.1:22000/audio/1
    Localizador de midia ja criado
    Criando um DataSink a ser enviado.
    streams is [Lcom.sun.media.multiplexer.RawBufferMux$RawBufferSourceStream;@a0dcd9 : 1
    sink: setOutputLocator rtp://127.0.0.1:22000/audio/1
    DataSink criado.
    Track 0 is set to transmit as:
    unknown, 44100.0 Hz, 16-bit, Stereo, LittleEndian, Signed, 176400.0 frame rate, FrameSize=32 bits
    java.io.IOException: Format of Stream not supported in RTP Session Manager
    at com.sun.media.datasink.rtp.Handler.open(Handler.java:139)
    at br.org.multimidiasi.motor.Servidor.iniciarServidor(Servidor.java:291)
    at br.org.multimidiasi.motor.Servidor.iniciarServicoServidor(Servidor.java:43)
    at br.org.multimidiasi.motor.ConsoleServidor.main(ConsoleServidor.java:30)
    Since already thanks so much.
    Exactally in this method raises erros.
    Ive tried another formats (avi, mp3) but all with the same error, what I can do?
    [code] public void iniciarServidor()
    try {
    System.out.println("**************************************************************");
    dsk.open();
    System.out.println("Servidor ligado.");
    dsk.start();
    System.out.println("Servidor iniciado.");
    } catch (SecurityException e) {
    e.printStackTrace();
    } catch (IOException e) {
    e.printStackTrace();
    Track 0 is set to transmit as:
    unknown, 44100.0 Hz, 16-bit, Stereo, LittleEndian, Signed, 176400.0 frame rate, FrameSize=32 bits
    java.io.IOException: Format of Stream not supported in RTP Session Manager
    at com.sun.media.datasink.rtp.Handler.open(Handler.java:139)
    at br.org.multimidiasi.motor.Servidor.iniciarServidor(Servidor.java:291)
    at br.org.multimidiasi.motor.Servidor.iniciarServicoServidor(Servidor.java:43)
    at br.org.multimidiasi.motor.ConsoleServidor.main(ConsoleServidor.java:30)

    unknown, 44100.0 Hz, 16-bit, Stereo,
    LittleEndian, Signed, 176400.0 frame rate,
    FrameSize=32 bits
    java.io.IOException: Format of Stream not supported
    in RTP Session Manager
    The fact that it doesn't know what the format is
    might have to do with the problem. I've had similar
    problems, and I've traced it back to missing jars and
    codecs. Have you tried running the same code locally
    without the transmission to see if you player will
    even play the file?Already and it works, I used Player to play it and play normally, I try to make it with the diferents codecs of audio and video, but no sucess.

Maybe you are looking for