-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Hello everybody, The last 7 days I have been trying very hard to get a live recording system to work in several ways with mplayer and mencoder. I have some killer issue, I have 2MP+ devices that are streaming trough v4l2 and I want to be able to watch them and/or record the streams. The most simple command I can think of for testing this: $ mplayer -identify -benchmark -v tv:// -tv driver=v4l2:device=/dev/video1:width=800:height=600:fps=25 The devices are capable to produce high resolution stream and fps, I tested this with GUI tools like VLC and Guvciewer but I want/need to use mplayer. Please see the (watch0.log and versio0.log) for the details. Mplayer renders the video but wont go higher then 640x480 with 15fps, does somebody knows what is going wrong and how to fix this? Thanks in advance for any help, Best regards, Jelle de Jong -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.9 (GNU/Linux) iJwEAQECAAYFAkm9EYsACgkQ1WclBW9j5Hld/QP/SiW6oevIJH5vZ6yzLDkSRciQ 7GpN+60PVV2IRnDYDYhUcR57Q1zlE9K1Za6L5kNHLIwVoaFIgfH86O2gnvak1LNr F4Tf+1gS83x3TmpuhutPiZfWpFYqj30sHsbTKmo0NEO6bMGQETLBW0TjoRUOandm 57tCIO+VG+9SMPwmfsA= =jgeQ -----END PGP SIGNATURE-----
$ mplayer -identify -benchmark -v tv:// -tv driver=v4l2:device=/dev/video1:width=800:height=600:fps=25 MPlayer dev-SVN-r28785CPU vendor name: GenuineIntel max cpuid level: 2 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/jelle/.mplayer/codecs.conf' Reading /home/jelle/.mplayer/codecs.conf: Can't open '/home/jelle/.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 --enable-xmga --enable-mga --enable-joystick --disable-tremor-internal --language=all --enable-largefiles --enable-menu --disable-libdvdcss-internal --enable-radio --enable-radio-capture --enable-xvmc --with-xvmclib=XvMCW --enable-win32dll --enable-tdfxfb --enable-s3fb --realcodecsdir=/usr/lib/codecs --xanimcodecsdir=/usr/lib/codecs --enable-gui --enable-runtime-cpudetection CommandLine: '-identify' '-benchmark' '-v' 'tv://' '-tv' 'driver=v4l2:device=/dev/video1:width=800:height=600:fps=25' init_freetype Using MMX (with tiny bit MMX2) Optimized OnScreenDisplay get_path('fonts') -> '/home/jelle/.mplayer/fonts' Using nanosleep() timing get_path('input.conf') -> '/home/jelle/.mplayer/input.conf' Can't open input config file /home/jelle/.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 Opening joystick device /dev/input/js0 Can't open joystick device /dev/input/js0: No such file or directory Can't init input joystick 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/jelle/.mplayer/.conf' Playing tv://. get_path('sub/') -> '/home/jelle/.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 <olschewski@xxxxxxxxxxxxxxxx> comment: first try, more to come ;-) v4l2: your device driver does not support VIDIOC_G_STD ioctl, VIDIOC_G_PARM was used instead. Selected device: UVC Camera (046d:0994) Capabilites: video capture streaming supported norms: inputs: 0 = Camera 1; Current input: 0 Format MJPEG ( 0 bits, MJPEG): Unknown 0x47504a4d Format YUYV (16 bits, YUV 4:2:2 (YUYV)): Packed YUY2 Current format: YUYV 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 tv.c: norm_from_string(pal): Bogus norm parameter, setting default. Selected norm : pal v4l2: ioctl enum norm failed: Invalid argument Error: Cannot set norm! v4l2: set width: 800 v4l2: set height: 600 Selected input hasn't got a tuner! ==> Found video stream: 0 ID_VIDEO_ID=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: ioctl set mute failed: Invalid argument v4l2: set Brightness: 128 [0, 255] v4l2: ioctl query control failed: Invalid argument v4l2: set Saturation: 32 [0, 255] v4l2: set Contrast: 32 [0, 255] [V] filefmt:9 fourcc:0x32595559 size:640x480 fps:25.000 ftime:=0.0400 get_path('sub/') -> '/home/jelle/.mplayer/sub/' ID_FILENAME=tv:// ID_DEMUXER=tv ID_VIDEO_FORMAT=YUY2 ID_VIDEO_BITRATE=0 ID_VIDEO_WIDTH=640 ID_VIDEO_HEIGHT=480 ID_VIDEO_FPS=25.000 ID_VIDEO_ASPECT=0.0000 ID_LENGTH=0.00 ID_SEEKABLE=0 ID_CHAPTERS=0 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] This driver only supports the 3Dfx Banshee, Voodoo3 and Voodoo 5. s3fb: Couldn't map S3 registers: Operation not permitted X11 opening display: :0.0 vo: X11 color mask: FFFFFF (R:FF0000 G:FF00 B:FF) vo: X11 running at 1440x900 with depth 24 and 32 bpp (":0.0" => local display) [x11] Detected wm supports layers. [x11] Using workaround for Metacity bugs. [x11] Detected wm supports NetWM. [x11] Detected wm supports ABOVE state. [x11] Detected wm supports BELOW state. [x11] Detected wm supports FULLSCREEN 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: 1920x1088 ========================================================================== 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 <kraxel@xxxxxxxxxxxxxxxxxxxxx> 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 98 for hw scaling Selected video codec: [rawyuy2] vfm: raw (RAW YUY2) ========================================================================== ID_VIDEO_CODEC=rawyuy2 Audio: no sound Freeing 0 unused audio chunks. Starting playback... v4l2: going to capture v4l2: select timeout *** [vo] Exporting mp_image_t, 640x480x16bpp YUV packed, 614400 bytes Unicode font: 255 glyphs. Unicode font: 255 glyphs. Uninit video: raw??% ??% ??,?% 0 0 v4l2: ioctl set mute failed: Invalid argument v4l2: 370 frames successfully processed, -368 frames dropped. v4l2: up to 1 video frames buffered. Successfully enabled DPMS vo: uninit ... Exiting... (Quit) ID_EXIT=QUIT
su - wget http://www.debian-multimedia.org/pool/main/d/debian-multimedia-keyring/debian-multimedia-keyring_2008.10.16_all.deb sudo dpkg -i debian-multimedia-keyring_2008.10.16_all.deb sudo apt-key list echo 'deb http://debian-multimedia.fx-services.com/ experimental main' | sudo tee --append /etc/apt/sources.list.d/debian-multimedia.list sudo apt-get update sudo apt-get install -t experimental mencoder mplayer adduser jelle video dpkg --status mencoder mplayer $ dpkg --status mencoder mplayer Package: mencoder Status: install ok installed Priority: extra Section: graphics Installed-Size: 10732 Maintainer: Christian Marillat <marillat@xxxxxxxxxx> Bugs: mailto:marillat@xxxxxxxxxx Architecture: i386 Source: mplayer Version: 1:1.0.rc2svn20090311-0.0 Replaces: mencoder-386, mencoder-586, mencoder-custom, mencoder-k6 Depends: libamrnb3, libamrwb3, libasound2 (>> 1.0.18), libbz2-1.0, libc6 (>= 2.7), libcdparanoia0 (>= 3.10.2+debian), libdirac0 (>= 1.0.2), libdv4, libenca0 (>= 1.9), libfaac0 (>= 1.28), libfontconfig1 (>= 2.4.0), libfreetype6 (>= 2.3.5), libfribidi0 (>= 0.10.9), libgcc1 (>= 1:4.1.1), libgif4 (>= 4.1.6), libjpeg62, liblircclient0, liblzo2-2, libmad0 (>= 0.15.1b-3), libmng1 (>= 1.0.3-1), libmp3lame0 (>= 3.98.2), libncurses5 (>= 5.6+20071006-3), libogg0 (>= 1.0rc3), liboil0.3 (>= 0.3.1), libpng12-0 (>= 1.2.13-4), libschroedinger-1.0-0 (>= 1.0.0), libsmbclient (>= 3.0.24), libspeex1 (>= 1.2~beta3-1), libstdc++6 (>= 4.1.1), libtheora0 (>= 0.0.0.alpha7.dfsg), libtwolame0, libvorbis0a (>= 1.1.2), libx264-66 (>= 1:0.svn20090222), libxvidcore4 (>= 1:1.0.0-0.0), zlib1g (>= 1:1.1.4) Suggests: w32codecs (>= 1:20050412-0.1), libdvdcss, mplayer-doc Conflicts: mencoder-386, mencoder-586, mencoder-custom, mencoder-k6 Description: MPlayer's Movie Encoder A simple movie encoder, designed to encode MPlayer-playable movies (AVI/ASF/OGG/DVD/VCD/VOB/MPG/MOV/VIV/FLI/RM/NUV/NET) to other MPlayer-playable formats. It can encode with various codecs, like DivX4 (1 or 2 passes), libavcodec, PCM/MP3/VBRMP3 audio. Also has stream copying and video resizing abilities. Homepage: http://www.mplayerhq.hu/ Package: mplayer Status: install ok installed Priority: extra Section: graphics Installed-Size: 12280 Maintainer: Christian Marillat <marillat@xxxxxxxxxx> Bugs: mailto:marillat@xxxxxxxxxx Architecture: i386 Version: 1:1.0.rc2svn20090311-0.0 Replaces: mplayer-386, mplayer-586, mplayer-custom, mplayer-k6, mplayer-nogui Depends: libaa1 (>= 1.4p5), libamrnb3, libamrwb3, libartsc0 (>= 1.5.9), libasound2 (>> 1.0.18), libatk1.0-0 (>= 1.20.0), libaudio2, libbz2-1.0, libc6 (>= 2.7), libcaca0 (>= 0.99.beta15-1), libcairo2 (>= 1.2.4), libcdparanoia0 (>= 3.10.2+debian), libdirac0 (>= 1.0.2), libdirectfb-1.2-0, libdv4, libenca0 (>= 1.9), libesd-alsa0 (>= 0.2.35) | libesd0 (>= 0.2.35), libfaac0 (>= 1.28), libfontconfig1 (>= 2.4.0), libfreetype6 (>= 2.3.5), libfribidi0 (>= 0.10.9), libgcc1 (>= 1:4.1.1), libggi2 (>= 1:2.2.2), libgif4 (>= 4.1.6), libgl1-mesa-glx | libgl1, libglib2.0-0 (>= 2.12.0), libgtk2.0-0 (>= 2.14.0), libjack0 (>= 0.116.1), libjpeg62, liblircclient0, liblzo2-2, libmad0 (>= 0.15.1b-3), libmng1 (>= 1.0.3-1), libmp3lame0 (>= 3.98.2), libncurses5 (>= 5.6+20071006-3), libogg0 (>= 1.0rc3), liboil0.3 (>= 0.3.1), libopenal1, libpango1.0-0 (>= 1.22.0), libpng12-0 (>= 1.2.13-4), libpulse0 (>= 0.9.14), libschroedinger-1.0-0 (>= 1.0.0), libsdl1.2debian (>= 1.2.10-1), libsmbclient (>= 3.0.24), libspeex1 (>= 1.2~beta3-1), libstdc++6 (>= 4.1.1), libsvga1 | svgalib-dummyg1, libtheora0 (>= 0.0.0.alpha7.dfsg), libvorbis0a (>= 1.1.2), libx11-6, libx264-66 (>= 1:0.svn20090222), libxext6, libxinerama1, libxt6, libxv1, libxvidcore4 (>= 1:1.0.0-0.0), libxvmc1, libxxf86dga1, libxxf86vm1, xlibmesa-gl | libgl1, zlib1g (>= 1:1.1.4), mplayer-skin Suggests: w32codecs (>= 1:20050412-0.1), libdvdcss, mplayer-doc Conflicts: libconfhelper-perl, mplayer-386, mplayer-586, mplayer-custom, mplayer-k6, mplayer-nogui Conffiles: /etc/mplayer/input.conf ba45072a1f983e499da6245669e2a5b8 /etc/mplayer/menu.conf f96f66278e1bf637f5fb77bbb03a9857 /etc/mplayer/mplayer.conf 4882e80083df9fcc534c019569f403bd Description: The Ultimate Movie Player For Linux It plays most mpeg, avi and asf files, supported by many native and win32 DLL codecs. You can watch VCD, DVD and even DivX movies too. The other big feature of mplayer is the wide range of supported output drivers. It works with X11, Xv, DGA, OpenGL, SVGAlib, fbdev, but you can use SDL (and this way all drivers of SDL) and some lowlevel card-specific drivers (for Matrox/3dfx/SiS) too! Most of them supports software or hardware scaling, so you can enjoy movies in fullscreen. Homepage: http://www.mplayerhq.hu/
_______________________________________________ MPlayer-users mailing list MPlayer-users@xxxxxxxxxxxx https://lists.mplayerhq.hu/mailman/listinfo/mplayer-users