Giter Club home page Giter Club logo

Comments (16)

arut avatar arut commented on June 10, 2024

just ignore the error.
do you have any troubles streaming media?

from nginx-rtmp-module.

rodislav avatar rodislav commented on June 10, 2024

hi

::: do you have any troubles streaming media?
yes :)

my flash app still cannot connect to the server, I get onNetStatus() :: NetConnection.Connect.Failed

from nginx-rtmp-module.

arut avatar arut commented on June 10, 2024

I need to see your log.
Please compile your NGINX with "--with-debug" and add
"error_log /logs/nginx_error_log debug;" to nginx.conf.
Then send me the log please.

from nginx-rtmp-module.

rodislav avatar rodislav commented on June 10, 2024

you can find it here

http://pastebin.com/6uUh8jni

sorry for useless clutter, anyway, from the start I've removed lines with .. mutex lock, etc..

from nginx-rtmp-module.

arut avatar arut commented on June 10, 2024

NetConnection.Connect.Failed means your flash client could not reach RTMP server (network error).
However I see connection attempt in log (connect() command has been successfully processed by server and connection has been closed afterwards). Please

  1. check your port is accessible from where you connect
  2. try ffplay/rtmpdump to see what happens

from nginx-rtmp-module.

rodislav avatar rodislav commented on June 10, 2024

rtmpdump and ffmpeg are working ok, flashplayer does'nt :-|
I still get
2012/04/24 10:32:00 [alert] 17073#0: *10 epoll_ctl(2, 12) failed (2: No such file or directory) while sending client greeting line, client: 109.185.142.195, server: 0.0.0.0:1936

while I try to connect from flashplayer

I use port 1936
on 1935 I have other media server http://www.rtmpd.com/, and it's working ok

I think flashplayer is loosing the connection before your module accept connection

from nginx-rtmp-module.

arut avatar arut commented on June 10, 2024

I'v recently merged optsend branch into master. epoll_ctl error should not appear any more with the new code. But it has nothing to do with the connection error. Anyway please try again with the new code and send the log again. But please make sure you do not connect with ffmpeg/whatever before connecting from flashplayer. It's hard to tell which connection attempt came from ffmpeg or flash while watching the log.

from nginx-rtmp-module.

rodislav avatar rodislav commented on June 10, 2024

Hi, here is the updated log
http://pastebin.com/6uUh8jni

I've used NetConnection with objectEncoding AMF3 and AMF0
I can upload to github my as3 code or I can make a screencast, or share screen via skype, if that will help to solve this issue :)

ps. I speak russian

EDIT: we have compiled module from latest sources

from nginx-rtmp-module.

arut avatar arut commented on June 10, 2024

хорошо :)

It'd be better not to use AMF3 because it's not supported

from nginx-rtmp-module.

arut avatar arut commented on June 10, 2024

Yes upload your code please. I'll watch what the problem could be.

from nginx-rtmp-module.

rodislav avatar rodislav commented on June 10, 2024

Hi, done :)

https://github.com/rodislav/as3tests

from nginx-rtmp-module.

arut avatar arut commented on June 10, 2024

Rodislav do you have html/swf to test? I have no Windows machine around to compile that. My gentoo is no good for that.

BTW I saw h264 in your code. I've not tested that yet and that definitely CAN be a problem (h264 needs special handling in RTMP). Try setting another video encoding.

from nginx-rtmp-module.

rodislav avatar rodislav commented on June 10, 2024

Hi, swf file is compiled and added to repository
H264 settings are removed :)

swf can be opened with any browser which supports flash, just drag it in a new tab or you can download flashplayer from here http://fpdownload.macromedia.com/pub/flashplayer/updaters/11/flashplayer_11_sa_debug.i386.tar.gz

you have a simple UI to change url:port, app and stream names, connect button and console
if everything will pass ok, a dialog will popup with request to acces camera and app will start the stream

[just in case]
I also use linux - ubuntu, you can compile this code very easy by runing
/path_to_sdk/flex_sdk_4.6/bin/mxmlc Test.as

sdk can be downloaded from here
http://download.macromedia.com/pub/flex/sdk/flex_sdk_4.6.zip

from nginx-rtmp-module.

arut avatar arut commented on June 10, 2024

OK I'll try that ASAP. What about h264? Did it help?

upd: I see it didn't.

from nginx-rtmp-module.

arut avatar arut commented on June 10, 2024

Here's a simple patch to make the test work
http://pastebin.com/wQy7hK68

you need to set objectEncoding not defaultObjectEncoding.

from nginx-rtmp-module.

rodislav avatar rodislav commented on June 10, 2024

it worked, thanks :)

from nginx-rtmp-module.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.