Ask Your Question
1

recording video with gstreamer

asked 2019-03-07 13:26:38 -0500

jptalledo gravatar image

I have a USB camera which has a variable frame rate. ffmpeg does not handle variable frame rate properly but gstreamer does. Any suggestions how to integrate gstreamer for video recording using the /image_raw data

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
1

answered 2019-03-07 15:54:58 -0500

updated 2019-03-07 15:55:54 -0500

I'm not aware of a available solution for this, but here are a few options:

  • The image_to_rtsp node(let) taks in ROS images and provides a RTSP stream based on them.
  • You could connect a gstreamer pipeline to that RTSP server You could take the code from the previously named package as inspiration and push the ROS image data into a gstreamer appsrc pad and connect other gstreamer pads for compression/file writing to that.
  • Instead of running a ROS driver for the cam, you could run a gstreamer pipeline with a v4l2src connecting to the camera and split the pipeline into a file writer and a part that feeds data to the gscam node that provides the ROS image topic. In fact, it might be possible to do that directly within the gscam pipeline config (never tried that).
edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower

Stats

Asked: 2019-03-07 13:26:38 -0500

Seen: 60 times

Last updated: Mar 07