Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

H264 (MP4) videos can't play #202

Open
alarixnia opened this issue Apr 24, 2024 · 18 comments
Open

H264 (MP4) videos can't play #202

alarixnia opened this issue Apr 24, 2024 · 18 comments
Labels
compatiblity Site not working, JS or CSS issues compared to reference browsers. enhancement New feature or request

Comments

@alarixnia
Copy link

Hello, I'd like to use the Indivious or ViewTube frontends for YouTube with ArcticFox. Currently, these sites fail to play videos because they try to load a h264 video and it fails.

Is there any way I can build Arcticfox with H264 support enabled? I'd like to distribute these builds with the NetBSD package.

Thanks.

@alarixnia
Copy link
Author

Related invidious issues:

iv-org/invidious#3993
iv-org/invidious#3677

@rmottola
Copy link
Owner

rmottola commented May 7, 2024

To be honest, I don't know if there is an option not enabled or still some code path missing.
Do you know what component should provide h264 decoding? ffmpeg?

@rmottola
Copy link
Owner

rmottola commented May 7, 2024

Are you able to use h264 for wha tyou need on latest firefox?

I am on linux with latest and testing https://canonical.github.io/inbrowser-encode-test/ only works for vp8, but that is encoding

@rmottola
Copy link
Owner

rmottola commented May 7, 2024

https://tools.woolyss.com/html5-audio-video-tester/

this confirms that SeaMonkey and Firefox can play 264, but ArcticFox does not. At least we have an easy test.

@rmottola rmottola added enhancement New feature or request compatiblity Site not working, JS or CSS issues compared to reference browsers. labels May 7, 2024
@alarixnia
Copy link
Author

Yeah I believe the h264 support should be provided through ffmpeg.

@rmottola
Copy link
Owner

rmottola commented May 9, 2024

Yeah I believe the h264 support should be provided through ffmpeg.

hmm.. Just by chance do you know if FF52 ESR has h264 support? and FF 45ESR? that way I have targets to compare. ArcticFox has some PaleMoon deriving ffmpeg updates.

@alarixnia
Copy link
Author

it appears my memory is playing tricks on me, I thought firefox52 had h264 support on unix.

https://html5test.com/ reports no.

it's built against ffmpeg.

@rmottola
Copy link
Owner

rmottola commented May 9, 2024

Then it will be quite a bit more work and won't get mad over it right now. First goal is to match FF 52 as best as possible.
If you have FF52 handy, you can use my proposed test to have more granular checks. https://tools.woolyss.com/html5-audio-video-tester/

according to https://caniuse.com/mpeg4 support was provided by gstreamer, which became obsolete and removed. So I don't know when it added different support.

According to https://caniuse.com/mpeg4 it was for WebRTC only back then.

@rmottola
Copy link
Owner

rmottola commented May 9, 2024

Hmm.. more complicated. Read here:
https://askubuntu.com/questions/389437/how-do-i-get-html5-h-264-video-working-on-firefox

and I now test on Linux firefox 125 and it has an addon installed for H264.
Seamoneky has not! Wonder...

I guess ArcticFox doesn't get this ad on and FF52 neither.
I suppose there is no easy way, especially on BSD?

@alarixnia
Copy link
Author

We don't need an addon for h264 on BSD, it's just ffmpeg compiled with h264 support enabled as far as I know.

@alarixnia
Copy link
Author

I saw that tenfourfox supports h264 through ffmpeg: https://github.com/classilla/tenfourfox/wiki/PlayingH.264

@rmottola
Copy link
Owner

It has some very custom plugin and libraries, apparently. Or do seamonkey and firefox also use ffmpeg? This needs a lot of investigation.

@alarixnia
Copy link
Author

Seamonkey and firefox both just need ffmpeg in recent versions.

@rmottola
Copy link
Owner

Seamonkey and firefox both just need ffmpeg in recent versions.

I noticed that Firefox between v52 and v60 added ffmpeg v58. Can you see if FF60 works for you where you already said 52 didn't?
On the other side, AF had 58, since it came from PaleMoon which it backported it. There was a typo in loading versions, I fixed it, but it does not improve the situation. I tried to import quite some media related code, but no help. If you want to try building dev branch, try yourself.

@rmottola
Copy link
Owner

@alarixnia hmm.. Current dev branch has H264 working on MacOS, but same code does not enable it on Linux or NetBSD.

I wonder if WebRTC has to be enabled...

@K4sum1
Copy link

K4sum1 commented Jun 2, 2024

roytam1's New Moon 27 plays H.264 videos that Arctic Fox can't play. Although I'm testing on Windows, idk if the code could work on Mac or Linux.

@rmottola
Copy link
Owner

rmottola commented Jun 5, 2024

@K4sum1 that is not test.. I don't know if @roytam1 changed something or it just works on windows. As I wrote, H264 works on Mac...

@roytam1
Copy link

roytam1 commented Jun 5, 2024

I don't know if @roytam1 changed something or it just works on windows.

yeah I did change it to load external libav(LAV Filter) decoder to do decoding.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
compatiblity Site not working, JS or CSS issues compared to reference browsers. enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

4 participants