*** gkiagia has quit IRC | 06:35 | |
*** jbpons has joined #automotive | 06:39 | |
*** gkiagia has joined #automotive | 06:41 | |
*** vrubiolo1 has joined #automotive | 07:14 | |
*** jobol has joined #automotive | 07:19 | |
*** jobol has left #automotive | 07:19 | |
*** jbpons has quit IRC | 07:27 | |
*** leon-anavi has joined #automotive | 07:47 | |
*** jbpons has joined #automotive | 07:53 | |
leon-anavi | hi | 07:56 |
---|---|---|
*** anjumkaiser has joined #automotive | 07:59 | |
jbpons | Hi all ! | 08:00 |
jbpons | I tried to print the viewfinder of my PiCam connected to my RPI3 with "gst-launch-1.0 camerabin" but the viewfinder still all black. I have an error that show that the file "pipewire-0" (a socket) is missing in /run/user/0. Someone has more information to try to solve this ? | 08:04 |
smurray | jbpons: when you say "print", what do you mean, exactly, just an image capture? | 08:13 |
*** anjumkaiser has quit IRC | 08:17 | |
jbpons | No I want to have a video feedback | 08:18 |
smurray | jbpons: you'll probably need help from mvlad | 08:19 |
jbpons | I didn't precise but I'm working with Halibut version | 08:20 |
smurray | okay. Getting video from gstreamer displayed in an app is going to be somewhat involved with the old windowmanager. mvlad is probably still your best bet there | 08:21 |
jbpons | Ok ! Thanks smurray | 08:24 |
smurray | jbpons: I've done some hackery to stream video in the cluster demo, but it's a bit specialized, if you want to have the video displayed inside an app with controls, it will take some work | 08:28 |
*** jbpons has quit IRC | 08:34 | |
* mvlad scratches head | 08:36 | |
mvlad | I wonder what that viewfinder actually is. | 08:36 |
smurray | mvlad: oops, he quit | 08:37 |
mvlad | yeah, I imagine he's trying to do some streaming. I have a few cameras around but haven't got the time to test them out. Halibut is quite old is it not? Do we have some LTS or something similar? | 08:54 |
smurray | mvlad: halibut is ~1 year old, I believe it's technically out of support due to Jellyfish being released. There is no LTS | 09:01 |
*** leon-anavi has quit IRC | 09:04 | |
*** leon-anavi has joined #automotive | 09:05 | |
*** Tartarus has quit IRC | 09:25 | |
*** Tartarus has joined #automotive | 09:27 | |
*** jbpons has joined #automotive | 09:42 | |
jbpons | mvlad: sorry I lost my connexion. To be more precise, I want to run this example : https://doc.qt.io/qt-5/qml-qtmultimedia-camera.html#details | 09:44 |
jbpons | I had to add (with Yocto) QtMultimedia module and the "camerabin" GStreamer plug-in because QtMultimedia need it | 09:46 |
jbpons | When I start my app, I have a black rectangle | 09:46 |
smurray | hrm, qtmultimedia has more of a chance of working. It's possible the issue is more along the lines of the app not having permissions to use the camera device | 09:48 |
jbpons | I see | 09:49 |
jbpons | There are a permission that I can add to my widget ? | 09:49 |
jbpons | Which is strange is that the command "gst-launch-1.0 camera" (which display the video feedback) didn't need this permission | 09:55 |
jbpons | And it didn't work too | 09:55 |
smurray | with ivi-shell, I've no idea what happens if you just run gst-launch on the command-line, the surface might be visible | 09:59 |
smurray | err, might not be | 09:59 |
smurray | if you got a surface and it was black, I've no good ideas, tbh. Look in the journalctl output for audit messages indicating permissions problems | 09:59 |
smurray | the other thing would be to increase the gstreamer debug logging to max and see if something sticks out | 10:00 |
mvlad | there seems to be urn:AGL:permission:camera from that I see. urn:AGL:permission:camera:public:take:front and a take:back | 10:00 |
mvlad | found those in a pdf presentation from jose | 10:01 |
jbpons | smurray: I have this error message when I use the gst-launch-1.0 command : [E][000000269.588354][remote.c:91 pw_remote_update_state()] remote 0x794b30: update state from connecting -> error (connect failed No such file or directory) | 10:04 |
jbpons | It seems to be caused by a "connect" system call : connect(28, {sa_family=AF_UNIX, sun_path="/run/user/0/pipewire-0"}, 25) = -1 ENOENT (No such file or directory) | 10:04 |
jbpons | The file /run/user/0/pipewire doesn't exist | 10:05 |
jbpons | mvlad: I will try ! | 10:05 |
mvlad | https://iot.bzh/images/public/2019/ENSTA/embedded-security-AGL.pdf, page 67 | 10:07 |
mvlad | not really sure what pipewire has to do with it, when launching that gstreamer pipeline. | 10:08 |
jbpons | mvlad: Ok ! I will try later to add the permission you gave mee | 10:09 |
jbpons | Thank you smurry and mvlad for your answers | 10:10 |
jbpons | *smurray | 10:10 |
smurray | mvlad: I don't believe that camera permission does anything, but I could be wrong | 10:14 |
*** jbpons has quit IRC | 10:15 | |
*** jbpons has joined #automotive | 10:17 | |
jbpons | Yes me too but I will try | 10:17 |
mvlad | jbpons: it might be more helpful if you could pastebin the whole journalctl, both w/ qmultimedia, and the gstreamer one. | 10:18 |
smurray | I can confirm that camera permission is not implemented | 10:19 |
smurray | if there's a camera device that is needed, then a udev rule is likely needed to chgrp it to the "display" group | 10:20 |
smurray | and set the SMACK label, likely | 10:21 |
smurray | see e.g. the rules installed by meta-agl/meta-agl-profile-graphical/recipes-graphics/wayland/weston-init.bbappend | 10:22 |
smurray | there's something similar for radio device i2c node access | 10:23 |
*** vrubiolo1 is now known as vrubiolo | 11:24 | |
jbpons | mvlad: QtMultimedia ==> https://framabin.org/p/?b3054ad37f239ae5#VsFdcRe1F4RRawDQxxxZwwrAyPU6e3iwhBdFpjDT44g= | 11:57 |
jbpons | gstreamer ==> https://framabin.org/p/?8a49b2843b2c3115#oavF3mL2qksW7SwH/fCvxV47fT/j5qnPrh302pFbZYg= | 11:58 |
jbpons | The gstreamer comand doesn't print anything in the journalctl | 11:59 |
jbpons | I didn't put all the journalctl for QtMultimedia. All journalctl is here : https://framabin.org/p/?84fb123ad688a964#1R2UgaZO7MjWIzbW0KPQtSsOlijd9UVZbJHm/66ZVn4= | 12:02 |
*** jbpons has quit IRC | 12:29 | |
*** jbpons has joined #automotive | 12:33 | |
*** leon-anavi has quit IRC | 13:04 | |
*** leon-anavi has joined #automotive | 13:05 | |
*** jbpons has quit IRC | 13:08 | |
*** jbpons has joined #automotive | 13:10 | |
*** thaytan has quit IRC | 13:18 | |
*** thaytan has joined #automotive | 13:19 | |
*** jbpons has quit IRC | 14:04 | |
*** jbpons has joined #automotive | 14:26 | |
*** psnsilva has joined #automotive | 14:40 | |
*** Newami has joined #automotive | 14:55 | |
*** jbpons has quit IRC | 15:40 | |
*** con3 has joined #automotive | 15:51 | |
*** anjumkaiser has joined #automotive | 19:26 | |
*** Newami has quit IRC | 20:16 | |
*** leon-anavi has quit IRC | 20:57 | |
*** leon-anavi has joined #automotive | 20:57 | |
*** Newami has joined #automotive | 22:23 | |
*** anjumkaiser has quit IRC | 22:24 | |
*** Newami has quit IRC | 22:25 | |
*** leon-anavi has quit IRC | 23:02 |
Generated by irclog2html.py 2.15.3 by Marius Gedminas - find it at mg.pov.lt!