pixeltailgames / cinema

:movie_camera: Gamemode for Garry's Mod featuring multiplayer video streaming
http://www.pixeltailgames.com/cinema/
87 stars 63 forks source link

2 problems #143

Open Razorbackfr opened 6 years ago

Razorbackfr commented 6 years ago

Hi,

I have a problem when i watch in full screen, the theather screen is whit and i have sound only.

when i have in normal view, i have no problem .

and in private theater i can't view a youtube live video, i have the message with html 5 not suported but in public and private and public theater, i can view classic video on youtube.

This 2 problem can be solved ?

thanks in advance,

Razorbackfr

WinterPhoenix commented 6 years ago

YouTube Live isn't supported due to not being able to use proprietary codecs such as H.264 (MP4) in GMod's Web Browser, which YouTube Live relies on.

The reason regular YouTube videos work still is because those use VP8/VP9 (WebM) mainly, instead of H.264.

Even with the new Chromium browser, this will likely remain the case, unfortunately.

Bluscream commented 6 years ago

Why can vlc support this codec and CEF can't?

WinterPhoenix commented 6 years ago

Because VLC uses Operating Systems' codecs, while CEF doesn't (uses ffmpeg), IIRC.

CEF can technically support H.264 if compiled with the flags to enable it (ala Chrome), however including CEF as part of your project (like in GMod), means that if you enable those flags, you're supposed to pay licensing royalties to MPEG Group. Not doing so might very well be illegal, so Facepunch doesn't seem exactly interested in doing that.

This has been a problem for a very, very long time lol

Bluscream commented 6 years ago

Ahh, dangit. Is there a way to obtain a patched CEF lib so atleast some players could use propietary codecs?

WinterPhoenix commented 6 years ago

CEF is...more than just a library or two, but I really wouldn't know. I haven't looked into something like that.

Bluscream commented 6 years ago

Where would i start if i wanted to look into this?

WinterPhoenix commented 6 years ago

I dunno, I haven't looked. I guess the first step would be to take a look at Chromium's source code and see what the flags for enabling h.264 change. And then compile CEF with those flags, and then pull whatever it changes into the CEF in GMod.

But honestly, I have no idea if something like that would even work, and even if it does, it might well take a very long time to figure out everything you need to change to get it to work.

And then on top of that you've gotta worry about not breaking anything with how CEF is integrated with GMod.

Bluscream commented 6 years ago

Why does my GMod include Awesomium and Chromium?

btw: https://github.com/Facepunch/garrysmod-issues/issues/2089 seems to be interesting

WinterPhoenix commented 6 years ago

Awesomium is what's available on the main ("NONE" on Steam) branch. Both Awesomium and Chromium are available on the chromium branch because certain things (some Flash stuff mainly) are broken on Chromium that aren't in Awesomium, and to allow for testing/comparing both.

The chromium branch only ever loads Awesomium if you add -nochromium to your Launch Options though.

Bluscream commented 6 years ago

I dont quite get the difference between them, isnt awesomium just a "better" "fork" of chromium?

Also i am on the "none" branch and still have both

Bluscream commented 6 years ago

Guess i'll have to check my task manager to see which ones being used

WinterPhoenix commented 6 years ago

Awesomium is a fork of Chromium when Chromium was version ~18 and hasn't been updated since then. We're on version ~67 now. So there's a lot that's changed since then lol

AkikoKumagara commented 6 years ago

You don't have Chromium on the "none" branch. I'm not sure what would make you believe that, but it simply doesn't even exist there.

Bluscream commented 6 years ago

grafik grafik @Sophie-bear ...

OT: I laughed so hard at the fact that you had to point out that you create music on real instruments on your bio :joy:

AkikoKumagara commented 6 years ago

@Bluscream Hmm, that's interesting. It might be there in files, but I don't think it's ever loaded if you're not on Chromium's branch.

Bluscream commented 6 years ago

I'm gonna check that via the taskmanager in different gamemodes and let you know.