invidious+Firefox78/82+Redirector+NoScript = "No video with supported format and MIME type found."

Ask for help about NoScript, no registration needed to post
ppxxbu

invidious+Firefox78/82+Redirector+NoScript = "No video with supported format and MIME type found."

Post by ppxxbu »

I got a "Ooops, something in your posting triggered my antispam filter...
Please use the "Back" button to modify your content and retry."

Albeit a bit long, I don't think my bug report is spam. So I have no idea what triggered the spam filter. And I don't think I can "modify" my bug report without losing information, so instead here's a link to the bug report instead. It's a direct link to a plain text file - https://0x0.st/iktB.txt

One of you registered users may feel free to repost it here below....if you manage to not trigger the spam filter :)

Thanks for any and all help in advance. Sorry for the more tedious bug report :)
Mozilla/5.0 (Windows NT 10.0; rv:78.0) Gecko/20100101 Firefox/78.0
fatboy
Senior Member
Posts: 82
Joined: Fri Jul 25, 2014 6:56 am
Contact:

Re: invidious+Firefox78/82+Redirector+NoScript = "No video with supported format and MIME type found."

Post by fatboy »

Redirect to: https://invidious.fdn.fr/watch?v=$1&nojs=1&quality=hd720
Mozilla/5.0 (Windows NT 6.1; rv:52.0) Gecko/20100101 SM/2.49.5 NS/2.9.0.14
barbaz
Senior Member
Posts: 10841
Joined: Sat Aug 03, 2013 5:45 pm

Re: invidious+Firefox78/82+Redirector+NoScript = "No video with supported format and MIME type found."

Post by barbaz »

ppxxbu wrote: Wed Oct 28, 2020 1:34 am Albeit a bit long, I don't think my bug report is spam. So I have no idea what triggered the spam filter. And I don't think I can "modify" my bug report without losing information, so instead here's a link to the bug report instead. It's a direct link to a plain text file - https://0x0.st/iktB.txt

One of you registered users may feel free to repost it here below....if you manage to not trigger the spam filter :)
Attempting to post it below, with some formatting mine -
Slightly long bug report. Apologies.
This might be a Firefox issue, or a NoScript issue, or both? idk.

Tested on Firefox 78.4.0esr 64-bit and Firefox 82
NoScript 11.1.4rc3

Steps to replicate the bug -

0. You will need to install https://addons.mozilla.org/en-US/firefo ... edirector/ in either Firefox 78.4.0 / Firefox 82 and make sure the "Redirector" extension is enabled if it isn't already.
1. Set up a redirect in "Redirector" extension as the following-

Code: Select all

       Description: Redirect youtube links directly to 720p video on invidious
       Example URL: https://www.youtube.com/watch?v=dSu5sXmsur4
       Include pattern: https://www.youtube.com/watch?v=*
       Redirect to: https://invidious.fdn.fr/latest_version?id=$1&itag=22&local=true
       Pattern type Wildcard
2. Go to https://www.youtube.com/watch?v=dSu5sXmsur4
3. Redirect is triggered by the "Redirector" extension and the page will be redirected to

Code: Select all

https://invidious.fdn.fr/latest_version?id=dSu5sXmsur4&itag=22&local=true
4. But the video doesn't play. You will get an error that says "No video with supported format and MIME type found."
5. However the video works when directly visiting https://invidious.fdn.fr/latest_version ... local=true

---------------

This wan't the case before so to confirm I wasn't misremembering, I went back and tested older NoScript version(11.0.45rc5) with the older Firefox v68 ESR.

Firefox v68 ESR
NoScript 11.0.45rc5

Steps to replicate a perfectly playing video -

0. You will need to install https://addons.mozilla.org/en-US/firefo ... edirector/ in Firefox 68.12.0 ESR and enable the extension if it isn't already enabled. You may get Firefox 68.12.0 ESR here - https://ftp.mozilla.org/pub/firefox/rel ... 8.12.0esr/
1. Same as Step 1 from above.
2. Same as Step 2 from above.
3. Same as Step 3 from above.
4. Unlike Step 4 from above, the video plays just fine here on FFv68 + NS 11.0.45rc5.

---------------

A more concise summary,

On Firefox v68,
with 11.0.45rc5
VIDEO PLAYBACK WORKS with "Redirector" enabled with the above Redirect rule(Step 1) set up.
VIDEO PLAYBACK WORKS if

Code: Select all

https://invidious.fdn.fr/latest_version?id=dSu5sXmsur4&itag=22&local=true
is input directly into the URL bar.
with 11.1.4rc3
VIDEO DOES NOT PLAY with "Redirector" enabled. Gives a "No video with supported format and MIME type found." error.
VIDEO DOES NOT PLAY if

Code: Select all

https://invidious.fdn.fr/latest_version?id=dSu5sXmsur4&itag=22&local=true
is input directly. Gives a "No video with supported format and MIME type found." error.

On Firefox v78 or v82
with 11.1.4rc3
VIDEO DOES NOT PLAY with Redirector enabled. Gives a "No video with supported format and MIME type found." error.
VIDEO PLAYBACK WORKS if

Code: Select all

https://invidious.fdn.fr/latest_version?id=dSu5sXmsur4&itag=22&local=true
is input directly into the URL bar.
with 11.0.45rc5
Coudn't test this one because 11.0.45rc5 had this bug that Giorgio later fixed viewtopic.php?f=7&t=26132

VIDEO PLAYS under all the above circumstances if NoScript is disabled altogether.

--------------

Thanks for any and all help in advance. Sorry for the more tedious bug report :)
*Always* check the changelogs BEFORE updating that important software!
-
Guest

Re: invidious+Firefox78/82+Redirector+NoScript = "No video with supported format and MIME type found."

Post by Guest »

Redirect to: https://invidious.fdn.fr/watch?v=$1&nojs=1&quality=hd720
Thank you for the suggestion :) . Yes I am aware I can do that, but here are reasons why I don't.

1. I don't want the full invidious interface. I almost always want the video directly.
2. Despite the link "https://invidious.fdn.fr/watch?v=dSu5sX ... lity=hd720" stating the quality as hd720, it only plays the 360p version of the video. The difference in quality is night and day. Also appending "&local=true" to the link(which incidentally is my preferred way to play the video since it actually uses invidious as a proxy instead of the browser establishing a direct connection to googlevideo.com) still only plays the 360p version of the video.
3. I like my Redirect rule setup. It used to work before on an older Firefox version with an older NoScript. I don't see why it shouldn't work on newer Firefox with newer NoScript.

---------------

A correction to the bug report - Go to https://invidious.fdn.fr/watch?v=dSu5sXmsur4 and then click on "Watch on YouTube" with my "Redirector" rule as specified in the bug report, to get the "No video with supported format and MIME type found" error.
Sorry for the mistake. Thank you.
Last edited by barbaz on Wed Oct 28, 2020 1:54 pm, edited 1 time in total.
Reason: kill board-generated link
Mozilla/5.0 (Windows NT 10.0; rv:78.0) Gecko/20100101 Firefox/78.0
fatboy
Senior Member
Posts: 82
Joined: Fri Jul 25, 2014 6:56 am
Contact:

Re: invidious+Firefox78/82+Redirector+NoScript = "No video with supported format and MIME type found."

Post by fatboy »

Error is repeated periodically after page reloading. Not sure if it was NoScript's fault.

> 3. I like my Redirect rule setup.
I like your setting too, but…
instead of "latest_version", there should be "raw=1"
instead of "itag=22", there should be "quality=hd720"
https://github.com/iv-org/invidious/wik ... parameters
Mozilla/5.0 (Windows NT 6.1; rv:52.0) Gecko/20100101 SM/2.49.5 NS/2.9.0.14
ppxxbu

Re: invidious+Firefox78/82+Redirector+NoScript = "No video with supported format and MIME type found."

Post by ppxxbu »

instead of "latest_version", there should be "raw=1"
instead of "itag=22", there should be "quality=hd720"
https://github.com/iv-org/invidious/wik ... parameters
Thanks for the parameters but I don't think it matters? Since they're both functionally identical?

Regardless of whether the Redirect is set up "to:"

Code: Select all

https://invidious.fdn.fr/watch?v=$1&raw=1&quality=hd720&local=true
or

Code: Select all

https://invidious.fdn.fr/latest_version?id=$1&itag=22&local=true
clicking on a youtube link https://www.youtube.com/watch?v=dSu5sXmsur4 on any page with any one of the above Redirects set up, results in "No video with supported format and MIME type found" error.
Error is repeated periodically after page reloading. Not sure if it was NoScript's fault.
Same here. But disabling NoScript and reloading plays the video just fine. And disabling NoScript and clicking on any youtube link triggers the Redirect and the video plays just fine as well.
Mozilla/5.0 (Windows NT 10.0; rv:78.0) Gecko/20100101 Firefox/78.0
skriptimaahinen
Master Bug Buster
Posts: 244
Joined: Wed Jan 10, 2018 7:37 am

Re: invidious+Firefox78/82+Redirector+NoScript = "No video with supported format and MIME type found."

Post by skriptimaahinen »

Some odd behaviour from Firefox going on here.

When doing a redirect (webrequest) from urlA to a media file urlB, the currentSrc of the media element is initially set to be the original urlA.

Though the url is later updated by Firefox to the correct one, this really seems like a bug.

Unfortunately since NoScript records this initial url in embeddingDocument.js and blocks the media element until the permissions are resolved, the correct url never gets set, leading to the mimetype error.

@Giorgio: One workaround would be not to record the initial value, but simply set documents url as src. Can the src even be anything else?
Mozilla/5.0 (Windows NT 10.0; rv:78.0) Gecko/20100101 Firefox/78.0
michkov
Posts: 5
Joined: Thu Sep 06, 2018 3:47 am

Re: invidious+Firefox78/82+Redirector+NoScript = "No video with supported format and MIME type found."

Post by michkov »

I got something similar going on leading to the same error message. I noticed it when opening an url that leads to an mp3 file in Firefox. It used to be that I got the Noscript pop up to OK the file and it would play once I did. Right now I need to allow the domain that is hosting the file as well. For example for

https://content.blubrry.com/hoseasia/HoSEA014.mp3

I need to allow blubrry.com to get the mp3 to play.
Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:82.0) Gecko/20100101 Firefox/82.0
skriptimaahinen
Master Bug Buster
Posts: 244
Joined: Wed Jan 10, 2018 7:37 am

Re: invidious+Firefox78/82+Redirector+NoScript = "No video with supported format and MIME type found."

Post by skriptimaahinen »

michkov wrote: Sun Nov 01, 2020 6:34 am https://content.blubrry.com/hoseasia/HoSEA014.mp3

I need to allow blubrry.com to get the mp3 to play.
For me the file plays just fine.

What permissions you need to allow for blubrry.com for the file to play? Is just media enough?
Mozilla/5.0 (Windows NT 10.0; rv:78.0) Gecko/20100101 Firefox/78.0
User avatar
Giorgio Maone
Site Admin
Posts: 9454
Joined: Wed Mar 18, 2009 11:22 pm
Location: Palermo - Italy
Contact:

Re: invidious+Firefox78/82+Redirector+NoScript = "No video with supported format and MIME type found."

Post by Giorgio Maone »

skriptimaahinen wrote: Sat Oct 31, 2020 7:59 am Though the url is later updated by Firefox to the correct one, this really seems like a bug.
It looks like a Firefox bug, indeed. I cannot reproduce on 83 beta, therefore this has been already (accidentally?) fixed.

However I implemented the suggested work-around in latest development build, thanks:
v 11.1.5rc1
============================================================
x Work-around for Firefox 82 media redirection bug (thanks
ppxxbu and skriptimaahinen)

x Updated TLDs
Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:83.0) Gecko/20100101 Firefox/83.0
Post Reply