14f0a Chromium skipping in HTML5 videos - The FreeBSD Forums
The FreeBSD Forums  

Go Back   The FreeBSD Forums > Desktop Usage > Multimedia

Multimedia Having problems running your new shiny and blinking gadget or watching DVDs, listening to CDs etc.?

Reply
 
Thread Tools Display Modes
  #1  
Old February 5th, 2012, 10:45
nakal's Avatar
nakal nakal is offline
Member
 
Join Date: Nov 2008
Location: Germany
Posts: 156
Thanks: 40
Thanked 18 Times in 15 Posts
Default Chromium skipping in HTML5 videos

I don't know exactly what is happening in Chromium, but I cannot play many HTML5 videos, because they skip during playback and this is extremely annoying.

Can you please tell me, if you have the same problem?

Here is a video which begins to skip at about 1 min 20 sec (you can also fast forward to this point, it has nothing to do with buffers underrunning):
http://www.youtube.com/watch?v=VzFpg271sm8

Don't forget to setup HTML5 here:
http://www.youtube.com/html5

One more thing... I am not talking about Flash(tm), I've never used it and I don't want to use it. So, "install Flash plugin(tm)" is not an option for me.
Reply With Quote
  #2  
Old February 5th, 2012, 14:16
adamk adamk is offline
Senior Member
 
Join Date: Nov 2008
Posts: 1,605
Thanks: 6
Thanked 262 Times in 243 Posts
Default

Half way through that video, no skipping here with Chromium 16. What version are you using? Do other browsers that support HTML5 video work any better for you?

EDIT: Just finished it... The only point where there was the slightest problem with playback was when plasma decided to switch wallpapers..
Reply With Quote
  #3  
Old February 5th, 2012, 21:31
nakal's Avatar
nakal nakal is offline
Member
 
Join Date: Nov 2008
Location: Germany
Posts: 156
Thanks: 40
Thanked 18 Times in 15 Posts
Default

Quote:
What version are you using?
chromium-16.0.912.77

Quote:
Do other browsers that support HTML5 video work any better for you?
The video does not work in Firefox 9 at all. The HTML5 video is encoded with h.264 and it is not supported in Firefox.

It starts to skip reproducibly at the time where the guy takes a full wall of blocks and holds them in the air about 2:00. I tried to view the video in full screen mode, I forgot to tell.
Reply With Quote
  #4  
Old February 5th, 2012, 22:09
adamk adamk is offline
Senior Member
 
Join Date: Nov 2008
Posts: 1,605
Thanks: 6
Thanked 262 Times in 243 Posts
Default

Well, for what it's worth, the video does work in Firefox 9 in FreeBSD: http://thorn.visualtech.com/video-in-firefox.jpg

I will say that full screen, though, the video performs much worse for me in firefox than in chromium.

Now, back to Chromium... In full screen, the video does not perform as well as it does at its normal size. There's a slight jitteriness to it any time there's a lot of activity on the screen. If I had to guess, I'd say that it's either due to both video drivers not being that great and HTML5 video playback just not being optimized for X. I think I'm going to try in Windows and see what happens, as well as in Slackware with the proprietary drivers from AMD.

Adam
Reply With Quote
  #5  
Old February 5th, 2012, 22:23
nakal's Avatar
nakal nakal is offline
Member
 
Join Date: Nov 2008
Location: Germany
Posts: 156
Thanks: 40
Thanked 18 Times in 15 Posts
Default

How can you view this video in a format that Firefox does not support at all? I don't get it? What does the HTML5 site on Youtube tell you about support of h.264? And do you really have HTML5 enabled or do you use Flash Plugin?

I am not talking about slightly skipping, I am talking about stopping totally for several seconds and then skipping frames and stopping again, skipping frames. Sound is also totally unusable.

Two things happen on Chromium when the tab with the video is open (playing or paused, even after 1 hour, when the video is already fully downloaded and buffered):
  1. Network load (incoming) is at about 40-160kB/s.
  2. Chromium writes to disk at 5-20 MB/s, but the used space is not decreasing according to "df -k".

What the hell is going on here!?
Reply With Quote
  #6  
Old February 5th, 2012, 22:43
adamk adamk is offline
Senior Member
 
Join Date: Nov 2008
Posts: 1,605
Thanks: 6
Thanked 262 Times in 243 Posts
Default

Youtube tells me that h.264 is not supported. And yes, I'm quite sure I'm not using the flash plugin: http://thorn.visualtech.com/youtube-html5-video.png

So, presumably, this video is available in webm, and not h.264 (or, perhaps, in addition to h.264). How are you determining the format being used?

Back to chromium... I do not experience the skipping you're talking about with the fullscreen video in chrome. I do experience it with the fullscreen video in firefox, however. I'm also not seeing the disk usage you're referring to, either. If you select the "Show video info" option in the context menu for the video, does anything interesting show up?

Adam
Reply With Quote
  #7  
Old February 5th, 2012, 22:54
drhowarddrfine drhowarddrfine is offline
Member
 
Join Date: Nov 2008
Location: St. Louis, Missouri
Posts: 634
Thanks: 30
Thanked 123 Times in 71 Posts
Default

Not all videos are being served as HTML5 and that one is not for me. (Yes, I am in the test.)
Reply With Quote
  #8  
Old February 5th, 2012, 23:06
adamk adamk is offline
Senior Member
 
Join Date: Nov 2008
Posts: 1,605
Thanks: 6
Thanked 262 Times in 243 Posts
Default

If you have flash installed, it will default to flash for that video, whether you are in the trial or not. Remove the plugin, restart your browser, and it will use HTML5. Not sure why it does that.

Adam
Reply With Quote
  #9  
Old February 6th, 2012, 17:22
nakal's Avatar
nakal nakal is offline
Member
 
Join Date: Nov 2008
Location: Germany
Posts: 156
Thanks: 40
Thanked 18 Times in 15 Posts
Default

Quote:
So, presumably, this video is available in webm, and not h.264 (or, perhaps, in addition to h.264). How are you determining the format being used?
Oh sorry... it appears that the VideoDownloader Addon (in Firefox) does some magic behind the download. I thought, it would download the video as it is served.

You are right... I decoded the URI from the source directly and it appears to be WebM VP8.

Quote:
If you select the "Show video info" option in the context menu for the video, does anything interesting show up?
No, it even does not mention that thousands of frames are being dropped. It shows 2 or 9, even the video does not move entirely after one minute. The effect which I get here is independent of full screen mode. It happens in the small playback window, too.

I can see several warnings when I start chromium in the terminal, I noticed:
Code:
[5249:106112000:5866963291:ERROR:platform_thread_posix.cc(253)] Not implemented reached in
     static void base::PlatformThread::SetThreadPriority(pthread*, base::ThreadPriority)
I wished I could figure out what causes all the massive write access during viewing of the youtube webpage. But the writes don't cause any space to be allocated on disk (this is also not swap) that's why I am a bit confused.
Reply With Quote
  #10  
Old February 7th, 2012, 21:21
nakal's Avatar
nakal nakal is offline
Member
 
Join Date: Nov 2008
Location: Germany
Posts: 156
Thanks: 40
Thanked 18 Times in 15 Posts
Default

I traced it a bit with truss. It's a bit hard, because Chromium crashes very often when trying to attach. I don't know the reason why.

But I now know why I have such a big number of writes. Chromium seems to open thousands of temporary files in /tmp and instantly deletes them again. This looks like below but many, many more.

Code:
...
open("/tmp/.org.chromium.Chromium.RANDOMSTR",O_RDWR|O_CREAT|O_EXCL,0600) = 121 (0x79)
open("/tmp/.org.chromium.Chromium.RANDOMSTR",O_RDWR|O_CREAT|O_EXCL,0600) = 121 (0x79)
open("/tmp/.org.chromium.Chromium.RANDOMSTR",O_RDWR|O_CREAT|O_EXCL,0600) = 121 (0x79)
...
I can imagine that the disk buffers run full after some time and Chromium has to wait until all the weird write accesses are flushed to the disk. And then nothing moves anymore.

Whatever is causing this, this seems to be a bug. I cannot imagine a scenario where a video player needs to open that many temporary files.

Last edited by DutchDaemon; February 8th, 2012 at 04:32.
Reply With Quote
  #11  
Old February 16th, 2012, 15:44
nakal's Avatar
nakal nakal is offline
Member
 
Join Date: Nov 2008
Location: Germany
Posts: 156
Thanks: 40
Thanked 18 Times in 15 Posts
Default

Update:

I filed a bug here. I think the developer identified the problem.

If you know how to provide something like /dev/shm on Linux to Chromium for FreeBSD, please comment on this bug.
Reply With Quote
  #12  
Old February 17th, 2012, 20:10
nakal's Avatar
nakal nakal is offline
Member
 
Join Date: Nov 2008
Location: Germany
Posts: 156
Thanks: 40
Thanked 18 Times in 15 Posts
Default Chromium needs a bugfix

Hi people,

Is there anyone who has some time to write a bugfix for Chromium to port it from Linuxish /dev/shm to shm_open(2) and/or other POSIX compliant alternatives to speed up Chromium for FreeBSD?

Last edited by DutchDaemon; February 18th, 2012 at 02:08.
Reply With Quote
Reply

Tags
chromium, html5, video

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Konqueror 4.7.2 and HTML5 Video issue alie Multimedia 9 November 6th, 2011 18:07
suitable plugin for chromium to playing audiostreams directly inside chromium minimike Multimedia 0 August 11th, 2011 10:47
[Solved] HTML5 in Chromium bsd10 Multimedia 2 December 16th, 2010 06:18
Opera vs HTML5 and x.264 richardpl Multimedia 0 September 4th, 2010 13:02
OSNEWS: Google Hints at HTML5 Video Version of YouTube graudeejs Multimedia 48 May 20th, 2010 00:55


All times are GMT +1. The time now is 09:28.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2013, vBulletin Solutions, Inc.
The mark FreeBSD is a registered trademark of The FreeBSD Foundation and is used by The FreeBSD Project with the permission of The FreeBSD Foundation.
Web protection and acceleration provided by CloudFlare
0