Comments (11)
MPEG1, OggVorbis and FLI/FLC playback were added in v1.7.0
from dojs.
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.
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.
(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.
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.
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.
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.
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.
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.
Wow! Thans is totally awesome, and without SIMD instructions, that is a plus! Gonna benchmark it on 486dx2, then pentium.
from dojs.
please share your results, I only tried on fast Pentium class machines for now!
from dojs.
Related Issues (20)
- check compatibility with HX DOS-Extender
- Add XML support
- Using cURL and HTTPS crashes HOT 1
- Disabling ALPHA channel crashed DOjS HOT 1
- Include() and Require() hide parse errors HOT 1
- include cURL option to set the supported ciphers HOT 1
- Can't use let or const HOT 1
- LoadLibrary does not work on 2nd run when using integrated editor HOT 3
- red/blue colors inverted HOT 7
- glide3x.DXE: module loading failed
- VSCode plugin is missing in the repository
- /examples/blendfx.js Missing "examples/rose.png" HOT 1
- Correct path structure for DOjS projects? HOT 2
- add tar support HOT 1
- add support for libdmk
- add support for D64 images
- add support for ADF files
- add DMS support
- try SMK support
- Update to zip 3.1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from dojs.