Find the answer to your Linux question:
Results 1 to 7 of 7
Hi all, I am new to the forum, and to Linux also... As I understand ALSA is the API for audio. I am wondering what is the equivalent API for ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Dec 2010
    Posts
    7

    Alsa for Audio, what is it for Video?


    Hi all,

    I am new to the forum, and to Linux also...

    As I understand ALSA is the API for audio. I am wondering what is the equivalent API for video? Is it UVC? Basically I am starting to work on some VoIP stuff...

    Thanks for the help.

  2. #2
    Just Joined!
    Join Date
    Oct 2009
    Posts
    5
    Well, I am a newbie too, but unless I misunderstand your question, I believe it's opengl for 3D accel. (Can be used for 2D as well, of course.)

  3. #3
    Just Joined!
    Join Date
    Dec 2010
    Posts
    7
    From what I understand about OpenGL is that it is like DirectX on Windows. I dont think it is what I am looking for...

    Thanks for the input, though.

  4. #4
    Linux User Manko10's Avatar
    Join Date
    Sep 2010
    Posts
    250
    There is no one graphics framework.
    Drivers for the graphics cards are built as kernel modules or directly into the kernel.
    Support for graphical output is also partially built into the kernel, such as basic terminal text output, some framebuffer functions etc. The main graphics API, which is used to render your graphical desktop environment, is provided by X, which is an external component. OpenGL is a platform independent graphics framework for hardware accelerated (3D) graphics, comparable to DirectX. Graphics cards have to support OpenGL in order to use it.
    Refining Linux Advent calendar: 24 Outstanding ZSH Gems

  5. #5
    Just Joined!
    Join Date
    Dec 2010
    Posts
    7
    I will make myself a bit more clear.

    For example, with ALSA, I can get the number of sound card with snd_card_next() function. So how do I get the video capture devices, i.e. usb video cameras?

    Thanks!

  6. #6
    Just Joined!
    Join Date
    Oct 2009
    Posts
    5
    Ah, you're talking about C programming? In that case, try video4linux here: linux.bytesex.org/v4l2/index.html

    I'm sure you can find other references too.

    Also v4l2spec.bytesex.org/spec/book1.htm

  7. #7
    Just Joined!
    Join Date
    Dec 2010
    Posts
    7
    Thanks! This seems to be much closer to what I need!

    So where does UVC (USB Video Class) comes into play? Is it some layer written over video4linux? Or are they replace-able by each other?

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •