Use camera on linphonec ( RPi4 64-bit & NoIR v2 camera)

The Raspberry Pi is a series of credit card-sized single-board computers developed in the United Kingdom by the Raspberry Pi Foundation to promote the teaching of basic computer science in schools and developing countries.

Post Reply
User avatar
/RaspberryPi
Corporate
Posts: 2449
Joined: Wed Jun 05, 2019 1:29 am

Use camera on linphonec ( RPi4 64-bit & NoIR v2 camera)

Post by /RaspberryPi »

Hi all!
I'm struggling to use a camera for video call using linphonec (for intercom project).
I got the camera enabled, and I can test it with picamera2, libcamera, etc. (e.g., online streaming or taking pictures and recording video). Within linphonec, I have ensured that "webcam use 0" is issues, so that camera in use is /dev/video0.Still, no dice... :(
Anyone got linphonec to send video?
Logs:
[INDENT] linphonec> webcam list
0: V4L2: /dev/video0
1: StaticImage: Static picture
[/INDENT] After starting a call:
[INDENT] 2022-07-29 22:43:13:870 mediastreamer-error-No compatible format found
2022-07-29 22:43:13:870 mediastreamer-error-No compatible format found
2022-07-29 22:43:13:870 mediastreamer-error-No compatible format found
2022-07-29 22:43:13:870 mediastreamer-error-No compatible format found
2022-07-29 22:43:13:870 mediastreamer-error-VIDIOC_S_FMT failed: Device or resource busy. Read-only driver maybe ?
2022-07-29 22:43:13:871 mediastreamer-error-Error requesting info on mmap'd buffers: Device or resource busy
Media streams established with [sip:anthonws@sip.linphone.org](mailto:sip:anthonws@sip.linphone.org) for call 2 (video).
2022-07-29 22:43:18:441 mediastreamer-error-Camera is not delivering any frames over last 5 seconds, switching to no-webcam placeholder.
2022-07-29 22:43:18:441 mediastreamer-error-Cannot load /usr/share/images/nowebcamCIF.jpg
[/INDENT] EDIT:
Looks like dmesg gives me this:
unicam fe801000.csi: Failed to start media pipeline: -22 I also get this error in linphonec:
2022-07-29 22:59:36:129 mediastreamer-error-VIDIOC_STREAMON failed: Invalid argument ​

submitted by /u/anthonws
[link] [comments]

More...
Post Reply

Return to “Raspberry Pi Forum”