Save streaming in different file

I want to record the my stream at media server with file name 1.flv, and after 30 min same stream saved in another file like 2.flv, same prcess atfetr each 30 min.
How to do that

Hi,
There are two ways I can think of in which you can do this:
1st ways is pretty similar to the first method I told you. In the timeout function you can call the server-side function recordLive each 30 minutes with a different name as in
nc.connect("rtmp://<url>/<app","name");
//after NetConnection.Connect.Success
nc.call("recordLive",null,streamName);
timer.start();
function timeout(evt:TimerEvent) {
     counter++;
     streamName = counter.toString();
     nc.call("recordLive",null,streamName);
2nd Way will be to have the timer logic in server side. You can use the setInterval function to achieve that.
var interval;
Client.prototype.recordLive = function()
              stream = Stream.get("1");
              if (stream)
                   stream.play(streamName);
                   stream.record();
                    interval = setInterval("ChangeName",stream, 30000);
function ChangeName(stream)
     stream.record(false);
     stream = Stream.get("newName");
     if (stream)
                   stream.play(streamName);
                   stream.record();
On disconnect clear timer by clearInterval(interval);
Again you may need to fiine-tune the logic for multiple clients which may be trying to publish, and I feel you can figure that out.
If you need more help please revert back.
Thanks,
Abhishek

Similar Messages

  • Numbers won't 'save as' a different file type.

    i have an existing numbers file that I would like to save as an excel file.  There is no save as option, how do I do this?

    File > Export...
    Will bring up a modal dialog:
    Where you can select what you want to export.  The selections are:
    1) PDF
    2) Excel
    3) CSV

  • Option to save snapshots in the file!!

    Snapshots are such a great feature that allow to have different versions and trys of a file. It is really bad for the work process that it is not possible to save those snapshots in the file. The only way is to save them as different files. Layer Comps are nice, but are not as powerful. Snapshots allow to save different states of the document or completely different versions, without the need to duplicate all layers and then to change the visability of layers. That's not practical and error prone. Also if there is a crash there was no way to just save the file during working. This is my #1 feature request!
    Marcus

    Yes, and No. The size of a single file becomes large, but if I would save each snapshot state as a seperate file (which is the only way to preserve the states at the moment) the sum of the files sizes of those files is definetely larger than the size of a single file, because of all the redundant layers. If you chose to copy the whole layers set of each version and disable unused ones it also adds up more file size and this way you save each state in the same document, too, but without the easy handling of snapshots.
    Working with seperate files is a bad crutch, because if I'm playing around with different versions I might have to redo work in each file. (Often I'm experimenting with different colors or placements and sizes). I also don't see the file size as a problem anymore. There is so much space wasted for so many things that I happily use the space for my benefit. The benefit of an option to save snapshots in a document weighs so much more.
    Further the snapshot information of an open document is stored in RAM or in temp files on the disc anyway. So the information is already saved. The space will be freed of course if the file is properly closed, but if I need the snapshots for further use I need to save them anyway somewhere.
    If I'm experiencing a crash of Photoshop, the OS, or just a power outage all my snapshots are gone. I had serious problems due to the bluetooth bug in the vista drivers that caused a blue screen when you brought your system into or out of stand-bye or hypernation. Unfortunatley stand-bye and hypernation are the only possibilities to not erase the snapshots and be able to continue working on them later. If I didn't save the document in the state of the main version and just played with a suboptimal version my main version was gone (and often I had more than one main version). I had to create seperate files from each snapshot an save them all. Definetely to much to think and care about. Photoshop should make work easier.
    Snapshots would make it very easy and straight forward to present different variations of an idea to a client, too.
    Marcus

  • Is there a way to save a form, once filled out, as a different file type in Reader?

    I have Acrobat, my coworkers only have Reader. Company won't purchase Acrobat for the other employees.
    I built a form for my coworkers to fill out. We need them to be able to send the filled out form to clients, but we don't want the clients to be able to edit the forms.
    I understand people with only Reader can't flatten the document, or add a password, or save it as non editable. As I understand it, even with Acrobat I can't assign a password for Reader users to be able to edit or not edit a file (PLEASE correct me if I'm wrong on that one).
    Is there any way to save the PDF form once it's been filled out (in Reader) as a different file type? Even an image? The file we send to clients doesn't have to be a PDF. Just something that most people can open.
    I tried inserting the PDF into a word document (unreadably pixelated) and tried taking a snapshot of the entire page (resolution too low). I've tried downloading one of the free PDF writers and it apparently won't work with our network security (or something along those lines). I've tried using the pdf writer for Firefox on the form once it was filled out, and that won't work either because our network firewall seems to be blocking it and that's not something they are willing to take down.
    Any advice?

    The signature WILL work! I've just looked into it more, thank you so much for pointing me in that direction.
    I get it now, it locks the form fields in place after my coworker fills them in and signs it (as the very last step).
    I wish I would have asked on here a full day ago. Would have saved a lot of headache and Googling.
    Thanks again.

  • Whenever I try to save a file as a PDF, it tells me it can't save because the file is open somewhere else. This is not the case and I have tried it with different files. Please help. You can also call me at:(301)651-9616

    Whenever I try to save a file as a PDF, it tells me that it can't save, because the file is open somewhere else. I don't have anything else open. I have also tried different files and they all say the same thing. Help.

    Given there are so many problems and removed features in Pages 5, why not just continue using Pages '09?
    http://www.freeforum101.com/iworktipsntrick/viewforum.php?f=22&mforum=iworktipsn trick
    http://www.freeforum101.com/iworktipsntrick/viewtopic.php?t=432&mforum=iworktips ntrick
    Peter

  • How to save a form in a different file name?

    Hello All,
    I have a form which has 7 pages. I have 3 buttons which are for submitting PDF,XML and print button. I do not want to keep SaveAs button.
    What I need : When the user completes all the required fields and clicks on SubmitAsPDF or SubmitAsXML then it will prompt the user to save the form in a different file name. After the user has saved the form in a different file name then it should submit the form to the required mail ID. How to best accomplish it ?
    Thanks.
    Bibhu.

    Hello Niall,
    Thanks for the help. I used a hidden field whose name is "CurrentFileName" then in the docReady event of this hidden field I used the following script.
    this.rawValue = event.target.documentFileName;
    Then in the mouseUp event of the submit button I used the follwing script.
    if(form1.Page1.CurrentFileName.rawValue == event.target.documentFileName)
                             app.alert("Please save this form in a different file name before submitting !");
                             app.execMenuItem("SaveAs");
    But problem is : As the file is saved in a different name the script fires again and again if we click the submit button prompting the user to save the form in a different file name , but the user has already saved it in different file name .How to get rid of it ?
    Thanks.
    Bibhu.

  • How to save settings in the front panel to different files and retrieve it later?

    How to save the front-panel controllers' settings to different files and retrieve it later?
    What I've archived is the "Save Settings" function, but when trying to "Reload Settings", I can only retrieve the saved data to front-panel indicators, but not the controllers!
    Can anybody give me some advises?
    Thanks in advanced!
    Charles Lu

    Hi
    Just write the retrieved data to a local variable (but make it writable first) or property node of the controls.
    Hope this helps.
    Thomas
    Using LV8.0
    Don't be afraid to rate a good answer...

  • TS4108 how do I transfer photos in photo stream to a different file in iPhoto to clear up space in iCloud?

    Hw do I transfer photos from photo stream to a different file in iphoto so I can clear up space in icloud?

    Photo stream photos don't use your personal iCloud account storage so deleting or moving them will not free up any space in your account.
    That said, if you still want to move them from photo stream in iPhoto, import them to your library by control-clicking on the photo and choosing Import.  You can set iPhoto to automatically import photo stream photos to your library by going to iPhoto>Preferneces>iCloud and checking Automatic Import:

  • Save stream to file

    hi
    would someone be kind to help me
    i need to know how to to save stream to file
    10x

    use this code, could be helpful for understanding.
         final File resultFile = new File(resultFilePath) ;
         final FileOutputStream out = new FileOutputStream(resultFile) ;
         final PrintWriter writer = new PrintWriter(out) ;
         writer.write(resultBuffer.toString()) ;
         writer.close() ;
    out.close() ;     
    make sure of IO Exceptions ... this is just a code snippet, refactor it ...
    Regards
    Abhi

  • QuickTimePro - Export vs Save - Different File sizes

    Hi,
    with the trim to selection command I selected a bigger part of an AVI-video (Video track format: MPEG-4 DivX v.5 + Audio: Mpeg-1 layer 3 (mp3)).
    Although I did not change the video or audio settings I got different file sizes:
    The exported video has double the size than the saved file.
    Therfore my questions:
    What is the reason?
    What should I prefer - export or save - trying to get smaller files with the same quality?
    Thanks for a tip.Greetings from the heart of Germany
    Herbert

    HI mrfibuli
    I think you are seeing a general housecleaning of things that
    were formerly in your library. For example, lets say you took a
    fairly large project. Perhaps 80 slides. Then you delete 60 slides.
    This would leave many items in the library. They would be there,
    but be unused. So you save as, and after a couple of times of doing
    this, the unused objects are purged from the file. This is why you
    are seeing a difference in size.
    Sincerely... Rick

  • Save streamed MP3 file?

    Our app includes a music player which streams MP3s from a server. We would like to be able to stream the MP3, and save it to a cache on disk once it has fully downloaded.
    I am using the load() method of the Sound class to stream the MP3 so that playback can begin before the file is fully downloaded. I can listen for the Event.COMPLETE event to indicate that the MP3 has finished downloading, but the Sound class offers no way to access the original file and save it to disk (the extract() method returns uncompressed sound data which is much too large to write to the disk).
    Is there any method to download an MP3 file that will allow us to stream the MP3 file as it is downloading, and save it to disk when the download is complete, without downloading it twice?

    Unless you can find an MP3 encoding library that could take the extract() data and convert it back with minimal effort, I think your only option is to save the mp3 using the File and FileStream classes. One thing you could try is to use a File object to download the file, and while it is downloading, you have the sound object play the data contents of the File object downloading the mp3. I just tried a quick test locally and it worked on my desktop. You will have to try it from an actual server to know how well it can work in that environment, but it is at least worth a shot.
    import flash.filesystem.File;
    import flash.filesystem.FileMode;
    import flash.filesystem.FileStream;
    import flash.events.ProgressEvent;
    import flash.events.Event;
    import flash.media.Sound;
    import flash.net.URLRequest;
    var file:File = File.applicationDirectory.resolvePath("gravity.mp3");
    file.addEventListener(ProgressEvent.PROGRESS, onProgressEvent);
    file.addEventListener(Event.COMPLETE, onFileLoadComplete);
    file.load();
    var sound:Sound;
    function onProgressEvent(e:ProgressEvent):void {
      if (sound == null) {
      file.removeEventListener(ProgressEvent.PROGRESS, onProgressEvent);
      sound = new Sound(new URLRequest(file.url))
      sound.play();
    function onFileLoadComplete(e:Event):void {
      file.removeEventListener(Event.COMPLETE, onFileLoadComplete);
      var saveFile:File = File.desktopDirectory.resolvePath("gravity2.mp3");
      var fs:FileStream = new FileStream();
      fs.open(saveFile, FileMode.WRITE);
      fs.writeBytes(file.data, 0, file.data.length);
      fs.close();
    What this code is doing is creating a File object with, in this case, a path to an MP3 in the same folder as the test FLA I created. This would be a path to your server stored MP3. Then you setup the event listeners for progress and complete. I used progress to know that the file had actually started to be downloaded to then trigger the initialization of my Sound object. Depending on someones network connection and the size of the MP3, it could be a good idea to use progress to know that the file has gotten X percentage done before trying to play the file.
    For testing purposes in my progress event, I just checked to see if the Sound object had been initialized yet, and if it hadn't then set sound equal to a new Sound object with the File.url property for the URLRequest() and then told it to play.
    Once the File object dispatched the complete event to indicate that the download finished, I created a new File object for the purpose of saving it to the filesystem using the FileStream class. Using FileStream to save the file allows for no user interaction to save the MP3.
    There may be better ways to handle my method, but I can't think of any at the moment. As far as I know, the second File object, which I named "saveFile", is required in order to actually save the downloaded MP3 object because Im not too familiar with File manipulation. The only downside I can think of is that you have a copy of the MP3 is memory and would need to null out the File object that loaded the MP3 to free up memory.

  • Adobe flash error: unable to save the document please try to save it to a different file name

    Hi,
    I am editing few fla files with my Adobe Flash Professional. Suddenly it stopped saving them and is giving me an error; unable to save the document as... please try to save it to a different file name or to a different location.
    i changed the location to save the files, but I still receive the same error.
    Is there any one who knows how to deal with this error?
    Thanks,

    close flash.  right click its icon or start program and click "run as administrator".  save your fla. 
    if that fails: restart your computer, create a new directory on your desktop and save a test fla (eg, named test) to that new directory.  any problem?

  • I need to capture streaming audio and save to a wav file

    I need to be able to capture an audio stream delivered via ethernet using UDP protocol and then save to a wav file.
    I currently can capture the data stream but do not know how to format the data to save it to a file. Our format is 16KS/s, 16bit, PCM, no compression.

    Did you do the thing about searching in the example database. Let us use that as base for discussion. Those who put in some effort will be rewarded. Also check out the AU file format http://en.wikipedia.org/wiki/Au_file_format As it is big-endian http://en.wikipedia.org/wiki/Big-endian the numbers can be stored as is in Labview. Must players,matlab, etc can use the AU file format.
    Besides which, my opinion is that Express VIs Carthage must be destroyed deleted
    (Sorry no Labview "brag list" so far)

  • Save a rtp stream to a file

    hi,
    I can send and receive a rtp stream. Now I want to save a received rtp stream to a file,but i got an exception when create
    a DataSink:
    public synchronized void update(ReceiveStreamEvent evt) {
            RTPManager mgr = (RTPManager) evt.getSource();
            Participant participant = evt.getParticipant();
            ReceiveStream stream = evt.getReceiveStream();
            if (evt instanceof NewReceiveStreamEvent) {
                DataSource ds = stream.getDataSource();
        }

    Well gee wiz, I should would like to help you with your exception with your data sink...
    But you didn't post what exceptino you were getting, so I can't help you...
    And the code you posted has nothing to do with a DataSink to begin with, so I can't help you again...

  • Rotate() save to different files

    Hi,
    Below is some code which rotates through a data file similar to
    1
    2
    3
    4
    however, i need to print all of the rotations to different files (one rotation per file). The code does this, but i need to automate it, because the data files will vary in size, some may have 24 entires other 18 etc. Any ideas? Comment added to code
    import java.io.*;
    import java.util.ArrayList;
    import java.util.*;
    public class ElementRotate3 {                     // close
    public static void main (String [] args) {   //close
    StringList sl = new StringList("Data.txt");
    for (int i=0;i<sl.size(); i++) {
    Collections.rotate(sl,i); // this is the bit that needs automating based on
    sl.save("DataOut.txt"); // number entires
    Collections.rotate(sl,1);
    sl.save("DataOut1.txt");
    Collections.rotate(sl,1);
    sl.save("DataOut2.txt");
    class StringList extends ArrayList {
    public StringList(){
    super();
    public StringList(String fileName){
    this();
    String line = null;
    BufferedReader in = null;
    try {
    in = new BufferedReader(new FileReader(fileName));
    while((line = in.readLine()) != null){
    add(line);
    catch(IOException e){
    e.printStackTrace();
    finally {
    try {
    in.close();
    } catch(IOException e) {
    e.printStackTrace();
    public void save(String target) {
    PrintWriter out = null;
    try {
         out = new PrintWriter(new FileOutputStream(target), true);
    for(int i=0;i<size();i++) {
         out.println((String)get(i));
    catch(IOException e){
    e.printStackTrace();

    sorry about the setup, the code does work though
    any ideas on how to cycle through this code so that new files are made based on the rotations?

Maybe you are looking for

  • Itunes won't add my songs to the library

    I moved my songs to an external seagate drive, have located them fine, the only way I can get Itunes to recognize them is to play each song individually from windows explorer, over 2,000 songs. I've tried "play all" in windows explorer, even tried hi

  • Changing default Java launch parameters

    Hi, I experienced the "unsufficient memory" error several times and found the -X java launch parameters. The default settings are : -Xms 1048576 bytes -Xmx 67108864 bytes and the minimum size to launch java is 262144 bytes I tried to change these par

  • Push service crashing mail continuously?

    Since a few days, my iPhone's mail is crashing when receiving a new mail pushed by the server. It get the mail, it crush, it open again and try to download again, then it crash again. All this means: LOOP! And there is no way to stop it anymore, i ca

  • ISkin Case from 1st gen iPhone Fits 3G iPhone

    I have the iSkin Revo for the orginal iPhone. It fits the 3G iPhone alomst like it was made for it. I thought I was going to have to spring for a new case, but this iSkin will work for now. Of course, I purchased the White 3G iPhone and it's now cove

  • SQL query to fetch 2 rows in one

    Hi, following is sample data: COLLMETHID EEID XORDERID AMOUNT BREDM 3136 3435698 3000 VISA 3136 3435698 7190 BREDM 6607 3519115 1492 BREDM 6614 3558451 1500 VISA 6614 3558451 149 BREDM 6616 3567631 2120 VISA 6616 3567631 158 BREDM 8356 3558864 899 An