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.59k stars 1.06k forks source link

can't push rtmp stream to another server , help me . #721

Closed buithevuong closed 2 years ago

buithevuong commented 2 years ago

My log :

[2022-04-04 03:30:30.766] E [StreamWorker:168] RTMPWriter | rtmp_writer.cpp:393 | Send packet error(-32:Broken pipe) [2022-04-04 03:30:30.766] E [StreamWorker:168] RTMPPush | rtmppush_session.cpp:174 | Failed to send packet [2022-04-04 03:30:35.769] W [AW-RTMPPush0:30] RTMPPush | rtmppush_session.cpp:86 | Could not supported codec. track_id:1, codec_id: 8 [2022-04-04 03:30:35.770] W [AW-RTMPPush0:30] RTMPPush | rtmppush_session.cpp:86 | Could not supported codec. track_id:2, codec_id: 8 [2022-04-04 03:30:35.772] I [AW-RTMPPush0:30] FFmpeg | third_parties.cpp:119 | Output #0, flv, to 'rtmp://192.168.1.89:1935/live/stream': [2022-04-04 03:30:35.773] I [AW-RTMPPush0:30] FFmpeg | third_parties.cpp:119 | Metadata: [2022-04-04 03:30:35.773] I [AW-RTMPPush0:30] FFmpeg | third_parties.cpp:119 | encoder : [2022-04-04 03:30:35.773] I [AW-RTMPPush0:30] FFmpeg | third_parties.cpp:119 | Lavf58.76.100 [2022-04-04 03:30:35.773] I [AW-RTMPPush0:30] FFmpeg | third_parties.cpp:119 | [2022-04-04 03:30:35.773] I [AW-RTMPPush0:30] FFmpeg | third_parties.cpp:119 | Stream #0:0 [2022-04-04 03:30:35.773] I [AW-RTMPPush0:30] FFmpeg | third_parties.cpp:119 | : Video: h264, 1 reference frame ([7][0][0][0] / 0x0007), yuv420p, 640x480 (0x0) [SAR 1:1 DAR 4:3], 0/1, q=2-31 [2022-04-04 03:30:35.773] I [AW-RTMPPush0:30] FFmpeg | third_parties.cpp:119 | , [2022-04-04 03:30:35.773] I [AW-RTMPPush0:30] FFmpeg | third_parties.cpp:119 | 1k tbn [2022-04-04 03:30:35.773] I [AW-RTMPPush0:30] FFmpeg | third_parties.cpp:119 |

My config : `<?xml version="1.0" encoding="UTF-8" ?>

OvenMediaEngine origin * false stun.l.google.com:19302 ${env:OME_API_PORT:8081} 1 1 1 ${env:OME_RTMP_PROV_PORT:1935} 1 ${env:OME_SRT_PROV_PORT:9999} 1 ${env:OME_MPEGTS_PROV_PORT:4000/udp} ${env:OME_SIGNALLING_PORT:3333} 1 ${env:OME_TCP_RELAY_ADDRESS:*:3478} true 1 ${env:OME_ICE_CANDIDATES:*:10006/udp} ${env:OME_ORIGIN_PORT:9000} 1 ${env:OME_SIGNALLING_PORT:3333} 1 ${env:OME_TCP_RELAY_ADDRESS:*:3478} true 1 ${env:OME_ICE_CANDIDATES:*:10006/udp} * your_access_token default ovenmediaengine.com * app live bypass_stream ${OriginStreamName} stream_${Port} 4000 1 8 30000 false false false /mnt/shared_volumes /${VirtualHost}/${Application}/${Stream}.ts /${VirtualHost}/${Application}/${Stream}.xml ` **My api :** http://localhost:8083/v1/vhosts/default/apps/app:startPush { "id": "1", "stream": { "name": "stream" }, "protocol": "rtmp", "url":"rtmp://192.168.1.89:1935/live", "streamKey":"stream" } **Response :** { "message": "OK", "response": [ { "app": "app", "createdTime": "2022-04-04T03:29:23.041+00:00", "finishTime": "1970-01-01T00:00:00.000+00:00", "id": "1", "protocol": "rtmp", "sentBytes": 0, "sentTime": 0, "sequence": 0, "startTime": "2022-04-04T03:29:23.041+00:00", "state": "Pushing", "stream": { "name": "stream", "tracks": [] }, "streamKey": "stream", "totalsentBytes": 0, "totalsentTime": 0, "url": "rtmp://192.168.1.89:1935/live", "vhost": "default" } ], "statusCode": 200 }
getroot commented 2 years ago

Please upload entire /var/log/ovenmediaengine/ovenmediaengine.log file, I need another information such as track information that is before the log file you uploaded. Just upload the whole file.

Also, please post duplicate issues on the same thread. We'll continue the discussion at #720 and I'll close this issue.