If I want to play videos from within a program (I don't care much about format), should I use Theora or an mp4 library (any recommendations?) We used Bink in The Witness, but I am looking for something I can redistribute for free.
-
-
compression is the main reason video formats are so complicated
-
That is false.
-
why do you say that? (if I'm wrong, I want to know why)
-
Because compression is easy to encapsulate and hide in code. You would be able to use video formats without knowing or caring what the compression was. If video formats were usable. Which they aren't. The biggest culprits in terms of complication are...
-
(a) idea that you should separate the package format from the content and allow people to use any package format (b) idea that you should separate the audio encoding from the video, and allow people to use any audio encoding (c) idea that you should break your audio playback ...
-
... code into 237 different libraries (d) idea that you should interface with OS-installed codecs to play videos (e) idea that people want to do a bunch of work to be able to use your format (f) idea that videos shouldn't be simple to play Feel free to reorder these.
-
[Worth mentioning, Bink doesn't have any of these problems, which is one reason RAD is so successful getting people to pay money for it.]
-
the way I see it, the reason we have the complexity of container formats is to avoid constantly redesigning the file format every time someone comes up with a new compression algorithm, which isn't something bink has to deal with
- 7 more replies
New conversation -
-
-
just zip a stream of ppms
Thanks. Twitter will use this to make your timeline better. UndoUndo
-
-
-
I literally said exactly this on Handmade Hero a while back. video_compressor.h and video_decompressor.h would not be that hard to write, assuming it is not that great, but nobody has even come with a lightyear of providing that. Codec distributions are universally abysmal.
- 3 more replies
New conversation -
-
-
You're just too good for this world, Jon!
Thanks. Twitter will use this to make your timeline better. UndoUndo
-
-
-
FLI? ;)
Thanks. Twitter will use this to make your timeline better. UndoUndo
-
-
-
Would be nice if something like this also could finally replace gif being standard for small animated content as well.
- 1 more reply
New conversation -
-
-
If size does not matter what about APNG?
Thanks. Twitter will use this to make your timeline better. UndoUndo
-
-
-
The efficacy would depend on the length and resolution of the video. You could string together images with no compression, but it'd bloat quickly, there's the possibility of compressing each file, but decompression takes time, and holding it in memory might not be viable
-
VP9 would probably be the best option, pretty widely supported, lack of licensing issues. Theora is proprietary, and has dropped support for Android as a Will Not Fix bug.
End of conversation
New conversation -
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.