Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Skype with the webcam image upside down
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Multimedia
View previous topic :: View next topic  
Author Message
T1AGO
n00b
n00b


Joined: 16 Oct 2003
Posts: 17

PostPosted: Mon Aug 08, 2011 12:59 am    Post subject: Skype with the webcam image upside down Reply with quote

Use skype version: 2.2.0.35-r1 and the webcam image appears inverted.

Bus 002 Device 004: ID 0c45:62c0 Microdia Sonix USB 2.0 Camera

* net-im/skype
Latest version available: 2.2.0.35-r1
Latest version installed: 2.2.0.35-r1

* media-libs/libv4l
Latest version available: 0.8.5
Latest version installed: 0.8.5

Driver webcam (dmesg) - uvcvideo (module):
uvcvideo: Found UVC 1.00 device USB 2.0 Camera (0c45:62c0)
input: USB 2.0 Camera as /devices/pci0000:00/0000:00:1d.0/usb2/2-1/2-1.4/2-1.4:1.0/input/input9
usbcore: registered new interface driver uvcvideo
USB Video Class driver (v1.0.0)

Quote:

Portage 2.1.10.3 (default/linux/amd64/10.0/desktop/gnome, gcc-4.6.1, glibc-2.12.2-r0, 2.6.39-gentoo-r3 x86_64)
=================================================================
System uname: Linux-2.6.39-gentoo-r3-x86_64-Intel-R-_Core-TM-_i7-2630QM_CPU_@_2.00GHz-with-gentoo-2.0.3
Timestamp of tree: Sun, 07 Aug 2011 15:00:01 +0000
app-shells/bash: 4.1_p9
dev-java/java-config: 2.1.11-r3
dev-lang/python: 2.7.1-r1, 3.1.3-r1
dev-util/cmake: 2.8.4-r1
dev-util/pkgconfig: 0.26
sys-apps/baselayout: 2.0.3
sys-apps/openrc: 0.8.3-r1
sys-apps/sandbox: 2.4
sys-devel/autoconf: 2.13, 2.68
sys-devel/automake: 1.9.6-r3, 1.10.3, 1.11.1
sys-devel/binutils: 2.20.1-r1
sys-devel/gcc: 4.6.1
sys-devel/gcc-config: 1.4.1-r1
sys-devel/libtool: 2.4-r1
sys-devel/make: 3.82
sys-kernel/linux-headers: 2.6.36.1 (virtual/os-headers)
sys-libs/glibc: 2.12.2
Repositories: gentoo
ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="* -@EULA"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=native -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/config /usr/share/gnupg/qualified.txt"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/splash /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c"
CXXFLAGS="-march=native -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
EMERGE_DEFAULT_OPTS="--autounmask --autounmask-write"
FEATURES="assume-digests binpkg-logs distlocks ebuild-locks fixlafiles fixpackages news parallel-fetch protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch"
FFLAGS=""
GENTOO_MIRRORS="rsync://gentoo.c3sl.ufpr.br/gentoo/ http://gentoo.c3sl.ufpr.br/ http://gentoo.lcc.ufmg.br rsync://gentoo.lcc.ufmg.br/gentoo-sources http://distro.ibiblio.org/pub/linux/distributions/gentoo/ rsync://distro.ibiblio.org/pub/linux/distributions/gentoo/"
LANG="pt_BR.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LINGUAS="pt_BR"
MAKEOPTS="-j1"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY=""
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="32bit 64bit X X509 a52 aac aacs aalib abook acl acpi addbookmarks additions addns admin adplug ads aes-ni aesicm aio alsa amd64 amr amrr animgif apache2 api apidoc apis ares arrays asf aspell ass async asyncdns asyncns audacious audio auth auto-completion autobind autoipd automap automount avahi background backgrounds backtrace bash-completion battery benchmarks berkdb bgpclassless binary-drivers bind bindist bl blender blender-game bluetooth bookmarks boost branding browser bugzilla builder bzip2 cache cairo calendar canvas captcha captchaforms cdda cdinstall cdio cdparanoia cdr cdrdao cdrom cdsound cgc cgi charconv charmap charset chatzilla chroot cisco cleartype cli client clientinfo clipboard clock cmake cmkopt coda_symlinks color colordiff compact composer console consolekit contrib corefonts cpio cpudetection cpusets cracklib cramfs crashreporter cron crypt crypto cryptokit cryptsetup ctype cups curl curlwrappers cursors cxx daemon dap dar64 dbase dbus dcc dcc_video dcc_voice development device-mapper dhclient dhcpcd directx discard-path disk-partition diskio diskuse django dmalloc dms dna docbook dri drm dts dv dvb dvbplayer dvbsetup dvd dvdarchive dvdnav dvdr dvi ebook eclipse editor eds emboss emoticon encode equalizer esd eselect ethernet evo examples excel exceptions exec exif extra-algorithms extra-cardsets extra-ciphers extra-phrases extra-tools extras facedetect fam fasttrack fbcon fbcondecor fbsplash ffmpeg fileinfo filestorage filestreamsmanager filetransfer findbug finger firefox flac flash font-styles fontconfig foomaticdb fortran ftp g711 g722 g7221 g729 gadu gallery game-engine games gconf gcov gcrypt gd gdbm gdm gdu gedit generic geolocation geos gftp gif gimp gkrellm glib glibc-compat20 gmail gmp gnome gnome-keyring gnome-print gnomecanvas gnomecards gnumeric gnupl gnuplot gnustep gnutella gnutls goffice google google-gadgets gopher gpg gpm graphics graphicsmagick grub gsettings gstreamer gtalk gtk gtk3 gudev gunit gzip h281 h323 hammer handbook hash hddtemp help-screen hfs host hsm htmlreport http http-cache icc iconsets iconv icoutils icq id3 id3tag id64 ident image imagemagick imlib int64 ios ios-vout iostats ipath ipfilter iplayer ipod iproute2 iptables ipv6 irc jabber jack java javacomm javamail javascript jbig jit joystick jpeg judy kaspersky kerberos key-screen keychain keymap keyutils langpacks laptop lastfm latex latin1 launcher lcd lcdfilter lcms ldap ldb learn-mode led less libass libev libextractor libgda liblockfile libmpeg2 libnet libnl libnotify libs libsamplerate libv4l2 libwww libxml2 libyaml lightning linux-smp-stats live livebuffer llvm llvm-gcc lm_sensors lock log logrotate logviewer logwatch lprng-failsafe lpsol lqr lr0 lua lua-cairo lua-imlib luajit luatex lvm lynxkeymap lzma lzo m4lib-png mac macosx macosx-audio macosx-dialog-provider macosx-eyetv macosx-qtcapture macosx-quartztext macosx-vout mad madwifi magnetgenerator mailclient maps math mathml md5 md5sum md5sum-external mdraid memcached memdebug memlimit memmap memoryview memtrace menuorg mercurial messages metric mime mimencode mmap mms mmx mng modperl modules mouse mousewarp mousewheel mp3 mp3tunes mp4 mpeg mpg123 mplayer mpls mpu401 msn msql mssql mudflap multilib multimedia multinetwork multipath multiprocess multislot multitarget multiuser multiuserchat mysql nat nat-pmp nat-transport nautilus ncurses netbeans network network-cron networking networkmanager nfsv4 nls nmap nocd nologin nolvmstatic non-root nptl nptlonly nsplugin ntfs ntfsprogs ntlm numa nvram odbc odbcmanual ogg ogg123 openft opengl openid openldap openmp openrc openssl opensslcrypt opensync openvg openvpn openvz oracle packages pam pango parse-clocks parsec parted passfile passwd password pastebin patch pci pcmcia pcre pdf perl perlsuid phonehome phonesim pic pidgin pipe pixmaps places plaintext player playlist plot plotutils plugins png podcast policykit poll pop portmon posix postfix powersave ppds pppd prediction preferences prelink prelude prime priority privacy ps pulseaudio purple python q64 qalculate qos qt3support qt4 quota quote quotes radio radius raid ramfs rar ratio raw raw-font-data rawio rdesktop rdesktop-vrdp rdoc readline readme realms realtime recommended regex regexp reiser4 remote remote-access remotecontrol remoteosd replaygain reports resolvconf resolver rfc2307 rfc3779 rfc822 root rpm rrdtool rsync rtc ruby run run-as-root samba sandbox scanner schedule science scp screen screenshot sctp sdk sdl sdl-image sdl-sound sdlaudio sdlgfx search search-index search-screen secure-delete semantic semantic-desktop session setup shellicon shine shm shmvideo shorturl shutdown snmp soap sockets socks socks5 sound sounds spell sql sqlite sse sse2 sse3 sse4 sse4_1 sse4a ssh ssl ssse3 stable startup-notification svg swat swt symlink sysfs syslog sysquota system-libCg system-libs system-libvncserver system-libx264 system-sqlite systempreferences systray szip taglib tao tcl tcmalloc tcp tcp-zebra tcpd tcpdump tcpreplay tcpwrapper telnet terminal test-binaries test-framework test-programs test-ui testbed tests testutil tftp tga tgif themes theora thumbnail thumbnails thunderbird tiff timercmd timerinfo timestats timezone tk tls tools touchscreen trace transcode translator transparency tray trayicon truetype truetype-debugger tslib tv tv_check tv_combiner tv_pick_cgi tvtime udev udf uml unicode unzip upnp urandom usb user-homedirs userlocales usermod userpriv utils utp uuid v4l v4l2 vaapi vacation vcard vcd vcdx vdesktop vdr vga vhost-net vhosts video videos view-captcha vim vim-pager vim-syntax virtual-users virtualbox visual visualizer vmware-tools vorbis waveform waveout wavpack weak-algorithms weather web webcam webcheck webkit wifi wiimote wildcards win64 winbind wineappdb wininst winscp wireshark wma wma-fixed wordexp x11vnc x264 xbase xcb xface xfconf xfs xft xine xinerama xls xml xmms2 xorg xsettings xslt xulrunner xv xvfb xvid yahoo yahoo-geo yaml youtube zero zero-penalty-hit zeroconf zip zlib zsh-completion" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="braindump flow karbon kexi kpresenter krita tables words" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ubx" INPUT_DEVICES="evdev synaptics" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="pt_BR" PHP_TARGETS="php5-3" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="intel" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset: CPPFLAGS, CTARGET, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Back to top
View user's profile Send private message
Hypnos
Advocate
Advocate


Joined: 18 Jul 2002
Posts: 2889
Location: Omnipresent

PostPosted: Mon Aug 08, 2011 1:48 am    Post subject: Reply with quote

Is the webcam image upside down in other applications? If so, seems like a driver/configuration issue, otherwise it is a Skype problem (in which case you are likely screwed).

For example, you can test with mplayer:

Code:
# mplayer tv:// -tv driver=v4l2:width=640=height=480 -vo xv


or gstreamer:

Code:
# gst-launch-0.10 v4l2src ! video/x-raw-yuv,width=640,height=480 ! ffmpegcolorspace ! xvimagesink

_________________
Personal overlay | Simple backup scheme
Back to top
View user's profile Send private message
tetromino
Retired Dev
Retired Dev


Joined: 02 Dec 2003
Posts: 215

PostPosted: Mon Aug 08, 2011 2:28 am    Post subject: Reply with quote

Do the following:

1. Install app-emulation/emul-linux-x86-medialibs to get a 32-bit version of libv4l
2. Run skype with LD_PRELOAD=/usr/lib32/libv4l/v4l2convert.so (one easy way to do that is to simply copy /usr/bin/skype to /usr/local/bin/, edit /usr/local/bin/skype, and add
Code:
export LD_PRELOAD=/usr/lib32/libv4l/v4l2convert.so

before the "exec ./skype" line.)
Back to top
View user's profile Send private message
T1AGO
n00b
n00b


Joined: 16 Oct 2003
Posts: 17

PostPosted: Mon Aug 08, 2011 2:32 am    Post subject: Reply with quote

Hypnos wrote:
Is the webcam image upside down in other applications? If so, seems like a driver/configuration issue, otherwise it is a Skype problem (in which case you are likely screwed).

For example, you can test with mplayer:

Code:
# mplayer tv:// -tv driver=v4l2:width=640=height=480 -vo xv


or gstreamer:

Code:
# gst-launch-0.10 v4l2src ! video/x-raw-yuv,width=640,height=480 ! ffmpegcolorspace ! xvimagesink


Yes it is only in skype.
I think it's bug in skype.
Back to top
View user's profile Send private message
T1AGO
n00b
n00b


Joined: 16 Oct 2003
Posts: 17

PostPosted: Mon Aug 08, 2011 2:38 am    Post subject: Reply with quote

tetromino wrote:
Do the following:

1. Install app-emulation/emul-linux-x86-medialibs to get a 32-bit version of libv4l
2. Run skype with LD_PRELOAD=/usr/lib32/libv4l/v4l2convert.so (one easy way to do that is to simply copy /usr/bin/skype to /usr/local/bin/, edit /usr/local/bin/skype, and add
Code:
export LD_PRELOAD=/usr/lib32/libv4l/v4l2convert.so

before the "exec ./skype" line.)


Not resolved.

Quote:

ERROR: ld.so: object '/ usr/lib32/libv4l/v4l2convert.so' from LD_PRELOAD can not be preloaded: ignored.
libv4l2: error dequeuing buf: Invalid argument
Back to top
View user's profile Send private message
tetromino
Retired Dev
Retired Dev


Joined: 02 Dec 2003
Posts: 215

PostPosted: Mon Aug 08, 2011 2:43 am    Post subject: Reply with quote

T1AGO wrote:
Quote:

ERROR: ld.so: object '/ usr/lib32/libv4l/v4l2convert.so' from LD_PRELOAD can not be preloaded: ignored.
libv4l2: error dequeuing buf: Invalid argument

You made a typo. There should be no space between "/" and "usr".
Back to top
View user's profile Send private message
T1AGO
n00b
n00b


Joined: 16 Oct 2003
Posts: 17

PostPosted: Mon Aug 08, 2011 4:56 am    Post subject: Reply with quote

tetromino wrote:
T1AGO wrote:
Quote:

ERROR: ld.so: object '/ usr/lib32/libv4l/v4l2convert.so' from LD_PRELOAD can not be preloaded: ignored.
libv4l2: error dequeuing buf: Invalid argument

You made a typo. There should be no space between "/" and "usr".


Same error ...
Back to top
View user's profile Send private message
Hypnos
Advocate
Advocate


Joined: 18 Jul 2002
Posts: 2889
Location: Omnipresent

PostPosted: Mon Aug 08, 2011 5:17 am    Post subject: Reply with quote

Try the solution I found here via Google:

Code:
export LIBV4LCONTROL_FLAGS=3
export LD_PRELOAD=/usr/lib/libv4l/v4l1compat.so


I believe it forces skype to use v4l2 via the v4l compatibility layer.
_________________
Personal overlay | Simple backup scheme
Back to top
View user's profile Send private message
tetromino
Retired Dev
Retired Dev


Joined: 02 Dec 2003
Posts: 215

PostPosted: Mon Aug 08, 2011 6:33 am    Post subject: Reply with quote

Hypnos wrote:
Code:
export LIBV4LCONTROL_FLAGS=3
export LD_PRELOAD=/usr/lib/libv4l/v4l1compat.so

v4l1compat.so could also work (although v4l2convert.so should probably work better since it allows skype use the modern v4l2 api). However, on amd64, you need to use "/usr/lib32" instead of "/usr/lib" (since "/usr/lib" contains 64-bit libraries, while skype is 32-bit).

T1AGO wrote:
Same error ...

What version of emul-linux-x86-medialibs do you have? v4l2convert.so from emul-linux-x86-medialibs-20110722 works for me on two different machines.

Can you double-check that you actually have a /usr/lib32/libv4l/v4l2convert.so library installed?
Are there any errors when your run
ldd -d -r /usr/lib32/libv4l/v4l2convert.so ?
Does calling any other 32-bit program with LD_PRELOAD=/usr/lib/libv4l/v4l1compat.so or LD_PRELOAD=/usr/lib/libv4l/v4l2convert.so give you the same "LD_PRELOAD can not be preloaded" error?
Back to top
View user's profile Send private message
T1AGO
n00b
n00b


Joined: 16 Oct 2003
Posts: 17

PostPosted: Mon Aug 08, 2011 2:12 pm    Post subject: Reply with quote

Hypnos wrote:
Try the solution I found here via Google:

Code:
export LIBV4LCONTROL_FLAGS=3
export LD_PRELOAD=/usr/lib/libv4l/v4l1compat.so


I believe it forces skype to use v4l2 via the v4l compatibility layer.


worked with a small correction:

Code:

export LIBV4LCONTROL_FLAGS=3
export LD_PRELOAD=/usr/lib32/libv4l/v4l1compat.so


But the webcam is slightly focused (lens) to my left.

And now?
Back to top
View user's profile Send private message
T1AGO
n00b
n00b


Joined: 16 Oct 2003
Posts: 17

PostPosted: Mon Aug 08, 2011 3:01 pm    Post subject: Reply with quote

tetromino wrote:
Hypnos wrote:
Code:
export LIBV4LCONTROL_FLAGS=3
export LD_PRELOAD=/usr/lib/libv4l/v4l1compat.so

v4l1compat.so could also work (although v4l2convert.so should probably work better since it allows skype use the modern v4l2 api). However, on amd64, you need to use "/usr/lib32" instead of "/usr/lib" (since "/usr/lib" contains 64-bit libraries, while skype is 32-bit).

T1AGO wrote:
Same error ...

What version of emul-linux-x86-medialibs do you have? v4l2convert.so from emul-linux-x86-medialibs-20110722 works for me on two different machines.

Can you double-check that you actually have a /usr/lib32/libv4l/v4l2convert.so library installed?
Are there any errors when your run
ldd -d -r /usr/lib32/libv4l/v4l2convert.so ?
Does calling any other 32-bit program with LD_PRELOAD=/usr/lib/libv4l/v4l1compat.so or LD_PRELOAD=/usr/lib/libv4l/v4l2convert.so give you the same "LD_PRELOAD can not be preloaded" error?


Code:

*  app-emulation/emul-linux-x86-medialibs
      Latest version available: 20110722
      Latest version installed: 20110722


Code:

tiago@fenix ~ $ ldd -d -r /usr/lib32/libv4l/v4l2convert.so
   linux-gate.so.1 =>  (0xf777e000)
   libv4l2.so.0 => /usr/lib32/libv4l2.so.0 (0xf773f000)
   libc.so.6 => /lib32/libc.so.6 (0xf75c4000)
   libv4lconvert.so.0 => /usr/lib32/libv4lconvert.so.0 (0xf7555000)
   libpthread.so.0 => /lib32/libpthread.so.0 (0xf753a000)
   /lib/ld-linux.so.2 (0xf777f000)
   librt.so.1 => /lib32/librt.so.1 (0xf752f000)
   libm.so.6 => /lib32/libm.so.6 (0xf7505000)


Solved but the focus of the camera is left
Back to top
View user's profile Send private message
Hypnos
Advocate
Advocate


Joined: 18 Jul 2002
Posts: 2889
Location: Omnipresent

PostPosted: Mon Aug 08, 2011 3:18 pm    Post subject: Reply with quote

You mean the image is sharp, but the image is not centered on you?

Is the camera supposed to be autopointing or something?
_________________
Personal overlay | Simple backup scheme
Back to top
View user's profile Send private message
T1AGO
n00b
n00b


Joined: 16 Oct 2003
Posts: 17

PostPosted: Mon Aug 08, 2011 3:48 pm    Post subject: Reply with quote

Hypnos wrote:
You mean the image is sharp, but the image is not centered on you?

Is the camera supposed to be autopointing or something?


The image is perfect.
But is decentralized (more to the left) but only on Skype.

In the cheese is perfect.
Back to top
View user's profile Send private message
Hypnos
Advocate
Advocate


Joined: 18 Jul 2002
Posts: 2889
Location: Omnipresent

PostPosted: Mon Aug 08, 2011 3:52 pm    Post subject: Reply with quote

*shrug* maybe try changing the value of LIBV4LCONTROL_FLAGS
_________________
Personal overlay | Simple backup scheme
Back to top
View user's profile Send private message
T1AGO
n00b
n00b


Joined: 16 Oct 2003
Posts: 17

PostPosted: Mon Aug 08, 2011 4:27 pm    Post subject: Reply with quote

Hypnos wrote:
*shrug* maybe try changing the value of LIBV4LCONTROL_FLAGS


Did not work
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Multimedia All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum