dangquocthai / flash-videoio

Automatically exported from code.google.com/p/flash-videoio
0 stars 0 forks source link

Where to download myapp files #54

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Hi,

I have test Flash-VideoIO in http://myprojectguide.org/p/flash-videoio/6.html

RMTP Server is - rtmp://192.1.2.3/myapp

I want to use my rtmp server but how can I get the sources file of "myapp" 
folder

Original issue reported on code.google.com by kalla...@gmail.com on 14 Mar 2014 at 10:27

GoogleCodeExporter commented 9 years ago
Since this is not a bug, but a question, I am moving the response to the 
support group list.

To use your rtmp server change 192.1.2.3 to your-server-ip-or-host

There is no source file for myapp. The source files for rtmp server used in 
that example is found on rtmplite website at 
https://code.google.com/p/rtmplite/source/browse/trunk/rtmp.py (or visit that 
project page to SVN checkout).

The word "myapp" in the URL is mapped in line 1057 of the above rtmp.py file:
self.apps = dict({'*': App, 'wirecast': Wirecast})
In fact, it maps any word ("*") to App. So even if you use 
rtmp://your-server-ip/app123 it will work. The example also shows "/wirecast" 
mapped to another app class called "Wirecast".

Each app defines a context, so multiple connections in the same scope/context 
can see streams of each other. For example, two videoIO instances with "src" 
set to rtmp://your-server-ip/myapp?publish=stream1 and 
rtmp://your-server-ip/myapp?play=stream1 are in the scope and can see each 
others streams. In this example first one publishes stream1, and second one 
plays. But if third VideoIO uses "src" of 
rtmp://your-server-ip/app123?play=stream1 it won't be able to see the stream of 
the first VideoIO instance because the scope "/myapp" and "/app123" are 
different.

If you create your own rtmplite application by creating a sub-class of "App" in 
Python (as shown in the initial file comment of rtmp.py), then you have the 
opportunity to override the mapping, e.g., set self.apps to map "myapp" to App1 
and "app123" to App2 classes.

If you are looking for the directory where files are recorded or played from, 
see the "-r" command line option in rtmp.py.

Hope this helps!

Original comment by theinten...@gmail.com on 18 Mar 2014 at 3:39

GoogleCodeExporter commented 9 years ago
Thanks for the reply

I have one question
I have installed Red5 1.0, Python 2.6.6, RTMPDump v2.2e, FFmpeg version 0.6.5

I have download latest rtmplite from 
https://rtmplite.googlecode.com/files/rtmplite-9.1.tgz

and i try to start using following command
bash$ tar -zxvf rtmplite-7.0.tgz
bash$ cd rtmplite
bash$ python rtmp.py -d

I got the error

Traceback (most recent call last):
  File "rtmp.py", line 1359, in <module>
    agent.start(options.host, options.port)
  File "rtmp.py", line 1066, in start
    sock.bind((host, port))
  File "<string>", line 1, in bind
socket.error: [Errno 98] Address already in use

How do i solved the error and run rtmplite ?

Original comment by kalla...@gmail.com on 18 Mar 2014 at 4:07