How to save songs on Flash Media Server streams?

I want to record a stream that is published with Flash Live Encoder FMS 3.5, but divide the recording into files with predefined length. For example, if a 'webcam' feed is published I want to save it in 10-minute segments: "webcam1.flv", "webcam2.flv"... From what I can tell there is no possibility of working with timers. The only solution I could think about was via stream.record () with a delay setting, but which seems to be a hack because it triggers the NetStream.Record.DiskQuotaExceeded on the stream when the recordin should stop and start recording another piece. If someone has done something similar?

I would like to approach it by saving in a new stream side server instead of directly the customer record to publish feeds. A rough example would be something like this (I'm testing the code... it's just an example):

application.onPublish = {function (client, stream)

client.publishingStreamName = stream.name;

application.chunkRecording (customer);

}

application.onDisconnect = {function (customer)}

clearInterval (client.chunkInterval);

{if (client.recordingStream)}

client.recordingStream.play (false);

client.recordingStream.record (false);

}

}

application.chunkRecording = {function (customer)}

clearInterval (client.chunkInterval);

Stop the recording of any old

{if (client.recordingStream)}

client.recordingStream.play (false);

client.recordingStream.record (false);

}

Start the new record. Create a new name for the stream based on the time.

var recordStreamName = client.publishingStreamName + '-' + new Date () .getTime ();

client.recordingStream = Stream.get (recordStreamName);

client.recordingStream.record ();

Me throw again in an hour.

client.chunkInterval - setInterval (application, "chunkRecording", 3600000, client);

}

Tags: Adobe Media Server

Similar Questions

  • Setting up Flash Media Server stream

    I have Adobe Media Server 4, and I use Flash Professional CS5.5 to create an application streaming. To test, I use Adobe Page where you can insert stream url and the name of the stream to connect to the source continuously, for an overview of default. This page at the start, where you have two blocks of videos, left a broadcast and a right to see the flow.

    Here's the AS3 code inside my application:

    var bandwidth:int = 0; 
    var quality:int = 50;
    var camera:Camera = Camera.getCamera();

    camera
    .setQuality(bandwidth, quality);
    camera
    .setMode(430,320,15, true);

    var video:Video = new Video();
    video
    .attachCamera(camera);
    addChild
    (video);
    video
    .width = 430;
    video
    .height = 320;

    var nc:NetConnection = new NetConnection();
    nc
    .connect("rtmp://***");
    nc
    .addEventListener(NetStatusEvent.NET_STATUS, netStatusHandler);

    function netStatusHandler(event:NetStatusEvent):void{
       
    if (event.info.code == "NetConnection.Connect.Success")
       
    {
        label10
    .text = 'Connected';
       
    var ns:NetStream = new NetStream(nc);
        ns
    .attachCamera(camera);
        ns
    .publish("NewStream1", "live");
       
    }

    }

    When I run this file I get "connected" in label10, this means that it is connected to the server rtmp connection.

    When I insert this specific rtmp link and NewStream1 (from ns.publish ("NewStream1", "live") ;) within the Adobe page by default, it does not work... It connects, but it shows only white box black.

    And when I use this page by default for stream, the left diffuser, it works very well.

    Also, I have made my own watcher and it connect too, but there is no data streaming.

    Can someone help me with this, tell me what I am doing wrong?

    Or can someone tell me how to test the camera sent to the server data?

    Thank you.

    Are you sure that when your client is running - camera is not attached to another client?

  • How to test bandwidth continuously on localhost with Flash Media Server?

    Hello

    I'm trying debbug my code (ActionScript 3) client that works with Flash Media Server 4 on localhost. Everything seems fine until this day.

    However, when I'm testing my player with other remote streaming servers, I notice the bugs because of the transmission of lower bandwidth between the server and the player.

    Is there a simple way to simulate lower bandwidth with FMS4 on localhost (with config, application.xml, programming...)?

    Thank you

    SEB Ethier

    Have you tried using Client.setBandwidthLimit () API available in SSAS? He can probably help you with what you want to do.

    Beside that, you can use NetLimiter or shunra utlitiy to choke BW like client-side.

    Hope that will help you.

  • How to check what version of flash media server is installed on

    Hi all.

    Is it possible to check which version of flash media server is installed on my computer?

    'Open flash Media Administration Console' from start-> all programs-> Adobe-> Flash Media Server... and then sign in using your credentials that gave you when installing. After login, click on "Manage servers" and then click on 'License', you will be able to see which version and which edition of FMS is installed.

    In addition, Flash Media Streaming server, Flash Media Interactive server and Flash Media Development server are no versions and editions.

    Kind regards

    Amit

  • Live from Digital Rapids to Flash Media Server

    Hello

    I use a Digital Rapids StreamZ (version 3.8.0) encoder to stream YouTube, Dailymotion, Akamai. I want to install a Flash server on the same VLAN as my Digital Rapids to check coding in case there is a problem with YT/DM. So I downloaded Adobe Flash Media Server and now want to send my feeds to the AMS. What the URL of the server and the name of the workflow should I use to set my Digital Rapids? How can I configure the AMS to receive the stream of the Dominican Republic?

    Thank you very much in advance for your help and advice.

    mdicamp

    Solved: an another Flash Server was installed on the same server and have priority over configurations in port. I uninstalled it and streaming to AMS works very well. Hope this helps someone else.

  • Flash Media Server 3 - Can RTMP and HTTP tunneling be set up?

    I have read a few forums posted here and also searched the Web widely but can not find a clear answer or get HTTP tunneling to work with Flash Media Server 3.

    Q1: Flash Media Server 3 can be configured for the Protocol RTMP and HTTP tunneling to work? The reason why I need to know if this will work is due to more and more customers report that the videos do not play for them, and I have concluded that these customers are sitting behind a firewall that has blocked port 1935. So I would like to set up the FLV playback control to try to spread the file on RTMP and if this does not work, use the HTTP protocol.

    Can someone please! Is there a whitepaper that you can tell me or even provide an example for me.

    Here is my asctionscript I've tried to make it work, but it does not.

    A few other notes are, the. The online FLVs in this folder: D:\Adobe\Flash Media Server 3\applications\vod\media

    The videos are recorded and then converted. FLV files and loaded into this folder.

    I have all hard coded below to try to get to operate this way first and thought that would be easier for you to help me. The ultimate solution is I use FLVPlayback control and transmit the location and. Name of the FLV file on the query string "http://www.Microsoft.com/downloads/details.aspx??" " VIDEO = rtmp://216.203.12.15/vod/flv. I pasted the code object * to show this example below the asctionscript.

    package
    {
    import flash.display.Sprite;
    import flash.filters.BlurFilter;
    Import fl.video.FLVPlayback;
    import flash.display.LoaderInfo;

    import flash.net.NetConnection;
    import flash.events.NetStatusEvent;
    to import flash.net.NetStream;
    import flash.media.Video;


    public class stream extends Sprite
    {
    var nc:NetConnection;
    var stream: NetStream;
    var playStream:NetStream;
    var video: Video;
    Variable that goes into .flv to query string
    var videoPath:String = «»

    public void Streams()
    {
    NC = new NetConnection();
    nc.addEventListener (NetStatusEvent.NET_STATUS, netStatusHandler);

    This is where I am trying to connect via RTMP and if it does not try RTMPT on port 80 HTTP

    NC. Connect ("rtmp://216.203.12.15/vod");

    NC. Connect ("rtmpt://216.203.12.15:80/vod"); ")

    }

    private void netStatusHandler(event:NetStatusEvent):void
    {
    trace ("connected is:" + nc.connected);
    trace ("event.info.level:" + event.info.level);
    trace ("event.info.code:" + event.info.code);

    Switch (event.info.code)
    {
    case "NetConnection.Connect.Success":
    trace ("congratulations! you are connected");
    connectStream (nc);
    createPlayList (nc);
    Instead you can also call createPlayList() here
    break;
    case "NetConnection.Connect.Failed":
    case "NetConnection.Connect.Rejected":
    trace ("Oops! the connection was rejected");
    break;
    case "NetStream.Play.Stop":
    trace ("the stream has finished playing");
    break;
    case "NetStream.Play.StreamNotFound":
    trace ("the server cannot find the stream you specified");
    break;
    case "NetStream.Publish.BadName":
    trace ("the name of the stream is already used");
    break;
    }
    }

    read a stream stored on the server
    private void connectStream(nc:NetConnection):void {}
    Stream = new NetStream (nc);
    stream.addEventListener (NetStatusEvent.NET_STATUS, netStatusHandler);
    Stream.client = new CustomClient();

    video = new Video();
    video.attachNetStream (stream);

    Stream.Play ("Peter_Christie_widescreen_bloomberg_hr", 0);
    addChild (video);
    }
    }
    }

    * OBJECT EXAMPLE TO SHOW HOW. FLV IS PASSED in THE QUERY STRING for WHICH THE FLVplayback control reads:

    <object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,0,0" width="480" height="440" id="MediaPlayer"> 
    <param name="movie" value="/Media/VideoPlayer_Large.swf?VIDEO=rtmp://216.203.12.15/vod/Peter_Christie_widescreen_bloomberg_hr&MM_ComponentVersion=1&autoPlay=false&autoRewind=true" />
    <param name="FlashVars" VALUE="rtmp://216.203.12.15/vod/Peter_Christie_widescreen_bloomberg_hr&MM_ComponentVersion=1&autoPlay=false&autoRewind=true" />
    <param name="allowScriptAccess" value="sameDomain" /> <param name="quality" value="high" />
    <param name="VIDEO" value="rtmp://216.203.12.15/vod/Peter_Christie_widescreen_bloomberg_hr&MM_ComponentVersion=1&autoPlay=false&autoRewind=true" />
    <embed src="/Media/VideoPlayer_Large.swf?VIDEO=rtmp://216.203.12.15/vod/Peter_Christie_widescreen_bloomberg_hr&MM_ComponentVersion=1&autoPlay=false&autoRewind=true" quality="high" pluginspage="http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash" flashvars="&MM_ComponentVersion=1&autoPlay=false&autoRewind=true" type="application/x-shockwave-flash" width="480" height="440" name="MediaPlayer">
    </embed>
    </object>

    Assuming that your FMS is configured to bind to port 80, and there is nothing else on the binding of FMs machine to port 80 on the same IP address, your FMS should be ready to accept applications for tunnel using rtmpt on port 80 Protocol.

    Where you go wrong, this is how you make the connection in your client-side code. You don't want to connect several statements that you are... you want to do one, and then let the flashplayer running in its default login process, or set up a timer to manage failures of Protocol in your own code.

    When you call NetConnection.connect() without specifying a port (or an other rtmp Protocol) in the url, the flashplayer first attempts a connection rtmp on port 1935. If this fails, the flashplayer will automatically attempt a connection by tunnel via port 80. The status event will not be distributed until the Flashplayer Gets a successful login, or fails on all combinations of port/protocol. So, you just make a call to the connect() function.

    If you prefer to try combinations of port/protocol specific and define your own time-out, you can set the port/protocol in the url

    NC. Connect ("rtmp://myserver.com:1935/app/instance"); ")

    or

    NC. Connect ("rtmpt://myserver.com:80/app/instance"); ")

    When you set the port/protocol, the flashplayer will attempt to establish the connection on this port/protocol only and the status event based on this single attempt to shipping.

    So, if you don't want to rely on the flashplayer to treat this, you would first try rtmp/1935. In your State Manager, you inspect the event info.code property. If you don't get a successful connection, then try rtmpt/80

  • Very basic question: Flash Media Server vs embedding flash video

    I hope it's a quick easy question to answer:

    What is the difference between Flash Media Server or simply using a freeware Flash media player (like Flowplayer http://flowplayer.org/) that uses XML playlists to embed your Flash videos on a Web site?

    What are the benefits of Flash Media Server and how something like Flowplayer not issues that the FMS can?

    Thanks in advance!

    Erik

    In a word flowplayer offers the video through your web browser. It does so via the HTTP (port 80) and on any web server progressive download

    Progressive download concludes the video on the server and played through the player it is being downloaded. 2 important things to take this are 1, the video is downloaded to clients, at the end of reading's hard drive, they will have a copy of your video that they can do what they want and repost it somewhere else. 2, it plays as it downloads, which means that if I see a video of 10 minutes on your site and want to skip to the middle or the end I have to wait for the entire video to download before viewing these segments. Your host, incidentally you will love for progressive download because it will appear as if your transfer rates went through the roof. Once demand for the video made it has not returned back, the customer gets all if they watch it or not.

    Flash media server using rtmp Protocol. This Protocol is an open protocol socket through port 1935. Essentially, it's a two way street. When the user views a video using FMS get basically just enough video to keep the connection open and satisfy the buffer necessary to ensure a clean reading. Bytes of info that carry the video go only to the memory of the users, not the hard drive. This allows the user to come and go around the film without having to wait for all to download.

    Hope that helps.

  • Flash Media Server 2 - protect the RTMP stream...

    Hello

    I'm working on a project involving Flash Media Server 2 and streaming
    videos using the RTMP protocol.


    At first I thought I could just use the FLVPlayback control, but it
    doesn't seem so safe. I don't even need to connect to the
    NetConnection object before their passage along a value in the .source
    property or .load method.


    Then I started watching NetStreams and then using attachNetStream to
    a video object. In this way, it will only connect in the stream if it
    successfully hooked up with the NetConnection
    (application.acceptConnection). am I correct in assuming that this is more
    ensure that the use of a control of FLVPlayback?


    Is it possible to pass a stream to a FLVPlayback control, so the user interface is
    already created, including the implementation of start/stop/pause and the read head they can
    use to Polish? Or y at - it an easy way to build the user interface on a custom
    video object? All links to examples would be greatly appreciated.


    I currently if users can click on the thumbnails (loads through XML)
    to. seek() to specific tasks in the workflow. Which works very well. But
    the main feature I need now is a head of reading and scrub bar. I know
    I could quite easily create a Play/Pause/Stop button.


    Sorry if this question does not make much sense. For now, I'm
    feeling a little lost in this project :)


    Thank you


    Chris T.

    I wanted just to update (in case someone else through it), but it seems that http://www.gotoandlearn.com/ accurate tutorials, I needed about how to build my own custom player using a video object and NetStream. At the bottom of the list of tutorials, there are 6 video tutorials which helped.

    Already well on my way to fill!

  • Flash Media Server &amp; amp; 123flashchat

    Hi all

    I have install a chat room using 123FlashChat with activated webcams. Once in the chat room, users can activate their webcams and everyone can see and I can see the connections in the Flash Media Server administration console. Any advice / help appreciated on the following points:

    (a) how can I burn sessions
    (b) how to lock sessions down so that they are only one by one?

    Thank you very much

    The FMS is that it does nothing on its own. In order to get your application for registration, it must be programmed to record (there is no switch 'magical' anyone will start recording for you.)

    Therefore, you must either reprogram enforcement 123FlashChat to support recording or build a new application which is what you need to. From what you wrote above, my advice would be to build (or a programmer to build on contract) an application that meets your specific needs.

  • How to delete songs in Windows Media Player 11 duplicate?

    How to delete songs in Windows Media Player 11 duplicate

    Hello

    Method 1:
    I would recommend you to rebuild the database of Windows Media Player and see if the problem is resolved.

    Here's how:
    To resolve this problem, delete the Windows Media Player database. To do this, follow these steps:
    1. exit Windows Media Player.
    2. click on start, run, type %LOCALAPPDATA%\Microsoft\Media Player, and then click OK.
    3. Select all the files in the folder and then click on Delete on the file menu.
    Note: You don't have to remove the folders that are in this folder.
    4. restart Windows Media Player.
    Note: Windows Media Player automatically rebuilds the database.
    Method 2:
    If this does not resolve the problem, disable the Windows Media Player database cache files.

    To do this, follow these steps:
    1. exit Windows Media Player.
    2. click on start, run, type % LOCALAPPDATA%\Microsoft, and then click OK.
    3. Select the Media Player folder, and then click on Delete on the file menu.
    4. restart Windows Media Player.
    Method 3:
    When you move digital media files on your computer, the file name and file path information remain unchanged in your library. Then when you select a file to play to its new location, a new entry is created in your library if you select the option automatically added to your library when played. As a result, your library can quickly contain a large number of entries, duplicate or invalid.
    To prevent it be automatically added to your library of music files

    1. in Windows Media Player, on the Tools menu, click Options.

    2. on the Player tab, clear the files of music to add to the library when played check box.

    Now, when you play music on your computer or the Internet, the file will not be added automatically to your library.

    Method 4:
    In the case where the duplicates are not removed:
    There are also third-party applications to do the job. You can search your favorite search engine and download third-party software to remove the tracks in Windows Media Player 12 duplicate.
     
    DISCLAIMER

    Using third-party software, including hardware drivers can cause serious problems that may prevent your computer from starting properly. Microsoft cannot guarantee that problems resulting from the use of third-party software can be solved. Software using third party is at your own risk.

  • Flash Media Server in Adobe Connect update

    We recently conducted an audit of security and one of the problems highlighted was that the version of Flash Media Server on our Acrobat Connect Pro (version 4.0.3) servers is no longer supported and the supported version is 4.5. We are currently running Adobe Connect 9.1.1 and I had to spend 9.3 soon. Will be 9.3 update also update the version of Flash Media Server 4.5 or higher? Alternatively he is allowed to apply just Flash Media 4.5 or higher?

    Thank you

    I do not think that 9.3 update will be updated to FMS 4.5 +. Connect is built on a version of FMS, and which usually does not change between versions of full version.

    The FMS instance that belongs to Connect is fully supported by Adobe as part of your Connect & maganga. If there is a security problem you have with it, apart from the version number, I would recommend that you raise these concerns with the Platinum support to see if they apply, or can be solved.

  • live streaming with Flash media server

    Hello

    I'll work on a live project streaming with Flash Media Server. The idea is to see the video of a user to several Viewer.

    I have a few questions.

    Which protocol should I use (PLMN, rmtfp, etc.).

    Is there a tutorial for that. Help, please.

    Amit

    You can use rtmfp to do all this.

    Start here: http://labs.adobe.com/technologies/cirrus/

  • Flash Media Server 3.0.1 Download Url

    Hello

    I need to download Flash Media Server 3, but I can't find any page on adobe.com to download.

    We use 3.0.1 and we need to migrate to a new server, but could not find the installation packages.

    Kind regards

    Calvin

    Calvin, please see the forum of Flash Media Server of the http://forums.adobe.com/community/flash/flash_media_encoding_servercoding.

  • The Adobe Flash Media Server 4 upgrade

    Hello

    I'm trying to improve 4 AFMS to 4.5.5, using the same serial number used to install the current version, but the installation Wizard indicates the serial number is not valid.  The same serial number can be used to upgrade the current installation?

    I'm unable to move your post to the appropriate forum, but I recommend that you delete your current survey and post on the forum of Flash Media Server of coding at http://forums.adobe.com/community/flash/flash_media_encoding_server.

  • Flash Media Server 4.5 fails often when I log onto the service as administrator on Windows 2008 R2 for x 64

    I recently installed the Flash Media Server 4.5 on my Windows 2008 x 64 R2

    Whenever I try to restart the service as an administrator he starts giving problems such as making connection authenticated with Flash Media Encoder Live (I installed the x 64 plugin for authentication which is with v3.2 FMEL)

    Please can someone guide me why FMS 4.5 becomes unstable and buggy once I restart the Apache Server and Flash Media Service as an administrator! I need to host files on network drives so I need administrator access... If adobe don't like the administrator name then whats the alternative workaround, for example create usernames?

    Please Guide

    One of the solutions I've found is it's to say try doing all the three Services of Windows FMS ( Flash Media Server (FMS) ,Flash Media Administration Serverand FMSHttpd) in the few controller domain or at least the same administrator account.

    After doing this first manually stop Flash Media Administration Server. After the Administration Server stops now run the Flash Media Server (FMS), which should automatically launch the FMSHttpd (Apache) Service. Once the two are started, then try to start the Flash media Administration Server.

    To make sure that Flash Media Administration Service always begins LAST you can either use the manual Batch file in the boot sequence or can set the "Delayed start" option in the settings of Services.

Maybe you are looking for

  • El capitan cannot restart, stop or close the session

    If someone has problems with the restart, shut down or close the session with El Capitan (items disappear from the screen, but then restart stops on a white screen, the cursor still moves, dock still works) I have a possible solution. It should proba

  • can't conect godaddy email

    I used all the setting that tell me to Godaddy and Thunderbird but I always get this error:The RETR command has failed. Error when retrieving a message. Mail server pop.secureserver.net responded: cannot open this message

  • Upgrade the size of the RAM in the MacBook Pro

    Hello It's SheikAbdullah. I'm on MacBook Pro (13-inch, mid 2012) model. The RAM size is 4 GB. Now, I am planning to update. Can I switch from 4 GB to 8 GB (2 x 4 GB) or 4 GB to 16 GB (2 x 8 GB). Could you please suggest here Thank you

  • The link to delete temporary internet files under the Tools tab is missing. How to restore this link?

    The link to delete cookies, temporary internet files etc has disappeared from the Tools tab. How to restore this link?

  • Concatenate the Images

    I'm doing a single image from a folder of multiple images. Images are jpgs, which is also I wish that the final image. The final product should be a grid square with all the images edge to edge. Currently, I have acquired regarding their reorganizati