Live Streaming of video static files

Hello world

I use Amazon Cloud & Flash MMedia Server 4.5.
I would like to take one of my videos of outputs (a static file) and turn it into a live stream. People can view this video (synchronous). I use Flash Media Live Encoder 3.2, but it only capture video from devices like the camera...

How can I do?

See you soon.

Hi Huy,

Please find the attached zip file where I wrote scripts for you to deploy to your local FMS server, in the context of option 2:

You may want to follow these steps:

1. unzip the file.

2 deploy FLVpublishonLoad (in which case your saved file is a case of use FLV) on your server for businesses

3 deploy toPublish on your server remote aws

4. make sure that correct the path for the AWS in application FLVPublishonLoad @ No. 19 line:

Please mention your aws instead of localhost instance host name and the application name.
NC. Connect ("rtmp://localhost/toPublish");

5. go in the administration of your local development server console and load the instance of FLVPublishonLoad, as shown in the image of howtoLoadfromAdminConsole.png attached to effect refrence.

6. it will automatically connect to the application of the "toPublish' on your remote server and start publishing your file local vod as a live stream on your aws instance

7 start your subscriber application and subscribe to the feed you used in FLVPublishonLoad app for Stream.get () method, see line #29 and the file subscriberScreenExample.png to illustration.

some things to note here:

1. I removed the sample.flv and the 'sample1_1500kbps.f4v' to keep the zip size down.

2. you need to put your data online #55 stream name where you call mystream.play)

3. the name of the stream you specify in Stream.get () will be used by the subscribers.

4. If your use case is mp4, please use "MP4PublishonLoad" instead of the "FLVPublishonLoad" application

=============

As I can't attach files here, then copy - paste the code for you and others to be reused:

=======

hand. CSA code for FLVPublishonLoad:

--------------------------------------

var nc;

var ns;

application.onAppStart = function()

{

trace ("client hello :");

publishIt();

}

function publishIt()

{

trace ("Publishing");

NC = new NetConnection();

Please mention your aws instead of localhost instance host name and the application name.

NC. Connect ("rtmp://localhost/toPublish");

nc.onStatus = function (info)

{

trace (info.code);

}

NS = new NetStream (nc);

Exact name of feed available to subscribers...

myStream = Stream.get ("myvodfile");

mystream.onStatus = function (Sinfonia)

{

trace ("mystream.onStatus:" + sinfo.code);

If (sinfo.code is "NetStream.Publish.Start")

{

attach_retVal = ns.attach (mystream);

if(attach_retVal==true)

{

trace ("stream attach succeeded...");

startPublish();

}

on the other

{

trace ("the source of flow to NetStream connection attempt failed");

}

}

}

Please put here the name of the stream inside quotation marks you want to publish, and is it available in the streams/_definst_ folder...

myStream.Play("sample",0,-1,true);

}

function startPublish()

{

NS. Publish (myStream.Name, "Live");

}

--------------------------------------

hand. CSA code for MP4PublishonLoad:

--------------------------------------

var nc;

var ns;

application.onAppStart = function()

{

trace ("client hello");

publishIt();

}

function publishIt()

{

trace ("Publishing");

NC = new NetConnection();

Please mention your aws instead of localhost instance host name and the application name.

NC. Connect ("rtmp://localhost/toPublish");

nc.onStatus = function (info)

{

trace (info.code);

}

NS = new NetStream (nc);

Exact name of feed available to subscribers...

myStream = Stream.get ("mp4:myvodfile.f4v");

mystream.onStatus = function (Sinfonia)

{

trace ("mystream.onStatus:" + sinfo.code);

If (sinfo.code is "NetStream.Publish.Start")

{

attach_retVal = ns.attach (mystream);

if(attach_retVal==true)

{

trace ("stream attach succeeded...");

startPublish();

}

on the other

{

trace ("the source of flow to NetStream connection attempt failed");

}

}

}

If please put the name of the workflow that you want to publish and is available in the streams/_definst_ folder...

myStream.Play("MP4:sample1_1500kbps.) (F4V", 0, -1, true);

}

function startPublish()

{

trace ("#" + mystream.name);

NS. Publish ("mp4:" + mystream.name, "live");

}

--------------------------------------

hand. CSA code to app "toPublish.

=====================

application.onPublish = function (clientObj, streamObj)

{

trace ("published:" + streamObj.name);

}

=====================

Please get back to me if additional query.

Kind regards

Shiraz Anwar

Tags: Adobe Media Server

Similar Questions

  • FMS4.5 live stream with multiple video files as a single source?

    I use Flash Media server 4.5 and I read the tutorial if I want to play the live stream, I may need to use the Live Media Encoder.

    But what I found in media encode is I manually set up everything and it only supported cameras.

    But in my case, I have several video files keep the receipt of another program and place it on the filesystem (server).

    My goal is use the Flash Media server to perform a live boardcasting with these video files one by one.

    This means when customer watch a live streaming, they won't notice the server plays mov1, then mov2, then mov3, then mov4... and so on.

    You can imagine I try boardcast say a sequences live during 60 s,.

    the video file will be not recorded entirely after 60 seconds, but not for every 10 seconds, I will deliver a video file,

    so that when watching the live of HLS customer (for example http://xxxx.com/live123( )

    When time reach 10 seconds, a video file available mov1 and FMS should boardcast this video on live123.

    When the time achieve 20 seconds, a video file available mov2 and FMS must immediately follow the boardcast mov1 on live123.

    and so on...

    FMS can dynamically create a new session of streaming (call by code),

    so that when the customer a download of some video files to the server, the FMS log new stream streaming only cilent video files?

    boardcasting as configuring the size of the screen, bitrate, etc. must be predefined on the server.

    (e.g. customer boardcast on http://xxxx.com/live123, CustomerB boardcast on http://xxxx.com/live124...)

    so the fact that possible to use FMS perform these ideas? or y at - it approaches?

    I am very new to FMS, if I have any misconcept FMS or media encoder (live), please do not hesitate to correct me.

    Thank you!

    Hello

    To have OUT load videos from sources of files, to be released at this stage, you need third party software like ManyCam.

    Otherwise, FMS can use source files and a playlist-like, side Publisher.

    Thus, you must request script on the server, server to play files and publish (publish side Server) to be subscribed by customers. Essentially, we ask the server to replace GFFE/encode streams published by sources to have the publishing server-read the file stream.

    http://help.Adobe.com/en_US/flashmediaserver/ssaslr/index.html should give more information on how to do it.

    Thank you!

  • Adobe 13.0.0.182 flash drive to stop all live stream on youtube channels. other videos here are ok.

    after update to adobe flash player for 13.0.0.182 version any live stream on youtube channels suddenly stopped working. other youtube videos play fine. I tried to uninstall and reinstalled flash drive 3 times of any new version in the cache of the flash drive previous and back, reset, mozilla reset to the default values. still does not work.
    I know that there is a problem with mac users but my operating system is Win 7

    today I downloaded the latest version of flash player 13.0.0.206 and everything works again... so problem was in adobe only... problem solved

  • Live streaming video issues

    I look after a small PC of old ladies in Australia, of the Canada.  She used to watch live webcams to the Canada video looking at snow & ice but now with a new HP PC it can not display the stream live... or to be more precise that she can see, but the site does not load properly and displays a still image.

    If the browser is refreshed the image updates, but is a still image.

    We can see the time, so we know there is a preview of the taken video, but it will not be updated with the live stream.

    I read the other posts about similar problems, but can't seem to find an answer.

    I updated its Windows media player, which is uninstalled then reinstalled both Shockwave & Flash to the latest versions, but still the video will not play correctly.

    She can watch other videos for streaming live, but it just seems to be a problem with this one in particular.

    I tried the same webcam feed other computers to the Canada and the United Kingdom with no problems.

    She has a HP610-1010 has Touchsmart with installed ATI Radeo HD5570 graphics card.

    Can anyone suggest anything else I can be on...?

    Thank you

    Malcolm

    Hi - Thanks for your help. I think I found the solution. I checked again in the United Kingdom and found that does not now by streaming video and just displaying still images. There must be an intellectual property sensor on the site of blocking live outside of North America. Bad luck!

  • Download live streaming video

    I want to download live streaming video on my computer (my daughter-in-law live sonogram) if my husband can view them later.  Any suggestions?

    This question is kind of vague, but I'll give you some suggestions. Just in case any of these help can provide you more information, such as this site is meant to be heard in the video and is there all programs used to display the video said.

    Method 1 - http://www.downloadhelper.net/install.php; It is an extension of the addon for firefox that works very well to video capture. If you're not using firefox, it can be easily downloaded Mozilla.

    Method 2 - http://www.fiddler2.com/fiddler2/; This is perhaps an exaggeration, but it has a ton of ability when it comes to download content on the web.

  • Not able to get sound in video (.wmv) file when you import video clips (.m2ts) to video recorder Cannon using Windows Live Movie Maker

    Unable to get sound when you import video clips (.m2ts) Cannon for Windows Live Movie Maker video recorder or on the video file (.wmv).  Does anyone have a suggestion as to how this can be done?

    Hi RichGraff,

    • You have sounds in the VCR of Canon?
    • Are you facing problem with this video or other videos as well?

    For now, I suggest to import the video clip in Windows Movie Maker, which is an application integrated into Windows Vista and check if you get its in.

    Reference:

    A problem of importing files into Windows Movie Maker

    http://Windows.Microsoft.com/en-us/Windows-Vista/troubleshoot-problems-with-importing-files-into-Windows-Movie-Maker

    Import video, photos and audio on Windows Movie Maker

    http://Windows.Microsoft.com/en-us/Windows-Vista/import-video-files-pictures-and-audio-into-Windows-Movie-Maker

    Hope the helps of information. Please post back and we do know.

    Concerning
    Joel S
    Microsoft Answers Support Engineer
    Visit our Microsoft answers feedback Forum and let us know what you think.

  • Can I really work on videos with first Pro CC and export to Flash Media Live Encoder for live stream?

    I'm looking for a great coder with features like titling. Adobe first Pro CC has great features, but I can work with it and export my files for Adobe Flash Media Live Encoder for live streaming.

    You can not.

  • Read the size of the video without onMetaData on live stream.

    Hello

    I am a Flash developer and know virtually nothing about the FMS.

    We met with a situation where our encoder (Adobe, one not) does not inject metadata into a live stream. Thus, there is no onMetaData on the stream. When the stream is 16 x 9, our players don't resize the flow according to the ratio and always display in 4 x 3.

    Is there a way to read the width and height of the video even if there is no metsdata? Perhaps a method that can be called via answering machine similar to getStreamLength.

    Video is streamed through Akamai.

    Interestingly enough when we discover the same stream in Akamai - video player is resized to the value dimensions / / AFTER a few seconds. Akamai of course has a mechanism to detect the video dimensions.

    Any help will be greatly appreciated.

    Thank you.

    My ignorance is the problem.

    Video class AS3 has videoWidth and videoHeight properties that can be used in case onMataData is not called.

  • M3u8 sample Live Streaming HTTP plays don't not - stand-alone JavaFX 2.2.7 for java 1.6.0.32

    Hi all
    I searched high and low on the here and the wild wild web, but cannot find any support for my problem.

    I was testing my code of JavaFX2.2.7 Media Player based in a common Java 6 application when I discovered that HTTP Live Streaming does not seem to work.  I can play a local file of the format supported (Sintel trailor mp4 h264), but when I try and use a stream of Live HTTP instead, nothing plays. (for example http://download.oracle.com/otndocs/products/javafx/JavaRap/prog_index.m3u8 ).  I find myself with an empty drive and no exceptions or errors.

    private final static String MEDIA_URL = " " http://download.Oracle.com/otndocs/products/JavaFX/JavaRap/prog_index.m3u8 "; "

    Media = new Media (MEDIA_URL);

    MediaException ex = media.getError ();

    If (ex! = null) {}

    System.out.println ("Media error" + ex.getMessage ());

    } else {}

    System.out.println ("no media error");

    }

    Program the output to the console: "No. Media Error.

    I thought it was something wrong with my Player code, as a last resort, I went to JavaFX 2 - together and copied from the source and put it directly in my application and it ran... Unfortunately occurs the same result. The player runs, but simply shows a video window empty.  Controls are available, but the video plays.

    Based on the release notes for Java 2.2.7 that I was under the impression that HLS has been supported.  Am I incorrect?

    I can't upgrade to Java 7 because I'm firmly stuck with Java 1.6.0.32 for lack of project.

    Can anyone provide any assistance would be greatly appreciated.

    Post edited by: 2b18d6de-8200-4adc-a82a-88fc0451f448 I've updated for JavaFX 2.2.21 and this has not fixed the problem.  The result is exactly the same.  No exceptions, no error and no video...

    My Conclusion: Http Live Streaming does not seem to work with JavaFX 2.2.7 or 2.2.21.

    I've proved since the problem lies with 2.2.7 JavaFX and JavaFX 2.2.21, and that by using the new JavaFX comes with Jre7 solves the problem.

    I created a completely new and added that the JavaFX jars comes with 7 project JRE on my road to build.  I copied the code from http://download.oracle.com/otndocs/products/javafx/2/samples/Ensemble/index.html#SAMPLES/Media/Streaming%20Media%20Player and it works.

    So, I made a few changes on my original Java Eclipse project.

    Removed the build path:

    -C:\Program Files (x 86) \Oracle\JavaFX 2.2 Runtime\lib\jfxrt.jar

    -C:\Program Files (x 86) \Oracle\JavaFX 2.2 Runtime\lib\javaws.jar

    -C:\Program Files (x 86) \Oracle\JavaFX 2.2 Runtime\lib\plugin.jar

    -C:\Program Files (x 86) \Oracle\JavaFX 2.2 Runtime\lib\deploy.jar

    Added to build the path:

    -C:\Program Files (x86)\Java\jre7\lib\jfxrt.jar

    -C:\Program Files (x86)\Java\jre7\lib\javaws.jar

    -C:\Program Files (x86)\Java\jre7\lib\plugin.jar

    -C:\Program Files (x86)\Java\jre7\lib\deploy.jar

    Always using the 1.6.0_32 Java runtime, I ran my application and everything worked.

    Of course, this will be like a giant hack. I am disappointed by the release notes for JavaFX 2.2.7.

    NOTE: To export my request as an executable Jar, I also had to pull the related JavaFX ".dll" JRE 7 libraries and add them to the java.library.path (using script commands) before running the jar.

  • HTTP Live Streaming Audio MP3 in the Simulator 10.1

    Hello

    I'm working on an online radio application and I am very disappointed to see that the BB 10.1
    Simulator (10.1.0.1483) does not support the HTTP live streaming of multimedia files (MP3) M3U.

    I get the following message in the log of the device:

    MediaPlayer: prepare::Error attach the input source. URL: ""http://abc.xyzxyz.com:9156 / stream ', "
    error = UnsupportedMediaType

    and also when you try to navigate to the URL in the browser of the Simulator:

    The media file is from and not supported type or could not be loaded. It can not be played.

    I would like to know if the BB 10.2 Simulator supports HTTP live streaming of MP3 files, or do I have to buy a real device?

    Best regards

    burakk

    Hi @burakk,

    My apologies for the late reply. Unfortunately, for the OS versions on the market to date, support for media playback on the Simulator is very limited. This is mainly due to problems of codecs required license. There is a support very limited no playback video and audio (uncompressed audio files in the WAV only). In later versions of OS Simulator, we might have the software decoding - if that happens, your use case would be satisfied then.

    For a complete list of the formats supported on devices: https://developer.blackberry.com/devzone/develop/supported_media/bb10_media_support.html

    See you soon,.
    Rashid

    Applications development consultant | Relationships with developers

    BlackBerry @surashid

  • Live streaming with DVR on linux 64-bit platform

    Hello, everyone. I have deployed enterprise edition 4.0 FMS on my 64-bit linux platform. in the FMS applications folder, I create a subfolder "dvr" and at the same time to create a dvr.asc. the code is as follows:

    application.onAppStart = function()

    {

    trace ("app fme started!");

    };

    application.onConnect = function (p_c)

    {

    p_c.disconnectClient = function() {}

    trace ("-disconnectClient" + application.clients.length + "-");

    application. Disconnect (p_c);

    }

    this.acceptConnection (p_c);

    };

    application.onPublish = function (p_c, p_stream)

    {

    trace ("onPublish streams:" + p_stream.name);

    p_stream.record ();

    };

    application.onUnpublish = function (p_c, p_stream)

    {

    trace ("stream of onUnpublish:" + p_stream.name);

    p_stream.record (false);

    };

    I'm waiting for the live stream will be recorded on the FMS server, but unfortunately nothing has happened.

    But if I use my pc (xp 32 - bit windows platform), everything works fine. When I connect to my pc win_xp

    the fms server automatically created a file streams\_definst_\myVideo.flv under the folder of dvr.

    then the fms on linux 64-bit server cannot create the mavideo file. FLV?

    everything here can give me some advice?

    Thank you for your response. I am a new learner of linux, so I have a lot to learn linux technologies. your answer was referring to 'permissions', then I connect the linux server and use the command 'chmod' to make the directory writable for the video editor dvr.

  • Cannot connect to a live stream

    I just can't live stream. I have two files, a single sender and 1 Subscriber. I work locally FMS test.

    I just a video object on each step and the ActionScript:

    sender:
    var rtmpPath:String = new String();
    rtmpPath = "rtmp: / test";

    var ncBase:NetConnection = new NetConnection();
    ncBase.connect (rtmpPath);

    var ns:NetStream = new NetStream (ncBase);
    local_sender.attachVideo (camera.get(2) ());
    NS. Publish ("testVideo", "Live");

    the video object instance name is local_sender.



    the Subscriber:
    var rtmpPath:String = new String();
    rtmpPath = "rtmp: / test";

    var ncBase:NetConnection = new NetConnection();
    ncBase.connect (rtmpPath);

    var ns:NetStream = new NetStream (ncBase);
    local_re.attachVideo (NS);
    NS. Play ("testVideo");



    I can see video camera in the sender file, but in the Subscriber nothing.
    In the flash media server console, I see 3 streams. create one with the name that I and the other two generic, like CBAoQD6H...

    How can test is the output stream is really going out and if so, if the flow in the problem?
    I do not have a main.as file in my application folder. but I tried to put a there is flash 8 samples and tutorials and did not work.

    any help will be much appreciated.

    Thank you

    now it's working. I forgot to attach the video in the netStream (file sender):

    ns.attachVideo (camera.get(2) ());

  • Live photo showing 2 different files in photos app on mac!

    Hello

    I recently imported photos from my iphone to my Mac using photos for OSX app. But after graduating successfully imported it shows me two different elements i.e. photo itself & a short video. So for my 300 live photos it's show me 300 photos and 300 videos.

    So why it shows two different files, I suppose, that it should show only direct photo because it shows on my iPhone.

    I also tried to repair the library command to open the photos app, but it did not work. Help, please!

    Thank you

    Amar

    Live webcam picture is two files, a picture and a video - what it is

    where are you seeing the two files?

    If you really have OS X 10.10.1 and Photos 1.0 as you say then that's the problem - you are updated to eleven or twelve behind and these updates included support Live Photo - you must upgrade to El Captain OS X 10.11.6 and Photos 1.5

    LN

  • How to convert Windows Live Movie Maker to WMV files?

    How to convert Windows Live Movie Maker to WMV files?

    Open Windows Live Movie Maker > add all desired items for video > when finished, click on the BLUE button at the top left > click on save the movie > choose options > enter a name for your video > you can see that the type of Save As IS in WMV. > click Save

  • Live stream on Media player keep encountering the problem.

    I'm watching a live stream with Windows Media player and he continues to show the media connection, then error comes Windows Media Player encountered a problem while playing the file.  For assistance, click Web help.  When I clicked that show multpile things to try.  One is the windows media player C00D11B1 error message. I have Windows Vista Service pack 2. Any help or information?

    Hello

    I suggest you to refer to this link and check if it helps:

    http://Windows.Microsoft.com/en-us/Windows7/C00D11B1

    It will be useful.

Maybe you are looking for