Conversation

Jarkko Sakkinen

I wonder if a kselftest written with Python can depend on GStreamer? I.e. check and skip on failure.

I'm almost done converting the demo shown in my screencast from bash and fmpeg to python and gstreamer [1]. There has been bunch of blockers, like for example getting Python bindings compile in my BuildRoot environment (stable version bump helped).

One final peace that I was missing was how to pass a file descriptor to GStreamer pipeline but here it is:

https://gstreamer.freedesktop.org/documentation/coreelements/fdsrc.html

So... 1.5 weeks of scratching my head but this all work was absolutely required before making the breaking API change to the driver code (i.e. return file descriptor to an anoymous inode in the ioctl instead of writing to /dev/video0).

Now I need only a small tweak to the test program when I test that kernel change. FINALLY ready to go back to the fun i.e. kernel hacking ;-)

[1] https://social.kernel.org/notice/ApXBpAVuAyGBmcPye8

#linux #kernel #gstreamer #python #buildroot
1
3
1

Jarkko Sakkinen

Edited 15 days ago
The API change itself: takes me about 20 - 40 minutes but it just has quite a few routes for failure ;-)
0
0
0