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

Unsupported RTP media type #32

Open
fotosidla opened this issue Dec 13, 2023 · 1 comment
Open

Unsupported RTP media type #32

fotosidla opened this issue Dec 13, 2023 · 1 comment

Comments

@fotosidla
Copy link

Hello

We have Vivotek Camera which produce livestream on this url:
rtsp://viewer:pass@123.123.123.123:554/live.sdp

I tried to use this url with or without port. But i am getting error
aws.iot.EdgeConnectorForKVS: stdout. 2023-12-13 20:39:09 WARN RecorderCameraRtsp:Unsupported RTP media type: application.. {scriptName=services.aws.iot.EdgeConnectorForKVS.lifecycle.Run.Script, serviceName=aws.iot.EdgeConnectorForKVS, currentState=RUNNING}

Ive installed gstreamer from offical site:

apt-get install libgstreamer1.0-dev libgstreamer-plugins-base1.0-dev libgstreamer-plugins-bad1.0-dev gstreamer1.0-plugins-base gstreamer1.0-plugins-good gstreamer1.0-plugins-bad gstreamer1.0-plugins-ugly gstreamer1.0-libav gstreamer1.0-tools gstreamer1.0-x gstreamer1.0-alsa gstreamer1.0-gl gstreamer1.0-gtk3 gstreamer1.0-qt5 gstreamer1.0-pulseaudio

It seems that it should have plugin for sdp media type, but stream is not uploaded to kinesis.

2023-12-13T20:42:14.921Z [INFO] (Copier) aws.iot.EdgeConnectorForKVS: stdout. 2023-12-13 20:42:14 WARN RecorderStatusCheckCallbackImpl:Recorder failed due to errors. Pipeline name: pipeline0. {scriptName=services.aws.iot.EdgeConnectorForKVS.lifecycle.Run.Script, serviceName=aws.iot.EdgeConnectorForKVS, currentState=RUNNING} 2023-12-13T20:42:14.921Z [INFO] (Copier) aws.iot.EdgeConnectorForKVS: stdout. 2023-12-13 20:42:14 WARN RecorderStatusCheckCallbackImpl:Trying restart recorder. {scriptName=services.aws.iot.EdgeConnectorForKVS.lifecycle.Run.Script, serviceName=aws.iot.EdgeConnectorForKVS, currentState=RUNNING} 2023-12-13T20:42:15.619Z [INFO] (Copier) aws.iot.EdgeConnectorForKVS: stdout. 2023-12-13 20:42:15 WARN RecorderCameraRtsp:Unsupported RTP media type: application.. {scriptName=services.aws.iot.EdgeConnectorForKVS.lifecycle.Run.Script, serviceName=aws.iot.EdgeConnectorForKVS, currentState=RUNNING} 2023-12-13T20:43:06.946Z [INFO] (Copier) aws.iot.EdgeConnectorForKVS: stdout. 2023-12-13 20:43:06 WARN Monitor:Monitor fails to remove task: Recorder0_branchOutputStreamPath.. {scriptName=services.aws.iot.EdgeConnectorForKVS.lifecycle.Run.Script, serviceName=aws.iot.EdgeConnectorForKVS, currentState=RUNNING} 2023-12-13T20:43:09.970Z [INFO] (Copier) aws.iot.EdgeConnectorForKVS: stdout. 2023-12-13 20:43:09 WARN RecorderBranchFile:FileBranch does not receive EOS. {scriptName=services.aws.iot.EdgeConnectorForKVS.lifecycle.Run.Script, serviceName=aws.iot.EdgeConnectorForKVS, currentState=RUNNING} 2023-12-13T20:43:12.978Z [INFO] (Copier) aws.iot.EdgeConnectorForKVS: stdout. 2023-12-13 20:43:12 WARN RecorderBranchBase:Branch is already unbound.. {scriptName=services.aws.iot.EdgeConnectorForKVS.lifecycle.Run.Script, serviceName=aws.iot.EdgeConnectorForKVS, currentState=RUNNING} 2023-12-13T20:43:12.979Z [INFO] (Copier) aws.iot.EdgeConnectorForKVS: stdout. 2023-12-13 20:43:12 WARN RecorderBranchBase:Branch is already unbound.. {scriptName=services.aws.iot.EdgeConnectorForKVS.lifecycle.Run.Script, serviceName=aws.iot.EdgeConnectorForKVS, currentState=RUNNING} 2023-12-13T20:43:14.922Z [INFO] (Copier) aws.iot.EdgeConnectorForKVS: stdout. 2023-12-13 20:43:14 WARN RecorderStatusCheckCallbackImpl:Recorder failed due to errors. Pipeline name: pipeline0. {scriptName=services.aws.iot.EdgeConnectorForKVS.lifecycle.Run.Script, serviceName=aws.iot.EdgeConnectorForKVS, currentState=RUNNING}

I have all rights granted for kinesis stream, but i did not know what i should do with these errors.

@liyuanqian
Copy link
Collaborator

Hi fotosidia,
Thanks for reaching out.
As far as I know, when the RTSP camera connects to the video recorder, it sends SDP, which contains the media types and other information of the camera, to the GStreamer rtspsrc element. Then, the GStreamer rtspsrc element creates GstPads based on the SDP information, and these GstPads also store their capabilities.
From our experience in developing this component, a RTSP camera reports SDP with media type video if it has video data and media type audio if it has audio data. Therefore, our component checks whether the media field is video or audio, and then processes these multimedia data accordingly.
The log of this issue shows that the camera gives us a GstPad with application media type, which our component does not support at the moment.

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