Export .bag to .jpeg / .mp4 tutorial not outputting anything
I am trying to convert a .bag file to .mp4 by following this tutorial: How to export image and video data from a bag file
I did the following steps:
- Ran:
roscd image_view && rosmake image_view && sudo apt-get install mjpegtools
- Created an
export.launch
file containing the code from the tutorial (file placed in/opt/ros/melodic/share/image_view
) - Placed
test.bag
in/opt/ros/melodic/share/image_view
- Ran
roslaunch export.launch
After running the command roslaunch export.launch
, there are no .jpeg files in the ~/.ros
directory like the tutorial says there should be.
The output of the roslaunch
command is:
ThinkCentre-M90n-1:/opt/ros/melodic/share/image_view $ roslaunch export.launch
... logging to /home/max/.ros/log/801ba47c-f76e-11ea-b576-4074e0bec8b4/roslaunch-max-ThinkCentre-M90n-1-12751.log
Checking log directory for disk usage. This may take a while.
Press Ctrl-C to interrupt
Done checking log file disk usage. Usage is <1GB.
started roslaunch server http://max-ThinkCentre-M90n-1:33177/
SUMMARY
========
PARAMETERS
* /rosdistro: melodic
* /rosversion: 1.14.9
NODES
/
extract (image_view/extract_images)
rosbag (rosbag/play)
auto-starting new master
process[master]: started with pid [12761]
ROS_MASTER_URI=http://localhost:11311
setting /run_id to 801ba47c-f76e-11ea-b576-4074e0bec8b4
process[rosout-1]: started with pid [12774]
started core service [/rosout]
process[rosbag-2]: started with pid [12780]
process[extract-3]: started with pid [12782]
[ INFO] [1600186456.400606637]: Initialized sec per frame to 0.100000
================================================================================REQUIRED process [rosbag-2] has died!
process has finished cleanly
log file: /home/max/.ros/log/801ba47c-f76e-11ea-b576-4074e0bec8b4/rosbag-2*.log
Initiating shutdown!
================================================================================
[extract-3] killing on exit
[rosbag-2] killing on exit
[rosout-1] killing on exit
[master] killing on exit
shutting down processing monitor...
... shutting down processing monitor complete
done
The log file contains:
[ INFO] [1600186456.311782786]: Opening /opt/ros/melodic/share/image_view/test_mask.bag
Waiting 0.2 seconds after advertising topics... done.
Hit space to toggle paused, or 's' to step.
[RUNNING] Bag Time: 34.406766 Duration: 34.406766 / 34.439933 6456.59
Done.
Does anyone know what's wrong? I am new to ROS (using melodic), am just using it to try to convert a .bag file I recorded on an Intel Realsense camera to .mp4.