Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 72976 - media-video/mplayer: mencoder USE="oss" needed for TV grabbing
Summary: media-video/mplayer: mencoder USE="oss" needed for TV grabbing
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Gentoo Media-video project
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-11-30 15:45 UTC by Lukas Turek
Modified: 2006-06-22 17:27 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
Patch for mplayer-1.0_pre7-r1.ebuild (patch,585 bytes, patch)
2005-12-30 07:16 UTC, Lorenzo Mancini
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Lukas Turek 2004-11-30 15:45:31 UTC
Grabbing from TV in Mencoder fails if mplayer (both 1.0_pre4 and 1.0_pre5) is compiled with --disable-ossaudio (but mplayer works fine, so you can watch TV). USE flag "oss" must be set when compiling with "v4l" or "v4l2".

Reproducible: Always
Steps to Reproduce:
1. USE="-oss v4l2" emerge mplayer
2. Start grabbing from TV: 
   mencoder -tv driver=v4l2:device=/dev/v4l/video0 tv:// -oac copy -ovc copy -o test.avi


Actual Results:  
v4l2: current audio mode is : MONO
============ Sorry, this file format is not recognized/supported =============
=== If this file is an AVI, ASF or MPEG stream, please contact the author! ===
Cannot open demuxer.
Exiting...


Expected Results:  
v4l2: current audio mode is : MONO
[V] filefmt:9  fourcc:0x32315659  size:640x480  fps:25.00  ftime:=0.0400
videocodec: framecopy (640x480 24bpp fourcc=32315659)
audiocodec: framecopy (format=1 chans=1 rate=44100 bits=16 bps=88200 sample=2)
Writing AVI header...
ODML: Aspect information not (yet?) available or unspecified, not writing vprp
header.
Forcing audio preload to 0, max pts correction to 0


Portage 2.0.51-r3 (default-linux/x86/2004.3, gcc-3.3.4, glibc-2.3.4.20040808-r1,
2.6.9-gentoo-r4 i686)
=================================================================
System uname: 2.6.9-gentoo-r4 i686 Pentium III (Coppermine)
Gentoo Base System version 1.4.16
Autoconf: sys-devel/autoconf-2.59-r5
Automake: sys-devel/automake-1.8.5-r1
Binutils: sys-devel/binutils-2.15.90.0.1.1-r3
Headers:  sys-kernel/linux26-headers-2.6.8.1
Libtools: sys-devel/libtool-1.5.2-r7
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CFLAGS="-O2 -march=pentium3 -pipe -fomit-frame-pointer"
CHOST="i686-pc-linux-gnu"
COMPILER=""
CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config
/usr/kde/3.3/env /usr/kde/3.3/share/config /usr/kde/3.3/shutdown
/usr/kde/3/share/config /usr/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-O2 -march=pentium3 -pipe -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs autoconfig ccache distlocks sandbox sfperms"
GENTOO_MIRRORS="http://ftp.du.se/pub/os/gentoo http://ftp.ntua.gr/pub/linux/gentoo/"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X alsa apm arts avi berkdb bzlib cdr crypt cups encode fam fbcon flac
foomaticdb gdbm gif gpm gtk2 icq imagemagick imlib jabber jpeg kde libg++ libwww
mad mikmod mmx mmx2 mozilla mpeg mysql ncurses nls oggvorbis opengl pam perl png
qt quicktime readline samba sdl slang spell sse ssl tcpd tiff truetype unicode
x86 xine xml2 xv xvid zlib"
Comment 1 Lorenzo Mancini 2005-12-30 07:11:55 UTC
This is still a serious problem with the version of mplayer currently in portage (mplayer-1.0_pre7-r1); I'd suggest to explicit this check in the ebuild itself, so that people don't have to rediscover this problem over and over again.

I'm attaching a patch for mplayer-1.0_pre7-r1.ebuild.
Comment 2 Lorenzo Mancini 2005-12-30 07:16:32 UTC
Created attachment 75795 [details, diff]
Patch for mplayer-1.0_pre7-r1.ebuild
Comment 3 Lukas Turek 2005-12-30 16:39:44 UTC
I think this is not really a bug, mencoder can record from alsa, only the correct parameter is needed:

mencoder -tv driver=v4l2:device=/dev/v4l/video0:alsa tv:// -oac copy -ovc copy -o test.avi

I found it a few months ago, but I forgot this year old bug report...
Comment 4 Steve Dibb (RETIRED) gentoo-dev 2006-06-22 17:27:26 UTC
(In reply to comment #3)
> I think this is not really a bug, mencoder can record from alsa, only the
> correct parameter is needed:
> 
> mencoder -tv driver=v4l2:device=/dev/v4l/video0:alsa tv:// -oac copy -ovc copy
> -o test.avi
> 
> I found it a few months ago, but I forgot this year old bug report...
> 

Agreed, mplayer can record using ALSA or OSS from the sound cards.  Depends on the device drivers.

Thanks, Lukas