8000 libcamera for raspberry pi configuration · Issue #1426 · homebridge-plugins/homebridge-camera-ffmpeg · GitHub
[go: up one dir, main page]

Skip to content
libcamera for raspberry pi configuration #1426
Open
@nsayer

Description

@nsayer

Manufacturer/Model:

Raspberry Pi camera with the new libcamera support enabled.

This allows you to use the tuning files for noir cameras (among other things).

It's a particularly ugly hack - you use a shell script that pipes the output of either libcamera-vid or libcamera-jpeg into ffmpeg

Homebridge Config:

"videoConfig": {
                        "videoProcessor": "/path_to_bin_directory/fakeffmpeg",
                        "source": "video -video_size 1640x1232 -framerate 30 -input_format h264",
                        "stillImageSource": "still -video_size 1640x1232 -input_format mjpeg",
                        "maxStreams": 1,
                        "maxWidth": 1640,
                        "maxHeight": 1232,
                        "maxFPS": 30,
                        "vcodec": "copy"
                    }

Additional Information:

This is the fakeffmpeg script:

#! /bin/sh

killall libcamera-vid
option=$1; shift
if [ $option = video ]; then
exec libcamera-vid -n --tuning-file /usr/share/libcamera/ipa/rpi/vc4/imx219_noir.json --width 1640 --height 1232 -t 0 -o - | ffmpeg -i - $@
elif [ $option = still ]; then
exec libcamera-jpeg -n --tuning-file /usr/share/libcamera/ipa/rpi/vc4/imx219_noir.json --width 1640 --height 1232 -t 1 -o - | ffmpeg -i - $@
else
exec ffmpeg $option $@
fi

Metadata

Metadata

Assignees

No one assigned

    Labels

    tested configA new tested configuration

    Type

    No type
    < 31AD div class="Box-sc-g0xbh4-0 gMMrYE">

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0