IntelRealSense / librealsense

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

Assuming a rate of 30FPS, a resolution of 1280*720, and an acquisition of 5 seconds, how is the size of the .bag file calculated? #13545

Open wenmingxiaohuo opened 4 days ago

wenmingxiaohuo commented 4 days ago

Required Info
Camera Model { R200 / F200 / SR300 / ZR300 / D400 }
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 PC/Raspberry Pi/ NVIDIA Jetson / etc..
SDK Version { legacy / 2.<?>.<?> }
Language {C/C#/labview/nodejs/opencv/pcl/python/unity }
Segment {Robot/Smartphone/VR/AR/others }

Issue Description

<Describe your issue / question / feature request / etc..>

wenmingxiaohuo commented 4 days ago

Assuming a rate of 30FPS, a resolution of 1280*720, and an acquisition of 5 seconds, how is the size of the .bag file calculated?

MartyG-RealSense commented 4 days ago

Hi @wenmingxiaohuo There is not a formula for calculating the size of a bag file in advance. However, I recorded a depth stream of 1280x720 at 30 FPS to a bag file for 5 seconds and the file was 143 mb in size.

wenmingxiaohuo commented 4 days ago

Thank you very much for your reply. I don't think the depth stream data is the whole content of the .bag file, although there is no specific formula to calculate it, but I think I should be able to calculate the size of the .bag file if I accumulate all the data of the .bag. How should I calculate it? Suppose the RGB data rate is 30fps, resolution 480*640

MartyG-RealSense commented 4 days ago

I recorded another 5 second, 30 FPS test bag with depth 1280x720 and RGB 640x480 and the bag was 267 mb.

wenmingxiaohuo commented 4 days ago

Your work is recognizable and commendable, thank you for the test!