[libcamera-devel] How to displace viewfinder using DRM/KMS

Naushir Patuck naush at raspberrypi.com
Thu Oct 21 09:49:05 CEST 2021


Hi Eric,


On Wed, 20 Oct 2021 at 17:06, Eric Curtin <ecurtin at redhat.com> wrote:

> Hi Guys,
>
> To start thanks so much for your work on libcamera.
>
> I am interested in running the cam app via DRM/KMS on my laptop and
> afterwards on my raspberry pi.


Our Raspberry Pi libcamera-apps (
https://github.com/raspberrypi/libcamera-apps/) have support for DRM
display preview if that helps you.
See our documentation page for further details:
https://www.raspberrypi.com/documentation/accessories/camera.html#libcamera-and-libcamera-apps

Thanks,
Naush


> I have figured out how to select the
> correct camera and select the correct display to output to. But how
> can I get them to play nicely together without "No mode matching
> 1280x720", "Failed to configure frame sink", "Failed to start camera
> session", "Unable to find display pipeline for format MJPEG", etc.
>
> I'm a bit of a newbie to graphics and cameras, so any help to get this
> running would be greatly appreciated!
>
> $ sudo LD_LIBRARY_PATH="/usr/local/lib:/usr/local/lib64" cam -c 1 -C4
> -DeDP-1
> [7:12:21.427200555] [75751]  INFO Camera camera_manager.cpp:293
> libcamera v0.0.0+3119-2f75a7e5
> Using camera \_SB_.PCI0.XHC_.RHUB.HS08-8:1.0-13d3:5405 as cam0
> [7:12:21.534685678] [75751]  INFO Camera camera.cpp:937 configuring
> streams: (0) 1280x720-MJPEG
> No mode matching 1280x720
> Failed to configure frame sink
> Failed to start camera session
> curtine at curt 17:00:12 1
> $ sudo LD_LIBRARY_PATH="/usr/local/lib:/usr/local/lib64" cam -c 1 -C4
> -DDP-1
> [7:12:25.392692897] [75760]  INFO Camera camera_manager.cpp:293
> libcamera v0.0.0+3119-2f75a7e5
> Using camera \_SB_.PCI0.XHC_.RHUB.HS08-8:1.0-13d3:5405 as cam0
> [7:12:25.497724802] [75760]  INFO Camera camera.cpp:937 configuring
> streams: (0) 1280x720-MJPEG
> Unable to find display pipeline for format MJPEG
> Failed to configure frame sink
> Failed to start camera session
>
> Is mise le meas/Regards,
>
> Eric Curtin
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.libcamera.org/pipermail/libcamera-devel/attachments/20211021/ee52edd7/attachment-0001.htm>


More information about the libcamera-devel mailing list