When trying to play videos on youtube using html5, youtube falls back on flash. An interesting thing is that http://www.html5video.org works without any problems, but their video is ogv rather than h.264 Reproducible: Always www-client/chromium-5.0.375.9 USE="mp3 plugins-symlink x264" media-video/ffmpeg-0.5_p22846 USE="X alsa hardcoded-tables mmx mp3 ssse3 threads x264 xvid zlib -3dnow -3dnowext (-altivec) -bindist -cpudetection -custom-cflags -debug -dirac -doc -encode -faac -faad -gsm -ieee1394 -jack -jpeg2k -mmxext -network -opencore-amr -oss -pic -schroedinger -sdl -speex -test -theora -v4l -v4l2 -vdpau -vorbis" VIDEO_CARDS="-nvidia" emerge --info: Portage 2.1.8.3 (default/linux/amd64/10.0/no-multilib, gcc-4.3.4, glibc-2.10.1-r1, 2.6.33-gentoo-r1 x86_64) ================================================================= System uname: Linux-2.6.33-gentoo-r1-x86_64-Intel-R-_Core-TM-2_Duo_CPU_T7500_@_2.20GHz-with-gentoo-2.0.1 Timestamp of tree: Tue, 20 Apr 2010 14:45:02 +0000 ccache version 2.4 [enabled] app-shells/bash: 4.0_p37 dev-lang/python: 2.6.4-r1 dev-util/ccache: 2.4-r7 dev-util/cmake: 2.6.4-r3 sys-apps/baselayout: 2.0.1 sys-apps/openrc: 0.6.1-r1 sys-apps/sandbox: 1.6-r2 sys-devel/autoconf: 2.13, 2.63-r1 sys-devel/automake: 1.11.1 sys-devel/binutils: 2.18-r3 sys-devel/gcc: 4.3.4 sys-devel/gcc-config: 1.4.1 sys-devel/libtool: 2.2.6b virtual/os-headers: 2.6.33 ACCEPT_KEYWORDS="amd64" ACCEPT_LICENSE="* -@EULA" CBUILD="x86_64-pc-linux-gnu" CFLAGS="-O2 -march=core2 -mtune=core2 -pipe" CHOST="x86_64-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/share/X11/xkb" CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo" CXXFLAGS="-O2 -march=core2 -mtune=core2 -pipe" DISTDIR="/usr/portage/distfiles" FEATURES="assume-digests ccache distlocks fixpackages metadata-transfer news parallel-fetch protect-owned sandbox sfperms strict unmerge-logs unmerge-orphans userfetch" GENTOO_MIRRORS="http://gentoo.osuosl.org/ ftp://mirrors.rit.edu/gentoo/ ftp://ftp.ussg.iu.edu/pub/linux/gentoo ftp://mirror.datapipe.net/gentoo ftp://ftp.ucsb.edu/pub/mirrors/linux/gentoo/ ftp://mirror.mcs.anl.gov/pub/gentoo/ ftp://ftp.gtlib.gatech.edu/pub/gentoo " LANG="en_US.UTF-8" LDFLAGS="-Wl,-O1" 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/x11 /var/lib/layman/xfce-dev /usr/local/portage/local" SYNC="rsync://rsync.namerica.gentoo.org/gentoo-portage" USE="X alsa amd64 bash-completion berkdb bzip2 cairo cjk cli cracklib crypt cups cxx dri fortran gdbm gpm gtk gtk2 hal iconv mad mmx modules mudflap ncurses nls nptl nptlonly opengl openmp pam pcre perl pppd python readline reflection session spl sse sse2 ssl ssse3 sysfs tcpd threads truetype unicode xinerama xorg xulrunner 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="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 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" ELIBC="glibc" INPUT_DEVICES="evdev synaptics" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" QEMU_SOFTMMU_TARGETS="x86_64" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="intel svga" Unset: CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LC_ALL, LINGUAS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
For the record, was it working for any previous version of www-client/chromium (i.e. is it a regression)? Also, could you post more detailed info about steps to reproduce? How did you enable HTML 5 video support in YouTube, and how do you tell that it's Flash and not HTML 5 video? Some screenshots would be nice.
Created attachment 228569 [details] Screenshot of youtube
Created attachment 228571 [details] Screenshot of youtube
Sorry about not being more thorough with my bug report. The last time it worked for me was www-client/chromium-5.0.366.2. I can tell the video is being played using flash by right-clicking the video and seeing the "About Adobe Flash Player 10..." in the context menu. Steps to reproduce: 1. Go to http://www.youtube.com/html5 and join the HTML5 beta 2. Go to http://www.youtube.com/watch?v=0AWJnWNm5sU and observe the video being played using Flash
I decided to change the ebuild for chromium-5.0.375.9 and change epatch "${FILESDIR}"/${PN}-supported-media-mime-types.patch to epatch "${FILESDIR}"/${PN}-20100122-ubuntu-html5-video-mimetypes.patch The result is that HTML5 playback on youtube works again. The strange thing is that I had both useflags mp3 and x264 enabled so the result should actually have been the same. Any ideas why just switch the patch would change the result?
(In reply to comment #5) > Any ideas why just switch the patch would change the result? Thanks for trying that. Could you also attach the build.log from the emerge of www-client/chromium after which h.264 video doesn't work? For example, I wonder if the patched file is compiled multiple times with different CFLAGS or something.
Created attachment 228683 [details] build log for chromium which fails to play youtube video
(In reply to comment #7) > Created an attachment (id=228683) [details] > build log for chromium which fails to play youtube video Thanks. This indicates that mime_util.cc is only compiled once (correct) with the right CFLAGS. Could you post info from http://html5test.com/ ? Does it say the browser supports h.264? I would expect score of 142/160. On my system it doesn't fall back to Flash, but it doesn't play either (the HTML 5 spinner keps spinning).
Here, sometimes, even when subscribed to html5 beta, some videos play in flash. For example the linked video in this bug plays in flash Here is one that plays as html5 here, if you can try it: http://www.youtube.com/watch?v=TU0nNKnzTRE&feature=popular Also it may be worth checking with a clean profile, run chromium like: $ chromium --user-data-dir=/tmp/temp_profile then activate youtube html5 and try the video again
Also note that official google chrome binary behaves the same (flash for discovery, html5 for the video I linked), so this could be a youtube problem instead
html5test gives me 142/160 I'm sorry Pawel, it seems this wasn't really a bug but human error on my part. As Bernard has indicated, it seems that not all videos play in HTML5 despite being subscribed to that beta channel. The link that Bernard has posted works with the chromium-5.0.375.9.build that is in portage. Really sorry to have wasted your time.