GNOME Bugzilla – Bug 168728
[v4lsrc] Support for v4l radio (patch included)
Last modified: 2005-03-31 21:48:25 UTC
It would be nice to include the following plugin
Created attachment 38036 [details] tar.gz with sources and patch
Example of it's usage gst-launch v4lradio frequency=103700000 \( osssrc \) ! osssink
Cool! I'll look at this sometime soon.
This patch is pretty good, I have to admit. I'm surprised you were able to integrate the tuner interface so easily. Here's a few small comments: * I'm ok with putting the plugin in its own dir (sys/v4lradio/), but I'd like its configure stuff to be shared with v4l. So in Makefile.am, use: if: if USE_V4L v4ldir = v4l v4lradio else v4ldir= fi I hope you understand why: it's easier to maintain. * Is it possible to autodetect which oss/alsa device belongs with it? It may be slightly painful for applications to auto-support this. I'm not very familiar with the radio part of v4l, so it's kinda hard to say for me myself. * A sample application would be sooooooooooooooo cool, basically GNOME radio. Has to be possible in ~100 lines of python with this element. do you have something like that? Thanks! I'll try to integrate this one of the next few days.
Thank you, just because you've done most part of work. > I hope you understand why: it's easier to maintain. No problem, it's even better. >Is it possible to autodetect which oss/alsa device belongs with it? It may be slightly painful for applications to auto-support this. I'm not very familiar with the radio part of v4l, so it's kinda hard to say for me myself. Well, I think it can be future work in this area. There are some things left unimplemented, like stereo support and searching. But if there would be start, there will be no problem to develop it further. Also it would be nice for container to detect mixer interface in child and set up record source apropriately. > A sample application would be sooooooooooooooo cool, basically GNOME radio. Has to be possible in ~100 lines of python with this element. do you have something like that? Bug 168735 has patch that adds v4l radio funtionality for rhythmbox with v4lradio plugin. I hope it can be considered like sample app. Hope, it will be reviewed and applied sometime.
Wow, yes, Rhythmbox is perfect as a sample app, much better even. I'd suggest adding a small pointer to Rhythmbox in the README in the video4linux sourcedir, for those wanting to write their own. I'll do that myself. ;). I'll try to implement this sometime soon, it's well-written and well, we'll add device detection later on or so. You're correct there.
It's committed, thanks for the initial work, great job! Feel free to do any of the stuff outlines above, but this is great already.