Hard Light Productions Forums

Modding, Mission Design, and Coding => FS2 Open Coding - The Source Code Project (SCP) => Topic started by: BlackDove on August 26, 2010, 07:40:22 pm

Title: Video codecs
Post by: BlackDove on August 26, 2010, 07:40:22 pm
http://www.electronista.com/articles/10/08/26/mpeg.group.makes.free.h264.use.permanent/

I don't know the actual implications behind choosing to use .ogg, other than what I assumed was because it was a free and open platform, but because theora is the devil, I was wondering whether or not we could get some h264 in this *****?

Is that feasible at all?
Title: Re: Video codecs
Post by: FUBAR-BDHR on August 26, 2010, 07:50:05 pm
No idea if that license is compatible.  Also you would need to find a coder to implement it. 
Title: Re: Video codecs
Post by: The E on August 26, 2010, 07:54:55 pm
Yeah, the problem is that free decoders for h264 like libAVC are under GPL, meaning we can't use them.

Now Google's VP8, that's another story.
Title: Re: Video codecs
Post by: chief1983 on August 26, 2010, 10:51:40 pm
Yeah VP8 is likely the way to go at some point, and there's already been a rewrite of the reference codec that's way faster, probably fast enough to be a good alternative even on slower hardware.
Title: Re: Video codecs
Post by: Mongoose on August 27, 2010, 12:34:28 am
So basically, anything coded under GPL explicitly can't be used for a strictly non-commercial codebase like FS_Open?
Title: Re: Video codecs
Post by: karajorma on August 27, 2010, 01:14:09 am
Yep. GPL is actually very restrictive due the fact that it insists that any code using GPL'd code must not have any restrictions GPL doesn't.

LGPL doesn't suffer from the same issues IIRC but that is used much less often.
Title: Re: Video codecs
Post by: chief1983 on August 27, 2010, 01:34:07 am
Sadly, LGPL is not used in places its better suited for than GPL.  Of course, even with GPL, you can sometimes get away with linking against it as long as it is an external library and not linked in.
Title: Re: Video codecs
Post by: BlackDove on August 27, 2010, 09:31:16 am
Thanks for the answers.

I was wondering though, why is it that stuff under the GPL can't be used for FSO?
Title: Re: Video codecs
Post by: chief1983 on August 27, 2010, 09:46:56 am
The GPL is viral.  Everything that directly includes any GPL code must itself be GPL or a GPL-compatible license.  The license Volition released the code under is not compatible with the GPL as it contains further restrictions, such as non-profit use only.  LGPL is less restrictive but under-used.
Title: Re: Video codecs
Post by: BlackDove on August 27, 2010, 11:34:34 am
I see. Thanks.
Title: Re: Video codecs
Post by: Iss Mneur on August 27, 2010, 04:58:59 pm
The GPL is viral.  Everything that directly includes any GPL code must itself be GPL or a GPL-compatible license.  The license Volition released the code under is not compatible with the GPL as it contains further restrictions, such as non-profit use only.  LGPL is less restrictive but under-used.
To be clearer the only restrictions that LGPL does not have the the GPL does is that the object code (ie. a .dll or .so) of an LGPL library does not require what it is linking against it to be compatible as long as the LGPL library is dynamically linked.  If LGPL code is statically linked it works the same as a GPL library and has the same restrictions.
Title: Re: Video codecs
Post by: Spicious on August 28, 2010, 07:25:12 pm
I don't know the actual implications behind choosing to use .ogg, other than what I assumed was because it was a free and open platform, but because theora is the devil, I was wondering whether or not we could get some h264 in this *****?
I think you'll find that MPEG-LA are actually the devil in this case.
Title: Re: Video codecs
Post by: chief1983 on August 29, 2010, 12:20:08 pm
I think he's talking about theora being the devil for another reason.  Like, it's not a great codec in the first place.
Title: Re: Video codecs
Post by: kkmic on September 02, 2010, 02:13:09 am
Can't we ask the developers for a specific license? I mean, it's for a non-profit work, and if the license is specifically designed for FSO, why wouldn't they want to? Besides, FSO is a known name...
Title: Re: Video codecs
Post by: The E on September 02, 2010, 02:19:00 am
Not THAT known, I fear.
Title: Re: Video codecs
Post by: kkmic on September 02, 2010, 02:33:38 am
Not THAT known, I fear.
Well, there is a Wikipedia page (http://en.wikipedia.org/wiki/FreeSpace_2_Source_Code_Project) dedicated to the project, a forum and an active community.

Bottom line: does it hurt to ask nicely?
Title: Re: Video codecs
Post by: BlackDove on September 02, 2010, 03:31:17 am
I thought it wouldn't as well, but I wasn't one to do it as I'm not familiar with the exact specifics of what to ask for.
Title: Re: Video codecs
Post by: Spicious on September 03, 2010, 05:25:00 am
This free thing seems to apply strictly to free internet video.