# Compressed camera data

**URL:** <https://discuss.bluerobotics.com/t/compressed-camera-data/7006>\
**Category:** BlueROV2\
**Created:** [March 6, 2020, 6:47pm UTC](https://discuss.bluerobotics.com/t/compressed-camera-data/7006 "2020-03-06T18:47:37Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Prez](https://avatars.discourse-cdn.com/v4/letter/p/dec6dc/32.png) [@Prez](https://discuss.bluerobotics.com/u/Prez)\
**Post date:** [March 6, 2020, 6:47pm UTC](https://discuss.bluerobotics.com/t/compressed-camera-data/7006/1 "2020-03-06T18:47:37Z")

</div>

Hi, my name is Matheus Conceição, and I work with the bluerov2, now I try to save data of sensors of bluerov2, I can see all sensors, but the camera when I try to save the data, have a “bag” (Command : rosbag record “topic”) with 1 GB or more, and have just 4 seconds of data, I would like to know if anybody compress the data of camera or if can be compressed, I would like to know-how.

I read the data with Mavros, and I have the command that shows the data on a topic, and I would like to save the data of the topic compressed and after I would like to see the image again.

the commands that I used to see topics are this:

on the first terminal:  
roslaunch bluerov\_ros\_playground bluerov2\_node.launch bluerov\_node\_device:=udp:localhost:14550

on the second terminal:  
roslaunch bluerov\_ros\_playground user\_mav.launch

after you can see the topics with command “rostopic list” and chose what command you would like to see use command "rostopic echo “topic” ", I used this commands to see data and save on bag, and I would like to use this commands to see data of camera and  
compressed after.

before you use these commands, you need to install the BlueRov-ROS-playground on this link: [GitHub - patrickelectric/bluerov\_ros\_playground: Scripts to help BlueRov integration with ROS](https://github.com/patrickelectric/bluerov_ros_playground) .
