# How to record high resolution camera frames/videos?

Source: https://forum.modalai.com/topic/1795/how-to-record-high-resolution-camera-frames-videos
Category: VOXL 2 and VOXL 2 Mini (https://forum.modalai.com/category/26/voxl-2-and-voxl-2-mini)
Tags: voxl-2
Posted: 2023-02-08 10:12:15 UTC by afdrus
Replies: 6 · Views: 1651

## afdrus · 2023-02-08 10:12:15 UTC

Hi everyone,
I am currently working with a Sentinel dev drone (VOXL2) on which voxl-camera-server version 1.3.5 and voxl-streamer version 0.4.1 are running. I tried to save frames through voxl-logger, but the saved images have a resolution preview_width x preview_height = 1280 x 720 instead of snapshot_width x snapshot_height = 3840 x 2160 (as specified in the voxl-camera-server.conf file). Is it possible to save the frame (and also stream the video) in the original format (3840 x 2160) and NOT in the preview format (1280 x 720)?
Thank you in advance for your response.

## Reply by Guest · 2023-02-08 18:11:03 UTC

The frames that go through logger/streamer are the preview stream, to take a snapshot run ```voxl-send-command hires snapshot <file path>``` and it will save a full resolution jpeg snapshot to the filesystem. You can also not provide a file path and it will save to ```/data/snapshots/```

## Reply by afdrus · 2023-02-09 08:11:38 UTC

Thank you for your quick response. I tried to use the command that you suggested
```
voxl-send-command hires snapshot
```
After running this command the console prompts
```
Successfully sent command to /run/mpa/hires/control
```
However no path /data/snapshots/ is created and no .jpg is saved in the /data/ folder. If I try to run again the same command the following response appears
```
Unable to find valid pipe that accepts control commands at: hires
```
The only way to retry to take another snapshot is to reboot the system, but it keeps not saving any images.

## Reply by Guest · 2023-02-09 21:05:23 UTC

Sounds like an error occurred, what does ```journalctl -u voxl-camera-server``` say after running the commands?

## Reply by afdrus · 2023-02-14 10:59:14 UTC

```
Feb 09 11:44:02 m0054 systemd[1]: Started voxl-camera-server.
Feb 09 11:44:04 m0054 bash[1394]: ------ voxl-camera-server: Camera server is now running
Feb 09 11:44:04 m0054 bash[1394]: WARNING: Camera stereo_front recieved much newer master than child
Feb 09 11:44:04 m0054 bash[1394]: WARNING: Camera stereo_rear recieved much newer child than master 
Feb 09 11:55:32 m0054 bash[1394]: Camera: hires taking snapshot (destination: /data/snapshots/hires-
Feb 09 11:55:33 m0054 bash[1394]: free(): invalid pointer
Feb 09 11:55:33 m0054 systemd[1]: voxl-camera-server.service: Main process exited, code=killed, stat
Feb 09 11:55:33 m0054 systemd[1]: voxl-camera-server.service: Failed with result 'signal'.
```

## Reply by aharvey · 2023-03-17 19:56:36 UTC

I am having the same problem.  I created a the snapshots folder too, and the camera server crashes.

## Reply by aharvey · 2023-03-17 19:58:48 UTC (in reply to afdrus)

@afdrus instead of rebooting, you can restart the server with:  systemctl restart voxl-camera-server
