Bug 161963 - [GTK] Gifv videos from Imgur.com don't get displayed when opened from a "direct" link
Summary: [GTK] Gifv videos from Imgur.com don't get displayed when opened from a "dire...
Status: RESOLVED WORKSFORME
Alias: None
Product: WebKit
Classification: Unclassified
Component: WebKitGTK (show other bugs)
Version: WebKit Local Build
Hardware: PC Linux
: P3 Normal
Assignee: Nobody
URL:
Keywords:
: 185168 (view as bug list)
Depends on:
Blocks:
 
Reported: 2016-09-14 08:03 PDT by Julián Unrrein
Modified: 2019-05-17 09:56 PDT (History)
7 users (show)

See Also:


Attachments
Video showing the difference when loading the same video using different URLs (3.41 MB, application/octet-stream)
2016-09-14 08:03 PDT, Julián Unrrein
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Julián Unrrein 2016-09-14 08:03:22 PDT
Created attachment 288813 [details]
Video showing the difference when loading the same video using different URLs

Using:
Opensuse Tumbleweed
Epiphany             3.20.3
WebkitGtk            2.13.91 (It also happened on 2.12.x)

This issue happens with the custom gifv video format used by Imgur.com.

When viewing one of these using the "main" webpage, the video gets loaded correctly.
Sample link: http://imgur.com/8RXhbLz

When viewing one of these using a "direct" link, the video doesn't get loaded correctly.
Sample link: http://i.imgur.com/8RXhbLz.gifv

I don't know whether the issue lies within WebitGtk or not, but I don't have the knowledge or expertise necessary to determine where it is. Hopefully you can help me with that.

I'm attaching a video showing the issue.
Comment 1 Carlos Garcia Campos 2016-09-14 08:11:11 PDT
It's weird, it flashes and then it doesn't work, but if you resize the window it works again.
Comment 2 Julián Unrrein 2016-09-14 08:13:20 PDT
(In reply to comment #1)
> It's weird, it flashes and then it doesn't work, but if you resize the
> window it works again.

Woa, I didn't notice that, and I can reproduce that here too.

If you don't think it's a WebkitGtk issue, I'll appreciate any other information you can give so I can forward it to the Imgur developers.
Comment 3 Michael Catanzaro 2016-09-14 10:53:57 PDT
FWIW: I see no video at either link, resizing the window doesn't make any difference for me, and I can't view your attachment since you uploaded an mp4 rather than a webm. The gif plays fine if I click the download link and open it in image viewer, but then it's downloading a gif and not a gifv. The groomsman in the gif is excellent.

Note this imgur was working fine until a month or two ago; it's not a WebKit regression, rather, imgur recently changed something on their server.

(In reply to comment #2) 
> If you don't think it's a WebkitGtk issue, I'll appreciate any other
> information you can give so I can forward it to the Imgur developers.

More likely a WebKit bug IMO, but not enough info here to know yet. The best people to debug are almost always the website developers anyway.
Comment 4 Julián Unrrein 2016-09-14 14:53:09 PDT
(In reply to comment #3)
> FWIW: I see no video at either link, resizing the window doesn't make any
> difference for me, and I can't view your attachment since you uploaded an
> mp4 rather than a webm.

It turns out that's because imgur's gifv format is some form of mp4 and/or h264 (I'm not very knowledgeable in this area either). See "Gifv with Firefox"[0] for more.

> The groomsman in the gif is excellent.

Glad you found it of taste.

> Note this imgur was working fine until a month or two ago; it's not a WebKit
> regression, rather, imgur recently changed something on their server.

I don't remember this working correctly on Epiphany 3.18 last year either (that's one of the reasons I stopped using it) but I didn't report it back then.

> > If you don't think it's a WebkitGtk issue, I'll appreciate any other
> > information you can give so I can forward it to the Imgur developers.
> 
> More likely a WebKit bug IMO, but not enough info here to know yet. The best
> people to debug are almost always the website developers anyway.

How can I help? Bringing in the Imgur devs?

https://help.imgur.com/hc/en-us/articles/210528026-Gifv-with-Firefox
Comment 5 Michael Catanzaro 2016-09-14 15:15:23 PDT
(In reply to comment #4)
> How can I help? Bringing in the Imgur devs?
> 
> https://help.imgur.com/hc/en-us/articles/210528026-Gifv-with-Firefox

It never hurts to remind them that depending on encumbered codecs is evil and costs them users; they probably don't know any better. It used to be such a nice image hosting site. Reddit is a lot less fun now. :(

That window resize starts playback is probably a WebKit bug, though.
Comment 6 Eddy Castillo 2017-05-24 18:53:25 PDT
I will only add, as of version 2.16.2 of WebKitGTK+ it's reproducible.

2 additional ways to make the video visible:

- Changing zoom.
- "Rigth click > view media controls".
Comment 7 Carlos Garcia Campos 2017-06-16 07:30:54 PDT
I think we fixed this in r216758.
Comment 8 Michael Catanzaro 2017-06-16 14:10:13 PDT
No, that revision was merged to 2.16.3, but imgur is still broken.
Comment 9 Adrian Perez 2018-05-02 07:12:53 PDT
This seems to be working now with WebKitGTK+ 2.20.1 + Epiphany 3.28.1.1
Comment 10 Michael Catanzaro 2018-05-02 09:06:04 PDT
It's broken for me with 2.21.1. I actually just reported a duplicate of this yesterday.

The workaround I found is to resize the window.
Comment 11 Michael Catanzaro 2018-05-02 09:06:13 PDT
*** Bug 185168 has been marked as a duplicate of this bug. ***
Comment 12 Adrian Perez 2018-05-02 09:37:09 PDT
(In reply to Michael Catanzaro from comment #10)
> It's broken for me with 2.21.1. I actually just reported a duplicate of this
> yesterday.
> 
> The workaround I found is to resize the window.

I have right now tried trunk, and the video works fine for me.
Could it be some difference in the GStreamer codecs available
in your setup and mine?
Comment 13 Michael Catanzaro 2018-05-02 09:41:59 PDT
No clue. I'm using Ephy Tech Preview.
Comment 14 Lionir 2019-05-16 23:50:19 PDT
It works for me on latest Epiphany, can you still reproduce Michael?
Comment 15 Julián Unrrein 2019-05-17 07:11:43 PDT
This issue is now resolved for me in Epiphany 3.32.2 and webkit2gtk3 2.24.1.