www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.learn - Video playback

reply "Dmitry" <dmitry indiedev.ru> writes:
Hi everyone!
I want to play video in my D-application (maybe WebM or Theora). 
However didn't find any library for operation with video in D. I 
am a beginner in D, experience of transfer of libraries with 
C/C++, certainly isn't present.
Maybe somebody will prompt something?

P.S. My application uses SFML (DSFML).
May 18 2014
next sibling parent reply Rikki Cattermole <alphaglosined gmail.com> writes:
On 18/05/2014 7:10 p.m., Dmitry wrote:
 Hi everyone!
 I want to play video in my D-application (maybe WebM or Theora). However
 didn't find any library for operation with video in D. I am a beginner
 in D, experience of transfer of libraries with C/C++, certainly isn't
 present.
 Maybe somebody will prompt something?

 P.S. My application uses SFML (DSFML).
My suggestion would be to go the direction of libvlc[0]. I did find a forum post from SFML that may help you. It is a c library so it shouldn't be too hard to create a binding to. Perhaps something along the lines of Derelict-Util[2] will help with it. If you need shared libraries and don't want to build your own, you should be able to extract them after installing Vlc itself. [0] https://wiki.videolan.org/LibVLC/ [1] http://en.sfml-dev.org/forums/index.php?topic=9386.0 [2] https://github.com/DerelictOrg/DerelictUtil
May 18 2014
parent "Dmitry" <dmitry indiedev.ru> writes:
On Sunday, 18 May 2014 at 07:37:33 UTC, Rikki Cattermole wrote:
 My suggestion would be to go the direction of libvlc[0]. I did 
 find a forum post from SFML that may help you.
 It is a c library so it shouldn't be too hard to create a 
 binding to. Perhaps something along the lines of 
 Derelict-Util[2] will help with it.

 If you need shared libraries and don't want to build your own, 
 you should be able to extract them after installing Vlc itself.
Thank you, Rikki! I try.
May 18 2014
prev sibling next sibling parent "alexhairyman" <alexhairyman gmail.com> writes:
On Sunday, 18 May 2014 at 07:10:29 UTC, Dmitry wrote:
 Hi everyone!
 I want to play video in my D-application (maybe WebM or 
 Theora). However didn't find any library for operation with 
 video in D. I am a beginner in D, experience of transfer of 
 libraries with C/C++, certainly isn't present.
 Maybe somebody will prompt something?

 P.S. My application uses SFML (DSFML).
the gtkd project also has gstreamer ported and have an example where a video is played back in the examples directory. I haven't tried it myself but it's worth checking out.
May 19 2014
prev sibling parent "ponce" <contact g3mesfrommars.fr> writes:
On Sunday, 18 May 2014 at 07:10:29 UTC, Dmitry wrote:
 Hi everyone!
 I want to play video in my D-application (maybe WebM or 
 Theora). However didn't find any library for operation with 
 video in D. I am a beginner in D, experience of transfer of 
 libraries with C/C++, certainly isn't present.
 Maybe somebody will prompt something?

 P.S. My application uses SFML (DSFML).
If you can ensure the host machine will have ffmpeg installed, you can do it like AE does: https://github.com/CyberShadow/ae/blob/master/utils/graphics/ffmpeg.d
May 19 2014