Showing videos in an OS

Question about which tools to use, bugs, the best way to implement a function, etc should go here. Don't forget to see if your question is answered in the wiki first! When in doubt post here.
Post Reply
rdos
Member
Member
Posts: 3297
Joined: Wed Oct 01, 2008 1:55 pm

Showing videos in an OS

Post by rdos »

Porting image tools (like JPEG and PNG) was relatively easy, but I would also want to be able to create videos on Windows that can be played on my OS. Are there any useful open source projects that have relatively portable video players that are not dependent on hardware accelerators and GPUs? I have audio drivers, but players that only have image content are interesting too.
klange
Member
Member
Posts: 679
Joined: Wed Mar 30, 2011 12:31 am
Libera.chat IRC: klange
Discord: klange

Re: Showing videos in an OS

Post by klange »

ffmpeg has a considerable collection of software codecs that are usable for live playback, with libavcodec (not to be confused with the short-lived "libav" fork of ffmpeg, which is a very confusing mess of politics from the past I'd prefer not to remember). I had a little video player for ToaruOS a long time ago that used it, though my performance wasn't great back then (but don't worry, it was all my fault).
User avatar
mid
Member
Member
Posts: 31
Joined: Thu Mar 04, 2021 7:25 am

Re: Showing videos in an OS

Post by mid »

ffmpeg is definitely the best option in terms of features, but I think we can all agree that it's API is the eighth circle of hell (namely the lack of documentation, bad examples, outdated third-party guides, etc). If you end up giving up on it, consider something more scaled back like a combination of libwebm, libvpx, libogg to play one specific format.

There's also TheoraPlay which wraps around libogg, libtheora, libvorbis and provides a simpler interface for playing .ogv files.
Post Reply