www.digitalmars.com         C & C++   DMDScript  

digitalmars.D - Video Codecs?

reply Benji Smith <dlanguage benjismith.net> writes:
Does anybody know of any D libraries implementing or wrapping video codecs?

I need to read video files (AVI or MPEG would be fine) using DIVX,
XVID, or any other popular codec. In addition to playing those files in 
a media player control, I need to extract individual frames and perform 
various filtration and processing operations on them, for a computer 
vision project I'm about to start working on.

I looked around at DSource but didn't find anything there. Any ideas?

--benji
Sep 30 2009
next sibling parent Jeremie Pelletier <jeremiep gmail.com> writes:
Benji Smith wrote:
 Does anybody know of any D libraries implementing or wrapping video codecs?
 
 I need to read video files (AVI or MPEG would be fine) using DIVX,
 XVID, or any other popular codec. In addition to playing those files in 
 a media player control, I need to extract individual frames and perform 
 various filtration and processing operations on them, for a computer 
 vision project I'm about to start working on.
 
 I looked around at DSource but didn't find anything there. Any ideas?
 
 --benji

It's really easy to write your own bindings, be it for DirectShow or for decoder libraries from the existing C headers. Thats what I always do.
Sep 30 2009
prev sibling parent reply Jacob Carlborg <doob me.com> writes:
On 9/30/09 22:42, Benji Smith wrote:
 Does anybody know of any D libraries implementing or wrapping video codecs?

 I need to read video files (AVI or MPEG would be fine) using DIVX,
 XVID, or any other popular codec. In addition to playing those files in
 a media player control, I need to extract individual frames and perform
 various filtration and processing operations on them, for a computer
 vision project I'm about to start working on.

 I looked around at DSource but didn't find anything there. Any ideas?

 --benji

There is rulesPlayer: http://www.dsource.org/projects/rulesplayer it uses MPlayer so I guess it has to have bindings to it but I don't know what you can do with MPlayer.
Sep 30 2009
parent grauzone <none example.net> writes:
Jacob Carlborg wrote:
 On 9/30/09 22:42, Benji Smith wrote:
 Does anybody know of any D libraries implementing or wrapping video 
 codecs?

 I need to read video files (AVI or MPEG would be fine) using DIVX,
 XVID, or any other popular codec. In addition to playing those files in
 a media player control, I need to extract individual frames and perform
 various filtration and processing operations on them, for a computer
 vision project I'm about to start working on.

 I looked around at DSource but didn't find anything there. Any ideas?

 --benji

There is rulesPlayer: http://www.dsource.org/projects/rulesplayer it uses MPlayer so I guess it has to have bindings to it but I don't know what you can do with MPlayer.

He's probably better off using ffmpeg directly. Or DirectShow. Maybe there are even bindings for those on dsource.
Oct 01 2009