Ask Your Question

video_recorder is not saving correctly

asked 2020-07-07 15:11:21 -0500

blaine141 gravatar image

I am trying to take the contents of a bag file and record them to a video file using the following launch file. The result is always an output.avi file that is 4.1kB and is not able to be played. Any advice?

<arg name="namespace" default="puddles" />
<arg name="bag_file" default="/home/blaine/ros/bringup_2020-07-05-16-23-28.bag" />
<arg name="topic" default="darknet_ros/image_hud" />

<group ns="$(arg namespace)">
    <node pkg="rosbag" type="play" name="rosbag" args="$(arg bag_file)"/>
    <node pkg="image_transport" type="republish" name="republish" args="compressed in:=$(arg topic) raw out:=$(arg topic)">
        <param name="in" value="$(arg topic)/compressed" />
        <param name="out" value="$(arg topic)" />
    <node pkg="image_view" type="video_recorder" name="video_recorder" output="screen">
        <remap from="image" to="$(arg topic)"/>
        <param name="filename" value="../output.avi" />
edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted

answered 2020-07-08 16:03:47 -0500

blaine141 gravatar image

Turns out it was because my image topic did not have a timestamp. Video_recorder checks the timestamp for frame rate limiting and all my times were 0. Time to fix my camera driver! :)

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


Asked: 2020-07-07 15:11:21 -0500

Seen: 11 times

Last updated: Jul 08