Is it possible to save RTP network stream to a file with DataSink?

Because I found:
http://archives.java.sun.com/cgi-bin/wa?A2=ind9906&L=jmf-interest&P=R4902&I=-3
"Just one more note, if you are using RTP, you will not be able to save the data
to a file. you can only transmit RTP data at this time."
But that was in 1999 year and is it possible in "newer" version of JMF?
This is my code:
processor = Manager.createProcessor(dataSource);
processor .configure();
processor .realize();
ContentDescriptor cd = new ContentDescriptor(ContentDescriptor.RAW_RTP);
processor.setContentDescriptor(cd);
dsOutput = processor.getDataOutput();
               try {
               mediaDest = new MediaLocator("file://d:/temp/tmp1.wav");
               dataSinkSave = Manager.createDataSink( dsOutput, mediaDest );
               dataSinkSave.addDataSinkListener(this);
               dataSinkSave.open();
               dataSinkSave.start();
               dsOutput.start();               
               } catch (Exception e) {
                    e.printStackTrace();               
but it always throws exception:
javax.media.NoDataSinkException: Cannot find a DataSink for: com.sun.media.multiplexer.RawBufferMux$RawBufferDataSource@1c65216
What is the problem?Is it realy impossible to save DataSource to a file???

If you whant to write to wav you have to set content descriptor to a simple RAW format not to RAW_RTP and also you have to write normal formats for output.
Chack also input data. If you have video track you can not write it into wav(I THINK!!!)!!!!
Best, Aram.

Similar Messages

  • How can I save an object Image in a file with .jpg or .gif format?

    Greetings
    I'm programming a Ray Tracer but now I need to know like save an object Image in a file with .jpg or .gif format. Could anyone help me, please? It's very important to me do this as soon as possible. Thanks.

    In 1.4 you have ImageIO available ... javax.imageio.ImageIO.write is the method to call.
    - David

  • Is it possible to hear a soundtrack in a pdf file with an iPad ?

    Is it possible to hear a soundtrack in a pdf file with an iPad ?

    Sorry, but Reader for iPad or iPhone does not yet support sound or video.
    You should get PDF Expert from Readdle. It costs US$9.99 but it's a much better reader, and, among other great features, supports multimedia.

  • How to save for web AND overwrite original files with Action?

    Hello,
    I want to compress a batch of images with "save for web" using a Photoshop Action, and I also want to preserve my folder structure and overwrite source files. The structure is important because it's complex and needs to be structured this way.
    The Problem:
    When I choose "save for web", I must define a destination. What happens is all optimized files from within the structure are saved in a single location.
    Here's an example of the folder structure
    Folder A
         - Subfolder A1
         - Subfolder A2
    Folder B
         - Subfolder B1
         - Subfolder B2
              -Subfolder B2.2
    Folder C
         -Subfolder C1
    Summary
    Is it possible for me to use a Photoshop Action with "save for web", and overwrite my files without moving them from the structure?

    No need to re-invent the wheel.
    Just learn how to use the Image Processor, Image Processor Pro, or Dr. Brown's Services 1-2-3 in Photoshop and/or Bridge.

  • I am running Mac OSx Lion 10.7.2. My problem is I can't search on an external network server for a file with the finder toolbar anymore. Nothing shows up and it will not search. I was able to in snow-leopard and am no longer able to w. Lion. Suggestions?

    I am running Mac OSx Lion 10.7.2.
    My issue is that I am not able to run a search in the finder toolabar on a network server. No files show up nor does it search on the server anymore. I was able to run the search in snow-leopard and am no longer able to do so with Lion. Is there a preference I can change or some kind of app or program I can download that will help me with this issue? This is extremely problematic for me as I am searching for files all day everyday. Thank you!

    Hello,
    It isn't the fw in Network you want o use or look at, that's for something completely different.
    My first suspect is the Power Adapter on the LaCie has gone.
    At the Apple Icon at top left>About this Mac, then click on More Info, then click on Hardware>Firewire, what is listed there?
    Reset the Firewire bus
    If your Firewire or USB isn't recognizing any device.  A solution which has worked for some whose hard drive became invisible in 10.4 was simply to follow these four steps to reset the Firewire/USB bus:
    1. Shut the machine down.
    2. UNPLUG the power lead to the computer and any firewire/USB drive or devices.
    3. leave it for 10 minutes.
    4. Connect back up and reboot.
    http://www.macmaps.com/firewirebug2.html

  • How can I continuously auto-save and auto-name the JPEG files with a controlled time interval

    Hi,
    I am newly involved in some Labview projects that out of my knowledge. I am trying to save multiple JPEG images from a live imaging task to a folder in the computer hard disk every certain minutes. I'd like to name these files with the date and time (eg. Img_06012011_1635. jpg).Then, after hours long image capturing, I can have all the image files in a neat order.
    My goal is to have the jpg files auto saved and auto-named with the data and time at that moment. I also need to control this waiting time between each savings.
    Could you please show me some hints about this? See the vi attached, I know I need to do something on the "write path" part on the up right corner. Thanks!
    Solved!
    Go to Solution.
    Attachments:
    capture.vi ‏28 KB

    Thanks, Steve. When I built up a path with the date and time info and send them to the WriteJPEG File.vi like you mentioned, it stopped saving any files into the folder. Do you think this is the problem from my while loop?Could you show me if there is any other secret functions that restrains the file saving?
    I am planning to save the image files every 30 secs,for example, and then I can have a bunch of jpg files with their unique names after hours long image acquisition.
    I appreciate you kindly help!
    Attachments:
    capture(updated).vi ‏29 KB

  • Is it possible to save a batch of flash 8 files as flash 2004

    I have the pretty arduous task of saving off hundreds of
    flash files as an older version. I wondered if anyone knew if it
    was possible to do this to multiple files rather than me having to
    go through them one by one.
    looking forward to hearing from you!

    melushka,
    > I had a try with autoit but unfortunatly I've never used
    this
    > kind of program so it's all gone over my head!
    I considered a bit before making that suggestion, but I
    believe, in this
    case, it (or something like it) is the only truly automated
    solution.
    > It's a pain that the history within Flash isn't an
    option for
    > save as- that seem to be more my level of computer
    > expertise.
    The History panel is a decent way to be introduced to JSFL,
    actually.
    Steps are recorded automatically and may be saved. When
    saved, they become
    .jsfl files in this folder (Windows) ...
    C:\Documents and Settings\<user>\Local
    Settings\Application
    Data\Macromedia\Flash 8\en\Configuration\Commands\
    They're text files, and can be viewed (and edited) in Notepad
    or any simple
    text editor.
    But as you've discovered, Save As doesn't seem to be an
    option in the
    History panel, and although it is programmable directly, it
    prompts the user
    for input, which means it cannot be completely automated. :(
    David Stiller
    Adobe Community Expert
    Dev blog,
    http://www.quip.net/blog/
    "Luck is the residue of good design."

  • Will it be possible to save last played position in audio file?

    It would be a useful feature, I listen to a lot of podcasts!

    Hi,
    The people who answer questions here, for the most part, are other Firefox users volunteering their time (like me), not Mozilla employees or Firefox developers.
    If you want to leave feedback for Firefox developers, you can go to the Firefox ''Help'' menu and select ''Submit Feedback...'' or use [https://input.mozilla.org/feedback this link]. (You'll need to be on the latest version of Firefox to submit feedback). Your feedback gets collected at http://input.mozilla.org/, where a team of people read it and gather data about the most common issues.
    Hope this helps!
    Curtis

  • Is it possible to add a thumbnail to an image file with core graphics ?

    Hi,
    I'm writing a small image processing application.
    For image reading and writing I'm using core graphics (CGImageSourceRef / CGImageDestinationRef).
    Several image formats like jpeg or tiff provide the option to store a thumbnail in the file.
    To get this thumbnail I'm using
    CGImageSourceCreateThumbnailAtIndex( ... )
    which works fine so far. If there is no thumbnail in the image it is created
    with this function. Now, in the case there was no thumbnail in the image I would like to store
    the created thumbnail in the image file when I write it to the disk. So far I failed to find a function in core graphics
    to perform this task. In the CGImageDestinationRef documention it is only mentioned, that thumbnails
    are written into the output file, but not how to add these.
    I fear I'm overseeing something very trivial ...
    Regards,
    ingo

    normfb wrote:
    I believe that a Smart Object will solve your problem.
    place your original image in a new file as a smart object and do the same for the reflection (made by Transforming, reducing the opacity and introducing a mild horizontal motion blur) on its own layer, then:
    by double clicking on the smart object in the layers panel and returning to the original image, any change you make in the original and save, will automatically update the upright image and its reflection.
    Nice one Norm.  Five Kudos points to you.

  • Does anyone know how to save waveform data (Write to Measurement File) with a variant iteration?

    I'm using LV8.5.1

    I would pull your save data loop to it's own loop then make it event driven like I did in the example. This is just an example and there are probably ways to make the code better and faster but I am just trying to give you an example that we can build on. I am not reall sure what you itterations was for other than to give your loop enough time to save. By seperating the two loops the save no longer depends on the data acquisition loop.
    Tim
    Johnson Controls
    Holland Michigan
    Attachments:
    Parts.vi ‏61 KB

  • How do i save a previously saved garage band file with an ilife preview to export it to imovie? Using the latest garageband

    Help me ASAP plz!!!

    Hi, you have to open the song file in GB, and use the menu option “Share/Media Browser”.  GB will bounce the song and create a song preview that will be stored in the song file package.  The song file MUST be stored in the /Music/GarageBand/ folder, to appear in the iMovie “Content Library/GarageBand” screen.
    Fred.

  • Possible to use swf or other screen capture files with RH8

    Or am I limited to image files. Wish I could transition to HTML but not an option right now.
    Thanks for your help.

    That and the fact that Windows Vista no longer supports WinHelp files out of the box. Users have to download a viewer to enable them to see their contents. WinHelp is a help format that is so little used nowadays that I'd do all you can to migrate to another format.
    Read the RoboColum(n).

  • Is it possible to save 3d model as file from j2se or better from j2me?

    I have created 3d model (m3g) and i want to save it as a 3d file, is there a way for doing this?
    Edited by: 813096 on Nov 18, 2010 2:54 PM

    813096 wrote:
    Thats right, m3g files are 3d graphical models for J2ME. I'm trying to develop a GPS navigation software for mobiles, i have managed to create a 3d map model from an xml data file, this process is too slow and therefor i'm trying to save that 3d model as an m3g file so i could load it directly. To make long story short, i know i can load m3g files, but is it possible to save that 3d model as m3g files by code?
    Edited by: 813096 on Nov 18, 2010 8:56 AMA bit out of my league I'm afraid - J2ME not my area. Perhaps someone else will have something for you.
    In the meantime, I'll see if there's a better forum to put this in on here.

  • Is it Possible to Save the existing querry in Prod System

    Hi Gurus
    Is it possible to save the existing Querry in Production system with another name.if yes pl. tel the procedure.
    thanks and regard kumar. [email protected]
    Message was edited by:
            s k

    Hi s k,
    You can do the query copy in the DEV (development system) & transport the request to the PRD (production system).
    This is the SAP recommended best practise.
    However, you can also directly do the query copy in PRD system, provided you (sap login) have the authorizations to do the same.
    For more information on SAP query, check the following link:
    http://help.sap.com/saphelp_nw04/helpdata/en/d2/cb3efb455611d189710000e8322d00/frameset.htm
    best regards,
    Thangesh

  • Is there a way to save a specific set of open files?

    Hi,
    I'm trying to figure out if it's possible to save a specific set of open files in Flash so that when you close the app and then reopen it, you would either see the files that were open when you closed Flash or at least have the option to select it and it woud then open those files in the order that you left them.
    Is that an option by any chance?
    With all my class files open at one time, I hate having to reload them into the order that makes sense to me every time I launch Flash.
    I was looking into the Projects panel which seems like it's in the direction of what I would like but I can't seem to find anwhere that saves open files.
    Thanks in advance for any insight into this!
    Cole

    I don't believe this is possible with Flash - I've used Flash for a long time, and certain learn new things all the time! But Flash only has a "memory" of recently open files, and doesn't automatically open them for you.
    But, for class files, you're in luck. There's a 3rd party AS editor, FlashDevelop, that does EXACTLY that. When you launch it, it auto opens the multiple AS files you ahd open from the previous day/session. FlashDevelop is a wonderful tool to use for editing your AS (and is quicker than Flash, and does custom class introspection, where it auto-completes your own class properties & methods, as well as many other developer-friendly features).
    http://www.flashdevelop.org
    Here is a screen grab of what Flash Develop lloks liek for me when I open it (showing multiple class files opened yesterday, without me having to open them today)

Maybe you are looking for