Skip to content
Convert images in a rosbag to a video
Branch: master
Clone or download
dlaz Merge pull request #4 from farad91/master
fix method names for CV2 module
Latest commit 4522cb7 Feb 21, 2018
Type Name Latest commit message Commit time
Failed to load latest commit information.
.gitignore Initial commit Aug 27, 2013
LICENSE Update org name in license Aug 28, 2013 Note about variable framerates Oct 16, 2013 fix method names for CV2 module Feb 7, 2018
manifest.xml Update author Apr 22, 2014


Convert images in a rosbag to a variable framerate video. Variable framerate is achieved through duplicating frames since OpenCv can't encode at variable framerates. This can produce very large files which should be re-encoded with something like ffmpeg.


usage: [-h] [--outfile OUTFILE] [--precision PRECISION] [--viz]
                    [--start START] [--end END] [--encoding {rgb8,bgr8,mono8}]
                    topic bagfile

Extract and encode video from bag files.

positional arguments:

optional arguments:
  -h, --help            show this help message and exit
  --outfile OUTFILE, -o OUTFILE
                        Destination of the video file. Defaults to the
                        location of the input file.
  --precision PRECISION, -p PRECISION
                        Precision of variable framerate interpolation. Higher
                        numbers match the actual framerater better, but result
                        in larger files and slower conversion times.
  --viz, -v             Display frames in a GUI window.
  --start START, -s START
                        Rostime representing where to start in the bag.
  --end END, -e END     Rostime representing where to stop in the bag.
  --encoding {rgb8,bgr8,mono8}
                        Encoding of the deserialized image.
You can’t perform that action at this time.