Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 404115 - net-libs/webkit-gtk-1.6.1-r301 [gstreamer[alsa]] in www-client/midori-0.4.3: HTML5 video playback depends on ALSA device availability
Summary: net-libs/webkit-gtk-1.6.1-r301 [gstreamer[alsa]] in www-client/midori-0.4.3: ...
Status: RESOLVED NEEDINFO
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Linux Gnome Desktop Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-02-16 13:17 UTC by Maxim Kammerer
Modified: 2013-04-07 08:07 UTC (History)
2 users (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Maxim Kammerer 2012-02-16 13:17:58 UTC
In Midori (+gstreamer, +alsa), when trying to watch an HTML5 video (e.g., http://camendesign.com/code/video_for_everybody/test.html), if the user has no access to /dev/snd/{control*,pcm*p}, playback doesn't start.

If using ALSA configuration (~/.asoundrc) as follows:

  ctl.!default {
      type null
  }

  pcm.!default {
      type null
  }

playback is blazing fast. "Playing" music files to null with ALSA is also blazing fast, so apparently, video playback depends on ALSA for synchronization, too.

USE flags:
www-client/midori-0.4.3: libnotify nls unique -doc -gnome
net-libs/webkit-gtk-1.6.1-r301: gstreamer introspection spell webgl (-aqua) -coverage -debug -doc -jit -test
media-plugins/gst-plugins-meta-0.10-r6: X a52 aac alsa dts dv dvd ffmpeg flac lame mms mp3 mpeg ogg theora v4l vorbis vpx wavpack xv -dvb (-esd) -musepack -mythtv -oss -pulseaudio -taglib -vcd
Comment 1 Samuli Suominen (RETIRED) gentoo-dev 2012-02-16 15:44:15 UTC
Sorry, I don't see a problem mentioned yet... Seems to be as designed.
Comment 2 Maxim Kammerer 2012-02-16 15:55:05 UTC
Well, in case of no access to /dev/snd/*, I would expect the sound to be muted during video playback, instead of complete failure of HTML5 video plugin. Same with using null ALSA output (in which case video playback doesn't fail, but plays too fast, somehow tied to the instantaneous speed of ALSA output).
Comment 3 Samuli Suominen (RETIRED) gentoo-dev 2012-02-21 12:09:12 UTC
Midori upstream doesn't believe this is a Midori problem, rather GStreamer or webkit-gtk:

14:07 <+kalikiana> ssuominen: do other gstreamer apps like parole or totem work with that setup? then it's webkit, otherwise gstreamer
Comment 4 Maxim Kammerer 2012-02-21 12:33:25 UTC
media-video/totem-2.32.0-r2 works fine after disabling access to /dev/snd/*
Comment 5 Maxim Kammerer 2012-02-21 12:44:37 UTC
After disabling access to /dev/snd/* in the same manner, Midori fails to show video. After downloading big_buck_bunny.webm manually, Totem plays it fine.
Comment 6 Maxim Kammerer 2012-04-03 04:46:26 UTC
Situation in Epiphany 3.2.1:

* if no access to /dev/snd/*, failure of HTML5 video plugin (same as with Midori)

* null ALSA output -> CPU 100% (in Midori, playback is too fast, see above).
Comment 7 Pacho Ramos gentoo-dev 2012-04-03 09:50:39 UTC
Will be interesting to test this with webkit-1.8 (once it's added to the tree) and report to bugs.webkit.org if still valid
Comment 8 Samuli Suominen (RETIRED) gentoo-dev 2012-04-15 17:41:24 UTC
(In reply to comment #7)
> Will be interesting to test this with webkit-1.8 (once it's added to the
> tree) and report to bugs.webkit.org if still valid

1.8 is now in Portage. Any chance the original reporter could retest? Will need to report upstream bug tracking system if the problem continues.
Comment 9 Pacho Ramos gentoo-dev 2012-07-07 12:42:08 UTC
(In reply to comment #8)
> (In reply to comment #7)
> > Will be interesting to test this with webkit-1.8 (once it's added to the
> > tree) and report to bugs.webkit.org if still valid
> 
> 1.8 is now in Portage. Any chance the original reporter could retest? Will
> need to report upstream bug tracking system if the problem continues.
Comment 10 Maxim Kammerer 2012-10-13 05:58:32 UTC
(In reply to comment #8)
> 1.8 is now in Portage. Any chance the original reporter could retest? Will
> need to report upstream bug tracking system if the problem continues.

With webkit-gtk-1.8.3-r300 + epiphany-3.2.1, same problem:

  * if no access to /dev/snd/*, failure of HTML5 video plugin
Comment 11 Pacho Ramos gentoo-dev 2012-10-15 18:56:31 UTC
(In reply to comment #10)
> (In reply to comment #8)
> > 1.8 is now in Portage. Any chance the original reporter could retest? Will
> > need to report upstream bug tracking system if the problem continues.
> 
> With webkit-gtk-1.8.3-r300 + epiphany-3.2.1, same problem:
> 
>   * if no access to /dev/snd/*, failure of HTML5 video plugin

This needs to be reported to upstream then -> bugs.webkit.org
Comment 12 Gilles Dartiguelongue (RETIRED) gentoo-dev 2013-03-14 22:43:32 UTC
To try to narrow down the issue, what happens if user has no access to 
/dev/snd/* when using playing a video file from shell:
$ gst-launch-0.10 playbin2 uri=file:///somevideo.avi

If the problem is not seen, then it should probably be forwarded to webkit 
upstream after checking with webkit-1.10/1.11.
Comment 13 Pacho Ramos gentoo-dev 2013-04-07 08:07:28 UTC
(In reply to comment #12)
> To try to narrow down the issue, what happens if user has no access to 
> /dev/snd/* when using playing a video file from shell:
> $ gst-launch-0.10 playbin2 uri=file:///somevideo.avi
> 
> If the problem is not seen, then it should probably be forwarded to webkit 
> upstream after checking with webkit-1.10/1.11.