Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 365043 - media-plugins/gst-plugins-v4l2-0.10.28-r1: v4l2src is not working with ffmpegcolorspace (gst-plugins-base-0.10.32)
Summary: media-plugins/gst-plugins-v4l2-0.10.28-r1: v4l2src is not working with ffmpeg...
Status: RESOLVED OBSOLETE
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] GNOME (show other bugs)
Hardware: x86 Linux
: Normal normal
Assignee: GStreamer package maintainers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-04-27 07:19 UTC by Eddy Zavaleta
Modified: 2019-06-22 08:48 UTC (History)
2 users (show)

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


Attachments
gst-launch output (gst-launch-v4l2src-ffmpegcolorspace.log,7.14 KB, text/x-log)
2011-04-27 07:26 UTC, Eddy Zavaleta
Details
Output using GST_DEBUG=*:5,GST_REGISTRY:2 (gst-launch-debug.log.gz,106.06 KB, application/x-gzip)
2011-04-28 20:33 UTC, Eddy Zavaleta
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Eddy Zavaleta 2011-04-27 07:19:48 UTC
Gstreamer apps like Cheese (media-video/cheese) which uses v4l2src and ffmpegcolorspace in the pipeline are not working.

I know v4l2 is working right because I am using GUVCViewer (media-video/guvcview) without problems.

Reproducible: Always

Steps to Reproduce:
1. Install media-libs/gst-plugins-base-0.10.32 and media-plugins/gst-plugins-v4l2-0.10.28-r1
2. Open a terminal
3. Execute "gst-launch-0.10 -v v4l2src ! ffmpegcolorspace ! xvimagesink"

Actual Results:  
No window is displayed.

Expected Results:  
It should display a window with the capture from my camera.
Camera capture is shown if you remove ffmpegcolorspace part from the pipeline:
$ gst-launch-0.10 -v v4l2src ! xvimagesink
This works as expected.

Portage 2.1.9.46 (default/linux/x86/10.0/desktop/gnome, gcc-4.5.2, libc-0-r0, 2.6.38.4 i686)
=================================================================
System uname: Linux-2.6.38.4-i686-Genuine_Intel-R-_CPU_1600_@_2.16GHz-with-gentoo-2.0.2
Timestamp of tree: Tue, 26 Apr 2011 17:30:01 +0000
app-shells/bash:     4.2_p8
dev-java/java-config: 2.1.11-r3
dev-lang/python:     2.6.6-r2, 2.7.1-r1, 3.1.3-r1
dev-util/cmake:      2.8.4-r1
sys-apps/baselayout: 2.0.2
sys-apps/openrc:     0.8.2
sys-apps/sandbox:    2.5
sys-devel/autoconf:  2.13, 2.68
sys-devel/automake:  1.9.6-r3, 1.10.3, 1.11.1-r1
sys-devel/binutils:  2.21
sys-devel/gcc:       4.5.2
sys-devel/gcc-config: 1.4.1
sys-devel/libtool:   2.4-r1
sys-devel/make:      3.82
sys-kernel/linux-headers: 2.6.38
virtual/os-headers:  0
ACCEPT_KEYWORDS="x86 ~x86"
ACCEPT_LICENSE="* -@EULA"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-march=native -O2 -pipe -fomit-frame-pointer"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /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/php/apache2-php5.3/ext-active/ /etc/php/cgi-php5.3/ext-active/ /etc/php/cli-php5.3/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c"
CXXFLAGS="-march=native -O2 -pipe -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="assume-digests binpkg-logs distlocks fixlafiles fixpackages metadata-transfer news parallel-fetch protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch"
FFLAGS=""
GENTOO_MIRRORS="http://gentoo.netnitco.net"
LANG="en_US.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j3"
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="/var/lib/layman/gnome /var/lib/layman/keruspe /var/lib/layman/x11 /var/lib/layman/java-overlay /usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X a52 aac aalib acl acpi aiglx alsa amr amrnb amrwb asf autoipd avahi avi bash-completion beagle berkdb bidi bitmap-fonts bittorrent blender-game bluetooth bonjour branding bzip2 cairo caps cdda cddb cdio cdparanoia cdr chm cleartype cli consolekit corefonts cracklib crypt cups custom-cflags custom-optimization cxx daap dbus devhelp device-mapper dia divx4linux djvu dns dri dts dv dvd dvdr dvdread dvi eds emboss enchant encode evo exif extras fam ffmpeg firefox flac fontconfig freetype fts3 gcj gdbm gdu gif gimp git glitz gnome gnome-keyring gpm gstreamer gtk gtk+ gtk2 gtk3 gtkhtml h323 hfs httpd hvm iconv imagemagick imlib inherit-graph inotify introspection ipod ipv6 isight ithreads jabber java6 jingle jpeg kvm lame laptop latex lcms libcaca libnotify libsamplerate lirc live lm_sensors mad math matroska mdb mikmod mjpeg mmx mmxext mng modules mono moonlight mozdevelop mozsvg mp3 mp4 mpeg mplayer msn mudflap musicbrainz mysql mysqli nauilus nautilus ncurses networkmanager nfs nls nptl nptlonly nsplugin objc ogg oggvorbis openexr opengl openmp openntpd pam pango parse-clocks pcre pdf pipechan png policykit ppds pulseaudio qt3support quicktime readline samba sdl secure-delete session sip smp sndfile sourceview spell sqlite sqlite3 srt sse sse2 ssl startup-notification stream suid svg sysfs system-sqlite t1lib tagwriting tcpd tetex theora threads tiff trayicon truetype truetype-fonts type1 type1-fonts udev unicode unlock-notify usb uuid v4l v4l2 v4l2src v4lsrc vcd vhosts vidix vim-syntax visualization vlm vorbis wav webkit widescreen win32codecs wmf x264 x86 xattr xcb xcomposite xml xorg xpm xv xvid zeroconf zlib" ALSA_CARDS="hda-intel" 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="auth_digest authn_file authz_groupfile dav dav_fs" 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="keyboard mouse evdev synaptics" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIRC_DEVICES="macmini" PHP_TARGETS="php5-3" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="ati radeon vesa" 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, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, LINGUAS, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Eddy Zavaleta 2011-04-27 07:26:18 UTC
Created attachment 271291 [details]
gst-launch output

Output from
$ gst-launch-0.10 -v v4l2src ! ffmpegcolorspace ! xvimagesink
Comment 2 Mart Raudsepp gentoo-dev 2011-04-28 17:03:50 UTC
I can't reproduce on my system with my gspca webcam.

"WARNING: from element /GstPipeline:pipeline0/GstV4l2Src:v4l2src0: Got unexpected frame size of 262529 instead of 614400." looks to be the suspect; perhaps xvimagesink could handle that mmap memory and ffmpegcolorspace not with your v4l2src chosen video caps or something of that sort.


Maybe the output of

GST_DEBUG=*:5,GST_REGISTRY:2 gst-launch-0.10 -v v4l2src num-buffers=1 ! ffmpegcolorspace ! xvimagesink

could get us further?
Comment 3 Eddy Zavaleta 2011-04-28 20:33:16 UTC
Created attachment 271495 [details]
Output using GST_DEBUG=*:5,GST_REGISTRY:2

I'm using a macbook pro with isight built-in camera.
Comment 4 Benedikt Reinartz 2011-07-07 12:30:18 UTC
I also have this problem on a Macbook 1,1. Substituting ffmpegcolorspace by videoscale gives the same results. According to the Ubuntu Bugtracker this is a kernel bug:

https://bugzilla.kernel.org/show_bug.cgi?id=36152

Does anyone have a kernel where this setup actually works? Mine is 2.6.39.
Comment 5 Mart Raudsepp gentoo-dev 2019-06-22 08:48:20 UTC
gstreamer 0.10 has been finally removed from the tree. If this is an issue with the 1.0 series too, please file a new bug against that version.