Skip to content

How can I use cameraundistort with rtsp stream? #1005

Answered by sirknightj
rtcnerd asked this question in Q&A
Discussion options

You must be logged in to vote

You're probably looking for the gstreamer element dewarp, as the documentation for cameraundistort mentions that it performs camera calibration.

The use case described sounds like we want to take the video from the camera, transform it, then send it to KVS.

Suppose we use the sample pipeline from here. We need to inject a dewarp element in it.

According to its documentation, dewarp only accepts RGBA in and RGBA out. So, we will need to convert it from: h264 (camera) -> RGBA (dewarp) -> h264 -> kvssink

Something along these lines might do it.

gst-launch-1.0 -v rtspsrc location="x" short-header=TRUE ! rtph264depay ! decodebin ! videoconvert ! video/x-raw,format=RGBA ! dewarp outer-radius=0.…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by sirknightj
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
2 participants