Play sdp file with JMF

Hi,
I have a Darwin Streaming Server(DSS) running on a machine, that reflects several broadcasts from other machines (I'm broadcasting to the DSS with JMF).
I can see all the videos and audio without any problem with Quick Time, but I can't find a way to play the sdp files with jmf. I've searched the web for jmf and sdp, and there isn't much information, i've also tried to play with JMStudio..no luck. In the JMF solution there aren't any samples for SDP files....
If I can't find a way to do it, I'll use Quick Qime 4 Java, the only problem is that there isn't a linux implementation :(
Thanks in advance.
Best regards,
ANeto

Hi,
I have read all the mails on the JMF interest group regarding the Broadcaster and DSS.
Well i too am trying to do a similar application. This is an Application
Casting program basically to share my desktop with the other person sitting
across the network using my client. And in order to multicast this, i am
looking at using Darwin Streamng Server.
The whole idea here is that i break the desktop image up into frames and
then compress them and then send it over, protocol used here is TCP/RTP/UDP.
I am trying to hit this stream of packets to DSS so that it can be accessed
else where over the internet. I'm trying to under stand the basic
authentication mechanism DSS uses, so that i can create the .sdp file and
transfer it over to the DSS, which can further be accessed by any client
that can understands sdp.
As i read in the mail some of you were able to create the .sdp file with your custom built boradcaster and send it to DSS if i am not wrong.
I have tried this with Mpegable Broad caster as you said.
Now the problem i had was to create .sdp file with my application and push it to the DSS.
So have you made some kind of a documentation or can you give me an idea as
to how i can go about this. Or it will be even better if you can share the code with me.

Similar Messages

  • Play audio file with jmf on linux?

    a simple audio player as flow:
    import javax.media.*;
    import java.io.File;
    import java.net.URL;
    public class SimpleAudioPlayer {
        private Player audioPlayer = null;
        public SimpleAudioPlayer(URL url) throws Exception {
            audioPlayer = Manager.createRealizedPlayer(url);
        public SimpleAudioPlayer(File file) throws Exception {
            this(file.toURL());
        public void play() {
            audioPlayer.start();
        public void stop() {
            audioPlayer.close();
        public static void main(String[] args) throws Exception {
            File file = new File("/usr/local/download/1.wav");
            SimpleAudioPlayer sap = new SimpleAudioPlayer(file);
            sap.play();
    }when run the program
    javac -cp jmf.jar SimpleAudioPlayer.java
    java -cp .:jmf.jar SimpleAudioPlayer
    the output as flow:
    Unable to handle format: ima4/ms, 8000.0 Hz, 4-bit, Mono, Unsigned, 4027.0 frame rate, FrameSize=4096 bits
    Failed to prefetch: com.sun.media.PlaybackEngine@defa1a
    Error: Unable to prefetch com.sun.media.PlaybackEngine@defa1a
    How can I play wav file with jmf on linux?(OS is debian5 and jmf cross-platform pack)

    thanks for your reply.
    I tried to replace the wav file "1.wav" with the linear encoded WAV download from pscode.org,and run the code again,but
    BasicTrackControl:prefetchTrack():96 1 bm = com.sun.media.BasicRendererModule@1186fab
    BasicRendererModule.doPrefetch:155 Render : true
    Render buffer size: 32768
    BasicRenderModule.doPrefetch:159
    javax.media.ResourceUnavailableException: Cannot intialize audio device for playback
    at com.sun.media.renderer.audio.JavaSoundRenderer.open(JavaSoundRenderer.java:93)
    at com.sun.media.BasicRendererModule.doPrefetch(BasicRendererModule.java:158)
    at com.sun.media.BasicTrackControl.prefetchTrack(BasicTrackControl.java:99)
    at com.sun.media.PlaybackEngine.doPrefetch1(PlaybackEngine.java:682)
    at com.sun.media.PlaybackEngine.doPrefetch(PlaybackEngine.java:658)
    at com.sun.media.PrefetchWorkThread.process(BasicController.java:1430)
    !!!!!!!§§§§§§§§§§§ BasicTrackControl:prefetchTrack():96
    at com.sun.media.StateTransitionWorkThread.run(BasicController.java:1339)
    Unable to handle format: LINEAR, 16000.0 Hz, 16-bit, Mono, LittleEndian, Signed, 32000.0 frame rate, FrameSize=16 bits
    Failed to prefetch: com.sun.media.PlaybackEngine@26e431
    Error: Unable to prefetch com.sun.media.PlaybackEngine@26e431

  • Play .3gp-files with JMF (jffmpeg)

    Hello,
    for a MMS-Application I'm trying to show 3gp-files with Java. I heard that it should work with jffmpeg but I still couldn't get it to work.
    I added the Codec:
    String JFFMPEG_VIDEO = "net.sourceforge.jffmpeg.VideoDecoder";
    try {
        Codec video = (Codec) Class.forName(JFFMPEG_VIDEO).newInstance();
        PlugInManager.addPlugIn(JFFMPEG_VIDEO,
                video.getSupportedInputFormats(),
                video.getSupportedOutputFormats(null),
                PlugInManager.CODEC);
    } catch (Exception e) {
        e.printStackTrace();
    }and then started the player.
    It already works for mpg-Videos, but if the file-extension is .3gp the player throws a javax.media.NoPlayerException: Cannot find a Player for : file://C:/test.3gp
    When I change the file-name to test.mpg the player initializes but doen't show a picture.
    How can I register the 3gp-extension? Or is anything else missing?
    Thanks in advance for any hint :-)

    I still didn't get it to work as I need it, but I made some progress so far:
    Instead of jffmpeg I used the FOBS for JMF Package (http://fobs.sourceforge.net/index.html) in addition with the JMF.
    Using this package allows you to play a 3gp-Video in Swing that is stored in your filesystem (!).
    I'm still having two problems with this solution:
    - I use a Java Webstart-framework and can't acces the user's harddisk, so I need to play the 3gp-Videos directly from memory (they are stored as byte[] in a database), but the current version of FOBS is limited to 3gp-Playback only from filesystem.
    - Each user of the application has to download and install JMF and FOBS for their OS (system-specific libraries). Especially FOBS is not always very easy to install, because it needs to change some of the jmf.properites. This can not be done with the JAR-distribution-System of WebStart and I'm expecting problems, when the users try to install both packages on their own.
    If you are developing a plain Swing-Application you might be satisfied with the possibilities of FOBS and JMF.
    Good luck :-)

  • Play rtpdump files with jmf

    hello,
    I am trying to play a file created with rtpdump (or etheral) directly with jmf. I don�t know, how to create valid datasource and processor objects for a file with stored rtp-packets. Is there a possibility? Do I have to write an own demultiplexer f�r this rtp-dump format? Especially this RTP packets uses the H.263 format.
    Maybe there exists a code fragment for this problem.
    thanks a lot for your help

    I still didn't get it to work as I need it, but I made some progress so far:
    Instead of jffmpeg I used the FOBS for JMF Package (http://fobs.sourceforge.net/index.html) in addition with the JMF.
    Using this package allows you to play a 3gp-Video in Swing that is stored in your filesystem (!).
    I'm still having two problems with this solution:
    - I use a Java Webstart-framework and can't acces the user's harddisk, so I need to play the 3gp-Videos directly from memory (they are stored as byte[] in a database), but the current version of FOBS is limited to 3gp-Playback only from filesystem.
    - Each user of the application has to download and install JMF and FOBS for their OS (system-specific libraries). Especially FOBS is not always very easy to install, because it needs to change some of the jmf.properites. This can not be done with the JAR-distribution-System of WebStart and I'm expecting problems, when the users try to install both packages on their own.
    If you are developing a plain Swing-Application you might be satisfied with the possibilities of FOBS and JMF.
    Good luck :-)

  • Up-grade to QuickTime refuses to play SDP files

    I have a problem …… as the up-grade to QuickTime refuses to play SDP files, I need the machines to load our IPTV stream with QuickTime Player 7. The Apple Script I have will get they file from the streaming server and open QT7 but only displays the player window once! The next time you hit the button you get sound but no window for the video - please help
    The Script:-
    tell application "QuickTime Player 7" to getURL "rtsp://???.???.??.??/!!v.sdp"
    tell application "QuickTime Player 7" to start “!!v.sdp"

    Hi,
    The only thing I can think of suggesting is to download the Full Feature installer on the link below and save it to your Desktop.
    ftp://ftp.hp.com/pub/softlib/software11/COL29976/al-74809-1/DJ_AIO_NonNet_Full_Win_WW_130_140.exe
    When the download has completed, right click the installer and select 'Run as Administrator' to start the installation.  Do not connect the PC to the printer until the software asks you to.
    Hope this helps.
    Best wishes,
    DP-K
    ****Click the White thumb to say thanks****
    ****Please mark Accept As Solution if it solves your problem****
    ****I don't work for HP****
    Microsoft MVP - Windows Experience

  • SDP Files and JMF?

    Hi,
    has anybody figured out how to get JMF to work with SDP files. I'm using Darwin Streaming Server and accessing the SDP files via JMF rtsp (e.g. rtsp://...ip.../file.sdp)
    I'm getting an ArrayIndexOutOfBoundsException at RtspUtil.rtspStart(...)
    why??
    any help would be appreciated.. Thanks!
    Sheado

    I am facing the same problem. does anyone succeed to write a java RTSP player that interfaces well with SDP (or other format) and Darwin Streaming Server (or any other streaming servers)?
    I don't find any examples of MPEG1 streaming in JMF. Most samples i.e. SimplePlayerApplet.java (param="sun.avi") use local video paths but not rtsp:// URLs.
    Samples like AVreceive.java / RTPUtil.java do not use explicit MPEG1 samples and assume that you have an RTP server. And other apps like http://www.alphaworks.ibm.com/tech/mpeg-4 are not fully open source.
    What streaming server would you suggest to use? I tried without success to stream a video within a java applet using DarwinSS (ok with .mov, .mp4 but not in java) or RealServers (ok with .rm but also not in java).
    In http://java.sun.com/products/java-media/jmf/2.1.1/support-rtp.html it is said that the following RTP servers are compatible with the JMF RTP Player (using javax.media.rtp) but each of them have a serious drawback:
    ShowMeTV Transmitter (commercial), IP/TV Server (commercial), vic (Video only), vat/rat (Audio only).
    Thanks in advance for any reply

  • Latest iTunes no longer plays .0gg files with the Xiph Quicktime fix - any solution?

    Latest iTunes no longer plays .ogg files with the Xiph Quicktime fix - any solution?

    New version (.42) plays ogg files again so Apple have fixed the problem hooray

  • How to open VLC wit JAVA and later play a file with it..?

    Hi,
    I do it if I want to Play a file with VLC:
    Runtime rt = Runtime.getRuntime();
              try {
                   rt.exec("C:\\Program Files\\VideoLAN\\VLC\\vlc " + "C:\\songs\\llarala.mp3");
              } catch (IOException e) {
                   // TODO Auto-generated catch block
                   e.printStackTrace();
    but I want to Open VLC and later work with this VLC opend, for example to Play a file with it. Anyone knows how to do it? Thanks.. I' m new about that..

    Keep working as you are is the simplest way. The VLC client (and server) has a pretty rich command-line interface, you can do pretty much anything through the command-line that you can with any other interface. Or there's the telnet interface, if all those processes are too much

  • Can anybody explain me how to sample and play audio files with logic's EXS2

    can anybody explain me how to sample and play audio files with logic's EXS24 Sampler???
    i cant find a way to upload and manage my own audio content on this sampler...

    i uderstand , thanx...
    i managed to open an audio file and placed it in the sampler,i can play t sample in the little keyboard in the zones section, howver i dont know how to play it with my controller... the sample shows in C1 on logic's keyboard but if i play C1 on my controller nothing happens... how can i fix this?
    Also, i noticed the sample plays from beginning to end once i click on it, how do i do to just make it last until i release the key? like a logic sound??? (in case i want to play a small portion of the sample only)
    Thanx

  • Amarok 1.4.10 from AUR plays flac files with errors

    amarok 1.4.10 from AUR plays flac files with errors and i mean that it plays flac files but with strange behavior and of course the result is awful is there any chance to fix that problem. i have compile it with xine engine, can i use a different engine in PKGBUILD and how. i should write that i don't known much from configure a PKGBUILD by my own. with exaile and totem i have no problem i also play flacs with 24bit and 96khz audio quality. tnks for your time

    Why not amarok 2.3 from extra?
    Found this but its for 2.3: forum.kde.org/viewtopic.php?f=116&t=85428
    looks like amarok just uses xine, which I don't know much about...
    the 2.3 version depends on kde4, so you can run kde4 system settings and switch the multimedia backend between xine, mplayer, and gstreamer (need the aur packages first). I know mplayer should use ffmpeg to playback though.
    Edit: looks like exaile and totem use gstreamer for playback
    Last edited by 1LordAnubis (2010-05-19 16:19:09)

  • My QuickTime player us not playing .avi files and says I need a codec I can't play no .avi files on QuickTime. How could I fix this because I want to play these files with QuickTime.

    My QuickTime player us not playing .avi files and says I need a codec I can't play no .avi files on QuickTime. How could I fix this because I want to play these files with QuickTime.

    Hmm . . . comes with a Utility MPEG2 Component ML app with no explanation of what it's for?
    The utility app is an "assistant PKG installer." It allows Lion and Mountain Lion users to install the older QT MPEG-2 Playback Component installer PKG file which is not allowed to run on its own under Lion or Mountain Lion since these operating systems already have a QT X only MPEG-2 component embedded in the QT embedded structure. Without this utility you would have to either copy the component from an older system to your Lion or Mountain Lion system, use Pacifist for installation, or manually open the PKG contents and transfer the component to the appropriate component folder.
    As to your "discussion" regarding the playback of AVI file types, there are really only two strategies here:
    1) You can add component support so that QT can play the files natively or
    2) You can convert the file contents to compression formats that are natively compatible with the unmodified QT component configuration.
    Each user should decide for his or her own self which approach best suits their needs for a particular source file. In most cases, conforming the system's codec component configuration to play the source file directly results in higher video quality since no transcoding takes place but this strategy will not work if a codec which is required is not available for the user's operating system. On the other hand, converter utilities tend to support more built-in codecs and are easier to use since the user does not have to concern him or herself with the nature of the particular source compression formats but at the risk of some potential loss in visual quality. As to what converter to use, once again this is a matter of personal choice. In the case of commercial converters like iSkysoft, the codecs are built in while MPEG Streamclip accesses the host operating system's QT codec component configuration. I personally prefer the free HandBrake app for AVI, MKV, TS, MTS, and M2TS conversions since it has an exceptionally full-featured X.264 GUI with some user options that 97% of users are likely to never use.

  • Can CDHtmlDialog play swf file with audio component?

    Hello, I'm using CDHtmlDialog in our application to play swf that shows user how to do a workflow. It works fine if swf does NOT have audio; if the swf has audio component, then it does not play.
    Can CDHtmlDialog play swf with audio?
    If not, any suggestion on how to implement playing swf file with audio?
    Many thanks in davance.

    Hi PingHu,
    How do you play the swf file in a html. I tried play a swf file with audio in my CDHtmlDialog class. I just use this:
    Html code Play the SWF file.
    <!DOCTYPE html>
    <html>
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <body>
    <object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="200" height="100">
    <param name="movie" value="filename.swf">
    <param name="wmode" value="transparent">
    <embed src="D:\html directory\swf filename.swf" width="400" height="500" type="application/x-shockwave-flash" />
    </object>
    </body>
    </html>
    Then my sample is able to play a SWF file with audio. Hope this helps some.
    Best regards,
    Shu Hu
    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.

  • Play RTSP stream with JMF

    hello, all, i tried to play RTSP stream with JMF, but i always get error:
         connection info: IN IP4 0.0.0.0
         connection info: IN IP4 0.0.0.0
         Failed to realize: Server is not responding
    But when i play RTSP stream with VLC, everything is well.
    Anybody can help me?
    Regards,
    lefish

    JMF does not. JMF only plays RTP-protocol streams.I doubt it.....though I have never tried to play RTSP streams using JMF but seeing following links I do think client side RTSP is supported by JMF:
    [http://java.sun.com/javase/technologies/desktop/media/jmf/reference/faqs/index.html#jmf2-rtsp-features]
    [http://java.sun.com/javase/technologies/desktop/media/jmf/2.1.1/support-rtsp.html]
    Thanks!

  • Compressing the wav file  with JMF

    Hi Guys,
    Any one of you know about how to compress a wav file with jmf.Please its very urgent.
    Thnaks
    Jast

    Specify a compressed encoding for the audio output format. You'll have to enumerated the supported formats on the output track to finds out what's available to you. In Windows, JMF should be able to use the available system codecs. First try transcoding a wave file in JMStudio to see what works.

  • Just upgraded an iMac with 4GB Memory and Intel Processor from 10.6.8 to Mavericks and Quicktime plays m4v files with stuttering audio

    I just upgraded an iMac with 4GB Memory and 3.33 Ghz  Intel Core Duo Processor from 10.6.8 to Mavericks.  I now have Quicktime 10.3 which plays m4v files with stuttering audio.  This is a nightmare as I use Quicktime a lot in my research.  I have seen similar threads but so far only reporting the problem.  For now I have installed Quicktime Player 10.7 (which appears in utilities, leaving Quicktime 10.3 in the main applications list) which plays the same videos with no problem, but it would be good to know if anyone has managed to find a workaround at all, or know if Apple have plans to do anything about it?

    Slow performance after installing Yosemite on an older Mac is often caused by inadequate memory. Although you can install the upgrade on a Mac with 2 GB of memory, experience has shown that at least 4 GB is needed for full performance.
    Select About This Mac from the Apple menu. If you have less than 4 GB of memory, and your model has upgradable memory, install as much as it can take, or at least that much. Any reputable RAM vendor will have a web form in which you can select the Mac model and be directed to compatible parts.

Maybe you are looking for

  • Windows 7 installation from USB drive issue

    I tried installing Windows 7 through a USB Thumb drive. I got an error message saying  "No device drivers were found. Make sure the installation media contains the correct drivers, and then click OK." Please help me. 

  • Bookmarks in pages

    I am trying to set up some bookmarks in a pages document, and I have made the boookmarks but they dont appear in the inspector toolbox list of bookmarks when i open it up, so i am then unable to link them to anything. Any assistance on how to get the

  • Need help with getStyleDeclaration

    Hi, I'm trying to move my Flex 3 project to new Flash Builder environ. I've a class named "CanvasButtonAccordionHeader" which is extended from an mx:Button instance. There was a code as: var selector:CSSStyleDeclaration = StyleManager.getStyleDeclara

  • EmbedFonts problem with AS2

    Hey everyone, I am having a problem using embedded fonts within my movie and no matter what i try I cannot get it to work. I  have a font embedded which is set to be exported for actionscript and  exported in the first frame. It has an identifier of

  • Crazy Distorted iMac display - Is it the video board?

    This iMac just came to me so i don't if there were any symtoms leading up to its failure. It will only boot from CD and when it does the display completely distorted and pinched... take a look: http://homepage.mac.com/mikeneuhaus/PhotoAlbum6.html I'm