# H264/H265 SVO recording freezes instantaneously

**URL:** <https://community.stereolabs.com/t/h264-h265-svo-recording-freezes-instantaneously/1321>\
**Category:** C++\
**Tags:** jetson\
**Created:** [July 7, 2022, 10:39pm UTC](https://community.stereolabs.com/t/h264-h265-svo-recording-freezes-instantaneously/1321 "2022-07-07T22:39:45Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![pcdangio](https://community.stereolabs.com/user_avatar/community.stereolabs.com/pcdangio/32/240_2.png) [@pcdangio](https://community.stereolabs.com/u/pcdangio)\
**Post date:** [July 7, 2022, 10:39pm UTC](https://community.stereolabs.com/t/h264-h265-svo-recording-freezes-instantaneously/1321/1 "2022-07-07T22:39:45Z")

</div>

I have a minimal c++ application that is set up to record to an SVO file. It’s currently set up on a Jetson TX2, and is running within the StereoLabs docker image zed:3.7-devel-jetson-jp4.5.

If I set the compression\_mode to anything besides LOSSLESS in the recording parameters, my camera.grab() loop freezes up permanently as soon as recording starts. The svo files get created, but are only about 280bytes in size.

Again, if the compression is set to LOSSLESS everything works fine, so I know it’s not a problem with the code. I’m wondering if I’m missing some codecs since the H264/H265 compression modes freeze the application up? Or maybe its because the H264/H265 compression modes use the GPU (and the problem lies there) while LOSSLESS uses the CPU?

---

<div class="post-metadata">

**Author:** ![alassagne](https://community.stereolabs.com/user_avatar/community.stereolabs.com/alassagne/32/2428_2.png) [@alassagne](https://community.stereolabs.com/u/alassagne)\
**Post date:** [July 8, 2022, 11:16am UTC](https://community.stereolabs.com/t/h264-h265-svo-recording-freezes-instantaneously/1321/2 "2022-07-08T11:16:58Z")

</div>

Hello,

That would depend on your GPU. Even if it’s CUDA-compatible, sometimes it does not have the hardware encoder/decoder that’s required to write h264/h265. In this situation, you’ll only have lossless option. What’s your GPU?

Antoine

---

<div class="post-metadata">

**Author:** ![pcdangio](https://community.stereolabs.com/user_avatar/community.stereolabs.com/pcdangio/32/240_2.png) [@pcdangio](https://community.stereolabs.com/u/pcdangio)\
**Post date:** [July 8, 2022, 3:00pm UTC](https://community.stereolabs.com/t/h264-h265-svo-recording-freezes-instantaneously/1321/3 "2022-07-08T15:00:00Z")

</div>

I’m using a Jetson TX2, which has the Pascal GPU w/ 256 cuda cores. I know that H264/H265 encoding works on this setup… a year ago I ran this exact setup and the encoding worked perfectly. The only difference back then was that I was using the ZED SDK 3.5 docker image, where now I’m using the ZED SDK 3.7 docker image.

So this leads me to believe it must be some kind of configuration issue, potentially with the SDK 3.7 docker image missing required dependencies for H264/H265 GPU encoding.

---

<div class="post-metadata">

**Author:** ![alassagne](https://community.stereolabs.com/user_avatar/community.stereolabs.com/alassagne/32/2428_2.png) [@alassagne](https://community.stereolabs.com/u/alassagne)\
**Post date:** [July 11, 2022, 6:47am UTC](https://community.stereolabs.com/t/h264-h265-svo-recording-freezes-instantaneously/1321/4 "2022-07-11T06:47:29Z")

</div>

Indeed. It seemed their was a bug with 3.7 earliest versions, which one are you using now ? in 3.7.4, it should be fixed.

---

<div class="post-metadata">

**Author:** ![pcdangio](https://community.stereolabs.com/user_avatar/community.stereolabs.com/pcdangio/32/240_2.png) [@pcdangio](https://community.stereolabs.com/u/pcdangio)\
**Post date:** [July 12, 2022, 4:56pm UTC](https://community.stereolabs.com/t/h264-h265-svo-recording-freezes-instantaneously/1321/5 "2022-07-12T16:56:06Z")

</div>

Ah that makes sense. I’m currently using 3.7.1, which is what comes in the latest zed:3.7-devel-jetson-jp4.5 docker image posted by StereoLabs. How often do those images get updated? Here’s the link to the image on docker hub: [Docker Hub](https://hub.docker.com/layers/zed/stereolabs/zed/3.7-devel-jetson-jp4.5/images/sha256-8d3929dca0994cc9f8205aa49f92f6a645e8405556b9bdc8edf59a40adff0e8a?context=explore)

In the meantime, is there a way to update the version via command line? I’m constrained to using docker for this setup, so I’m hoping I can start with that zed:3.7-devel-jetson-jp4.5 image and just run an upgrade via CLI in the Dockerfile.

---

<div class="post-metadata">

**Author:** ![alassagne](https://community.stereolabs.com/user_avatar/community.stereolabs.com/alassagne/32/2428_2.png) [@alassagne](https://community.stereolabs.com/u/alassagne)\
**Post date:** [September 14, 2022, 12:24pm UTC](https://community.stereolabs.com/t/h264-h265-svo-recording-freezes-instantaneously/1321/6 "2022-09-14T12:24:06Z")

</div>

Hi,  
These images are updated for most of our versions, I’ll ask why it was not this time.  
In the meantime, you can totally build your own docker image, which takes ours as a base, and install a more recent version inside.

Antoine
