-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I cannot start with a test environment with docker. #218
Comments
For the webRTC I think there is a port to update in the player config. I had to change the host url and a port 3332 to 3333 and it worked as expected. |
I am connecting with the port 3333, What do yo mean about OME_SERVER_IP? I am connecting with a docker container, and I am using docker desktop. I am using OME_SERVER_IP=127.0.0.1 but is not working in my laptop. :( |
What was your webrtc URL you entered in ovenplayer? like this and check your firewall settings. udp 10005-10010 in/out, tcp 3333, tcp 1935 |
I am using docker desktop. The server is up and running on 127.0.0.1, I started the server like this: docker run -d OBS is emitting to the rmtp://127.0.0.1/app/stream, here is working well On the server logs: [2020-11-25 06:05:12.629] I 1 Config | config_manager.cpp:150 | Trying to set logfile in directory... (/var/log/ovenmediaengine)
[2020-11-25 06:07:29.490] I 93 MediaRouter.Stream | mediarouter_stream.cpp:59 | Trying to create media route stream: name(stream) id(35)
[2020-11-25 06:07:29.494] I 93 MediaRouter.Stream | mediarouter_stream.cpp:59 | Trying to create media route stream: name(stream) id(2497608496) The ovenplayer is trying to connect to ws://127.0.0.1:3333/app/stream but never starts the video :( That's are the logs: [2020-11-25 06:13:14.297] I 11 Signalling | rtc_signalling_server.cpp:81 | New client is connected: <ClientSocket: 0x7fba30000b90, #36, state: 4, TCP, 172.17.0.1:37080> I do not have any firewall configured, all the ports are opened. Is my laptop (Macbook pro). Thanks in advance. |
Please let me know your OBS settings. The default setting of OME is set to pass through H.264 of the input stream. Please refer to the URL below. https://airensoft.gitbook.io/ovenmediaengine/getting-started#example-of-using-obs-encoder |
I have never used "Apple VT H264 Hardware Encoder" with OBS. Maybe that encoder's H.264 output is not compatible with the browser. Set Profile to "base" or "main" and test. If that doesn't work, try changing the Encoder setting to x264 (if it exists in your OBS) and testing. |
Hi, I am making another test, I deployed OME on AWS and ran the following docker. docker run -d All the ports are open on the EC2. I am emitting with OvenStreamEncode to AWS. Here, I think everything it's ok. [2020-11-26 12:57:24.932] I 106 TranscodeStream | transcode_stream.cpp:1158 | [#default#app/stream(34)] -> [#default#app/stream(2434615091)] Transcoder output stream has been deleted.
[2020-11-26 12:57:24.932] I 106 Publisher | stream.cpp:244 | [stream(2434615091)] WebRTC Publisher Application stream has been stopped But I am trying to watch the stream on OvenPlayer but I am having the same issue. I cannot reproduce the stream. Could be the docker image? |
Which browser are you using? Looking at your log, OME did WebRTC output. But you are not able to play it in your browser. Do you have audio output? Capture and upload your player, is the player just blackout? Or is it still loading? I am not sure yet what you did wrong. I need more information. |
I tested with Chrome and Firefox. My browser when I make the test is loading and is not stopped never, but I cannot watch anything. can connect but for some reason I cannot see anything, as I said I made the last test with OvenStreamEncode, it's weird On the other hand, I can watch perfectly either https://demo.ovenplayer.com/ or https://demo.ovenplayer.com/ |
Sorry. I didn't really understand what you mean. What does the sentence below mean? Have you succeeded in playing?
Try testing it at the URL below. The URL below uses the OME we have already installed. Here it works perfectly. Send to rtmp://dev2.airensoft.com/app/stream with OBS or OvenStreamEncoder and click the Reload Player button If it doesn't play here, there seems to be a problem with your network or browser. |
It works! Only works for Firefox, I have to check why on Chrome is not working. TBH, now I do not understand nothing because I made the same test that you have on your web, but with docker. I will check again. Another question, Are you using docker too? |
The dev2.airensoft.com server is not running as a docker container. However, we are providing services as docker containers in the commercial environment of other companies. No problems with airensoft/ovenmediaengine:latest have been found in our environment yet. Are you using a Mac? We don't have enough experience in docker environment on Mac. Mac's docker may require some other configuration. If Firefox is working and Chrome doesn't work, try to suspect the codec. Chrome prefers VP8. Windows' chrome supports H.264 well, but other OS's may not. Please refer to the url below to add the VP8 encoding option. https://airensoft.gitbook.io/ovenmediaengine/transcoding
|
But it is weird, because yesterday i could watch with Mac + Firefox the video that I streamed on the URL that you provided me. Now I am testing this config with the docker-compose that you have on this repo, but I am having the issue, I cannot reproduce the video :( |
Let's check one by one. So far, I haven't gotten any feedback from you about what I've been guiding you to. Please answer this one by one. Only if you do that I can find your problem. Probably it is a problem with the setting of the Encoder (OBS).
I just saw you testing at http://demo.ovenplayer.com/ome_demo.html. This is a problem with the encoder's codec configuration. Maybe you're broadcasting on a high profile. X264, and do it with the settings in our manual! |
I am making the test again, answering your questions:
For all the tests I am following the manual. That's the configuration which I am emitting: Now I am trying with your platform: I can emit to rtmp://dev2.airensoft.com/app/stream but I do not know why I cannot watch the video now on http://demo.ovenplayer.com/ome_demo.html. Apologyze for all the time that your are spending on my case. |
What version of Mac OS are you using? We are going to test it out. Your last capture is a network error. This is probably not a problem with OME or OvenPlayer. (Maybe it's a DNS problem.) Please try again and let me know the result. |
Are you now sending the stream to /app/livestream? |
Yes, it's working for me too, but only in Firefox I have to check why not in Chrome. I am going to test with the docker-compose which is on the OME Github repo. Thanks a lot ;) |
Please tell me your mac os version. We will check why MAC's chrome cannot play webrtc with OME. |
Another question, it's possible to know which is the architecture/configuration that you have behind of http://demo.ovenplayer.com/ome_demo.html. Do you have origin/edge servers? in cluster? Could you provided me the Server.xml for this demo server? Because I want to test in my local environment (docker-compose in my local machine). Thanks a lot |
As a information, I am making the same test in local, with same configuration that I used to emit to rtmp://dev2.airensoft.com/app/stream and I having the same issue, I cannot reproduce the video. I am making the test with: Emitting with the same config in OBS that I shared above. And trying to watch with ovenPlayer. |
dev2.airensoft.com is using blow configuration. What do you use with RTMP URLs? And what do you use with WEBRTC URL? Paste your full URL here.
|
When I make the tests with docker-compose.yml my config is: Edge: OvenMediaEngine edge *
Origin: OvenMediaEngine origin *
I made a little change in my docker-compose (In bold below, check DEFAULT_ORIGIN_SERVER environment var for the edge server): services: edge: |
3334 is not open on dev2.airensoft.com you must enter "ws://dev2.airensoft.com:3332/app/stream_o" or "wss://dev2.airensoft.com:3333/app/stream_o" Please read our manual.. |
And "- DEFAULT_ORIGIN_SERVER=origin" is wrong. you have to input your origin's IP address. |
When running with docker on your local, what URLs did you use for RTMP and WebRTC, I will ask you again, |
That ws://dev2.airensoft.com:3332/app/stream_o works |
Testing with docker (Docker desktop for Mac): docker run -d |
I think this is related to the MAC docker and Ice Candidate. I haven't used mac's docker desktop yet. I will try to reproduce this soon as soon as I get an environment like you |
For this test I am emitting to rtmp://dev2.airensoft.com/app and trying to watch the video in my local environment using Oven player. That's are my Chrome logs: |
Sure, I am gonna try to see which/where is the problem. If you want we could schedule some call/meeting in order to try to fix with pair programming or some another practice, ok? Let me know. Thanks a lot for your time. |
When you open the chrome console and reproduce the error, you will get a lot of messages. I want that messages. |
Well... if you want to play your local, you have to send it to your local with obs. Sending to dev2 and playing local will of course not work. And capture the entire browser. I also need to see the player status. |
Scenario: I am testing against your demo environment I added a console.log to the code: `
` That's are the errors, I don't see anything here: |
Click the play button.
Turn on Chrome's Devtools and refresh the page. Then, capture and upload all the screens as follows. |
Ok! It seems to be related to the h.264 codec option, we will analyze it soon. If you can configure VP8 on OME as I said before, please test it. |
What do you mean about VP8? Test with the docker that you provided but adding the configuration related to this link? Or with the docker-compose but only against the origin? |
Yes you can of course modify Server.xml inside docker container. You can mount the path of the container as a host... You can do it in a variety of ways, such as entering the docker container directly, modifying and rerunning ome, rebuilding docker, etc. If you are not familiar with docker I have added the vp8 codec to dev2.airensoft.com. Could you test it again at http://demo.ovenplayer.com/ome_demo.html? |
The same issue: |
Oh my god, your chrome or device is not receiving udp packets at all. (It's probably not a problem with your device as you said that firefox is working fine.) Is there a possibility to block udp somewhere? Do you have a proxy set up in Chrome? Anyway, since this problem is not a problem with OME or Player, it seems that I cannot analyze it anymore. Thank you very much for helping with the various analysis! If you can figure out the cause of this problem, I would be very grateful to let me know again about that. |
Tested now in Safari, and it works! Ok, then should be something with my Chrome I am gonna investigate and let you know How can solve the issue with Chrome. On the other hand, could we try to make it works OME in docker? Could you help me? Because in local does not works either FF or Chrome. |
As a information, I am testing the docker that you provided on your documentation. (in local) But today I am testing with safari, and It works! I will check why is not working on FF and Chrome, but Safari is working!! |
That's good news. Please let me know if you find out what in your environment caused the playback to fail. Thank you. |
Sure ;) thanks a lot @getroot |
I close this issue. |
Describe the bug
I think is not a bug, but I am gonna ask you here.
I am trying to make a little test with OvenMediaEngine, I have 3 components:
OvenMediaEngine, OvenPlayer and OBS.
For OvenMediaEngine I am running with the following command:
docker run -d -p 1935:1935 -p 3333:3333 -p 8080:8080 -p 9000:9000 -p 4000-4005:4000-4005/udp -p 10006-10010:10006-10010/udp nairensoft/ovenmediaengine:latest
I am emitting with OBS to the container directly by RTMP, that's is working ok.
But the problem is when I try to watch the video with OvenPlayer, the video never starts.
And I am configuring in OBS:
Server: rtmp://127.0.0.1:1935/app/
Stream key: stream
To Reproduce
Steps to reproduce the behavior:
Expected behavior
I want to watch the video, it's a simple test but I do not know what is happening :(
Logs
[2020-11-24 17:54:31.596] I 12 Monitor | stream_metrics.cpp:119 | A new session has started playing #default#app/stream on the WebRTC publihser. WebRTC(1)/Stream total(1)/App total(1)
[2020-11-24 17:55:02.059] I 26 Monitor | stream_metrics.cpp:144 | A session has been stopped playing #default#app/stream on the WebRTC publihser. Concurrent Viewers[WebRTC(0)/Stream total(0)/App total(0)]
Server (please complete the following information):
Player (please complete the following information):
The text was updated successfully, but these errors were encountered: