V4l(2) Api

This is a discussion on V4l(2) Api within the Networking/Device Communication forums, part of the General Programming Boards category; Hey I have a new project, basically I'm making some PVR software, similar to Tivo. A question has occured though ...

  1. #1
    Registered User
    Join Date
    Feb 2005
    Posts
    23

    V4l(2) Api Questions

    Hey I have a new project, basically I'm making some PVR software, similar to Tivo. A question has occured though as I was going through the V4L and V4L2 Api specs...

    I Have 4 questions, I would be very grateful if any of them were answered:

    1. If I have a hardware based MPEG2 encoder in my PVR card, then how do I interact with the device? i.e. Do I just read from it and I get and MPEG2 encoded video stream from it? Do I still only catch frames, but have an extra ioctl() call to encode them??

    2. How do I record sound as part of my tv program? As far as I know V4L can only be used to capture video, however sound is an essential part of a tv program. I need to record that too.

    3. How do I flip through Television Channels? To access the stuff on channel 40, Fox what would I have to do. How can I switch to reading Channel 39, ESPN?

    4. I've read all the documentation that a basic google search brought up. Are there any places where I can find more info?

    Thank you VERY, VERY much in advance.
    Last edited by peradox; 09-02-2005 at 08:57 PM.

  2. #2
    Registered User
    Join Date
    Nov 2002
    Posts
    491
    Have you checked out the MythTV or FreeVo code? Most of your questions are dependent on what hardware you are using, which you didn't provide. This sounds like it might be a more complex project than you realize.

  3. #3
    Registered User
    Join Date
    Feb 2005
    Posts
    23
    I know this will be complex. I've checked out the source but it's so much that I can't find the relevant parts. I don't want all the stuff they have. I just want to read from the device and save it in mpeg2. Which is already big enough for me. I also thought that the v4l API works with every compliant card the same way...

  4. #4
    Registered User
    Join Date
    Nov 2002
    Posts
    491
    Well those applications have the information you desire. And given the complexity of the task it will obviously take some work to figure it out and write it. It shouldn't be *that* hard to dissect one of those programs sources to figure out which parts are relevant to you, atleast not that hard compared to writing it.

  5. #5
    Registered User
    Join Date
    Feb 2005
    Posts
    23
    Yeah. Well thanks for the help. Anyone else?

  6. #6
    Registered User
    Join Date
    Nov 2002
    Posts
    491
    Well I'm sorry my answers aren't making your life easier, but your project is quite complex so don't expect anyone to magically make it easier.

  7. #7
    Registered User
    Join Date
    Feb 2005
    Posts
    23
    I'm not looking for magic answers, nor do i not realize how complex and time-consuming this project will be. I also didn't want to dismiss you. Sorry for any misunderstandings.



    EDIT: I have answers to Qs 2 and 4 now...
    Last edited by peradox; 09-03-2005 at 11:24 PM.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Want to learn Windows API for Game Programming
    By George M. in forum Windows Programming
    Replies: 15
    Last Post: 09-28-2008, 10:26 AM
  2. FILES in WinAPI
    By Garfield in forum Windows Programming
    Replies: 46
    Last Post: 10-02-2003, 06:51 PM
  3. OLE Clipboard :: Win32 API vs. MFC
    By kuphryn in forum Windows Programming
    Replies: 3
    Last Post: 08-11-2002, 05:57 PM
  4. Is it foolish to program with Win32 API ?
    By Kelvin in forum Windows Programming
    Replies: 2
    Last Post: 07-09-2002, 02:03 PM
  5. pthread api vs win32 thread api
    By Unregistered in forum Windows Programming
    Replies: 1
    Last Post: 11-20-2001, 07:55 AM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21