AirenSoft / OvenMediaEngine

OvenMediaEngine (OME) is a Sub-Second Latency Live Streaming Server with Large-Scale and High-Definition. #WebRTC #LLHLS
https://airensoft.com/ome.html
GNU Affero General Public License v3.0
2.61k stars 1.06k forks source link

Rtmp input stream init meessage count over #88

Closed ruifigueirinha closed 4 years ago

ruifigueirinha commented 4 years ago

When I try to restream an RTSP stream into an RTMP push I get multiple lines with this warning and the connection drops. This happens with ffmpeg and with happytimesoft.

getroot commented 4 years ago

Please let me get the warning messages of ovenmediaengine.log when connection is dropped. and sorry, I don't know well about happytimesoft.

ruifigueirinha commented 4 years ago

Here is the logfile that you asked. Thank you for the support. ovenmediaengine.log

dimiden commented 4 years ago

@ruifigueirinha This problem occurs when only audio or video is published. Currently, OvenMediaEngine only supports streams with both audio and video tracks. And we are planning to implement Audio/Video only feature soon.

ruifigueirinha commented 4 years ago

@dimiden I understand but I tried to publish Video and Audio with ffmpeg and got the same result

ruifigueirinha commented 4 years ago

Nevermind, it works now. I just needed to add a silent audio channel to the rtsp stream of the ip camera. Thank you very much. In case anyone is wondering about the command here it is:

ffmpeg -f lavfi -i anullsrc=channel_layout=stereo:sample_rate=44100 -rtsp_transport tcp -re -i rtsp://localhost:8554/live.sdp -c:v copy -c:a aac -map 0:a -map 1:v -f flv rtmp://localhost:1935/app/stream