Play an rtp stream and save at the same time

Hello
How cam i play and save at the same time an rtp stream.
can anyone help me about this.
Thanks

Hello
How cam i play and save at the same time an rtp stream.
can anyone help me about this.
Thanks

Similar Messages

  • Playback and save at the same time?

    I am using following code to try to play media and save it at the same time,but when recording starts,the player stops,and recording doesn't succeed.when I appointed a name such as abc.mov,it produces two files: abc.mov(0kb) and the other
    abc.nonstreamable.mov whose size appears to be growing continuously,but at last cannot be opened using any tools.
    Who has some solutions?Thanks in advance!
    DataSource cloner;
    DataSource forPlay;
    DataSource forSave;
    //...get data source from the receive stream
    dsource = stream.getDataSource();
    cloner = Manager.createCloneableDataSource( dsource );
    forPlay = ((SourceCloneable)cloner).createClone();
    player = Manager.createPlayer( forPlay );
    //when do recording
    forSave = ((SourceCloneable)cloner).createClone();
    Processor p = Manager.createProcessor(forSave);

    Hello!
    Try to use the cloner directly for the player. It seems that all clones need a cloneableableDataSource, which is working on a player or processor:
    DataSource cloner;
    DataSource forPlay;
    DataSource forSave;
    //...get data source from the receive stream
    dsource = stream.getDataSource();
    cloner = Manager.createCloneableDataSource( dsource );// forPlay = ((SourceCloneable)cloner).createClone();
    player = Manager.createPlayer( cloner );
    //when do recording
    forSave = ((SourceCloneable)cloner).createClone();
    Processor p = Manager.createProcessor(forSave);

  • Help me !!!how to use a DataSource to play and save at the same time??

    I create a DataSource :
    DataSource ds = Manager.createDataSource(new MediaLocator("rtp://192.168.2.195:10000/audio"));
    use this DataSource to create a cloneable DataSource:
    ds = Manager.createCloneableDataSource(ds);
    use this cloneable DataSource to create two datasource "saveDataSource" and "playDataSource",playDataSourceis used to play,saveDataSource is used to save;
    DataSource playDataSource = ((SourceCloneable)ds).createClone();
    DataSource saveDataSource = ((SourceCloneable)ds).createClone();
    Player player = Manager.createRealizedPlayer(playDataSource);
    player.start();
    but i can not hear anything ,if i use ds to create a player ,i can hear the voice.
    who can help me ,THX

    Thanks you ,now I can play with a clone dataSource ,but i also have a problem about how to save the voice to a local file .
    MediaLocator audioFile = new MediaLocator("rtp://192.168.2.210:"+audioPort+"/audio");
                             DataSource ds = Manager.createDataSource(audioFile);
                             Processor processor = null;
                             processor = Manager.createProcessor(ds);
                             processor.configure();
                           boolean result = waitForState(processor, processor.Configured);
                           if (result == false)
                               System.err.println("configuring failed");
                           processor.setContentDescriptor(new ContentDescriptor(ContentDescriptor.RAW));
                           processor.realize();
                           result = waitForState(processor, processor.Realized);
                           if (result == false)
                               System.err.println("realizing failed");
                           processor.start();
                           ds = processor.getDataOutput();
                           DataSource playDataSource = Manager.createCloneableDataSource( ds );
                           String type = com.sun.media.MimeManager.getMimeType("wav");
                           type = ContentDescriptor.mimeTypeToPackageName(type);
                           Processor saveProcessor = Manager.createRealizedProcessor(new ProcessorModel(ds,null,new FileTypeDescriptor(type)));
                           Player player = javax.media.Manager.createPlayer(playDataSource);
                           DataSink dsink = Manager.createDataSink(saveProcessor.getDataOutput(), new MediaLocator("file://D:/record/1234.wav"));
                             System.out.println();
                             System.out.println("-> Playing file '" + audioFile + "'");
                             System.out.println("   Press the Enter key to exit");
                             player.start();
                             dsink.open();
                             dsink.start();
                             saveProcessor.start();i can save a file ,but it can not play.

  • Streaming wifi and bluetooth at the same time is it possible in air play from iPod

    Streaming bluetooth and wifi at the same. Is it possible?

    You are not able to send the music to two different streams, you can use the bluetooth and wireless at the same time but for different tasks.
    The best way I have seen for what you are attempting, is to buy a wired splitter and two bluetooth transmitters, and have each transmitter broadcast bluetooth sound to the two different locations.
    I have not found any other way except when using itunes on a desktop computer which allows the selection of multiple output destinations.

  • Can I stream and sync from the same itunes library to one AppleTV?

    Can I stream and sync from the same itunes library to one AppleTV?

    From what I can tell this is a bug.
    A very Frustrating bug. When the take 2 update launched I was streaming movies via "shared movies" from my synched computer without any issues. However after a couple of recent iTunes updates all the "shared" menus stopped appearing and I can no longer stream anything from my main computer.
    When I open up my macbook though everything streams fine, all the "shared" menus immediately appear.
    Numerous restarts, factory resets and reinstalling the 2.0 software have done nothing to help this issue.
    If anyone has any more light on the subject it'd be great to hear. Also I'm not sure which update broke it because I went about a month not using the apple tv.

  • Im worried about the battery percentage while play a game on my iphone 4s.so that,i decided to play a games and charging at the same time.is it problem on my battery ? im to worried.please give a conclusion.

    Im too worried about the battery percentage while playing a game on my iphone 4s.so that,i decided to play a games and charging at the same time.im too worried for my battery problem on the future.please give a conclusion.

    It is perfectly fine to use the phone while charging it.

  • Is it possible to change an IDOC and save on the same IDOC number..?

    Hi all,
    I have an IDOC. When I processed the IDOC, it ended up with error status '51'. There was some problem with the data. So, I changed the data and reprocessed using the T-Code 'WE19' and it was processed successfully. When we reprocess the IDOC using 'WE19', it generates another IDOC number. But, the client is asking that, it should not generate another IDOC number. When we change the IDOC number, it should be saved under the same(ORIGINAL) IDOC number. Is it possible to change an IDOC and save under the same number..? Is there any transaction code to do so. Please give your valuable inputs.
    Thanks in advance.
    Thanks & regards,
    Paddu.

    Hi,
    You can use the transaction WE09..to edit the IDOC data...
    Then use the transaction BD87 to post the IDOC..
    Thanks
    Naren

  • I insert a photo and save, but the next time I open iWeb, the photos are gone.

    I insert a photo and save, but the next time I open iWeb, the photos are gone. Does iWeb not save?

    Bummer!  Try this:  repeat the fixes and once the domain file seems to be working make a duplicate of it.  Then download BatChmod and run it on the duplicate domain file with the settings shown below:
    Click to view full size
    Open the duplicate domain file and run with it.  See if it reverts back to the bad behavior.  Can't think of anything else.

  • My ibook keeps shutting down completely with the date to reverting back to 1969.  i restart only after i plug in charger it lets me, then change date and save.  the next time i use same thing happens, safari, iphoto, email are the only ones i have used.

    my ibook keeps shutting down completely with the date to reverting back to 1969.  i restart only after i plug in charger it lets me, then change date and save.  the next time i use same thing happens, safari, iphoto, email are the only ones i have used.
    please help!  i am at a loss here.
    thank you, movie lady
    ibook g4

    The iBook does not have a backup (PRAM) battery. It only has the main battery and a small capacitor which maintains the settings long enough to do a battery swap. If the battery is dead, what you are seeing can happen.
    If the battery is not a problem (or even if it is), you could try resetting the PMU and see if that helps.

  • How to stream Webcam and Desktop at the same time?

    Hey Guy,
    I just got a little Problem with  FMLE... I want to stream live during a Game, but I dont know how to stream Desktop and Webcam at the same time ^^. The streaming Platform i want to use is twitch.tv.. the most common Gamin Platform I think...
    I got an IMac i7.
    Pls help me   I dont get how all these ProGamer do it -.-
    Thanks in advance
    Kathi

    You're going to need additional software or hardware.  If you're running a Macintosh, try CamTwist.  It's free and allows you to create virtual "cameras" from just about anything you can see on your computer.  It's a bit clunky getting used to the interfact and how it works, however.
    Hardware solutions (like scanline converters and video switchers) can get pretty expensive.  So you may want to go with a piece of software that can handle on-the-fly video compositing/switching.  There are two applications that come to mind right off the bat -- and lucky for you, both of them can also output to a live streaming server. 
    Wirecast is a popular choice, although the pricing starts around $500.  It's Macintosh/Windows.
    A very popular choice among gamers is XSplit (Windows only) and is a subscription-based model (you pay a small fee by the month, quarter, or year).  XSplit has some very impressive compression happening under the hood, and was originally designed for gamers who wanted to share their desktop, XBOX, or PS3 adventures... all while also being able to lay over banners, PIP (picture-in-picture) of themselves, or anythhing else they wanted to clutter the screen with.
    If you're running on Windows, give XSplit at shot.  It can easily handle your desktop (or most anything else) as a "camera" as well as being able to lay your webcam on top of the desktop feed.

  • My I pad won't play pandora and solitaire at the same time. Do I have a setting wrong.

    My I pad won't play pandora and solitaire at the same time. Do I have a stating wrong

    Pandora is supposed to play in the background.  I suspect the solitaire app is trying or has grabbed the net connection. Try a different solitaire game.
    Ever wonder why a solitaire app needs access or location services?   Hmmm.

  • How do i start video and audio at the same time in ios

    How do i start video and audio at the same time in ios?
    I have tried a lot of different ways but i cant figure it out?
    I can get the sound and animation (timeline) to start playing.
    There is no problem to start the video and the animation at the same time.
    But i cant get both the video and the audio to start playing when i press a button.
    It works great in OSX and on windows?
    Here is an example:
    // insert code for mouse click here
    // Play an audio track
    sym.$("_1")[0].play();
    // Play a video track
    sym.$("host")[0].play();
    // Play the timeline at a label or specific time. For example:
    // sym.play(500); or sym.play("myLabel");
    sym.play("marker1");

    If the game has sound in it (and possibly even if it doesn't) it may be overriding the Music app and causing it to stop playing - in which case there is nothing that you can do about it.

  • Can we use both INSERT and UPDATE at the same time in JDBC Receiver

    Hi All,
    I would like to know is it possible to use both INSERT and UPDATE at the same time in one interface because I have a requirement in which I have to perform both the task.
    user send the file which contains both new and old record and I need to save those in MS SQL database.
    If the record exist then use UPDATE otherwise use INSERT.
    I looked on sdn but didn't find any blog which perform both the things at the same time.
    Interface Requirement
    FILE -
    > PI -
    > JDBC(INSERT & UPDATE)
    I am thinking to use JDBC Lookup but not sure if it good to use for bulk record.
    Can somebody please suggest me something or send me the link of any blog or anything to solve this problem.
    Thanks,

    Hi ,
              If I have understood properly the scenario properly,you are not performing insert and update together. As you posted
    "If the record exist then use UPDATE otherwise use INSERT."
    Thus you are performing either an insert or an update which depends on outcome of a search if the records already exist in database or not. Obviously to search the tables you need " select * from ...  where ...." query. If your query returns some results you proceed with update since this means there are some old records already in database. If your query returns no rows  you proceed with "insert into tablename....." since there are no old records present in database.
      Now perhaps the best method to do the searching, taking a decision to insert or update, and finally insert or update operation is to be done by a stored procedure in MS SQL database.  A stored procedure is a subroutine available to applications accessing a relational database system. Here the application is PI server.   If you need further help on how to write and call stored procedure in MS SQL you can look into these links
    http://www.daniweb.com/web-development/databases/ms-sql/threads/146829
    http://www.sqlteam.com/article/stored-procedures-parameters-inserts-and-updates
    [ This part you can ignore, Since its not sure that you will face this situation
        Still you might face some problems while your scenario runs. Lets consider this scenario, after the stored procedure searches the database it found no rows. Thus you proceed with an insert operation. If your database table is being accessed by multiple applications (or users) other than yours then it is very well possible that after the search operation completed with a null result, an insert/update operation has been performed by some other application with the same primary key. Now when you are trying to insert another row with same primary key you get an error message like "duplicate entry not possible for same primary key value". Thus you need to be careful in this respect. MS SQL has a feature called "exclusive locks ". Look into these links for more details on the subject
    http://msdn.microsoft.com/en-us/library/aa213039(v=sql.80).aspx
    http://www.mssqlcity.com/Articles/Adm/SQL70Locks.htm
    http://www.faqs.org/docs/ppbook/r27479.htm
    http://msdn.microsoft.com/en-US/library/ms187373.aspx
    http://msdn.microsoft.com/en-US/library/ms173763.aspx
    http://msdn.microsoft.com/en-us/library/e7z8d5hf(v=vs.80).aspx
    http://mssqlserver.wordpress.com/2006/11/08/locks-in-sql/
    http://www.mollerus.net/tom/blog/2008/03/using_mssqls_nolock_for_faster_queries.html
        There must be other methods to avoid this problem. But the point is you need to be sure that all access to database for insert/update operations are isolated.
    regards
    Anupam

  • Can I use a camera for application in Labview and VBAI at the same time ?

    Dear all,
    I'm trying to save an AVI file with Labview and make an image process with VBAI at the same time, in one machine.
    The error : "Camera already in use" displayed.
    My Camera is a GIGE and I work with Imaqdx. I've test the multicast mode but it only operate with several machines.
    How can I do this ?
    Thank's to help me,
    Yoann B

    I'm not necessarily saying that.  It's been a while since I've used VBAI, so I don't remember all of the capabilities, but if VBAI can do the inspection and recording at the same time, you should be fine.
    The trick is that only one program can access the camera at the same time.  That application reserves the camera, thus making it unavailable to others.
    Chris
    Certified LabVIEW Architect
    Certified TestStand Architect

  • My SB Audigy 2 card can't use headset and musicamplifier at the same time

    Hi, i just bought a SB Audigy 2 [D400] and i have downloaded drivers and programs. I run Windows XP SP2.
    The soundcard works fine but it is very very annoying that i physically have to change the jack in the green=line out jack from headset to musicamplifier when i want to use my musicamplifier and change back the jack in the green=line out from musicamplifier to headset when i just want to use the headset/headphones .
    In the shop they told my that i can connect both amplifier and headset at the same time and then with creative software control whether there is sound in the headset or in the amplifier. But i can't simple get it work.
    I tried to use the green to the amplifier and the headset/speakers in the black (line out 2) and then with creative speaker settings softeware choose headphones but still the ampliefier receive the sound and no sound in the headphones. Why? In fact no matter what configuration i try the headphones doesn't work.
    But if i change the jacks so headset is in the green line out then only headset is working and the amplifier doesn't work no matter i put it in sort=line out 2 jack or orange=line out 3 jack.
    Can somebody here tell me if it is possible or not to connect both headset and external amplifier and control by software which to play? and how?
    please help, thx.
    Michael

    If you can have an ASIO compatible music playing system, then it might be possible to have system like you wish when using Creative Audigy 2 card. Since ASIO bypasses Windows Audio System, you can use both 'drivers' (ASIO - WDM/MME/DS) side by side.
    Say you want to play a game (using headset /w mic) and someone other like to listen music at the same time. With ASIO capable system you can output your music for example to "center L/R (stereo) channels" and same time output sounds from other source (using MME/DS/WDM drivers) to normal output channel (Front L/R). Only thing is, you need to set your speakersystem to 4 or 6 (depending which other channel you're using) (and for better 'balance' to adjust "angle" on THX console. You get the THX console by installing Audigy 2 Zs software).
    Try for example http://img332.imageshack.us/img332/463/djs9mo.jpg[/img] width="406" alt="Image Hosted by ImageShack.us" >
    Another option:
    Say you want to play music through external amplifier and play game online with your headset + microphone (eg. others but you listen the music, you play games)
    --> try free http://img332.imageshack.us/img332/4589/tbp7rz.jpg[/img] width="406" alt="Image Hosted by ImageShack.us" >
    If you use ASIO on BeatPort Player you can select L/R individually from the list(s). Same rules as described earlier.
    = You can play from 2 different sources simultaoneusly (ASIO + WDM/MME/DS) to two different outputs without disturbance. The other (WDM/MME/DS) source is set 'automatically' output to (Audigy) "green" port, and the other (ASIO) to "black" or "orange" port (as set).
    .jtpMessage Edited by jutapa on 09-5-2005 05:30 AM

Maybe you are looking for

  • Memory for circa 12/2007 2.2GHz Macbook?

    Hi All, The following question may have already been answered in this forum, but I wasn't able to find a clear answer, so: I have a white macbook, Intel Core 2 Duo, purchased new in December, 2007. Original memory was two PC2-5300 512Mb(1Gb total) me

  • Powerbook not recognized on Windows 7 PC

    Hi everyone, I am having trouble finding a driver for my PC to recognize my Powerbook G4 running Tiger OS X. The PC is running a Windows 7, 64bit system. When I connect the devices using a firewire cable the PC recognizes the new HW, but it cannot fi

  • Getting an error in DMS

    IN CV02n While releasing the document I am atting an error An error  ocured while creating the original attribute for

  • Can't get my Mail app to work. Just have spinning disc and 'Mail not reponding'

    The mail app on my Macbook Pro  - OS X 10.7.5 - has stopped working. When I open it all I get is a spinning disc. If I choose to force quit the box says Mail not responding. Any ideas gratefully received.

  • Is it possible to get the scope name within a running BPEL instance

    I am currently adding some error handling for a business fault and wondered whether there is any way to get the scope name at run time. I am already catching the fault details using getFaultAsString but the support team have asked whether we can log