nimgame2 icon indicating copy to clipboard operation
nimgame2 copied to clipboard

Feature request: Video playback API

Open wizzardx opened this issue 7 years ago • 2 comments

eg, based on this tut:

http://dranger.com/ffmpeg/

wizzardx avatar Dec 02 '17 17:12 wizzardx

Considering there's no ffmpeg wrapper available for Nim, it would take an enormous amount of work. Instead I have created wrapper for smpeg2 library as a part of sdl2_nim wrapper, plus it's implementation in Nimgame2 as MpegGraphic 2355ad075be051db13b7956df2b29279109859be, plus demo of its usage.

P.S.: If anyone have in mind some other media libraries available for usage with SDL2 in Nim, let me know. Won't close this ticket for visibility purposes.

Vladar4 avatar Dec 07 '17 13:12 Vladar4

Thanks!

(I'll need to wait until Debian Unstable gets a new enough version of sdl2 dev before I can play more with this).

How about avbin?

http://avbin.github.io/AVbin/Home/Home.html

It's used by the cocos2d python game library for media playback:

http://python.cocos2d.org/doc/programming_guide/installation.html#audio-and-video-support-by-avbin

The C header file looks (relatively) straightforwards, too:

https://github.com/AVbin/AVbin/blob/master/include/avbin.h

Also, see what cocos2d supports, for ideas of what you could add into nimgame2 in the future?

http://python.cocos2d.org/doc/programming_guide/index.html

wizzardx avatar Dec 28 '17 16:12 wizzardx