New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Video playback question #17
Comments
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 |
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. |
(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) |
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. |
Found some more threads: And finally here it is: DUGL Video player compiled in DJGPP with source: http://dugl.50webs.com/appgame.html |
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... |
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... |
I made some first experiments with https://github.com/phoboslab/pl_mpeg
|
MPEG1, OggVorbis and FLI/FLC playback were added in v1.7.0 |
Wow! Thans is totally awesome, and without SIMD instructions, that is a plus! Gonna benchmark it on 486dx2, then pentium. |
please share your results, I only tried on fast Pentium class machines for now! |
Hi, thank you for quick support of nanojpeg library.
I want to make the best dos launcher with downloading metadata from internet.
Can you give me a hint of some video player component that could be used as a part of Dojs UI? Any format. It can be Autodesk FLI or Mpeg or Mjpeg or Smack video component used in games.
The text was updated successfully, but these errors were encountered: