Closed Bug 1666099 Opened 4 years ago Closed 3 years ago

uploading mp4 video in reddit gives error "Sorry, we accept only images (.png, .jpeg, .gif) and videos (.mp4, .mov)"

Categories

(Core :: Audio/Video: Playback, defect, P5)

Firefox 82
Desktop
Linux
defect

Tracking

()

RESOLVED DUPLICATE of bug 1641603
Tracking Status
firefox81 --- disabled
firefox82 --- disabled
firefox83 --- disabled

People

(Reporter: sk.griffinix, Unassigned)

References

(Blocks 1 open bug)

Details

(Keywords: nightly-community)

Attachments

(1 file)

User Agent: Mozilla/5.0 (X11; Linux x86_64; rv:82.0) Gecko/20100101 Firefox/82.0

Steps to reproduce:

  1. Go to reddit
  2. Create new post
  3. Try to upload video (.mp4 or .mov)

Actual results:

The above mentioned error is displayed

Expected results:

Video should have uploaded normally. Same video gets uploaded with chrome

I confirm that on Firefox 81.0, Firefox 82.0b2 and on Firefox Nightly 83.0a1 on Ubuntu 18.04 uploading video (.mp4) is not possible, I didn't receive any error but once I upload a video by drag and drop or by choosing a file nothing happens.

The issue isn't reproducible on MacOS 10.14 or on chrome.

Suggested severity: S1

Status: UNCONFIRMED → NEW
Component: Untriaged → File Handling
Ever confirmed: true

This likely has to do with the mimetype reported by the DOM Forms / file uploading code, so moving there initially. However, this probably needs more steps, because I actually can't reproduce on my Linux VM

I tested with both old or new reddit. On old reddit I successfully get a preview, in new reddit I get a blank box but no errors about the submission, and submitting it got me a real post: https://new.reddit.com/user/gijsk/comments/j37m4p/suitable_subject/
I used Firefox 81 release.

I used test-video.mp4 from https://searchfox.org/mozilla-release/source/toolkit/components/pictureinpicture/tests/ .

Component: File Handling → DOM: Forms
Flags: needinfo?(hani.yacoub19)
Keywords: steps-wanted
OS: Unspecified → Linux
Product: Firefox → Core
Hardware: Unspecified → Desktop

I tested with both old or new reddit. On old reddit I successfully get a preview, in new reddit I get a blank box but no errors about the submission, and submitting it got me a real post: https://new.reddit.com/user/gijsk/comments/j37m4p/suitable_subject/

I still have the same error on nightly 83. Also for some reason, the link is leading to message "Sorry, there aren’t any communities on Reddit with that name."

I used test-video.mp4 from https://searchfox.org/mozilla-release/source/toolkit/components/pictureinpicture/tests/ .
I tried with same video, but it gives the same error

I have toggled couple of preferences in nightly experiments, especially webgpu and fission

(In reply to Leo_sk from comment #3)

I tested with both old or new reddit. On old reddit I successfully get a preview, in new reddit I get a blank box but no errors about the submission, and submitting it got me a real post: https://new.reddit.com/user/gijsk/comments/j37m4p/suitable_subject/

I still have the same error on nightly 83.

So it's broken on release as well as nightly? Or you're only testing on Nightly?

Is it broken on a clean profile without fission and any other experiments you've enabled?

Flags: needinfo?(sk.griffinix)

(In reply to :Gijs (he/him) from comment #2)

Disabling the preferences above, gives similar behaviour to what you mentioned

Flags: needinfo?(sk.griffinix)

(In reply to Leo_sk from comment #5)

(In reply to :Gijs (he/him) from comment #2)

Disabling the preferences above, gives similar behaviour to what you mentioned

So just to be clear, if you disable fission it works, if you enable fission it stops working?

Flags: needinfo?(sk.griffinix)

(In reply to :Gijs (he/him) from comment #6)

(In reply to Leo_sk from comment #5)

(In reply to :Gijs (he/him) from comment #2)

Disabling the preferences above, gives similar behaviour to what you mentioned

So just to be clear, if you disable fission it works, if you enable fission it stops working?

Same error occurs in non-fission window. Also disabling dom.webpgpu.enabled does not appear to solve it. I tested in a new profile before without any modifications from default

Flags: needinfo?(sk.griffinix)

Also starting in safe mode, files can be uploaded. But even after disabling every extension manually, I still have the bug. What else does safe mode do?

OK, things are sort of becoming more muddled here. I know it's a lot of questions, but please could you try answering these all one at a time:

(In reply to Leo_sk from comment #7)

(In reply to :Gijs (he/him) from comment #6)

(In reply to Leo_sk from comment #5)

(In reply to :Gijs (he/him) from comment #2)

Disabling the preferences above, gives similar behaviour to what you mentioned

So just to be clear, if you disable fission it works, if you enable fission it stops working?

Same error occurs in non-fission window. Also disabling dom.webpgpu.enabled does not appear to solve it. I tested in a new profile before without any modifications from default

So I'm very confused now.

In non-safe-mode, in your usual profile, with fission and all the other options enabled, this is broken, yes?

In a clean new profile without any add-ons or other options or sync/fxaccounts enabled, it's working for you, correct?

What did you mean saying "disabling the preferences above, gives similar behaviour" - which preferences, and which "similar behaviour" - still broken, or upload works correctly ?

(In reply to Leo_sk from comment #9)

Also starting in safe mode, files can be uploaded. But even after disabling every extension manually, I still have the bug. What else does safe mode do?

It turns off a bunch of optimizations in various places. It seems unlikely they're related. If you turn off all extensions manually and restart the browser, is the bug still present?

Finally, can you try opening this:

https://jsbin.com/hecofisenu/edit?html,js,output

and adding an mp4 file that doesn't work to the file input box in both the profile/safe-mode situation where it works and where it doesn't - are the values outputted into the document the same both times, and what are they?

Flags: needinfo?(sk.griffinix)

Okay, I will try to make it coherent:

Normal profile - bug present
New profile - bug absent
Safe mode - bug absent
all addons manually disabled - bug present
fission and webgpu disabled in normal profile - bug present

Restart was done each after disabling addons and disabling fission and webgpu

Flags: needinfo?(sk.griffinix)

(In reply to Leo_sk from comment #11)

Okay, I will try to make it coherent:

Normal profile - bug present
New profile - bug absent
Safe mode - bug absent
all addons manually disabled - bug present
fission and webgpu disabled in normal profile - bug present

Restart was done each after disabling addons and disabling fission and webgpu

OK, thanks, that helps - what about the jsbin testcase at the bottom of comment #10?

Flags: needinfo?(sk.griffinix)

(In reply to :Gijs (he/him) from comment #12)

OK, thanks, that helps - what about the jsbin testcase at the bottom of comment #10?

Yes, the same value is outputted both times with safe mode as well as without safe mode.

Flags: needinfo?(sk.griffinix)

(In reply to Leo_sk from comment #13)

(In reply to :Gijs (he/him) from comment #12)

OK, thanks, that helps - what about the jsbin testcase at the bottom of comment #10?

Yes, the same value is outputted both times with safe mode as well as without safe mode.

OK, I'm running out of ideas, tbh. Hopefully Hani will have more luck describing how they tested and what is different about their setup that makes this reliably reproducible.

I have finally pinned the problem. It occurs when media.ffmpeg.vaapi.enabled is set to true. It is however required for hardware video acceleration

Severity: -- → S3
Component: DOM: Forms → Audio/Video: Playback
Priority: -- → P5
See Also: → 1641603
Blocks: egl-linux-vaapi
No longer blocks: egl-linux-dmabuf

Same problem in whatsapp web. Uploading mp4 files shows error "This file is not supported"

Status: NEW → RESOLVED
Closed: 3 years ago
Flags: needinfo?(hani.yacoub19)
Resolution: --- → DUPLICATE
See Also: 1641603
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: