Thread overview
Video Codecs?
Sep 30, 2009
Benji Smith
Sep 30, 2009
Jeremie Pelletier
Sep 30, 2009
Jacob Carlborg
Oct 01, 2009
grauzone
September 30, 2009
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
September 30, 2009
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.
September 30, 2009
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.
October 01, 2009
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.