News for hackers. Stuff that matters.
Re:Chrome Removing Theora Support by jdietrich on Tuesday October 24, 2023 @12:51AM (#37994932)
If you're including a video codec in a phone app, you are almost certainly making a terrible mistake. Android and iOS have very comprehensive media APIs.
Re:Chrome Removing Theora Support by tenebrisalietum on Tuesday October 24, 2023 @06:46AM (#37997155)
VLC is a mistake?
Re:Chrome Removing Theora Support by jdietrich on Tuesday October 24, 2023 @04:41PM (#38005231)
I said almost certainly making a terrible mistake. VLC has an extremely specific niche as "that one media app that plays literally anything in any format ever". You are almost certainly not developing that app. The overwhelming majority of apps have lots of very good reasons to rely on the platform APIs and no good reasons to eschew them.
Re:Chrome Removing Theora Support by toast0 on Tuesday October 24, 2023 @12:19PM (#38001362)
Is there one codec that's universally available on all supported versions of iOS and all versions of Android with significant use? With an encoder and a decoder? If not, something has to make up the difference, and that something is probably a server that can see all the content.

Is it space efficient? (Compared to whatever you're prepared to license and run on the cpu) Not shipping a codec to save app size but sending larger media doesn't help the user much.

Are all implementations secure? If you have to predecode to verify the file won't trigger buffer overruns etc, you've written half of a safe decoder, and maybe you should just include the rest of the owl. Media decoding is a bountiful area of security vulnerabilities... which brings risks to both using the system apis and using your own, but at least you have some control over your own.

Re:Chrome Removing Theora Support by jdietrich on Tuesday October 24, 2023 @04:35PM (#38005138)
H.264 and VP8 are available essentially everywhere. Reasonably recent versions of Android and iOS (5.0 and 11, IIRC) include support for H.265 and VP9. The APIs on both platforms make it very easy to query available media formats, including hardware acceleration capabilities. Hardware acceleration is particularly important on mobile for power consumption reasons, so you should use it wherever possible.

If any app developer believes that they are better able to implement a secure codec than Apple or Google, I have a bridge to sell them.

Re:Chrome Removing Theora Support by toast0 on Tuesday October 24, 2023 @05:54PM (#38006211)
> If any app developer believes that they are better able to implement a secure codec than Apple or Google, I have a bridge to sell them.

Google isn't the only one providing system codecs on Android phones.