[mythtv-commits] Ticket #3053: Adds support for DirectShow filters for the frontend
MythTV
mythtv at cvs.mythtv.org
Tue Feb 6 18:45:32 UTC 2007
#3053: Adds support for DirectShow filters for the frontend
----------------------------------+-----------------------------------------
Reporter: alannisota at gmail.com | Owner: ijr
Type: enhancement | Status: new
Priority: minor | Milestone: unknown
Component: mythtv | Version: 0.20
Severity: low |
----------------------------------+-----------------------------------------
This patch adds support for using directshow filters with mythfrontend.
It currently only supports CoreAVC w/ H.264, but can be easily changed to
support others as needed. We use CoreAVC because it is significantly
faster than the h264 decoder in ffmpeg, it supports PAFF which ffmpleg
doesn't, as well as MPAFF+PAFF streams. It has only been tested against
myth HEAD but should compile against fixes as well.
The code is from mplayer's directshow filter loader, but has been modified
to support CoreAVC which needed some tricks.
CoreAVC 0.0.4 through 1.2.0 are supported.
You will need to have a valid CoreAVCDecoder.ax CoreAVC is NOT free, and
must be purchased from www.coreavc.com, and it is quite reasonably priced.
You will likely need a real Windows machine to install it, as I don't
think the installation will work on Wine as of version 1.2.0
To use follow these instructions:
1. Install the patch and run 'make && make install'
2. Create $HOME/.mythtv/dshowcodecs and add this line:
{{{
CoreAVCDecoder.ax:h264:0x09571a4b, 0xf1fe, 0x4c60, 0x97, 0x60, 0xde,
0x6d, 0x31, 0x0c, 0x7c, 0x31
}}}
3 .Copy your CoreAVCDecoder.ax file from your windows installation to
/usr/lib/win32/ (it can likely be found under C:\Program
Files\CoreCodec\CoreAVC Professional\
4. Create your registry entries
You now need to create a registry for the CoreAVC codec. for each of
the following keys, locate them in windows, and then run:
{{{
mythregistercodec -r $HOME/.mythtv/registry -k <key> -v <value>
}}}
For example for the windows key:
HKEY_CURRENT_USER\Microsoft\Windows\CurrentVersion\ProductID
You would enter something like:
{{{
mythregistercodec -r $HOME/.mythtv/registry -k
"HKEY_CURRENT_USER\\Microsoft\\Windows\\CurrentVersion\\ProductID' -v
"55555-333-7777777-55555"
}}}
To find the keys in Windows, you can use 'regedit'.
* For CoreAVC 1.2.0 you need:
{{{
HKEY_LOCAL_MACHINE\Microsoft\Windows\CurrentVersion\ProductID
HKEY_CURRENT_USER\Software\CoreCodec\CoreAVC Pro\Serial
}}}
* For CoreAVC 1.0 and 1.1 you need:
{{{
HKEY_CURRENT_USER\SOFTWARE\Licenturion GmbH\0000032D\Product Key
HKEY_CURRENT_USER\SOFTWARE\Licenturion GmbH\0000032D\User ID
}}}
5. Start up mythfrontend, and try to watch an h264 channel/recording and
you should see something like:
{{{
Decoder supports the following YUV formats: YUY2 IYUV YV12 I420
Decoder is capable of YUV output (flags 0x27)
Found DirectShow filter (1440x1088)
}}}
NOTE: You can view the contents of the registry using:
{{{
mythregistercodec -r $HOME/.mythtv/registry -l
}}}
But there is currently no way to remove a single element. You would need
to remove the registry file and regenerate it if you need to do this for
some reason.
--
Ticket URL: <http://svn.mythtv.org/trac/ticket/3053>
MythTV <http://www.mythtv.org/>
MythTV
More information about the mythtv-commits
mailing list