V4L and SDL

Hello, everyone!

I develop TV-player based on SDL for Linux.
I need yours suggestions about organization reading and displayng TV in
most optimal ways. At this time my player used about 20% on Athlon
1700XP, and this is very hi percents :frowning: xawtv and kwintv use 1% of
cpu.

I need to display tv-picture in certain place of main window of player.
I use additional RGB surface (SDL_CreateRGBSurface()), and read picture
from tv-tuner to this surface using mmap. After this I call
SDL_BlitSurface() into main surface and call SDL_UpdateRect();

Software:
linux-2.4.22
XFree-4.3.0
SDL-1.2.5

My hardware:
CPU: AMD Athlon 1700XP
Video card: NVidia Gefors4 440MX
TV-Tuner: Avermedia TV (bttv)

Thanks, Vladimir–
Vladimir Davydov
Software Developer
Minsk S/W Development Department
Mob: +375 296 64-94-41

Hello, everyone!

I develop TV-player based on SDL for Linux.
I need yours suggestions about organization reading and displayng TV in
most optimal ways. At this time my player used about 20% on Athlon
1700XP, and this is very hi percents :frowning: xawtv and kwintv use 1% of
cpu.

I need to display tv-picture in certain place of main window of player.
I use additional RGB surface (SDL_CreateRGBSurface()), and read picture
from tv-tuner to this surface using mmap. After this I call
SDL_BlitSurface() into main surface and call SDL_UpdateRect();

Software:
linux-2.4.22
XFree-4.3.0
SDL-1.2.5

My hardware:
CPU: AMD Athlon 1700XP
Video card: NVidia Gefors4 440MX
TV-Tuner: Avermedia TV (bttv)

Thanks, Vladimir–
Vladimir Davydov
Software Developer
Minsk S/W Development Department
Mob: +375 296 64-94-41

Hello, everyone!

I develop TV-player based on SDL for Linux.
I need yours suggestions about organization reading and displayng TV in
most optimal ways. At this time my player used about 20% on Athlon
1700XP, and this is very hi percents :frowning: xawtv and kwintv use 1% of
cpu.

I need to display tv-picture in certain place of main window of player.
I use additional RGB surface (SDL_CreateRGBSurface()), and read picture
from tv-tuner to this surface using mmap. After this I call
SDL_BlitSurface() into main surface and call SDL_UpdateRect();

Software:
linux-2.4.22
XFree-4.3.0
SDL-1.2.5

My hardware:
CPU: AMD Athlon 1700XP
Video card: NVidia Gefors4 440MX
TV-Tuner: Avermedia TV (bttv)

Thanks, Vladimir–
Vladimir Davydov
Software Developer
Minsk S/W Development Department
Mob: +375 296 64-94-41

Hello, everyone!

I develop TV-player based on SDL for Linux.
I need yours suggestions about organization reading and displayng TV in
most optimal ways. At this time my player used about 20% on Athlon
1700XP, and this is very hi percents :frowning: xawtv and kwintv use 1% of
cpu.

I need to display tv-picture in certain place of main window of player.
I use additional RGB surface (SDL_CreateRGBSurface()), and read picture
from tv-tuner to this surface using mmap. After this I call
SDL_BlitSurface() into main surface and call SDL_UpdateRect();

Software:
linux-2.4.22
XFree-4.3.0
SDL-1.2.5

My hardware:
CPU: AMD Athlon 1700XP
Video card: NVidia Gefors4 440MX
TV-Tuner: Avermedia TV (bttv)

Thanks, Vladimir–
Vladimir Davydov
Software Developer
Minsk S/W Development Department
Mob: +375 296 64-94-41

Hello, everyone!

I develop TV-player based on SDL for Linux.
I need yours suggestions about organization reading and displayng TV in
most optimal ways. At this time my player used about 20% on Athlon
1700XP, and this is very hi percents :frowning: xawtv and kwintv use 1% of
cpu.

I need to display tv-picture in certain place of main window of player.
I use additional RGB surface (SDL_CreateRGBSurface()), and read picture
from tv-tuner to this surface using mmap. After this I call
SDL_BlitSurface() into main surface and call SDL_UpdateRect();

Software:
linux-2.4.22
XFree-4.3.0
SDL-1.2.5

My hardware:
CPU: AMD Athlon 1700XP
Video card: NVidia Gefors4 440MX
TV-Tuner: Avermedia TV (bttv)

Thanks, Vladimir–
Vladimir Davydov
Software Developer
Minsk S/W Development Department
Mob: +375 296 64-94-41

There are a number of ways to get to video capture devices in Linux. Most
support an “overlay” mode, were they don’t use any CPU at all. These types
of cards write the image directly to the video card, and don’t require
anything other than a couple of configuration calls. I have used both this
form, and the DMA to memory method. Both are well documented in the
Video4Linux documentation.

The V4L drivers often support hardware converstion of data when sending the
image to the screen and to memory. If you want to continue to use the
current DMA and Blit method, make sure the SDL surface is the same format
as the screen, and that the video device is configured to provide the image
in exactly that format.

Also, remember that video can take much more time than you might expect. A
full color TV quality quality video adds up to almost 400 megs of data per
second.

James Best

                      "Vladimir Davydov"                                                              
                      <vladimir at iqmedia.com>   T                                                      
                      Sent by:                 cc:                                                    
                      sdl-admin at libsdl.org                                                            
                                               bcc:                                                   
                                               Subject:                                               
                                               [SDL] V4L and SDL...                                   
                      09/18/03 09:18 AM                                                               
                      Please respond to sdl                                                           

Hello, everyone!

I develop TV-player based on SDL for Linux.
I need yours suggestions about organization reading and displayng TV in
most optimal ways. At this time my player used about 20% on Athlon
1700XP, and this is very hi percents :frowning: xawtv and kwintv use 1% of
cpu.

I need to display tv-picture in certain place of main window of player.
I use additional RGB surface (SDL_CreateRGBSurface()), and read picture
from tv-tuner to this surface using mmap. After this I call
SDL_BlitSurface() into main surface and call SDL_UpdateRect();

Software:
linux-2.4.22
XFree-4.3.0
SDL-1.2.5

My hardware:
CPU: AMD Athlon 1700XP
Video card: NVidia Gefors4 440MX
TV-Tuner: Avermedia TV (bttv)

Thanks, VladimirTo: sdl at libsdl.org

–
Vladimir Davydov
Software Developer
Minsk S/W Development Department
Mob: +375 296 64-94-41


SDL mailing list
SDL at libsdl.org
http://www.libsdl.org/mailman/listinfo/sdl