Skip to content

stathiw/bag2vid

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

bag2vid

A GUI tool to extract videos from a rosbag.

Install

  1. Clone the repository
git clone [email protected]:stathiw/bag2vid.git
  1. Add bag2vid command to bashrc
cd bag2vid/scripts
./install.sh
  1. Modify the environment variables in the bashrc to correctly reference your rosbag source folder and bag2vid image tag.

Build

Docker

  1. Set rosbag src folder
export BAG2VID_SRC=/path/to/rosbag_src
  1. Build or pull the docker image
cd bag2vid
docker compose build

or

docker pull stathiw/bag2vid:latest

Run

After completing the install and either building or pulling the docker image, the application can be run using either

bag2vid

or

cd bag2vid
docker compose run ros_melodic rosrun bag2vid bag2vid_gui

How to use

Use the Load Bag button to select a rosbag to extract videos from.

Select the camera topic to extract from the dropdown. Upon loading a rosbag, all camera topics will be found.

Press the Extract Video button and enter a file name and location to save the extracted video.

Drag the start (green) and end (red) time selection markers to select the times between which to extract a video.

Screenshot from 2024-12-03 15-53-21