View my account

Converting .bag formatted videos taken by D435 into popular video formats such as .avi, mpeg

Comments

3 comments

  • MartyG

    I don't know of a direct way to do the conversion.   It is feasible as a two-step process though.

    STEP ONE

    Use the RealSense SDK's Convert tool to extract the frames from the bag as a set of PNG image files.

    https://github.com/IntelRealSense/librealsense/tree/master/tools/convert 

    STEP TWO

    Stitch the image set together into a video.  Please google for 'stitch pngs into video' to research examples of programs that can do this..

    1
    Comment actions Permalink
  • Aktaseren91

    Thank you for this. However, when I use RS-CONVERT it did not convert .bag file to Depth and Colour Images on same framing rate.

    For example, one of my bag files was converted as follows:

    PNG converter
    2166 Depth frame(s) processed
    2162 Color frame(s) processed

    Why is not it converting on the same depth and colour framing rate? For my work, I need the same frame rate.
    Can you please help me on this issue?

    0
    Comment actions Permalink
  • MartyG

    It is not unusual to have variations in the number of frames in a recorded bag.  The subject, and the possibility of synchronising streams during the recording process, is discussed in the link below.  Please read downwards from the part of the discussion that is linked to.

    https://github.com/IntelRealSense/librealsense/issues/3689#issuecomment-484756027 

    1
    Comment actions Permalink

Please sign in to leave a comment.