licode icon indicating copy to clipboard operation
licode copied to clipboard

Publish a stream from a rtsp source

Open AndySkaura opened this issue 2 years ago • 4 comments

When publishing a Hikvision rtsp video stream, the message Could not find codec parameters is displayed, which causes the publishing to fail.

This RTSP link goes through VLC Decoder h264-MPEG-4AVC (part10) test successfully.

If you need external rtsp link . email address:[email protected]

logs:

2022-07-05T14:00:40.057 - INFO: RPCPublic - message: consumed token, tokenId: 62c3d38897583e0a2ec67e73, roomId: 62bc14e06b9a463b1bd2ccaa, serviceId: 62bc09cfa3cf17da76a83cb9 2022-07-05T14:00:40.058 - INFO: ErizoController - message: socket connected, socketId: EBkyeamYNg0eN8UkAAAy, 2022-07-05T14:00:40.058 - INFO: ErizoController - message: getting singlePC configuration, singlePc: true, global:

2022-07-05T14:00:40.058 - INFO: ErizoController - message: client connected, clientId: 6e6289a2-5431-430e-904f-9d023e98cbb9, roomId: 62bc14e06b9a463b1bd2ccaa, socketId: EBkyeamYNg0eN8UkAAAy, singlePC: singlePC: , tokenId: 62c3d38897583e0a2ec67e73, host: 172.20.83.13: 8080, secure: false, signature: OTZhZGI1ZWY2NDUzMzgzMGU5NGQ1MzYyMWNmYmRhYzBlNjg5ZjczMg==, EIO: 3, transport: websocket, streamPriorityStrategy: false, connectionTargetBw: 0 2022-07-05T14:00:40.058 - INFO: ErizoController - message: sending connected message 2022-07-05T14:00:40.058 - INFO: ErizoController - message: sent connected message 2022-07-05T14:00:40.060 - INFO: RoomController - message: addExternalInput, clientId 6e6289a2-5431-430e-904f-9d023e98cbb9, streamId: 916169965535645800, url:rtsp://admin:[email protected]:554/h264/ch1/sub/av_stream 2022-07-05T14:00:40.060 - INFO: EcCloudHandler - message: createErizoJS, agentId: ErizoAgent 2022-07-05T14:00:40.062 - INFO: EcCloudHandler - message: createErizoJS success, erizoId: db49b1b8-0274-e2c1-4d71-e0afe1828204, agentId: 6888ffc1-8cf0-922a-9001-e79c2b447378, internalId: 0 [erizo-db49b1b8-0274-e2c1-4d71-e0afe1828204] 2022-07-05T14:00:40.062 - WARN: Publisher - message: Adding ExternalInput, id: 916169965535645800_rtsp://admin:[email protected]:554/h264/ch1/sub/av_stream, url: rtsp://admin:[email protected]:554/h264/ch1/sub/av_stream [erizo-db49b1b8-0274-e2c1-4d71-e0afe1828204] [rtsp @ 0x85937c0] Could not find codec parameters (Video: h264) [rtsp @ 0x85937c0] Estimating duration from bitrate, this may be inaccurate [erizo-db49b1b8-0274-e2c1-4d71-e0afe1828204] 2022-07-05 14:00:43,243 - ERROR [0x7f3b6bfe2780] media.ExternalInput - Error finding stream info Operation not permitted [erizo-db49b1b8-0274-e2c1-4d71-e0afe1828204] 2022-07-05T14:00:43.243 - INFO: Client - message: Adding connection to Client, clientId: rtsp://admin:[email protected]:554/h264/ch1/sub/av_stream, connectionId: undefined,

----licode version V9 ----Ubuntu 20.04.4 LTS

AndySkaura avatar Jul 05 '22 06:07 AndySkaura

Another common error.

[erizo-d82dd17e-d04e-526e-6d89-f021e04fcff8] [rtsp @ 0x2f69c40] UDP timeout, retrying with TCP [erizo-d82dd17e-d04e-526e-6d89-f021e04fcff8] [rtsp @ 0x2f69c40] method PAUSE failed: 551 Option not supported [erizo-d82dd17e-d04e-526e-6d89-f021e04fcff8] [rtsp @ 0x2f69c40] Could not find codec parameters (Video: h264) [erizo-d82dd17e-d04e-526e-6d89-f021e04fcff8] [rtsp @ 0x2f69c40] Estimating duration from bitrate, this may be inaccurate [erizo-d82dd17e-d04e-526e-6d89-f021e04fcff8] [libvpx @ 0x2ff9ec0] v1.8.2 [erizo-d82dd17e-d04e-526e-6d89-f021e04fcff8] [libvpx @ 0x2ff9ec0] Failed to initialize encoder: Invalid parameter

AndySkaura avatar Jul 05 '22 07:07 AndySkaura

I cannot build it in ubuntu 20. I use the docker install. However, I find the rtsp can published successfully, the brower client cannot subcribe it. when I try to use it open mkv files.

fengmao31 avatar Jul 25 '22 14:07 fengmao31

I think there are some requests on the rtsp streams and based on vp8.

fengmao31 avatar Jul 25 '22 14:07 fengmao31

where you get the information, I cannot get the print in the docker terminal. maybe I can compare our debug infromation.

fengmao31 avatar Jul 25 '22 14:07 fengmao31