Re: Video playback

2014-05-19 Thread alexhairyman via Digitalmars-d-learn

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.


Re: Video playback

2014-05-19 Thread ponce via Digitalmars-d-learn

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


Video playback

2014-05-18 Thread Dmitry via Digitalmars-d-learn

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).


Re: Video playback

2014-05-18 Thread Rikki Cattermole via Digitalmars-d-learn

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


Re: Video playback

2014-05-18 Thread Dmitry via Digitalmars-d-learn

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.