# recorder camera  image encoding buffer is full

**URL:** <https://forums.developer.nvidia.com/t/recorder-camera-image-encoding-buffer-is-full/62635>\
**Category:** DriveWorks\
**Created:** [June 26, 2018, 4:34pm UTC](https://forums.developer.nvidia.com/t/recorder-camera-image-encoding-buffer-is-full/62635 "2018-06-26T16:34:19Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![yangquanhui](https://developer.download.nvidia.com/images/forums/profile-default-devtalk-84.png) [@yangquanhui](https://forums.developer.nvidia.com/u/yangquanhui)\
**Post date:** [June 26, 2018, 4:34pm UTC](https://forums.developer.nvidia.com/t/recorder-camera-image-encoding-buffer-is-full/62635/1 "2018-06-26T16:34:19Z")

</div>

Creating default recording file: ./recorder-config.json  
Program Arguments:  
–config-file=/home/nvidia/record\_data/conf/recorder-config.json  
–offscreen=1  
Initialize DriveWorks SDK v0.3.422  
Release build with GNU 4.9.2 from v0.3.1-rc2-0-g0475f26 against PDK v4.1.6.3  
SDK: Resources mounted from /usr/local/driveworks-0.3/data/resources  
SDK: Create NvMediaDevice  
egl::Display: found 2 EGL devices  
egl::Display: use drm device: drm-nvdc  
SDK: dGPU has been detected as device number 0  
SDK: iGPU has been detected as device number 1  
SDK: Default GPU Device set to device number 0  
SAL: identified board as DrivePX2-TegraA  
SensorFactory::createSensor() → gps.uart, device=/dev/ttyACM0,baud=115200  
Driveworks exception thrown: DW\_HAL\_CANNOT\_OPEN\_CHANNEL: EndpointTTY: cannot open device  
SensorFactory::createSensor() → imu.xsens, device=0,frequency=100  
Driveworks exception thrown: DW\_HAL\_CANNOT\_OPEN\_CHANNEL: EndpointXsens: Requested device 0 not found. Only 0 devices present  
SensorFactory::createSensor() → can.socket, device=can0  
SensorFactory::createSensor() → camera.gmsl, camera-type=ar0231-rccb-bae,csi-port=ab,camera-count=4,output-format=yuv,async-record=1,fifo-size=6  
CameraGMSL: required FPS = 30, resolution = 1920x1208  
\*\*\*\*\* aurix state \*\*\*\*\*  
CAM\_PWR\_ON: 0x0  
TEGRA\_GMSL: TEGRA B  
TEGRA\_FPDL: TEGRA B  
TEGRA\_A\_HDMI: MXM  
TEGRA\_B\_HDMI: MXM  
TEGRA\_PCI: TEGRA B  
FAN\_STATE: UNKNOWN

* * *

\*\*\*\*\* aurix state \*\*\*\*\*  
CAM\_PWR\_ON: 0x1  
TEGRA\_GMSL: UNKNOWN  
TEGRA\_FPDL: UNKNOWN  
TEGRA\_A\_HDMI: UNKNOWN  
TEGRA\_B\_HDMI: UNKNOWN  
TEGRA\_PCI: UNKNOWN  
FAN\_STATE: UNKNOWN

* * *

Sensor AR0231 RCCB Rev7 detected!  
Sensor AR0231 RCCB Rev7 detected!  
Sensor AR0231 RCCB Rev7 detected!  
Sensor AR0231 RCCB Rev7 detected!  
SensorFactory::createSensor() → camera.gmsl, camera-type=ar0231-rccb,csi-port=cd,camera-count=1,output-format=yuv,async-record=1,fifo-size=6  
CameraGMSL: required FPS = 30, resolution = 1920x1208  
\*\*\*\*\* aurix state \*\*\*\*\*  
CAM\_PWR\_ON: 0x1  
TEGRA\_GMSL: TEGRA B  
TEGRA\_FPDL: TEGRA B  
TEGRA\_A\_HDMI: MXM  
TEGRA\_B\_HDMI: MXM  
TEGRA\_PCI: TEGRA B  
FAN\_STATE: UNKNOWN

* * *

\*\*\*\*\* aurix state \*\*\*\*\*  
CAM\_PWR\_ON: 0x3  
TEGRA\_GMSL: UNKNOWN  
TEGRA\_FPDL: UNKNOWN  
TEGRA\_A\_HDMI: UNKNOWN  
TEGRA\_B\_HDMI: UNKNOWN  
TEGRA\_PCI: UNKNOWN  
FAN\_STATE: UNKNOWN

* * *

Sensor AR0231 RCCB Rev7 detected!  
Driveworks exception thrown: DW\_NOT\_AVAILABLE: StreamConsumerOpenGL: No gl context exists  
Driveworks exception thrown: DW\_NOT\_AVAILABLE: StreamConsumerOpenGL: No gl context exists  
Driveworks exception thrown: DW\_NOT\_AVAILABLE: StreamConsumerOpenGL: No gl context exists  
Driveworks exception thrown: DW\_NOT\_AVAILABLE: StreamConsumerOpenGL: No gl context exists  
Driveworks exception thrown: DW\_NOT\_AVAILABLE: StreamConsumerOpenGL: No gl context exists  
Thread created for 1  
Thread created for 2  
EndpointCAN: Hardware time stamping (SIOCSHWTSTAMP) supported at can0  
EndpointCAN: use HW based timestamps for can0  
EndpointCAN: started can0  
Start recording…  
CameraGMSL: serializer bitrate not specified. Using 8000000.  
CameraGMSL: serializer bitrate not specified. Using 8000000.  
CameraGMSL: serializer bitrate not specified.  
Using 8000000.  
CameraGMSL: serializer bitrate not specified. Using 8000000.  
CameraGMSL: serializer bitrate not specified.  
CameraGMSL: Frame: 19 CaptureTimestamp: 26772513 - ICP DROP  
CameraGMSL: Frame: 20 CaptureTimestamp: 26805854 - ICP DROP  
Driveworks exception thrown:  
DW\_NVMEDIA\_ERROR: EncoderNvMedia: encode feed frame error : 9  
Driveworks exception thrown:  
DW\_NVMEDIA\_ERROR: EncoderNvMedia: encode feed frame error : 9  
Driveworks exception thrown:  
DW\_NVMEDIA\_ERROR: EncoderNvMedia: encode feed frame error : 9  
Driveworks exception thrown:  
Driveworks exception thrown:  
Driveworks exception thrown:  
Driveworks exception thrown:  
Driveworks exception thrown: DW\_NVMEDIA\_ERROR: EncoderNvMedia: encode feed frame error : 9  
Driveworks exception thrown:  
Driveworks exception thrown:  
DW\_NVMEDIA\_ERROR: EncoderNvMedia: encode feed frame error : 9  
Driveworks exception thrown: DW\_NVMEDIA\_ERROR: EncoderNvMedia: encode feed frame error : 9  
Driveworks exception thrown: DW\_NVMEDIA\_ERROR: EncoderNvMedia: encode feed frame error : 9  
Driveworks exception thrown: DW\_NVMEDIA\_ERROR: EncoderNvMedia: encode feed frame error : 9  
Driveworks exception thrown: DW\_NVMEDIA\_ERROR: EncoderNvMedia: encode feed frame error : 9  
Driveworks exception thrown: DW\_NVMEDIA\_ERROR: EncoderNvMedia: encode feed frame error : 9  
Driveworks exception thrown: DW\_NVMEDIA\_ERROR: EncoderNvMedia: encode feed frame error : 9  
Driveworks exception thrown: DW\_NVMEDIA\_ERROR: EncoderNvMedia: encode feed frame error : 9  
Driveworks exception thrown: DW\_NVMEDIA\_ERROR: EncoderNvMedia: encode feed frame error : 9  
Driveworks exception thrown: DW\_NVMEDIA\_ERROR: EncoderNvMedia: encode feed frame error : 9  
Driveworks exception thrown: DW\_NVMEDIA\_ERROR: EncoderNvMedia: encode feed frame error : 9  
Driveworks exception thrown: DW\_NVMEDIA\_ERROR: EncoderNvMedia: encode feed frame error : 9  
Driveworks exception thrown: DW\_NVMEDIA\_ERROR: EncoderNvMedia: encode feed frame error : 9  
Driveworks exception thrown: DW\_NVMEDIA\_ERROR: EncoderNvMedia: encode feed frame error : 9  
Driveworks exception thrown:  
DW\_NVMEDIA\_ERROR: EncoderNvMedia: encode feed frame error : 9  
DW\_NVMEDIA\_ERROR: EncoderNvMedia: encode feed frame error : 9  
Driveworks exception thrown:  
Driveworks exception thrown:  
Driveworks exception thrown:  
DW\_NVMEDIA\_ERROR: EncoderNvMedia: encode feed frame error : 9  
Driveworks exception thrown:  
Driveworks exception thrown:  
DW\_NVMEDIA\_ERROR: EncoderNvMedia: encode feed frame error : 9  
Driveworks exception thrown:  
DW\_NVMEDIA\_ERROR: EncoderNvMedia: encode feed frame error : 9  
Driveworks exception thrown:  
Driveworks exception thrown:  
Driveworks exception thrown:  
DW\_NVMEDIA\_ERROR: EncoderNvMedia: encode feed frame error : 9  
Driveworks exception thrown:  
DW\_NVMEDIA\_ERROR: EncoderNvMedia: encode feed frame error : 9  
EncoderNvMedia: encoding buffer is full, potential data loss  
EncoderNvMedia: encoding buffer is full, potential data loss  
EncoderNvMedia: encoding buffer is full, potential data loss  
EncoderNvMedia: encoding buffer is full, potential data loss  
EncoderNvMedia: encoding buffer is full, potential data loss  
EncoderNvMedia: encoding buffer is full, potential data loss  
EncoderNvMedia: encoding buffer is full, potential data loss  
EncoderNvMedia: encoding buffer is full, potential data loss  
EncoderNvMedia: encoding buffer is full, potential data loss  
EncoderNvMedia: encoding buffer is full, potential data loss  
EncoderNvMedia: encoding buffer is full, potential data loss  
EncoderNvMedia: encoding buffer is full, potential data loss  
EncoderNvMedia: encoding buffer is full, potential data loss  
EncoderNvMedia: encoding buffer is full, potential data loss  
EncoderNvMedia: encoding buffer is full, potential data loss

---

<div class="post-metadata">

**Author:** ![SteveNV](https://sea2.discourse-cdn.com/nvidia/user_avatar/forums.developer.nvidia.com/stevenv/32/14043_2.png) [@SteveNV](https://forums.developer.nvidia.com/u/SteveNV)\
**Post date:** [June 27, 2018, 12:57am UTC](https://forums.developer.nvidia.com/t/recorder-camera-image-encoding-buffer-is-full/62635/2 "2018-06-27T00:57:14Z")

</div>

Dear yangquanhui,

Could you please refer to below link for your topic? Thanks.  
[https://devtalk.nvidia.com/default/topic/1036281/driveworks/-recorder-gmsl-camera-raw-image-buffer-full-error/](https://devtalk.nvidia.com/default/topic/1036281/driveworks/-recorder-gmsl-camera-raw-image-buffer-full-error/)

---

<div class="post-metadata">

**Author:** ![yangquanhui](https://developer.download.nvidia.com/images/forums/profile-default-devtalk-84.png) [@yangquanhui](https://forums.developer.nvidia.com/u/yangquanhui)\
**Post date:** [August 3, 2018, 12:58pm UTC](https://forums.developer.nvidia.com/t/recorder-camera-image-encoding-buffer-is-full/62635/3 "2018-08-03T12:58:59Z")

</div>

Dear SteveNV,

when I record 5 cameras, there will be two camera data interruption, but the other three cameras are normal.

In 5 cameras, 2 cameras of interruption are always Leopard without error logs, other 3 cameras are SEKONIX. The interruption took place about ten minutes after the start of the record.

The recorder-config.json is below.

how to resolve the problem? Thanks!

```auto
{
    "_comments": [
        "To record raw camera use output-format=raw.",
        "To record raw and h264 use output-format=raw+h264.",
        "To record h264 only use output-format=h264.",
        "To record camera asynchronously, add async-record=1 to ",
        "the params of the camera sensor.",
        "To record 2 consecutive frames and skip 6 consecutive frames in the ",
        "camera use frame-record-count=2 and frame-skip-count=6.",
        "The write-file-pattern for each only refers to the filenames ",
        "and not the extensions. Those are inferred automatically.",
        "The separate-thread for each refers to the fact of whether",
        "threads are shared or a new one is created for capturing data.",
        "If separate-thread=false, it will capture on the same thread as",
        "other sensor types that have set separate-thread=false.",
        "If separate-thread=true, a new thread will spawn just for that",
        "sensor type."
        ],
    "version": "0.7",
    "path": ".",
    "camera": {
        "separate-thread": true,
        "write-file-pattern": "video_*",
        "sensors": [
          {
                "protocol": "camera.gmsl",
                "params": "camera-type=ar0231-rccb,csi-port=ab,camera-count=2,output-format=h264,async-record=0,fifo-size=3",
                "channel-names": [
                                "camera_0",
                                "camera_1",
                                "camera_2",
                                "camera_3"
                             ]
          },
          {
                "protocol": "camera.gmsl",
                "params": "camera-type=ar0231-rccb,csi-port=cd,camera-count=2,output-format=h264,async-record=0,fifo-size=3",
                "channel-names": [
                                "camera_4",
                                "camera_5",
                                "camera_6",
                                "camera_7"
                             ]
          },
          {
                "protocol": "camera.gmsl",
                "params": "camera-type=ar0231,csi-port=ef,camera-count=1,output-format=h264,async-record=0,fifo-size=3",
                "channel-names": [
                                "camera_8",
                                "camera_9",
                                "camera_10",
                                "camera_11"
                             ]
          }

        ]
    },

    "can" : {
        "separate-thread": true,
        "write-file-pattern": "can_*",
        "sensors" : [
            {
                "protocol": "can.socket",
                "params": "device=can0",
                "channel-name": "0"
            }
        ]
    },
    "gps" : {
        "separate-thread": false,
        "write-file-pattern": "gps_*",
        "lock-override": false,
        "sensors" : [
            {
              "protocol": "gps.uart",
              "params": "device=/dev/ttyACM0,baud=115200",
              "channel-name": "0"
            }
        ]
    },
    "imu" : {
        "separate-thread": false,
        "write-file-pattern": "imu_*",
        "sensors" : [
            {
              "protocol": "imu.xsens",
              "params": "device=0,frequency=100",
              "channel-name": "0"
            }
        ]
    },
    "lidar" : {
        "separate-thread": false,
        "write-file-pattern": "lidar_*",
        "sensors" : [
            {
                "protocol": "lidar.virtual",
                "params": "file=./lidar_sample.bin",
                "channel-name": "0"
            }
        ]
    },
    "radar" : {
        "write-file-pattern": "radar_*",
        "sensors" : [
            {
                "protocol": "radar.virtual",
                "params": "file=./radar_sample.bin",
                "channel-name": "0"
            }
        ]
    }
}

```

---

<div class="post-metadata">

**Author:** ![SteveNV](https://sea2.discourse-cdn.com/nvidia/user_avatar/forums.developer.nvidia.com/stevenv/32/14043_2.png) [@SteveNV](https://forums.developer.nvidia.com/u/SteveNV)\
**Post date:** [August 6, 2018, 2:09am UTC](https://forums.developer.nvidia.com/t/recorder-camera-image-encoding-buffer-is-full/62635/4 "2018-08-06T02:09:32Z")

</div>

Dear yangquanhui,

Could you let me know information about what’s being recorded, and also the speed of the storage medium that is being recorded to (use dd if=/dev/zero of=\<MOUNT\_POINT\>/testfile.txt bs=512k count=1024)?
