Skip to content

Creality Camera Server Error #166

@jloffredo

Description

@jloffredo

I have a creality usb camera, it has a main stream in index0 (H264) and a substream (MJPEG) in index2.
index2 works fine, but has lesser quality.

On index0 it should be working but when I open the /stream page I get "server error" and nothing specific in the logs

+ ./camera-streamer -camera-path=/dev/v4l/by-id/usb-Creality_3D_Technology_CREALITY_CAM_00000000-video-index0 --http-listen=0.0.0.0 --camera-format=H264
util/opts/opts.c: ?: Usage of '-camera-path=/dev/v4l/by-id/usb-Creality_3D_Technology_CREALITY_CAM_00000000-video-index0' is deprecated change to '--camera-path=/dev/v4l/by-id/usb-Creality_3D_Technology_CREALITY_CAM_00000000-video-index0'.
./camera-streamer Version:  (e50a855)
util/http/http.c: ?: HTTP listening on 0.0.0.0:8080.
device/v4l2/device.c: CAMERA: Device path=/dev/v4l/by-id/usb-Creality_3D_Technology_CREALITY_CAM_00000000-video-index0 fd=14 opened
device/v4l2/device_options.c: CAMERA: The 'horizontal_flip=0' was failed to find.
device/v4l2/device_options.c: CAMERA: The 'vertical_flip=0' was failed to find.
device/camera/camera_input.c: CAMERA: Disabling DMA since device uses USB (which is likely not working properly).
device/buffer_list.c: CAMERA:capture: Using: 1920x1080/H264, buffers=3, bytesperline=0, sizeimage=4.0MiB
device/buffer_list.c: CAMERA:capture: Opened 3 buffers. Memory used: 11.9 MiB
device/v4l2/device.c: CAMERA: ioctl(ret=-1, errno=22): Can't force keyframe
device/v4l2/device.c: DECODER: Device path=/dev/video10 fd=18 opened
device/buffer_list.c: DECODER:output:mplane: Using: 1920x1080/H264, buffers=3, bytesperline=0, sizeimage=4.0MiB
device/buffer_list.c: DECODER:output:mplane: Opened 3 buffers. Memory used: 11.9 MiB
device/v4l2/buffer_list.c: DECODER:capture:mplane: Requested resolution=1920x1080 is unavailable. Got 1920x1088. Accepted
device/buffer_list.c: DECODER:capture:mplane: Using: 1920x1088/NV12, buffers=3, bytesperline=1920, sizeimage=3.0MiB
device/buffer_list.c: DECODER:capture:mplane: Opened 3 buffers. Memory used: 9.0 MiB
device/v4l2/device.c: SNAPSHOT: Device path=/dev/video11 fd=25 opened
device/buffer_list.c: SNAPSHOT:output:mplane: Using: 1920x1088/NV12, buffers=3, bytesperline=1920, sizeimage=3.0MiB
device/buffer_list.c: SNAPSHOT:output:mplane: Opened 3 buffers. Memory used: 0.0 MiB
device/buffer_list.c: SNAPSHOT:capture:mplane: Using: 1920x1088/MJPG, buffers=3, bytesperline=0, sizeimage=0.8MiB
device/buffer_list.c: SNAPSHOT:capture:mplane: Opened 3 buffers. Memory used: 2.2 MiB
device/device.c: CAMERA: Setting frame interval_us=0 for FPS=30
device/buffer_list.c: CAMERA:capture: Streaming started... Was 0 of 3 enqueud
device/v4l2/device_options.c: CAMERA: The 'AfTrigger=1' was failed to find.
device/v4l2/device_options.c: SNAPSHOT: The 'compression_quality=80' was failed to find.
device/links.c: ?: Link 0: CAMERA:capture[1920x1080/H264/3] => [DECODER:output:mplane[1920x1080/H264/3], VIDEO-CAPTURE]
device/links.c: ?: Link 1: DECODER:capture:mplane[1920x1088/NV12/3] => [SNAPSHOT:output:mplane[1920x1088/NV12/3]]
device/links.c: ?: Link 2: SNAPSHOT:capture:mplane[1920x1088/MJPG/3] => [SNAPSHOT-CAPTURE, STREAM-CAPTURE]
device/buffer_list.c: DECODER:output:mplane: Streaming started... Was 0 of 3 enqueud
device/buffer_list.c: DECODER:capture:mplane: Streaming started... Was 0 of 3 enqueud
device/buffer_list.c: SNAPSHOT:output:mplane: Streaming started... Was 0 of 3 enqueud
device/buffer_list.c: SNAPSHOT:capture:mplane: Streaming started... Was 0 of 3 enqueud
util/http/http.c: HTTP8080/0: Client connected 192.168.0.128 (fd=4).
util/http/http.c: HTTP8080/0: Request 'GET' '/stream' ''
util/http/http.c: HTTP8080/1: Client connected 192.168.0.128 (fd=5).
util/http/http.c: HTTP8080/0: Client disconnected 192.168.0.128.
util/http/http.c: HTTP8080/1: Client disconnected 192.168.0.128.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions