Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
Locked
0

RTMP problem:: streaming from FMS

Explorer ,
Jul 01, 2007 Jul 01, 2007
Hi,
We've just bought a FMS and I've installed it on a machine running Win Server 2003 SP1. The name of the server is advancedmedia.
FMS is located in D:\Flash_Media_Server2. I've updated the server to the latest version.

In the application folder I've created subfolder myapp and have copied main.asc file from folder Adobe/Adobe Flash CS3/Samples/ComponentAS2/FLVPlayback/.
In the subfolder myapp I've created a subfolder Stream and in it a new subfolder _definst_. I've copied a FLV called test.flv file in the subfolder _definst_.
In Flash CS3 I've created a new fla file and have dragged and dropped a FLVPlayback component..
Publish setting: Flahs Player 9; ActionScript 3.0.
I've set up FLVPlayback Parmeter source to:

rtmp://advancedmedia/myapp/test.flv

I'm getting error message: Failed to load FLV: rtmp://advancedmedia/myapp/test.flv

I've found somewhere in docs that param called isLive must be set to TRUE but in the component inspector this parameter doesn't exist.
I've tried to use IP address instead of the server name. I've tried with the port number:
rtmp://advancedmedia:1935/myapp/test.flv

I've also tried:
rtmpt://advancedmedia/myapp/test.flv
and all combination with IP address and port number.

I've done a port test on the server and here is the result:

WIN 8,0,22,0

RMTP Default Success 1.4s
RMTP Port 1935 Success 1.4s
RMTP Port 80 Success 1.2s
RMTP Port 443 Success 1.4s
RMTPT (Tunneling) Default Success 4.3s
RMTPT (Tunneling) Port 80 Success 4.4s
RMTPT (Tunneling) Port 443 Success 5.7s
RMTPT (Tunneling) Port 1935 Success 5.9s

What is wrong? It should be working. I don't understand.
Any idea?
Thanks,
b.

1.7K
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Jul 13, 2007 Jul 13, 2007
Hi billdimit,
I did the similar thing but I used Flash 8 and added a action script in the application folder. The application worked fine.

I have difficulty in developing rtmps on port 443. Could you tell me how to establish?
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Guest
Jul 13, 2007 Jul 13, 2007
Bill... try using the IP address of the FMS machine (rather than the network name) in your rtmp string.
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Jul 13, 2007 Jul 13, 2007
I have the problem and i don't know what can i do to solve this.
I'm using a Flash 8 FLVPlayback component with display_FLVPlaybk instance name. I wrote an actionscript like this bellow:
display_FLVPlaybk.contentPath="rtmp://localhost/myApp/videoFilename"
or
display_FLVPlaybk.contentPath="rtmp://127.0.0.1/myApp/videoFilename"
or
display_FLVPlayBack.contentPath="rtmp://localhost/myApp/videoFilename.flv"
and finally:
display_FLVPlaybk.contentPath="rtmp://127.0.0.1/myApp/videoFilename.flv"

These scripts simply don't work and no image is displayed/streamed/downloaded.
I set autoplay=true.

What else can i do? Is there more scripts to write?

Anyone can help me?
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Guest
Jul 13, 2007 Jul 13, 2007
Also Bill...

>> In the subfolder myapp I've created a subfolder Stream and in it a new subfolder _definst_. I've copied a FLV called test.flv file in the subfolder _definst_.

The subfolder should be named "streams", not "Stream"
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Jul 13, 2007 Jul 13, 2007
I did it. It does not work yet.
main.asc file should have what else after load("components") ; ?

Thanks.
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Explorer ,
Jul 15, 2007 Jul 15, 2007
Hi guys,
thanks for replies.
kelvincchou ,
What do you mean by 'difficulty in developing rtmps on port 443'?
JayCharles,
I've tried using IP address in the rtmp string and my folder is called Streams (typo in my first post - sorry) with capital S.
Deco,
you need to copy main.asc from folder Adobe/Adobe Flash CS3/Samples/ComponentAS2/FLVPlayback/.

Thanks,
b.
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Jul 17, 2007 Jul 17, 2007
See, I do not see Adobe/Adobe Flash (or just Flash CS3/Samples/ComponentAS2/FLVPlayback.

I'm having a similar problem but I don't see a solution on this page?
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Oct 12, 2007 Oct 12, 2007
LATEST
Important Things to make FLV streaming work on FMS 2 on Linux (that aren't readily documented)

1. Make sure ports 1935 and 1111 are open and poked thru firewalls. 1935 is the port the streams are on, 1111 is for the admin console.

2. Next upload your flv file to the applications directory on your server BUT not just into that directory, you need to create an application subdirectory:

Path-to-server\appliations\appname\streams\_definst_\yourfile.flv
Whats with the 'streams' and '_definst_' directories you may ask?
Where is that documented? its not. why? ask adobe.
In Linux:
/opt/macromedia/fms/applications/appname/streams/_definst_/yourfile.flv

appname can be whatever your flv "application is called "businessmeeting", "productdemo" etc

3. Next - per the readme.txt for the flash components load the main.asc file to the right directory on the server! This is easy if you're on windows because the readme tells you where, not so on Linux because apparently no-one at adobe knew - it is actually answered with "???"
QUOTE:
Extract the .asc files from the ZIP file in the following folder on your hard disk:
In Windows: C:\Program Files\Macromedia\Flash Media Server 2\scriptlib\components
In Linux: ???
END QUOTE:

So where do you put that main.asc file then in Linux?
You put it in your app folder at the root e.g. Path-to-server\appliations\appname\main.asc
So in the example above it would be:
/opt/macromedia/fms/applications/appname/main.asc
If you can't find the main.asc file, you can download it as part of the fms2_components.zip
http://www.adobe.com/devnet/flashmediaserver/articles/components.html
NOTE: if you put the file there while an instance is running you need to reload the instance. The readme says to restart your server, I found reloading the app worked too. Try both.

4. Whats the RTMP url for my flvs?
You'll need to use an IP unless you've created a DNS entry for your FMS server.
It would be localhost if its on the same machine especially on windows.
Note: If you are running localhost on your laptop you'll need to adjust the security playback parameters of your flash player to see it see - http://www.mcalister.cc/ddd/flv/index.html

Next make your html and swf file in flash: In the FLV Component parameter the path to your flv is:

rtmp://flash.company.com/appname/_definst_/demoapp.flv
rtmp://127.0.0.1/appname/_definst_/demoapp.flv
rtmp://localhost/appname/_definst_/demoapp.flv
NOTE: the streams folder is missing from this url - thats right, its not included. Tricky eh?

5. Login into your admin console (login won't work if the ports aren't available and open)
Start an instance of your application (appname).
The default instance name is _definst_ as noted above. If you change this, you'll need to change the rtmp url above.
Publish your flash swf and html from Flash 8 or Flash CS3.

Put the html and swf(s) on your web server - if you have external flash swf user controls for the video, you'll need to upload that too. Open the url of the html page on your web server - Hey presto! you're streaming video

Thanks to the following site who also suffered the same frustration but on windows.
http://www.mcalister.cc/ddd/flv/index.html
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines