IntelRealSense / librealsense

Intel® RealSense™ SDK
https://www.intelrealsense.com/
Apache License 2.0
7.6k stars 4.83k forks source link

Directly recording mp4, mpeg, etc video without having to record bag #6841

Closed matthewha123 closed 4 years ago

matthewha123 commented 4 years ago

Required Info
Camera Model D435
Firmware Version (Open RealSense Viewer --> Click info)
Operating System & Version {Win (8.1/10) / Linux (Ubuntu 14/16/17) / MacOS
Kernel Version (Linux Only) (e.g. 4.14.13)
Platform Jetson Nano
SDK Version { legacy / 2.<?>.<?> }
Language {C/C#/labview/nodejs/opencv/pcl/python/unity }
Segment {Robot/Smartphone/VR/AR/others }

I'm wondering if it is possible to record video from a realsense camera without having to record to a .bag file first. I've seen that .bag files can easily be converted to .mp4's, but, since .bag files are so large, I wanted to circumvent that intermediary step.

MartyG-RealSense commented 4 years ago

Hi @matthewha123 In this scenario, I would personally use video screen-capture software such as XSplit Broadcaster to record the complete contents of the screen to mp4 video whilst letting the camera stream in real-time in a full-screen view but not recording to a bag.

https://www.xsplit.com/broadcaster

XSplit is for Windows though. If you are using Linux, the link below suggests some alternatives to XSplit:

https://alternativeto.net/software/xsplit-broadcaster/?platform=linux

The RealSense Viewer program can be toggled between fullscreen and windowed by pressing the F8 function key on the keyboard. You can also enable and disable fullscreen by left-clicking on the gear-wheel icon in the top corner of the Viewer, selecting the 'Settings' option from its drop down menu and going to the 'Performance' section of the Settings window.

image

image

dorodnic commented 4 years ago

Also, if you build the SDK with V4L2 backend (-DFORCE_LIBUVC=OFF) you should be able to capture raw data from the camera using standard Linux tools. It would not be nicely colorised, but it should work.

matthewha123 commented 4 years ago

Thank you for the suggestions @dorodnic and @MartyG-RealSense