-
-
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
Origin.xml not updated in docker, unsuccesfull to add RTSP #154
Comments
In the Dockerfile, download and install OME from Github as follows.
Or fork OvenMediaEngine to download it from your repository. |
Thanks yet again for the swift reply and constructive feedback. !! rowdy |
Allmost there I hope: So I can open the RTSP feed using VLC (running at the same machine as OME). When I try to open that feed in OME player, I have no luck. webrtc ws://172.16.10.78:3333/app_name/rtsp_stream_name In the logs I see the follwing ( and yes I have kept the app_name/rtsp_stream_name): [2020-07-20 15:04:24.998] I 11 Signalling | rtc_signalling_server.cpp:99 | New client is connected: <ClientSocket: 0x7fcbb8001010, #35, state: 4, TCP, 172.16.15.50:50868> I do not understand why it is not finding the stream?
A push in the right direction would be helpfull... just not experienced enough yet I guess.. |
The log shows that your OME is connecting to the RTSP server but not receiving data. When the stream is received, the stream creation log is output. |
Hi, So the camera supports both TCP and UDP. At default VLC makes a UDP connection. But when I test RTSP over TCP: vlc --rtsp-tcp rtsp://...... a TCP session is opened. I did a Wiresharkl grab to confirm: Frame 1: 1510 bytes on wire (12080 bits), 1510 bytes captured (12080 bits) on interface enp1s0, id 0 No. Time Source Destination Protocol Length Info Frame 2: 609 bytes on wire (4872 bits), 609 bytes captured (4872 bits) on interface enp1s0, id 0 So I validated the camera does accept RTSP TCP sessions. Therewith I stll do not understand why it is not working. |
Currently, many people, including us, are using the RTSP pulling function normally, so I don't understand why you are having problems. Please upload the entire /var/log/OvenMediaEngine.log after causing the problem and your Server.xml. Or can you provide us the RTSP URL? |
Yes, and I really want to join those many people. Simply for the fact that the majority of IP camera's only support RTSP and one cannot always run an intermediate like OBS. rtsp://airensoft:airensofttest@145.131.180.53:554/1/h264major The solution I am building is: RTSP camera ---> OME Origin --->OVT ---> OME Edge ---> WebRTC OME player So there will be viewers at the OME Origin Site and at the remote end where an OME Edge will be running. Server.xml: Simon_OME origin *
cat /var/log/ovenmediaengine/ovenmediaengine.log.20200721
[2020-07-20 14:29:24.905] I 90 Monitor | application_metrics.cpp:56 | Create StreamMetrics(test) for monitoring
[2020-07-20 14:29:24.906] I 90 Monitor | application_metrics.cpp:56 | Create StreamMetrics(test) for monitoring
[2020-07-20 14:37:55.368] I 103 TranscodeStream | transcode_stream.cpp:1051 | [#default#app/test(35)] -> [#default#app/test(1896662536)] Transcoder output stream has been deleted.
[2020-07-20 14:37:55.368] W 103 Ice | ice_port.cpp:266 | Could not find session: 102 [2020-07-20 14:40:46.582] I 11 Monitor | application_metrics.cpp:56 | Create StreamMetrics(rtsp_stream_name) for monitoring
[2020-07-20 15:27:22.568] I 94 Monitor | application_metrics.cpp:56 | Create StreamMetrics(test) for monitoring
[2020-07-20 15:27:22.569] I 94 Monitor | application_metrics.cpp:56 | Create StreamMetrics(test) for monitoring |
Through the log I found the problem.
|
TOP, totally missed the HEVC. Apparantly I chose poorly with my test camera. Out of the box H.265 enstead of H.264. |
Describe the bug
In order to intergrate a RSTP source I changed the /misc/conf_examples/Origin.xml, but after docker-compuse up, /bin/origin_conf/Server.xml is not changed accordingly.
To Reproduce
Steps to reproduce the behavior:
simon@Laplace:~/OvenMediaEngine/misc/conf_examples$ cat Origin.xml
Simon_OME origin *
Settings for the ports to bind -->
Bind>
Providers>
RTMP>
Port>${env:OME_RTMP_PROV_PORT:1935}
/RTMP>
RTSP>
554
/RTSP>
/Providers>
Make running environment
RUN
DIR=/tmp/ome &&
cd ${DIR} &&
cd src &&
mkdir -p ${PREFIX}/bin/origin_conf &&
mkdir -p ${PREFIX}/bin/edge_conf &&
strip ./bin/RELEASE/OvenMediaEngine &&
cp ./bin/RELEASE/OvenMediaEngine ${PREFIX}/bin/ &&
cp ../misc/conf_examples/Origin.xml ${PREFIX}/bin/origin_conf/Server.xml &&
cp ../misc/conf_examples/Logger.xml ${PREFIX}/bin/origin_conf/Logger.xml &&
cp ../misc/conf_examples/Edge.xml ${PREFIX}/bin/edge_conf/Server.xml &&
cp ../misc/conf_examples/Logger.xml ${PREFIX}/bin/edge_conf/Logger.xml &&
rm -rf ${DIR}
[269/269|100%] Completed.
Removing intermediate container 1dbbde9cc750
---> 2da585038c3b
Step 20/26 : RUN DIR=/tmp/ome && cd ${DIR} && cd src && mkdir -p ${PREFIX}/bin/origin_conf && mkdir -p ${PREFIX}/bin/edge_conf && strip ./bin/RELEASE/OvenMediaEngine && cp ./bin/RELEASE/OvenMediaEngine ${PREFIX}/bin/ && cp ../misc/conf_examples/Origin.xml ${PREFIX}/bin/origin_conf/Server.xml && cp ../misc/conf_examples/Logger.xml ${PREFIX}/bin/origin_conf/Logger.xml && cp ../misc/conf_examples/Edge.xml ${PREFIX}/bin/edge_conf/Server.xml && cp ../misc/conf_examples/Logger.xml ${PREFIX}/bin/edge_conf/Logger.xml && rm -rf ${DIR}
---> Running in 1d78d3ed0e43
Removing intermediate container 1d78d3ed0e43
---> f50a08cc684f
Step 21/26 : FROM base AS release
---> 0ba002d8bc35
Step 22/26 : MAINTAINER Jeheon Han getroot@airensoft.com
---> Running in dd51ebfc521a
Removing intermediate container dd51ebfc521a
---> 9870ccf99383
Step 23/26 : WORKDIR /opt/ovenmediaengine/bin
---> Running in 21e9c67f61d5
Removing intermediate container 21e9c67f61d5
---> 03ff9e8571af
Step 24/26 : EXPOSE 80/tcp 8080/tcp 8090/tcp 1935/tcp 3333/tcp 3334/tcp 4000-4005/udp 10000-10010/udp 9000/tcp
---> Running in 57b25fd7a8b3
Removing intermediate container 57b25fd7a8b3
---> 64f855444977
Step 25/26 : COPY --from=build /opt/ovenmediaengine /opt/ovenmediaengine
---> d91d139f9fdc
Step 26/26 : CMD ["/opt/ovenmediaengine/bin/OvenMediaEngine", "-c", "origin_conf"]
---> Running in 2e54f59d4a36
Removing intermediate container 2e54f59d4a36
---> ebb87c369040
If I than dive in the running docker (docker exec -ti ) and look at /bin/origin_conf/Server.xml nothing is changed.
Expected behavior
I would have expected to the RTSP bind port statement in, the running docker at /bin/origin_conf/Server.xml, but instead I am seeing the default out of the box Server.xml file.
Logs
Please upload the entire OvenMediaEngine.log. No use in this case.
OBS is RTMP-ing a feed and OME is working as one expect.
P, 172.16.10.74:62890>> (#default#app / test, ufrag: local: (N/A), remote: (N/A))
[2020-07-20 06:55:38.010] I 105 Provider | stream.cpp:49 | Unknown/(37) has been started stream
[2020-07-20 06:55:38.010] I 105 RtmpProvider | rtmp_provider.cpp:93 | A RTMP client has connected from 37 - <ClientSocket: 0x7ff98fa53010, #37, state: 4, TCP, 172.16.10.78:45981>
[2020-07-20 06:55:38.931] I 94 MediaRouter.App | media_router_application.cpp:205 | Trying to create a stream: [#default#app/test(37)]
[2020-07-20 06:55:38.931] I 94 Monitor | stream.cpp:254 |
[Stream Info]
id(37), name(test), SourceType(Rtmp), Created Time (Thu Jan 1 00:00:00 1970)
[2020-07-20 06:55:38.931] I 94 Monitor | application_metrics.cpp:56 | Create StreamMetrics(test) for monitoring
[2020-07-20 06:55:38.931] I 94 TranscodeStream | transcode_stream.cpp:455 | [#default#app/test(37)] -> [#default#app/test(726629790)] Transcoder output stream has been created.
[2020-07-20 06:55:38.931] I 94 MediaRouter.App | media_router_application.cpp:205 | Trying to create a stream: [#default#app/test(726629790)]
[2020-07-20 06:55:38.931] I 94 Monitor | stream.cpp:254 |
[Stream Info]
id(726629790), name(test), SourceType(Transcoder), Created Time (Mon Jul 20 06:55:38 2020)
>> Origin Stream Info
id(37), name(test), SourceType(Rtmp), Created Time (Thu Jan 1 00:00:00 1970)
[2020-07-20 06:55:38.931] I 94 Monitor | application_metrics.cpp:56 | Create StreamMetrics(test) for monitoring
[2020-07-20 06:55:38.932] I 94 WebRTC | rtc_stream.cpp:181 | Unsupported codec(Audio/AAC) is being input from media track
[2020-07-20 06:55:38.932] I 94 Publisher | stream.cpp:211 | WebRTC Publisher Application application has started [test(726629790)] stream
[2020-07-20 06:55:38.932] I 94 Publisher | stream.cpp:211 | HLS Publisher Application application has started [test(726629790)] stream
[2020-07-20 06:55:38.932] I 94 Publisher | stream.cpp:211 | DASH Publisher Application application has started [test(726629790)] stream
[2020-07-20 06:55:38.932] I 94 Publisher | stream.cpp:211 | LLDASH Publisher Application application has started [test(726629790)] stream
[2020-07-20 06:55:38.932] I 94 Publisher | stream.cpp:211 | OVTPublisher Application application has started [test(726629790)] stream
[2020-07-20 06:55:38.932] I 94 TranscodeStream | transcode_stream.cpp:115 | [#default#app/test(37)] Transcoder input stream has been started. Status : (1) Decoders, (1) Encoders
[2020-07-20 06:55:39.069] I 112 TranscodeCodec | transcode_codec_dec_aac.cpp:49 | [#default#app/test(37)] input stream information: [audio] aac (LC), 44100 Hz, stereo, fltp, 158 kbps, timebase: 1/44100, frame_size: 1024
[2020-07-20 06:55:43.418] I 17 Signalling | rtc_signalling_server.cpp:99 | New client is connected: <ClientSocket: 0x7ff974e01010, #39, state: 4, TCP, 172.16.10.74:62928>
[2020-07-20 06:55:43.821] I 17 Monitor | stream_metrics.cpp:119 | A new session has started playing #default#app/test on the WebRTC publihser. WebRTC(1)/Stream total(1)/App total(2)
[2020-07-20 06:55:43.908] W 17 Socket | socket_address.cpp:277 | An error occurred while resolve DNS for host [ba2d1961-27c8-4a38-be23-ba793935bb69.local]
[2020-07-20 06:55:43.908] W 17 Socket | socket_address.cpp:84 | An error occurred: ba2d1961-27c8-4a38-be23-ba793935bb69.local:58743
[2020-07-20 06:55:47.342] I 110 DASH | dash_packetizer.cpp:956 | [0x7ff98fa2c710] LLDASH segment is ready to stream [#default#app/test], segment duration: 5.000000s, count: 1
root@827905544ff8:/var/log/ovenmediaengine#
Server (please complete the following information):
Additional context
Add any other context about the problem here.
It must be something small I am missing.
Hoping to hear shortly and thanks in advance,
Rowdy
The text was updated successfully, but these errors were encountered: