Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
video won't play in totem if any flash is being in browser
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
Condomitti
n00b
n00b


Joined: 28 Jan 2013
Posts: 16

PostPosted: Sun Mar 10, 2013 3:32 pm    Post subject: video won't play in totem if any flash is being in browser Reply with quote

Hi guys,

I've been using gentoo for a few weeks now, and I'm completely in love with it. Compiling a kernel has never been so easy (compared to that on other distros :-)

What I'm facing so far is regarding playing videos in totem (or any other software) when there's a flash loaded in the browser... totem tries to play the movie but it remains as if it had been paused (movie stays at time 00:00:00).

Do you guys have any clue on how to figure out what is causing this issue?

Thanks in advance,

Condomitti.
Back to top
View user's profile Send private message
Navar
Guru
Guru


Joined: 20 Aug 2012
Posts: 353

PostPosted: Mon Mar 11, 2013 6:08 am    Post subject: Reply with quote

I wasn't able to reproduce your issue here with Gnome2 desktop, ATI fglrx video drivers and chromium browser. Totem is built with youtube USE flag by default (whatever that does). I can't reproduce it with another system using nvidia hardware and proprietary drivers either.

I see there's been a big recent change for media-libs/gstreamer (which Totem uses) from version 0.10 -> 1.0.5 with a higher version of Totem than stable, but I've not looked into details. I'm still using 0.10.36.

Maybe mention your video card, drivers used, emerge --info totem, /etc/X11/xorg.conf (if any), browser used, version of flash plugin, along with desktop environment type (I presume Gnome). Gotta give us a lot more to go on.
_________________
Ph'nglui mglw'nafh Cthulhu R'lyeh wgah'nagl fhtagn.
Back to top
View user's profile Send private message
Logicien
Veteran
Veteran


Joined: 16 Sep 2005
Posts: 1555
Location: Montréal

PostPosted: Mon Mar 11, 2013 6:51 am    Post subject: Reply with quote

If the Alsa intagrated sound server Dmix is not active, each application who use Alsa lock the sound card until it finish. If Flash do that, it is possible that others applications have to wait for the sound and that can make a video stall. Did you configure Alsa to use Dmix in /etc/asound.conf or in ~/.aoundrc?

When Flash is down, can you play two sound files simultaneously with two differents applications that use both Alsa as output?
_________________
Paul
Back to top
View user's profile Send private message
Condomitti
n00b
n00b


Joined: 28 Jan 2013
Posts: 16

PostPosted: Wed Mar 13, 2013 12:44 pm    Post subject: Reply with quote

Hi Navar and Logicien, thanks a lot for the help! and sorry my delay to reply, it's been two long days at work 8O

I'm using gnome 3.6 .
Kernel: 3.7.9
Video card is intel hd3000
Browser: epiphany and chromium
Flash 11.2.202.261
I'm using no xorg.conf and also there's no asound file (either in etc or ~/).

Logicien, when flash is down I can play two songs simultaneously in banshee and totem for instance.

What I noted is that the inverse situation also applies: if I'm playing a song I can't play youtube flash videos until I stop the sound.




Here's the output of emerge --info totem:

Code:

Portage 2.1.11.50 (default/linux/amd64/13.0/desktop/gnome, gcc-4.6.3, glibc-2.15-r3, 3.7.9-gentoo x86_64)
=================================================================
                         System Settings
=================================================================
System uname: Linux-3.7.9-gentoo-x86_64-Intel-R-_Core-TM-_i7-2677M_CPU_@_1.80GHz-with-gentoo-2.1
KiB Mem:     3945164 total,    876392 free
KiB Swap:          0 total,         0 free
Timestamp of tree: Wed, 27 Feb 2013 10:15:02 +0000
ld GNU ld (GNU Binutils) 2.22
app-shells/bash:          4.2_p37
dev-java/java-config:     2.1.12-r1
dev-lang/python:          2.7.3-r2, 3.2.3
dev-util/cmake:           2.8.9
dev-util/pkgconfig:       0.28
sys-apps/baselayout:      2.1-r1
sys-apps/openrc:          0.11.8
sys-apps/sandbox:         2.5
sys-devel/autoconf:       2.13, 2.69
sys-devel/automake:       1.10.3, 1.11.6
sys-devel/binutils:       2.22-r1
sys-devel/gcc:            4.6.3
sys-devel/gcc-config:     1.7.3
sys-devel/libtool:        2.4-r1
sys-devel/make:           3.82-r4
sys-kernel/linux-headers: 3.6 (virtual/os-headers)
sys-libs/glibc:           2.15-r3
Repositories: gentoo x-my_ebuilds
ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="* -@EULA"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=corei7-avx -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/gnupg/qualified.txt"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-march=corei7-avx -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync news parallel-fetch protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LANG="pt_BR.UTF-8"
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 --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/var/lib/layman/my_ebuilds"
SYNC="rsync://rsync.br.gentoo.org/gentoo-portage"
USE="X a52 aac acl acpi alsa amd64 berkdb bluetooth branding bzip2 cairo cdda cdr cli colord consolekit cracklib crypt cups cxx dbus dri dts dvd dvdr eds emboss encode evo exif fam ffmpeg firefox flac fortran gdbm gif gnome gnome-keyring gnome-online-accounts gpm gstreamer gtk iconv ipv6 jack jpeg lcms ldap libnotify mad mmx mng mod modules mp3 mp4 mpeg mudflap multilib nautilus ncurses nls nptl nsplugin ogg opengl openmp pam pango pcre pdf png policykit ppds pulseaudio qt3support readline sdl session socialweb spell sse sse2 ssl startup-notification svg tcpd tiff truetype udev udisks unicode upower usb vorbis wxwidgets x264 xcb xml xv xvid zlib" ABI_X86="64" 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="authn_core authz_core socache_shmcb unixd 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="kexi words flow plan sheets stage tables krita karbon braindump" 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" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LINGUAS="pt_BR en" PHP_TARGETS="php5-3" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_2" RUBY_TARGETS="ruby18 ruby19" 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, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, USE_PYTHON

=================================================================
                        Package Settings
=================================================================

media-video/totem-3.6.3-r1 was built with the following:
USE="introspection nautilus python -debug -flash -grilo -lirc -nsplugin -test -zeitgeist" PYTHON_SINGLE_TARGET="python2_7 -python2_6" PYTHON_TARGETS="python2_7 -python2_6"






Cheers,

Condomitti
Back to top
View user's profile Send private message
Logicien
Veteran
Veteran


Joined: 16 Sep 2005
Posts: 1555
Location: Montréal

PostPosted: Wed Mar 13, 2013 2:12 pm    Post subject: Reply with quote

It is possible that Flash do not use the same audio output than Banshee and Totem. If you have Pulseaudio active, Banshee and Totem probably use it as audio output. If not, they probably use the default output playback card of Alsa.

With and /etc/asound.conf or ~/.asoundrc you can tell all your audio players, including Flash, which audio output they must use by default. So they will all use the same sound server, generally Dmix from Alsa or Pulseaudio. Than the sound output can be share between them.

Make a search about asound.conf and .asoundrc.
_________________
Paul
Back to top
View user's profile Send private message
Condomitti
n00b
n00b


Joined: 28 Jan 2013
Posts: 16

PostPosted: Fri Mar 22, 2013 11:17 pm    Post subject: Reply with quote

Lugicien,

Thanks again for your help.
After trying again and again I found the solution.
In the end I removed .asoundrc file and the only thing I had to do to get it working was to export FLASH_ALSA_DEVICE=plug:dmix and everything is okay now.

edit: actually the error was due to the 32bit flash plugin I used with ndiswrapper to work in Epiphany. If I remove that (and use only the 64bit version) everything works great (even without the FLASH_ALSA_DEV.... option).

Cheers,
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