Re: [MPlayer-dev-eng] Adding new codec to codecs.conf
- Date: Sat, 2 Jul 2016 09:21:00 -0400
- From: compn <tempn@xxxxxxxxx>
- Subject: Re: [MPlayer-dev-eng] Adding new codec to codecs.conf
On Thu, 30 Jun 2016 09:02:29 +0100
Mark Sugrue <mark@xxxxxxxxxxxxxxxx> wrote:
> Hi All,
> I'm looking for some advice on adding a new codec to mplayer. The
> codec is for CCTV video (*.asf) and made by Quadrox Codec Pack
> WebCCTV (link -
> http://www.webcctv.com/ftp/SoftwareTools/CodecsPack/QuadroxCodecsPackSetup-18.104.22.168.exe )
do you have a sample jr24 video file we can test?
> The installer has two Dlls and I believe the OPJpegProc.dll is the
> one I need. fourcc is JR24 (this codec is some type of mjpeg, but
> ffmpeg doesn't play the files).
did you try ffmpeg -f mjpeg -i file.asf ?
or ffmpeg -vcodec mjpeg -i file.asf ?
or mplayer -vc +ffmjpeg file.asf
cant hurt to try... :)
spready says jr24 is a modified mjpeg. so probably ffmpeg wont be able
to decode it.
if you send us a sample, we maybe able to reverse engineer it.
> I followed the instructions here (
> http://www.mplayerhq.hu/DOCS/tech/win32-codec-howto.txt) and here (
> Using GraphEdit, I got this data:
> [image: Inline image 1]
> I have added this to codecs.conf, but mplayer doesn't play the video
> so I must have made an error:
> videocodec qwtjr24
> info "Quadrox Jr24"
> status working
> driver DMO
> dll "OPJpegProc.dll"
> fourcc JR24
> guid 0x4A69B442, 0x28BE, 0x4991, 0x969C, 0xB500ADF5D8A8
> ;guid 9004f687-fefc-4f8f-b23a-ddd3748082e7
> out RGB24
> The parts I am unsure about are:
> - Am I picking the right Guid from graphedit?
no, the 900 number is the right one.
you can tell by looking at other dmo decoders,
the 4a6 guid is just to say its a dmo decoder, i think.
this info should probably go in the codecs.conf help files if its not
in your screenshot it says the dll is OPJPEGDecmprDMO.dll
so you need to put that in your codecs.conf dll entry.
OPJPEGDecmprDMO.dll , from what i've seen, requires mfplat.dll.
mfplat is only available on vista or newer windows os. this means it
will not work on winxp.
> - how to format the guid in the correct way for codecs.conf
look at other DMO codecs.conf entries for guidance.
0x9004F687, 0xFEFC, 0x4F8F, 0xB2, 0x3A, 0xDD, 0xD3, 0x74, 0x80, 0x82, 0xE7
> - What goes in 'out'?
'out' should be the supported output colorspaces. the codec mentions RGB24 in graphedit.
so that seems good in your codecs.conf entry. sometimes this is not the case and you need BGR24 or BGR16 / BGR32. its not easy to figure it out, and usually requires trial and error.
> - Whether some extra steps are needed for DMO codecs (these seem
its possible that other things are needed in the win32/loader code to get this codec working on linux, due to it requiring mfplat.dll. i have not tested. i need a sample video file to test with.
so try this, and let us know if it works on windows vista or newer:
info "Quadrox Jr24"
guid 0x9004F687, 0xFEFC, 0x4F8F, 0xB2, 0x3A, 0xDD, 0xD3, 0x74, 0x80, 0x82, 0xE7
its also possible that the dll will not work in mplayer, due to the way some dlls reference other dlls in dmo codecs.
please let us know how it goes.
MPlayer-dev-eng mailing list