April 13th, 2008 . by polygeek
Installing 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.
Download Flash Media Server 3
Download Sample Applications
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. :-)
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.

If something here has proved valuable to you then feel free to drop a couple of bucks in the tip-jar.

Posted in Tags: Flash Media Server, Flex, video tutorial
|
128 Comments »
similar posts
128 Responses to “Video tutorial : installing Flash Media Server 3”
[...] 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?
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.
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.
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
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
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
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
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.
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.
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.
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.
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 :)
It is the same process for live broadcast, I been trying for 3 days, can you give me a hand on this.
Thank you.
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 [...]
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.
Ohh,
where could i get this information?
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.
Hi, I am in a deep trouble.I had made a video player, and that streams FLV files from a Flash Media Server.When I put the videos in the application folder(VOD) the player is working.But I want to know that what should I do to get the videos from a mapped networkdrive.Because all of my recorded videos are nw in a networkdrive.
Please help me?
Thanks for your reply.I should inform you when I got a solution.
Thanks
Hi,
This is a great tutorial, however I tried to set up the polygeek folder as per the example -
applications/polygeek/streams/_definst_/test.flv
When I put this path into flash all I get is the buffer bar.
Don’t you need to add the main.asc file?
I can copy the vod folder and rename it and this works.
What am I doing worng?
Thanks mister geek.
Hi Mister Geek,
I fixed it, the path should be as you have it but you need the main.asc file in the the application name folder.
So it needs to be like this -
applications/polygeek/streams/_definst_/test.flv
and in the Polygeek folder you must put the main.asc file.
Thanks,
Dave.
Hi Polygeek , you are great teacher ,because of you i m able to stream my video first time however,
I have Flash Media Server installed and using it as vod and it works fine.
Only when I stream a movie on HD, I see on my player that the stream needs to load very often, althoug my bandwidth on the server is a 5 Gbit line, and my connection is 4Mbit connection.
thanks
Hi Polygeek
Thanks a lot for your video instruction about FMS3, i m experimenting my video to my patient however my streaming is not start right away as their should be ? it take long for buffering how can i improve it , my link http://www.drmaihuy.com/ please help.
Hi again, thanks for reply so quick, i dont know much about action script , i looking some premake template for streaming with fms3 , easy to use. please let me know where can i buy or download
thanks again
I followed all the steps in the tutorial and this is the errors I am getting: I also i get the same error locally:
rtmp://localhost/test/falls.flv
rtmp://blackboard0.occnt.ad/test/falls.flv
error:
The webpage cannot be displayed
Most likely cause:
Some content or files on this webpage require a program that you don’t have installed.
I am not sure what i might be doing wrong.
Steven
I am have my website on oneandone.com’s servers and I am trying to place my flash website with flash videos on it. Do I have to have the flash media server installed on the server to play these videos? When I place the .FLV on the server along with the website .swf and index.html the skin .swf I get nothing but the player searching. The site works fine just the player doesn’t play. Any suggestions? Thanks, KDX200
Hi polyGeek
Thanks for your tutorial.
I have installed the FMS 3 on my Windows 2003 server online. On my workstation I have installed Flash Media Encoder 2.5
I try to connect my FME 2.5 to my server FMS 3 but I receive this error
Wed Oct 15 2008 13:33:16 : Primary – [ AccessManager.Reject ] : [ authmod=adobe ] : ?reason=needauth&user=utente01&salt=nAYAAA==&challenge=2XAAAA==&opaque=2XAAAA==
And I can not stream from my Encoder.
I have tryed to use this settings
FMS URL = rtmp://xxx.xxx.xxx.xxx/live
and
FMS URL = rtmp://xxx.xxx.xxx.xxx:1935/live
I Access to login and after insert my username and password the connection fail.
(the server firewall is open on 1935 port and 1111 port)
You have a suggestion ?
I very appreciate your help.
Regards
I polygeek
thanks for your reply,
I solve this. The problem come from the antivirus NOD32. After disabled the service IMON from antivirus all work fine.
I have another question, but I dont want to be OT, soo if i am wrong, sorry, and delete my comment.
I would be able to stream movies at certain time (eg: 2:10AM, 2:30AM … like TV schedule):
this is possible with flash media server?
Ciao
Cheers
[...] need Flash Media Server 3 running on your machine. If you don’t already then I have a video tutorial that covers the installation and setup. It’s very easy, when it works. When it doesn’t it’s a real pain in the rear [...]
Hi
I have installed the Flash Media Server 3, and it is running well.
How to stream the movies by time ? I have to establish this from a server or from a playlist ?
Thanks
Cheers
Hi poligeek
I want that my movie (demo1.flv) start every day at 10:30AM, and then when is finisched start the movie demo2.flv (eg at 11:00AM) …
So if I enter on the page, (eg at 11:15AM) I see the movie demo2.flv already started.
Cheers
Hi poligeek
thanks for your support.
Please give me the directions to do this. Can I do this from a playlist ?
Can you write a small example ?
Cheers
Alberto
Hi, polygeek :)
I have a problem I’m trying to figure out for some time now. Please give me a hint if you know the answer. I want my recorded videos to be stored in a different folder. For example: My application path is c:\Program files\Adobe\Flash Media Server\applications\app_1\ and when i record a video it goes in this folder in streams\recordings\. But I want them to be in lets say d:\apache\htdocs\. I’m currently moving it after closing the stream with php script, but i want to know if there’s a way to make the media server save it straight there? I’ll be really heappy if you can help me with this. 10x in advance. Have a nice day ;)
Hi, polygeek. I checked that one out. Theres actually a parameter there for the applications path. You can set it there or you can set it in C:\Program Files\Adobe\Flash Media Server 3\conf\fms.ini (Vhost.xml takes it from there). It will pretty much work out for me. But I’m wondering now if there’s a way to make each application save it streams in different folder. I saw something in C:\Program Files\Adobe\Flash Media Server 3\applications\vod\ application. There’s a file there called “Application.xml”. In it there’s these lines of code :
/;${VOD_DIR}
I think it sets where to save the streams from this application. I tried to make a file like this one in my app’s folder but nothing happened. Do you have any info about that one?
It didn’t show the tags: this line i pasted is in a Streams tag. And above it says in a comment: Specifies application specific virtual directory mapping for recorded streams.
Hey there… I must be stupid but I can not seem to get this to work with windows vista. I am using a D-Link Router, and am cofiguring just like your video says, but I cant even get the file to play locally with my ip address. (using the standard video component and inspector to call the rtmp://bla bla. Any suggestions with vista?
hello i am trying to create a live feed, direct onto the server.
The streaming is working fine, i am using flash media encoder to stream directly to the media server, and if you go into http://72.232.117.58/ then click interact, in the play box place etv1 you will notice that i am streaming to the server, and i can view directly in a small screen via the media sever webroot page.
However i would lke to embed this streaming media onto a html, so can you recommend a media player that would embed this live stream onto a webpage?
I have tried several already but when i publish all i get is a blank media player with no stream loaded.
i am using the following link rtmp://72.232.117.58/live/etv1
is that wrong, or if the link is right what am i doing wrong
Thanks in advance for your help
just adding to my previous post above i have manged to get the stream working on flv player but how do i embed it onto media?
can you please give me the embed link for any flash media player for rtmp://72.232.117.58/live/etv1
thankyou
Dear All.
I have a problem i wil be glad to have someone help me out. I installed FMSS3 on my window vista. Both LIVE & VOD works fine only on this my vista laptop but never in another computer. Which mean i can see my live and vod via internet but never possible with another computer. I always get video Error 1000- unable to connect to server or to find flv on server. I tried to open all my possible ports 1935, 80,443. still no luck.
I then changed the my FMSS3 server to another XP computer in my home. Encorder installed in my vista can connect to my home ip. But the problem is now reverse. I connect my camera to my vista with encorder 2.5. i can connect to my xp and access my fmss3 but only my xp computer that i can access the internet and view my life applications. No luck on any other computer even my vista.
I also noticed that if i use my other wireless connection device i can connect to my fmss3 server when it was installed on my vista. But if i tried to connect with it to my home ip address it does work.
But with my home wireless network which have different ip from my vista and xp but are feed from the router then i can connect from my vista to my xp. But with another wireless device i cannot access my fmss3 installed on my xp. The other wireless devive is installed on my vista.
Can anyone help me out pls. Or should i contact my isp provider?
Thanks in advance
Thanks for your urgent responds. I tried it but i still cannot connect from another computer. I can view it with my vista connected to internet.
Do you think the problem could a liences one? I bought an American liences and am using it in Switzerland. Maybe the liences dont work out america.
I have this product now for 4 months and till now i still could use it.
Some say it could be a proxy problem
Thanks
Hey polygeek, i installed FMS 3.5 on my server and i need someone to teach me all of these features. I am willing to pay etc. So far i have got Live Streams to work on my website. But i have a couple things i want to learn. Please email me back at the email in this post. thanks
dear polygeek,
can i catch several webcam in once? what i mean is can il make like video conference using flex? example there 5 user online, so it will get 5 different webcam and show it in one page.
thank you,
paktua
Folks,
I wanted to know the difference between FMS 3.0 way of Ad serving and FMS 3.5 way of doing the Ad serving.
Regards,
Shrey
Hello,
can any body tell me how can I run my prochatroom cam module on Flash media server. I tried my best but waste two consecutive days invain.
also confused in rtmp address.
I would really thank if some one tell me step by step instruction!
Afridi
Red5 or Flash server can be used for streaming videos and live cameras supports.
7Hi man,
Thanks God…
You are wonderfully helpful!
it was a problem looking for answer many hours. when i visit your website, i found the answer within a second.
for supporting you, I just clicked a few times on your advertisements, in your website.
Thanks.
I tried to setup my FMS 3.0 but I found that the setup, together with the client program do not work well, It took me over 40 seconds to start streaming via the proxy server installed for providing Internet access functions. Would you mind give me some hints if I miss anything out?
I have a problem i wil be glad to have someone help me out. I installed FMSS3 on my window vista. Both LIVE & VOD works fine only on this my vista laptop but never in another computer. Which mean i can see my live and vod via internet but never possible with another computer. I always get video Error 1000- unable to connect to server or to find flv on server. I tried to open all my possible ports 1935, 80,443. still no luck.
Thanks for the great FMS tutorials!
I'm using you polyCamRecorder.fla version on a site I'm working on and have run into a couple of (minor) issues which have me stumped…
First – to be clear – when running it on my development server with server string (set in swf) as 'localhost' OR '192.168.0.1' everything is fine.
When accessing it from another PC on my local network (say 192.168.0.2) neither option works :(
I've checked that my development server is listening on port 1935 (it is). But nothing's happening.
If you could list any possible causes – I can go through and bug check. Thanks again for the wonderful resources and (I hope) help ;)
Adam
HEllo, great stuff here-
I am new to FME and FMS, I have FMS 3 installed and running.
I then load FME 3.5 and see my webcam, click stream, click CONNECT – this is he probelm for me. A username/password gui pops up, and when I type in my username and password for FMS (which is running), I get 'user not found' – ???
my username is admin, and my password is password in FMS, what am I missing?
Any help would be greatly appreciated.
Andy
yeah, fms seems ok – I can even make a flash file, start it up, and see that it is connecting in fms – but no picture. But, wehn I try hitting 'connect' in FME, I get the user/password gui with no luck entering same as FMS. I've tried on two computers, same thing. I'm missing something big here, but not sure. Do I need to be running any other software besides FME and FMS? like miscrosoft server or apache? Thanks in advance -
andy
Yeah, it's odd and I appreciate any help -
here is a link to a screen cap showing the gui when I click 'connect' in fme
http://www.kamikazeclub.com/bellvid/password.jpg
this does this on my xp machine and my vista the same.
thanks again!
andy
um, I figured it out – you shuldnt install the authenticator thingy –
I uninstalled that and everything works – yea!
thanks again-
andy
the flash player can store the video before sending to the server?
the connection speed is connected directly to the video quality? a bad connection, cause a bad recorded video?
I am developing a personal project called retivico.com .. The idea is to capture images from a webcam, sending to a flash media server, but at least with a reasonable quality. I must find a way to receive the video in good quality without the interference of the speed connection… Do you know any existent project like this ?
I don't know… Maybe I will use flash, and create one way to show a quality bar, calculating the user connection speed. For example, If 300 kbps it is a good video bitrate, if the user have more than 300 kbps of upload, so a pointer will move to the green side of the quality bar… Can you understand ?
Hey Polygeek,
great tutorial, helped me alot – I might add that many of the peeps with connection issues als check their windows firewall settings which was where I got stuck fo a bit.
Is there a way to play an instance name using videomaru? For example I would like to stream webcam to FMS server and use videomaru to play the stream LIVE. I've been trying to use rtmp://servername/live/Instance_name but figure Im probably way off track. Any help or suggestions.
Many thanks
What is FMS(Flash Media Server) Testing and Types of Testing?
Hello, I am trying to build a website where people once they enter the site and ofcourse hitting a button, they can connect to each other. so 2 webcam screens on the screen, one of them will be 1st user, 2nd one will be 2nd user that has visited the site or in general random if there are 10,000 visitors. I was wondering if you could help me with building something like this? I also need help with other stuff but you seem knowledgable and would be perfect for my project. Please let me know if you would be interested in helping, I have a budget of $2,000 or more possibly depending on complexity. I need this done ASAP, please email me as soon as possible so we can start!
What about Live stream.. Ive been tring using cs4 and flash encoder but the steps for vod dont work for the live
Hello, thank you for the tutorial.
I have a question about audio, with a webcam with an in-built mic everything works fine, but if I want to use an external mic, what should I change in a general view.
Thank you very much.
hey how do i protect my server it seens that anyone can stream anything on it i want to know how to do that
Hi, I learned a lot from your tutorial.I have made application to record webcam.and I put it on my server.I dnt understand where recording will be saved?it works fine at localhost and I get recording also when I run application on localhost.
I gave my ip address ,I did port forwarding.It runs fine from any machine but I dnt get the recording which should be saved.
Ok.Thank you.I followed the tutorial.
After doing port forwarding and giving my router's ip address instead of localhost(and 192.168.1.19), I tried to play sample videos and I didnt get anything.(which i had got when testing for localhost) .
And about video recording I tried from my friends PC,the application was run perfectly but didnt get the data saved.Can I say that my ports working fine?cause from other's pc its running.could you please check
webpage.pace.edu/sm20916n/take_picture.html
solved the problem…done it..some server issue…thank you..
you are really great…