Eastermeyer
16th March 2006, 10:25
Hi!
I would like to test the MPEG4 Codec written by skal.
You can find it in this page:
http://skal.planet-d.net/coding/sklmp4.html
But I am a noob at programming.
I quote the Homepage:
* The two interfacing files are ve_skl.c (encoding) and vd_skl.c (decoding). Put this files into /libmpcodecs directory, and edit the corresponding Makefile.
* Also copy the header file include/skl_mpg4_c.h into the same /libmpcodecs directory.
* Register the newly exported vf_info_t and vd_functions_t struct into ve.c and vd.c respectively.
* Hack a little more cfg-mencoder.h and mencoder.c, in order to add a new command line option. This should amount to adding the following code where applicable:
#define VCODEC_SKL 12
case VCODEC_SKL: sh_video->vfilter=vf_open_encoder(NULL,"skl",(char *)mux_v); break;
Hint: In fact, in order to hack mencoder.c, you should mimick XViD's codec code.
* Rebuild mplayer and mencoder binaries ... The final linking will have errors (Lots of)(It's my fault). => You must link with the static library libskl_syst.a.
* Also: use g++ for linking, not gcc!! My library is not a real ISO-C one: it (still) contains exception-handling code.
* Don't forget to edit your .mplayer/codecs.conf if you want to declare this new codec (or change the FourCC). Here is an example for the new codec decoding entry:
videocodec skl
info "SKL (MPEG-4)"
status working
fourcc DIVX,divx
fourcc xvid,XVID,XviD
fourcc mp4v
fourcc DX50
format 0x4
driver skl
out YV12
dll "libskl_syst.a"
I must admit this is not a very user-friendly process, but i can assure you it works ;)
Could someone make me a MEncoder binarie with skal's codec in it please ?
I would like to test the MPEG4 Codec written by skal.
You can find it in this page:
http://skal.planet-d.net/coding/sklmp4.html
But I am a noob at programming.
I quote the Homepage:
* The two interfacing files are ve_skl.c (encoding) and vd_skl.c (decoding). Put this files into /libmpcodecs directory, and edit the corresponding Makefile.
* Also copy the header file include/skl_mpg4_c.h into the same /libmpcodecs directory.
* Register the newly exported vf_info_t and vd_functions_t struct into ve.c and vd.c respectively.
* Hack a little more cfg-mencoder.h and mencoder.c, in order to add a new command line option. This should amount to adding the following code where applicable:
#define VCODEC_SKL 12
case VCODEC_SKL: sh_video->vfilter=vf_open_encoder(NULL,"skl",(char *)mux_v); break;
Hint: In fact, in order to hack mencoder.c, you should mimick XViD's codec code.
* Rebuild mplayer and mencoder binaries ... The final linking will have errors (Lots of)(It's my fault). => You must link with the static library libskl_syst.a.
* Also: use g++ for linking, not gcc!! My library is not a real ISO-C one: it (still) contains exception-handling code.
* Don't forget to edit your .mplayer/codecs.conf if you want to declare this new codec (or change the FourCC). Here is an example for the new codec decoding entry:
videocodec skl
info "SKL (MPEG-4)"
status working
fourcc DIVX,divx
fourcc xvid,XVID,XviD
fourcc mp4v
fourcc DX50
format 0x4
driver skl
out YV12
dll "libskl_syst.a"
I must admit this is not a very user-friendly process, but i can assure you it works ;)
Could someone make me a MEncoder binarie with skal's codec in it please ?