Video tutorial : installing Flash Media Server 3
April 13th, 2008 . by polygeekInstalling Flash Media Server 3 is simple. But actually using it afterwards can be a bit tricky. In this video tutorial I’ll walk through the installation process and then creating a video player - using videoMaru - to stream movies from FMS. There is also a videoRecorder included in the samples download so that you can see how to use your webCam to record videos to your hard drive.
The tutorial also covers how to set your router up so that you can stream videos from your PC to anyone on the Internet. Which can be very handy for application development.
Here’s the WebCamRecorder built in Flex. PLEASE NOTE: if you hit the Start Recording button it will record video to MY hard drive. Maybe I’ll make a webcam viewer page for those of you who record themselves. You’ve been warned. :-)
| view source |
NOTE: FlexBuilder now displays the live feed from your webcam when you switch to Design view. Which is sort of cool and all but when you switch back to Source view it doesn’t let go of the camera. So when you publish/test the application you won’t be able to see anything - or record - because FlexBuilder already has the stream and there can be only one. You’ll have to restart FlexBuilder to get it to give up the connection to your webcam.
A few more resources
If you’d like to apply smoothing to your VideoDisplay then try this.
Hopefully this will get you up and running with FMS3 pretty well. Please comment if you notice that I’ve missed anything.
If you get stuck with something try Kevin Mask’s suggestions at SDflex.org.












made a video tutorial that covers how to install Flash Media Server 3 and get it set up to stream videos and even record video from a webcam to your hard drive. You can …
Watch the Tutorial Great video tutorial brought by polyGeek, on installing the Flash Media Server 3. In this tutorial you will learn how to install and get it set up to stream videos and even record video from a webcam to your hard drive. …
I was trying to duplicate your tutorial on my home setting but I am getting connectionError. I checked edge.00 log and found “Application (polygeek) is not defined” error.
Is there another step that I have to take?
@BW, if you are trying to run the code locally on your own installation of FMS3 then you’ll have to create the folder “polygeek” under the “applications” folder. So the path should look like this: applications/polygeek/streams/_definst_/myVideo.flv
You can create your own “application”, say “myApplication”, by creating another folder in the “applications” folder and then changing the code in the init() method to:
nc.connect( “rtmp://localhost/myApplication/” );
I hope that helps.
That’s exactly I did. I follow step by step accordingly. Any folder that I created such as applications/polygeek/streams/_definst_/sample.flv resulted on the connectionError. However, when I created under applications/vod/streams/_definst_/sample.flv then it worked.
@BW, Just to double check I created a folder and file ..applications/test/streams/_definst_/sample.flv and it works.
Since files in the vod/streams/_definst_/ folder are working it doesn’t sound like an FMS issue.
If you want you can email me your files and I’ll take a look and see if I can get them to work on my machine. ( Contact info is in the upper-right corner. )
Hi,
Wonderfull tutorial out there.. Good work!! I am building a similar application, although its primary objective is to capture only voice, i.e, record voice, i am unable to record voice. I get “Netstream.Record.NoAccess” very frequently and the stream doesn’t get saved on the FMS.. Please help me???
Thanks,
Satish.
@Satish, hummm, you know, I haven’t tried to record just the voice. My guess is that you would set up everything just like a normal webcam recorder and then do something to null out the video in the Netstream. Not sure how you’d do that. I’d love to look into it but I’m way backed up with work.
I’d suggest posting to Actionscript.com or some other active forum and seeing if someone can help.
Hi Dan,
I am about to start developing an AIR/Flex video recorder which will need to record webcam video to the users local drive and then upload this to a server. You mention in the FMS video tutorial that AIR has the functionality to do this now. I unfortunately can’t find any documentation on this. Any chance you could point me in the right direction?
Regards and thanks for the tutorials/samples.
Gareth
@Gareth, I think this is what I saw:
http://www.zeropointnine.com/blog/webcam-dvr-for-apollo
Hope that helps.
hello there
Very nice tutorial i almost watch it everday i am totaly new to flash but i like the idea so i am on the middle of somewher and stauck i dont know much about code my probelm is that i have tested the samlpe and and followed your tutorial and every thing almost was fine apart from wen i uploaded the test file in the sample like the html test and the swf files almost all files apart from the flv file and it was playing fine in my site www but wen i tried it with my frineds pc its saying loading and nothing hapen after a while i get ConnctionError i dont know what to do from there i am sure i am missing something any help will be nice
thanks again for the tutorial
@ADE, I think I might know what the issue is. If you drop the SWF file on some PC and try to run it by opening the HTML container it won’t work. It’s basically a security error that you’re getting. If you’re friend has a server set up on his PC then browse to the HTML container and try that. Otherwise put the files on a host somewhere and they should work.
Ok thanks for your quick reply
as i mentioned i am totaly freshy wen it comes to servers my problem its not just about its not loading in my friend pc its not loading from any other place apart from my pc wer the flash media server 3 installed what i ment was is that how supose to be done just by uploading these files to my web host ant it should work ok this is what i upload to my web host (powweb.com)
1 AC_RunActiveContent.js
2 allowedHTMLdomains.txt
3 allowedSWFdomains.txt
4 Application.xml
5 main.asc
6 vodtest.as
7 vodtest.html
8 vodtest.swf
without me to edit any thing just drag them from the sample in the adobe media server to my web host server and its playing without me to upload the flv file (the flv file is steal in my media folder in my pc) the link is http://rasnews.com/ade/vodtest.html
if you went there and pick one link to play it wont but its playing here in my pc, Sure i need to setup something here but i dont know where and what lol. the link is localhost so do i need to change that to some ip address or my ip address or my router ip or what and also where are the security settings. please polyGeek I know you are the man so i realy need help from you if this worked it will be my dream came true lol
Thanks for your help again and to all are reading this
awaiting for your replys
@ADE,
I’ll try to help here. First, if the SWF is looking for your media sever on ‘localhost’ then that definitely won’t work. You need the IP address of your router. So when the SWF loads up it will look for the media server at that IP address that you put in.
Now you need the router to forward on that request to your PC. That’s where you do the port forwarding stuff. This is covered in the video. Maybe watch it again and follow the instructions for getting the IP address and the port-forwarding.
If that doesn’t work out for you then I’d suggest finding someone local who knows a good bit about routers and such who can help walk you through it. It’s easy to do if you know what you’re doing. If not then it can be a total mystery. I understood how to do this because I’ve done it before for things like games and file sharing that need port-forwarding. Otherwise I would have been clueless to getting this to work.
thanks polyGeek you are the best that was quick reply.
Ok that exuctly what i am talking about the router and the forwarding thingy as i told you b4 i been watching this video almost everday and i knew i was missing something when you strat changing ip address and then forwarded and changed the port in your router but mine is totaly different, I remeber i saw a router and its setting exuctly like yours i wish mine was like that but is different totaly i do have basic setup but someother staff was totaly different so i skiped at that bit but i should now deep into my router’s settings and find where to change or where to get custom setup (like urs) i looked if its called something else but as i told you i couldnt fix that and i tried it without that but i did work in my pc even thought i am typing http://www. and its viewable in my pc.
I will now call my BT (British Telecome) and ask them then i will post here if found the solution.
Thanks again PolyGeek You are the man!!!
I forget to mention i do see my ip address and therouter ip address but dont know how to forward the port. lol
@ADE, maybe it’s time to get a new router. :-)
lol !!! polyGeek you are funy guy even in your tutorial
ok I have this good new for all are reading and had similar issue like mine i finaly solved it.
First i wana thank PolyGeek (Dan Florio ) the man who open the door for us and gave us this tutorial to help us all (god bless you) i followed your tutorial and every thing was right apart from minor problems i had like my router and its configuration i never tried camera and recording staff coz this is not what i want. I will try that next time so now i am soo exited that i have copmpleted my test and its working fine apart from some videos like the adobe silly song came with the sample its laoding very slow and its laging i have tested other video and there are huge size but the work fine but some videos are lag i dont know that and i would like to find out but i guess its the video encoding setting like some videos i used adobe premier to encode them (video editing program) as the new one you can save the file direct to flash format(FLV) so i am still hapy that what i wanted is working and that i learned something form this guy,
polyGeek one last thing on my pc the video is not laging only the outside ppl and my so i guess is something to do with my pc or encoding my connection is 5mbps and i am using windows xp , pentuim d processor 3.0 ghz 1 gb 256 ati graphice do thing thats not enough? is that why is laging to other ppl i have tried 3 users at the same time and all the get very sligh lag and some more for ppl have low internet connection, and last i wana tell you is i went to this site to configure my router since in was different from yours totaly , and followed this guy instruction how to forward the router and every thing worked for me thanks to you.
the site is http://www.frequencycast.co.uk/homehubfaq.html#port for configuring my por
@ADE, my first guess about the lagging would be that it’s your upload speed. You said that you have 5mb/sec download but your upload is probably less than 1meg/sec. Do a google search for “bandwidth test download” and you’ll get plenty of sites who can tell you what you’re upload speed is.
thanks for that i will check that.
PolyGeek just wonder, is it possible to connect your tv tuner card devise or a video to the flash media server 3 so you can stream live channel or live video player connected to your pc or any other devise just like what you did with the camra? Please
or live video recorded in my hard drive?
I mean i want to watch the video live wehn the user come to the site it should start wer it is not restatring the video every time like vod but i want it to play live just like any tv live streams channel.
@ADE, I can’t speak to the legalities of doing such a thing other than to say, “it’s probably not”.
Technically I don’t see any problem with it. The incoming stream wouldn’t have anything to do with FMS. You would just be using some device/software to record a media file to a folder in the FMS Applications folder.
If you get it working let me know. I’d love to see it.
Ok PolyGeek I will.
hey there polygeek. thanks alot for this tutorial!.
my problem is that i want to set up the FMS on a hosting server that i have already. i want to establish a webcam chat between x number of users. sorry for the bad english and thanx alot, tom from Israel.
@Tom, if by hosting server you mean something that you pay to host your website then you’ll have to spend some $$$ and get an FMS host. It isn’t cheap. If it’s a machine that you physically have in your possession then you can install FMS, it runs around $1,000. Then you can do the rest yourself.
the problem here in israel is that the upload stream is quit shitty, and if i install it on a my machine it will upload around 27kbps max :( i am looking for servers supporting fms here..it seems we don’t have any.
@Tom, If you ask me that sounds like a market opportunity. :-)
aloha,
i got shity problems on my PC
well i have 2 OS instaled on my pc
1. windows xp profesional sp 1 - just for testing sone stuffs - and…surprise … it works
2. windows xp profesional sp 2 updated to sp 3 - a pc for development (note that i have nod32 anitivirus installed on it) but no aplication on FMS works.
The logs show me something like that:
2008-05-29 20:51:45 2432 (i)2631174 Listener started ( _defaultRoot__edge1 ) : localhost:19350/v4 -
2008-05-29 20:51:45 2432 (i)2581252 Registering core (3216). -
2008-05-29 20:51:46 2432 (i)2631174 Listener started ( _defaultRoot__edge1 ) : 1935/v4 -
2008-05-29 20:51:52 2432 (i)2581252 Registering core (3760). -
2008-05-29 20:52:38 2432 (i)2581252 Registering core (2008). -
2008-05-29 20:56:53 2432 (i)2581250 Edge disconnected from core (3760). -
2008-05-29 20:56:56 2432 (i)2581250 Edge disconnected from core (3216). -
2008-05-29 20:56:56 2432 (i)2581250 Edge disconnected from core (2008).
I don’t get it :-?? HELP PLS
Best regards from Romania.
Uninstalling the nod32 resolved my problems ;) but … wtf…i have no antivirus now :D.
What antivirus do u recomand me ? or should i try nod 32 version 3 :-?
Anyway great tutorial :)
@oktav, That’s some detailed logging you did there. Sorry, I don’t have anything to offer. I use McAfee anti-virus and haven’t had any problems with FMS3.
It is the same process for live broadcast, I been trying for 3 days, can you give me a hand on this.
Thank you.
@Frankie, sorry, I have zero experience with live broadcast. I feel for you because it isn’t the sort of thing that has much documentation.
Thank you for your feedback,
I can see it locally only, but clients when they access true the web they get a connection error, thank you I will keep my search.
I followed your tutorial perfectly and I can go everythng you did on your computer, but when I ask someone else to go to a test web pate I set up to try it, they can’t get it to load.
http://www.aweyeah.com/vod/vodtest.html
I modified the swf so it autoloads the correct address (too many problems getting people to type in the right address).. and like I said, I did the port forwarding and when I test it on my computer (going to my website online and doing what you could do if you go there) It runs fine. But if you try it, it does work?? I’ve tried firewall stuff and that doesn’t work either.
I’m asking about this becuase I have a client that could actually use this set up (they are not ready for full FMS hosting) They probably get 10 page views a month, but because they are 80MB files, they stutter and chop…so I suggested your solution, only now I look like I’m lame… have you tried your solution on someone elses box from a different IP (not on your own network)?
Also, I went into the server and tried to reset it so that it runs from the network but that doesn’t work either.
of all, you can view a decent tutorial by Dan Florio on how to set things up. The only problem with the tutorial is his explaination of the folder …
Ok, I found out what the problem is. I explained it on my blog… http://sdflex.org/blog/air/flash-media-server-3
I would like to know what is going wrong with my tries. I’ve been trying to do live stream with Flash Media Encoder 2.5, but i cant conect to the server with it. It ask’s about my Username end my Password, i put them right but doesn’t not work. Comes, there is no such user. But i’ve been putting the username from login of server and password fron the server… …Thank’s for now.
@Jonas, I’m sorry I can’t help. I’ve never done anything with live streaming.
Ok than, thank’s anyway.
Ohh,
where could i get this information?
@Jonas, aside from searching for “FMS live streaming tutorial” I can’t think of anything. I don’t even know anyone who has set up live streaming before. And I haven’t found a tutorial at Adobe about it either. I think they sort of skipped over that bit.
Ok, thank’s. To tell you the truth, i’ve already did my connection, the problem is other now. I’ve connected, i’m sending i live signal, but i cant get it from there. Something is wrong with the path tha i’ve put to the player to get the ive streaming. It is not getting the signal. It doesn’t connect to what i’m sending to the FMS.
Leave a Reply