video_recorder is not saving correctly
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?
<launch>
<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>
<node pkg="image_view" type="video_recorder" name="video_recorder" output="screen">
<remap from="image" to="$(arg topic)"/>
<param name="filename" value="../output.avi" />
</node>
</group>
</launch>