New issue
Advanced search Search tips

Issue 677030 link

Starred by 2 users

Issue metadata

Status: Duplicate
Owner:
Closed: Jan 2017
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: Windows
Pri: 2
Type: Bug



Sign in to add a comment

Video webm is glitching while I update the property "currentTime"

Reported by fanthoma...@gmail.com, Dec 26 2016

Issue description

UserAgent: Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/55.0.2883.87 Safari/537.36

Steps to reproduce the problem:
Copy / paste this bunch of code : 

<body onload="start()">
    <script type="text/javascript">
        var seekable = true;
        var player;
        function start() {
            player = document.createElement("video");
            player.src = "449_256.webm";
            player.onseeked = function(){ seekable = true; }
            document.body.appendChild(player);
            requestAnimationFrame(update)
        }
        function update(){
            if(seekable){
                seekable = false;
                player.currentTime += 0.1;
            }
            requestAnimationFrame(update)
        }
    </script>
</body> 

What is the expected behavior?
The video should look like... a video

What went wrong?
The video is so glitched that you cannot even imagine what you are actually watching

Did this work before? N/A 

Chrome version: 55.0.2883.87  Channel: stable
OS Version: 6.1 (Windows 7, Windows Server 2008 R2)
Flash Version: Shockwave Flash 24.0 r0

Please fix it ! 

Thank you for all your work !
 
449_256.webm
111 KB View Download
Ahahah It's fun to see that the problem is viewable directly inside your player : just try to seek !
Cc: kkaluri@chromium.org
Labels: Needs-Feedback
 fanthomas.lecoz@ In order to triage this issue could you please help us with the sample http/jsfiddle page and required steps to reproduce the scenario. So that we can reproduce the scenario on our end.

Thank you...
I will do that, but don t you see the problem in the "preview-player" of my
attached video file ?
Just try to seek in your player and you will see what I mean ( i dont see
the problem on mobile device)

I ll comeback with a jsfiddle soon
Le 27 déc. 2016 10:51, "kkal… via monorail" <
monorail+v2.2099402154@chromium.org> a écrit :
Hello again ! 

Here is a html page that shows the problem 
(sorry I don't know how to add an external ressource on jsfiddle )

http://www.kizoa.fr/tests/bug.html

Thank you for your help !
(I just would like to precise that this bug only happen in chrome on a computer (not on mobile) ; I now test with this current page, using the player provided by chrome to seek the attached file given in this post and it works as expected in firefox) 

I think - but I may be wrong - that this problem always exists in chrome but was imperceptible because of the size of the video. My video is very small (110 ko only) , and a very small imprecision during the video process has a big impact on the screen.

Thank you again for your help
Just in case you never read my message, here is what I mean :)
bug.jpg
402 KB View Download

Comment 7 Deleted

"status : unconfirmed" 

??? 


IMG_20161228_142936587 (Copier).jpg
714 KB View Download
IMG_20161228_142955484_HDR (Copier).jpg
562 KB View Download
IMG_20161228_143013548 (Copier).jpg
447 KB View Download
IMG_20161228_143019793_HDR (Copier).jpg
574 KB View Download
IMG_20161228_143025938_HDR (Copier).jpg
584 KB View Download
IMG_20161228_143031074_HDR (Copier).jpg
590 KB View Download
IMG_20161228_143045045_HDR (Copier).jpg
685 KB View Download
IMG_20161228_143055208 (Copier).jpg
590 KB View Download
IMG_20161228_143102354 (Copier).jpg
493 KB View Download
IMG_20161228_143105210_HDR (Copier).jpg
654 KB View Download
IMG_20161228_143118778_HDR (Copier).jpg
594 KB View Download
IMG_20161228_143147205_HDR (Copier).jpg
643 KB View Download
IMG_20161228_143201388_HDR (Copier).jpg
581 KB View Download
Components: -Blink Blink>Media>Video
 Issue 677499  has been merged into this issue.
Hello Google-guys ! 
Happy new year ! 


I just would like to precise that I have this bug with every webm file I'm using (and I have around one thousands). 

My files are very small because I'm trying to convert a flash-app into a webgl-app and each webm contains what used to be a short SWF movie.

 Most of my files have a very small duration, less than 3 seconds, and because I can potentially have 10 webm at the same time in the page, I'm using 256x256 webm files ; that's why the size of the files are so small. 

I considered the fact to use png-spritesheet instead of webm-video ; everything worked perfectly but the size of webm files are 5-10x smaller than a 2048x2048 png spritesheet (even if I optimize it) and that's why I would prefer to use webm. 

Just to show you that the issue is not isolated, I send you some of my webm files. The problem is viewable with every of them : first, push the play button then grab the playhead-cursor and try to seek.  


Thank you for your work

Best regards


 
64_256.webm
37.5 KB View Download
54_256.webm
66.2 KB View Download
83_256.webm
27.3 KB View Download
109_256.webm
62.7 KB View Download
211_256.webm
97.4 KB View Download
Cc: dalecur...@chromium.org
That sounds a lot like an encoding issue. Though, I'm no specialist. +dalecurtis@ who might be able to confirm.
Hello ! 
Thank you for your message. 

I really doubt it comes from the encoding. 

Webm files are created using FFMPEG from a sequence of png-image, it's really really basic. 

If you think it can help to solve the issue, I can send you the exact FFMPEG command I'm using to create the files but I really doubt the problem come from here because I'm using a lot of video file in the app I'm working on, every of them are created using FFMPEG without any problem. 

I'm rebuild in html5/webgl an existing app built in Flash ; there is maybe 100 millions of vidéo files in our server and the only problem we have concern the small webm files like the ones I attached in this post

Moreover, the webm file are seekable "correctly" in firefox... 
Try to open this current page in firefox, then try to seek one of my video and it will work as expected. 

I'm really sorry for you guys but I'm 99% sure that the problem come from Chrome since the issue is only visible in Chrome

(and actually, it also work as expected on the android version of chrome ; the problem only concern chrome for desktop (with different version of windows) )
These videos only have a single keyframe at the beginning, for whatever reason seeking is seeking to an exact point, which is incorrect. It should always return time zero and drop frames until the requested seek point. What command line are you using to encode this?
Hello !

Thank you for your message. 

I will send you the command tomorrow because it's 22:20 in France and I'm not at the office but if it works in firefox - and it works better than expected, it's like I could seek frame by frame in real time - , don't you think the problem may come from chrome ? 

Did you try to play and seek my files in firefox ?

- the glitsh-rendering is certainly a bug no ? It only happen on chrome on windows 7-8-10 (didn't try with XP / Apple ) -



Hello ! 

Here is the FFMPEG command we are using to create the webm from a sequence of png file :

ffmpeg.exe -pattern_type sequence -y -start_number 1 -i C:/Users/PIXVISIO/Desktop/videoPNG/img_%d.png -r 30 -c:v libvpx -pix_fmt yuva420p -metadata:s:v:0 alpha_mode='1' -vf scale='256x256' C:/Users/PIXVISIO/Desktop/WEBMS/movie.webm

Thank you !

I'm sorry, I speak a bit too much but I just would like to say that I disagree with what you said before 

"It should always return time zero and drop frames until the requested seek point"

This is not a solution, and this is not at all a "seeking"... 

If I put my playhead at 50% , I do not expect that my video stay blocked at the first frame, I expect to see the frame located at the half of the video. 

I'm sorry - really - to insist but if firefox can do it, why Chrome couln't do it while Google is the creator of webm format ? 


I'm trully sorry to be so harsh with you ; you - google teams - are all my heros and I admire your work a lot, but because you are my hero I expected you to do a great work all the time - and then I expect you to fix the bug -

Thank you again for all your work 


Here is a webm with 2 keyframe (one at the beginning and one at the end). 

The video continue to glitsh when I'm trying to seek... 

Try by yourself 


377_256.webm
145 KB View Download
Project Member

Comment 20 by sheriffbot@chromium.org, Jan 19 2017

Labels: -Needs-Feedback Needs-Review
Owner: kkaluri@chromium.org
Thank you for providing more feedback. Adding requester "kkaluri@chromium.org" for another review and adding "Needs-Review" label for tracking.

For more details visit https://www.chromium.org/issue-tracking/autotriage - Your friendly Sheriffbot
Someone pointed me at this issue.

The problem is the files are malformed. Every frame is marked as a key frame in the container even though there is really only one key frame in the beginning of the file. So Chrome thinks every frame is seekable.

I would file a bug on FFmpeg list with your command line and a file.
Hello !
Thank you for your message but I trully don't understand why you don't just admit that the problem come from Chrome.... 

Can you please TRY TO PLAY IT IN FIREFOX ?! 
Sorry to scream but I repeat the same thing again and again and again and it's like nobody never try to play the file outside of chrome just to see if it works as expected or not.... 

I really doubt that the problem come from my file because firefox is able to seek it frame-by-frame perfectly and also because my FFMPEG command is pretty simple. 

Either firefox produce miracle, either Chrome bug... 

If Webm was a format made by Mozilla, I could understand why firefox can do something impossible to do with Chrome but Webm was made by Google and then it's incredible to see that Chrome doesn't support it as well as firefox... 


(sorry for my approximative english, it's not my native language)

Comment 23 Deleted

I deleted comment #23 because there was some wrong info and I didn't want to confuse this issue.
Mergedinto: 497889
Status: Duplicate (was: Unconfirmed)
I tested in Firefox. Yes the file seeks but actually doesn't blend correctly with alpha, so it doesn't work perfectly.

But that still doesn't change the fact that the file is malformed. I went and looked and we actually fixed this issue in FFmpeg in 2015. So my guess is you are using an older version of FFmpeg to make these files.

I attached a file I made with one of your files with a newer version of FFmpeg. Here was my command line:
ffmpeg -i d78b7ba1-8927-4169-8d0e-145b99428a0f -pix_fmt yuva420p -c:v libvpx -auto-alt-ref 0 calc_alpha.webm


Now even if you create proper webm files with alpha, there is a bug in Chrome with seeking with Webm and alpha. So I am going to go ahead and mark this issue a duplicate of the older issue.

I will also make two suggestions:
1. If your files do not need alpha encode them without alpha and you will not have any problems.
2. If you do need alpha and crbug.com/497889 gets fixed your files sill may not work, so I would suggest updating your FFmpeg.

calc_alpha.webm
83.0 KB View Download
Hello !

Thank you for your messages and your time. 

Unfortunately, I'm a bit surprise because the file you attached in your message (made with a newer version of FFMPEG) has exactly the same problem of seek (but now the alpha channel doesn't work as expected anymore)

I'm sorry but I'm still thinking that there is a problem in Chrome somewhere. 

Thank you again for your time (and all your work)


chromeWebmBug.jpg
468 KB View Download

Sign in to add a comment