IRC logs for #automotive for Thursday, 2020-10-08

*** gkiagia has quit IRC06:35
*** jbpons has joined #automotive06:39
*** gkiagia has joined #automotive06:41
*** vrubiolo1 has joined #automotive07:14
*** jobol has joined #automotive07:19
*** jobol has left #automotive07:19
*** jbpons has quit IRC07:27
*** leon-anavi has joined #automotive07:47
*** jbpons has joined #automotive07:53
leon-anavihi07:56
*** anjumkaiser has joined #automotive07:59
jbponsHi all !08:00
jbponsI 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
smurrayjbpons: when you say "print", what do you mean, exactly, just an image capture?08:13
*** anjumkaiser has quit IRC08:17
jbponsNo I want to have a video feedback08:18
smurrayjbpons: you'll probably need help from mvlad08:19
jbponsI didn't precise but I'm working with Halibut version08:20
smurrayokay.  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 there08:21
jbponsOk ! Thanks smurray08:24
smurrayjbpons: 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 work08:28
*** jbpons has quit IRC08:34
* mvlad scratches head08:36
mvladI wonder what that viewfinder actually is.08:36
smurraymvlad: oops, he quit08:37
mvladyeah, 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
smurraymvlad: halibut is ~1 year old, I believe it's technically out of support due to Jellyfish being released.  There is no LTS09:01
*** leon-anavi has quit IRC09:04
*** leon-anavi has joined #automotive09:05
*** Tartarus has quit IRC09:25
*** Tartarus has joined #automotive09:27
*** jbpons has joined #automotive09:42
jbponsmvlad: 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#details09:44
jbponsI had to add (with Yocto) QtMultimedia module and the "camerabin" GStreamer plug-in because QtMultimedia need it09:46
jbponsWhen I start my app, I have a black rectangle09:46
smurrayhrm, 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 device09:48
jbponsI see09:49
jbponsThere are a permission that I can add to my widget ?09:49
jbponsWhich is strange is that the command "gst-launch-1.0 camera" (which display the video feedback) didn't need this permission09:55
jbponsAnd it didn't work too09:55
smurraywith ivi-shell, I've no idea what happens if you just run gst-launch on the command-line, the surface might be visible09:59
smurrayerr, might not be09:59
smurrayif you got a surface and it was black, I've no good ideas, tbh.  Look in the journalctl output for audit messages indicating permissions problems09:59
smurraythe other thing would be to increase the gstreamer debug logging to max and see if something sticks out10:00
mvladthere seems to be urn:AGL:permission:camera from that I see. urn:AGL:permission:camera:public:take:front and a take:back10:00
mvladfound those in a pdf presentation from jose10:01
jbponssmurray: 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
jbponsIt 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
jbponsThe file /run/user/0/pipewire doesn't exist10:05
jbponsmvlad: I will try !10:05
mvladhttps://iot.bzh/images/public/2019/ENSTA/embedded-security-AGL.pdf, page 6710:07
mvladnot really sure what pipewire has to do with it, when launching that gstreamer pipeline.10:08
jbponsmvlad: Ok ! I will try later to add the permission you gave mee10:09
jbponsThank you smurry and mvlad for your answers10:10
jbpons*smurray10:10
smurraymvlad: I don't believe that camera permission does anything, but I could be wrong10:14
*** jbpons has quit IRC10:15
*** jbpons has joined #automotive10:17
jbponsYes me too but I will try10:17
mvladjbpons: it might be more helpful if you could pastebin the whole journalctl, both w/ qmultimedia, and the gstreamer one.10:18
smurrayI can confirm that camera permission is not implemented10:19
smurrayif there's a camera device that is needed, then a udev rule is likely needed to chgrp it to the "display" group10:20
smurrayand set the SMACK label, likely10:21
smurraysee e.g. the rules installed by meta-agl/meta-agl-profile-graphical/recipes-graphics/wayland/weston-init.bbappend10:22
smurraythere's something similar for radio device i2c node access10:23
*** vrubiolo1 is now known as vrubiolo11:24
jbponsmvlad: QtMultimedia ==> https://framabin.org/p/?b3054ad37f239ae5#VsFdcRe1F4RRawDQxxxZwwrAyPU6e3iwhBdFpjDT44g=11:57
jbponsgstreamer ==> https://framabin.org/p/?8a49b2843b2c3115#oavF3mL2qksW7SwH/fCvxV47fT/j5qnPrh302pFbZYg=11:58
jbponsThe gstreamer comand doesn't print anything in the journalctl11:59
jbponsI didn't put all the journalctl for QtMultimedia. All journalctl is here : https://framabin.org/p/?84fb123ad688a964#1R2UgaZO7MjWIzbW0KPQtSsOlijd9UVZbJHm/66ZVn4=12:02
*** jbpons has quit IRC12:29
*** jbpons has joined #automotive12:33
*** leon-anavi has quit IRC13:04
*** leon-anavi has joined #automotive13:05
*** jbpons has quit IRC13:08
*** jbpons has joined #automotive13:10
*** thaytan has quit IRC13:18
*** thaytan has joined #automotive13:19
*** jbpons has quit IRC14:04
*** jbpons has joined #automotive14:26
*** psnsilva has joined #automotive14:40
*** Newami has joined #automotive14:55
*** jbpons has quit IRC15:40
*** con3 has joined #automotive15:51
*** anjumkaiser has joined #automotive19:26
*** Newami has quit IRC20:16
*** leon-anavi has quit IRC20:57
*** leon-anavi has joined #automotive20:57
*** Newami has joined #automotive22:23
*** anjumkaiser has quit IRC22:24
*** Newami has quit IRC22:25
*** leon-anavi has quit IRC23:02

Generated by irclog2html.py 2.15.3 by Marius Gedminas - find it at mg.pov.lt!