Damien, >> This is working, but when I set the window size to be a full screen or >> 1920x1200 it seems, that video is dropping frames, although the CPU >> is loaded up to 30% only. > > Right, so at this point it seems like you are GPU bound, ie the YUV->RGB > shader at 1920x1200 is bringing your GPU to its knees.
But, if I use MPlayer it works great, even when in full screen mode, and consumes very little CPU. > Can we know more about your setup? in which kind of YUV are the frames > from the v4l2 device? which GPU are you using? I use a Atom based small PC from viewsonic VOT120. http://www.viewsonic.com/products/vot120-pc-mini.htm According to X11 log it uses 945GME: (II) intel(0): Integrated Graphics Chipset: Intel(R) 945GME (--) intel(0): Chipset: "945GME" >> If I replace the videosink to be xvimagesink the video is always good. >> Am I doing something wrong? >> Is it possible to use xvimagesink instead of clutergst.VideoSink()? > > It's not possible to use xvimagesink with Clutter directly. You could > try to use Xv + GLX_EXT_texture_from_pixmap (through, for instance, > clutter_glx_texture_pixmap_new_with_pixmap ()). How can I do that? Is there a sample available? It is possible also in Python? This is a log from MPlayer, if it helps. If you need any more info, please let me know. Thank you, Matej $ mplayer -v tv:// MPlayer SVN-r29237-4.4.1 (C) 2000-2009 MPlayer Team CPU vendor name: GenuineIntel max cpuid level: 10 CPU: Intel(R) Atom(TM) CPU N270 @ 1.60GHz (Family: 6, Model: 28, Stepping: 2) extended cpuid-level: 8 extended cache-info: 33587264 Detected cache-line size is 64 bytes Testing OS support for SSE... yes. Tests of OS support for SSE passed. CPUflags: MMX: 1 MMX2: 1 3DNow: 0 3DNowExt: 0 SSE: 1 SSE2: 1 SSSE3: 1 Compiled with runtime CPU detection. get_path('codecs.conf') -> '/home/matej/.mplayer/codecs.conf' Reading /home/matej/.mplayer/codecs.conf: Can't open '/home/matej/.mplayer/codecs.conf': No such file or directory Reading /etc/mplayer/codecs.conf: Can't open '/etc/mplayer/codecs.conf': No such file or directory Using built-in default codecs.conf. Configuration: --prefix=/usr --confdir=/etc/mplayer --datadir=/usr/share/mplayer --codecsdir=/usr/lib/codecs --enable-xvmc --enable-vdpau --enable-sdl --enable-ossaudio --enable-lirc --enable-freetype --enable-menu --enable-largefiles --extra-cflags=-I/build/buildd/mplayer-1.0~rc3+svn20090426/debian/include --disable-bitmap-font --disable-ggi --language=all --disable-xmms --disable-arts --disable-aa --disable-mad --disable-musepack --disable-libdv --disable-libavutil_a --disable-libavcodec_a --disable-libavformat_a --disable-libpostproc_a --disable-libswscale_a --enable-mp3lame --enable-faac-lavc --enable-x264-lavc --enable-mp3lame-lavc --enable-libdirac-lavc --enable-libschroedinger-lavc --target=i586-linux --enable-win32dll --enable-real --enable-xanim --enable-runtime-cpudetection --enable-vdpau --disable-libdvdcss-internal --enable-dvdread --enable-debug --enable-tv-v4l2 --enable-xmga --enable-mga --enable-3dfx --enable-tdfxfb --enable-fbdev --disable-gui CommandLine: '-v' 'tv://' init_freetype Using MMX (with tiny bit MMX2) Optimized OnScreenDisplay get_path('fonts') -> '/home/matej/.mplayer/fonts' Using nanosleep() timing get_path('input.conf') -> '/home/matej/.mplayer/input.conf' Can't open input config file /home/matej/.mplayer/input.conf: No such file or directory Parsing input config file /etc/mplayer/input.conf Input config file /etc/mplayer/input.conf parsed: 89 binds Setting up LIRC support... mplayer: could not connect to socket mplayer: No such file or directory Failed to open LIRC support. You will not be able to use your remote control. get_path('.conf') -> '/home/matej/.mplayer/.conf' Playing tv://. get_path('sub/') -> '/home/matej/.mplayer/sub/' STREAM: [tv] tv:// STREAM: Description: TV Input STREAM: Author: Benjamin Zores, Albeu STREAM: Comment: TV file format detected. Selected driver: v4l2 name: Video 4 Linux 2 input author: Martin Olschewski <olschew...@zpr.uni-koeln.de> comment: first try, more to come ;-) Selected device: Hauppauge WinTV USB 2 Tuner cap: STEREO LANG1 LANG2 Tuner rxs: MONO Capabilites: video capture tuner audio read/write streaming supported norms: 0 = NTSC; 1 = NTSC-M; 2 = NTSC-M-JP; 3 = NTSC-M-KR; 4 = NTSC-443; 5 = PAL; 6 = PAL-BG; 7 = PAL-H; 8 = PAL-I; 9 = PAL-DK; 10 = PAL-M; 11 = PAL-N; 12 = PAL-Nc; 13 = PAL-60; 14 = SECAM; 15 = SECAM-B; 16 = SECAM-G; 17 = SECAM-H; 18 = SECAM-DK; 19 = SECAM-L; 20 = SECAM-Lc; inputs: 0 = Television; 1 = S-Video; Current input: 0 Format YUYV (16 bits, 16 bpp YUY2, 4:2:2, packed): Packed YUY2 Format RGB565 (16 bits, 16 bpp RGB 565, LE): BGR 16-bit Format unknown (0x31384142) ( 0 bits, 8 bpp Bayer BGBG..GRGR): Unknown 0x31384142 Format unknown (0x47425247) ( 0 bits, 8 bpp Bayer GRGR..BGBG): Unknown 0x47425247 Format unknown (0x47524247) ( 0 bits, 8 bpp Bayer GBGB..RGRG): Unknown 0x47524247 Format YUV411P (16 bits, 12 bpp YUV411): Planar 411P Current format: YUYV v4l2: current audio mode is : STEREO v4l2: set format: YVU420 v4l2: ioctl set format failed: Invalid argument v4l2: set format: YUV420 v4l2: ioctl set format failed: Invalid argument v4l2: set format: UYVY v4l2: ioctl set format failed: Invalid argument v4l2: set format: YUYV v4l2: set input: 0 Selected norm : pal v4l2: set norm: PAL Selected channel list: europe-east (including 133 channels) Current frequency: 2356000 (147250.000) ==> Found video stream: 0 v4l2: get format: YUYV v4l2: get fps: 25.000000 v4l2: get width: 640 v4l2: get height: 480 Using a ring buffer for maximum 2 frames, 1 MB total size. v4l2: set Brightness: 128 [0, 255] v4l2: set Hue: 0 [-128, 127] v4l2: set Saturation: 128 [0, 255] v4l2: set Contrast: 128 [0, 255] [V] filefmt:9 fourcc:0x32595559 size:640x480 fps:25.000 ftime:=0.0400 get_path('sub/') -> '/home/matej/.mplayer/sub/' open: No such file or directory [MGA] Couldn't open: /dev/mga_vid open: No such file or directory [MGA] Couldn't open: /dev/mga_vid [VO_TDFXFB] Can't open /dev/fb0: Permission denied. [VO_3DFX] Unable to open /dev/3dfx. X11 opening display: :0.0 vo: X11 color mask: FFFFFF (R:FF0000 G:FF00 B:FF) vo: X11 running at 1920x1200 with depth 24 and 32 bpp (":0.0" => local display) [x11] Detected wm supports NetWM. [x11] Detected wm supports FULLSCREEN state. [x11] Detected wm supports ABOVE state. [x11] Detected wm supports BELOW state. [x11] Current fstype setting honours FULLSCREEN ABOVE BELOW X atoms Disabling DPMS DPMSDisable stat: 1 [VO_XV] Using Xv Adapter #0 (Intel(R) Textured Video) [xv common] Drawing no colorkey. [xv common] Maximum source image dimensions: 2048x2048 ========================================================================== Opening video decoder: [raw] RAW Uncompressed Video VDec: vo config request - 640 x 480 (preferred colorspace: Packed YUY2) Trying filter chain: vo VDec: using Packed YUY2 as output csp (no 0) Movie-Aspect is undefined - no prescaling applied. VO Config (640x480->640x480,flags=0,'MPlayer',0x32595559) VO: [xv] 640x480 => 640x480 Packed YUY2 VO: Description: X11/Xv VO: Author: Gerd Knorr <kra...@goldbach.in-berlin.de> and others Xvideo image format: 0x32595559 (YUY2) packed Xvideo image format: 0x32315659 (YV12) planar Xvideo image format: 0x30323449 (I420) planar Xvideo image format: 0x59565955 (UYVY) packed Xvideo image format: 0x434d5658 (XVMC) planar using Xvideo port 67 for hw scaling Selected video codec: [rawyuy2] vfm: raw (RAW YUY2) ========================================================================== Audio: no sound Freeing 0 unused audio chunks. Starting playback... v4l2: going to capture *** [vo] Exporting mp_image_t, 640x480x16bpp YUV packed, 614400 bytes Unicode font: 5025 glyphs. Unicode font: 5025 glyphs. Selected channel: R1 (freq: 49.750)0 Current frequency: 796 (49.750) Selected channel: R2 (freq: 59.250)0 Current frequency: 948 (59.250) Selected channel: R3 (freq: 77.250)0 Current frequency: 1236 (77.250) Selected channel: R4 (freq: 85.250)0 Current frequency: 1364 (85.250) Selected channel: R5 (freq: 93.250)0 Current frequency: 1492 (93.250) Selected channel: R6 (freq: 175.250) Current frequency: 2804 (175.250) Uninit video: raw982 ??% ??% ??,?% 0 0 v4l2: 20984 frames successfully processed, -4 frames dropped. v4l2: up to 2 video frames buffered. Successfully enabled DPMS vo: uninit ... -- To unsubscribe send a mail to clutter+unsubscr...@o-hand.com