There is a single header library doing simplistic MPEG-1 encoding called jo_MPEG. I converted it to C and wrote a blog post about it: https://blog.frost.kiwi/jo-mpeg-in-c/ and the original creator Jon Olick and his blog post is here: https://www.jonolick.com/home/mpeg-video-writer
The output plays back in VLC, MPV and Windows Media Player Legacy, but not with jsmpeg. Sample attached. (Zipped, as github does not permit .mpeg) sample.zip
jsmpeg reports JSMpeg: Possible garbage data. Skipping.
What is the reason? Is it the lack of container format or does the output stray too far from the MPEG-1 spec?
There is a single header library doing simplistic MPEG-1 encoding called
jo_MPEG. I converted it to C and wrote a blog post about it: https://blog.frost.kiwi/jo-mpeg-in-c/ and the original creator Jon Olick and his blog post is here: https://www.jonolick.com/home/mpeg-video-writerThe output plays back in VLC, MPV and Windows Media Player Legacy, but not with jsmpeg. Sample attached. (Zipped, as github does not permit .mpeg) sample.zip
jsmpeg reports
JSMpeg: Possible garbage data. Skipping.What is the reason? Is it the lack of container format or does the output stray too far from the MPEG-1 spec?