[vlc-devel] VLC with new decoder

Rafaël Carré rafael.carre at gmail.com
Sat Oct 31 15:04:19 CET 2009


On Sat, 31 Oct 2009 08:07:06 +0530
Venu Vemulapally <venu.vemulapally at gmail.com> wrote:

> Hi All,
>    I am trying to integrate my newcodec with the VLC for that I made
> following changes but I am unable to decode. Actually I am trying to
> playback my new codec's elementary stream but defaultly PS demuxer is
> getting selecting after that module_need(.....) with decoder
> capability it is comparing FOURCC value of all decoders.
> 
> 1. I have created a file named *newcodec.c* in the *modules/codec
> folde*r. 2. Added this newly added codec in the configure.ac
> 3. run the bootstrap
> 4. Make && make install
> 
> Compiled successfully and from the vlc --list i am able to find the
> my new codec module. I have tried the VLC playback with the my
> newcodec's elementary stream but in the newcodec.c it is failing at
> *if( p_dec->fmt_in.i_codec != VLC_FOURCC('X','Y','Z','V') )
>     {
> 
>         return VLC_EGENERIC;
>     }*
> 

i_codec is a 32 bits integer, you can use something like:
printf("%4.4s\n", (char*)&p_dec->fmt_in.i_codec);
to show the representation in 4 chars

-- 
Rafaël Carré
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 197 bytes
Desc: not available
URL: <http://mailman.videolan.org/pipermail/vlc-devel/attachments/20091031/5e069d97/attachment.sig>


More information about the vlc-devel mailing list