pl_mpeg VS incbin

Compare pl_mpeg vs incbin and see what are their differences.

pl_mpeg

Single file C library for decoding MPEG1 Video and MP2 Audio (by phoboslab)

incbin

Include binary files in C/C++ (by graphitemaster)
InfluxDB - Power Real-Time Data Analytics at Scale
Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.
www.influxdata.com
featured
SaaSHub - Software Alternatives and Reviews
SaaSHub helps you find the best software and product alternatives
www.saashub.com
featured
pl_mpeg incbin
2 9
722 917
- -
3.7 0.0
about 1 month ago 5 months ago
C C
- The Unlicense
The number of mentions indicates the total number of mentions that we've tracked plus the number of user suggested alternatives.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.

pl_mpeg

Posts with mentions or reviews of pl_mpeg. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2022-07-23.
  • Finally. Embed
    8 projects | news.ycombinator.com | 23 Jul 2022
    You can get some IDE support with a simple preprocessor macro[1].

    It's a crutch, but at least you don't need to stuff the shader into multiple "strings" or have string continuations (\) at the end of every line. Plus you get some syntax highlighting from the embedding language. I.e. the shader is highlighted as C code, which for the most part seems to be close enough.

    [1] https://github.com/phoboslab/pl_mpeg/blob/master/pl_mpeg_pla...

  • Video Codecs and 4k
    1 project | news.ycombinator.com | 6 Jun 2022
    > MPEG is not free. A license is required for using MPEG.

    For MPEG-1 this is not true anymore. All patents have expired. It's also far less computationally expensive and easier to implement/integrate than more modern codecs. This makes MPEG-1 a "good enough" solution for (e.g.) short video clips in a game.

    Disclaimer: I wrote pl_mpeg[1], so my opinion is biased.

    [1] https://github.com/phoboslab/pl_mpeg

incbin

Posts with mentions or reviews of incbin. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2024-01-23.
  • Self-contained Linux applications with lone Lisp
    2 projects | news.ycombinator.com | 23 Jan 2024
    OK, yes, that does work. You can totally put application specific stuff in the elf and reflect on it at runtime. Much easier is to embed it directly and point a symbol value at the start of the data.

    See https://github.com/graphitemaster/incbin for a pretty wrapper around that.

    Aside from there being a drastically simpler answer to this problem available in sketchily documented fashion (the asm guys know .incbin is a thing, but higher level languages overcomplicate it), it's a good post. Idea is sound and goal was achieved.

  • The theory versus the practice of “static websites”
    13 projects | news.ycombinator.com | 15 Jul 2023
    Thanks for the link. We also make static websites by direct inclusion their HTML code in the C++ binary of ClickHouse.

    I've tried to use this library but found a bug: https://github.com/graphitemaster/incbin/issues/61

  • Olive.c: a simple graphics library that does not have any dependencies
    14 projects | news.ycombinator.com | 21 Sep 2022
    won't work, since the preprocessor won't interpret directives inside string literals of course.

    In many assemblers, there is a directive called "incbin" which pastes in unstructured binary data at the point of usage. I just found a very clever C and C++ wrapper [1] for that, which gives you an INCBIN() macro. Nice!

    [1]: https://github.com/graphitemaster/incbin

  • embed workaround
    1 project | /r/C_Programming | 10 Aug 2022
    There's always this: https://github.com/graphitemaster/incbin
  • Finally. Embed
    8 projects | news.ycombinator.com | 23 Jul 2022
    Haven't the people making the standards other things to do, like, integrating useful features instead of duplicating incbin.h [0] years after that feature worked?

    https://github.com/graphitemaster/incbin/blob/main/incbin.h

  • How do I embed files or access them without an operating system?
    1 project | /r/C_Programming | 28 Feb 2022
  • Include files into the Sketch automatically with incbin
    1 project | /r/esp32 | 16 Dec 2021
    There is a project "https://github.com/graphitemaster/incbin" that can take a file and put that file content into the sketch ROM segment as constant / resource. It is an even nicer alternative to "xxd -i" or using string literals like: const char bla[] PROGMEM = R"CERT( ... )CERT";

What are some alternatives?

When comparing pl_mpeg and incbin you can also consider the following projects:

cdecl - Nim helper for using C Macros

aoc-2020 - Advent of Code 2020 in 25 Different Languages