Skip to content
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

Publish a stream from a rtsp source #1821

Open
AndySkaura opened this issue Jul 5, 2022 · 4 comments
Open

Publish a stream from a rtsp source #1821

AndySkaura opened this issue Jul 5, 2022 · 4 comments

Comments

@AndySkaura
Copy link

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:andy_skaura@sina.com

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:PPPQGF@192.168.3.200: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:PPPQGF@192.168.3.200:554/h264/ch1/sub/av_stream, url: rtsp://admin:PPPQGF@192.168.3.200: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:PPPQGF@192.168.3.200:554/h264/ch1/sub/av_stream, connectionId: undefined,

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

@AndySkaura
Copy link
Author

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

@fengmao31
Copy link

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
Copy link

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

@fengmao31
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants