Code Monkey home page Code Monkey logo

Comments (11)

SuperIlu avatar SuperIlu commented on May 11, 2024 1

MPEG1, OggVorbis and FLI/FLC playback were added in v1.7.0

from dojs.

SuperIlu avatar SuperIlu commented on May 11, 2024

Up to now I guess you are out of luck with anything beside GIF animations.

But I'll look into video playback for V1.7.0
If you happen to find any library that supports a format you prefer do not hesitate to post here...

from dojs.

cyberluke avatar cyberluke commented on May 11, 2024

I have had some experience with Allegro, but that was 20 years ago. So I raised question on their forums: https://www.allegro.cc/forums/thread/618492

I found FFMPEG for DOS/DJGPP and x264 here: https://sourceforge.net/projects/ffmpeg-x264-dos/ ...but that is for video encoding only. I have seen inside Allegro, they use ffmpeg.c file somewhere. Maybe it could be used to decode video and play it in some UI component (not fullscreen).

Something like 320x240 and 256 colours would be awesome (running 640x480 VESA mode or similar). Sound is not important, but would be definitely a plus.

Worst case scenario would be some OpenGL or 3dfx Voodoo only feature for this, which would make it only for a certain users, but still, it would be nice to have.

It could be then used to make something like Launchbox in MS-DOS and FreeDOS: https://www.youtube.com/watch?v=9Uzeh_nY2gU ...game launcher with information about the title and video.

from dojs.

cyberluke avatar cyberluke commented on May 11, 2024

(or create a streaming video component that someone playing the game right now and you could join multiplayer via IPX to TCP bridge and VPN - there is some Raspberry tutorial and opensource project for this on Github)

from dojs.

cyberluke avatar cyberluke commented on May 11, 2024

They have some API for video streaming here: https://liballeg.org/a5docs/trunk/video.html ...problem is the Xiph backend is only for Ogg/Vorbis, which is Directshow filter or Mac/Linux specific. The closest might be 3rd party download from Xiph.org - Helix Player with sourcecodes for Symbian OS and Linux. But I guess we would have to write some backend for Allegro 5.x Video API and it will not be their priority now.

from dojs.

cyberluke avatar cyberluke commented on May 11, 2024

Found some more threads:
Allegro discussion about libtheora for DJGPP: https://www.allegro.cc/forums/thread/424556/424573
DUGL DJGPP libmpeg and libogg compiling: http://www.bttr-software.de/forum/mix_entry.php?id=5876&page=6&order=time&category=6

And finally here it is: DUGL Video player compiled in DJGPP with source: http://dugl.50webs.com/appgame.html

from dojs.

SuperIlu avatar SuperIlu commented on May 11, 2024

Thanks, I'll take a look into this. I'd guess it would be necessary to skip JavaScript altogether when rendering videos, just getting an x and y position into the video object and doing the rendering on each frame w/o interaction.

in the DJGPP contributions seems to be a MPEG decoder library, I'll look into that, too...

from dojs.

SuperIlu avatar SuperIlu commented on May 11, 2024

Sadly I have to rule out libmpeg2. The library is under GPL license and that would be incompatible with my code being under MIT license...
https://libmpeg2.sourceforge.io/

from dojs.

SuperIlu avatar SuperIlu commented on May 11, 2024

I made some first experiments with https://github.com/phoboslab/pl_mpeg

  • Video decoding seems to work in DOSBox for small videos.
  • Audio is still an issue.
  • I have issues with corrupted memory I need to investigate further.

from dojs.

cyberluke avatar cyberluke commented on May 11, 2024

Wow! Thans is totally awesome, and without SIMD instructions, that is a plus! Gonna benchmark it on 486dx2, then pentium.

from dojs.

SuperIlu avatar SuperIlu commented on May 11, 2024

please share your results, I only tried on fast Pentium class machines for now!

from dojs.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.