nothings / single_file_libs

List of single-file C/C++ libraries.
8.8k stars 585 forks source link

jo_mpeg converted to C #249

Open FrostKiwi opened 1 year ago

FrostKiwi commented 1 year ago

I'm a big fan of jo_mpeg and it's ability to create MPEG1 video files in such a small source file.

The library is listed as C++ only, however only a small change needs to be done to make it compile in both C and C++. I performed this change and linked to it in the README.

I tried to suggest this to the author as a comment on the original blog but it wasn't picked up. There is also no git repo for that single file library, so I thought I just link it here.

RicoP commented 2 months ago

pretty cool! Just wondering how is jo_mpeg different from pl_mpeg?

FrostKiwi commented 2 months ago

pretty cool! Just wondering how is jo_mpeg different from pl_mpeg?

pl_mpeg is a decoder and demuxer. I can only read mpeg files. jo_mpeg is an encoder. It creates mpeg1 video Files from an image buffer.

RicoP commented 2 months ago

Ah I see. One is input, the other is output so to say