[mythtv-users] python program for quickly comparing deinterlacers
Dan Christensen
jdc at uwo.ca
Sat Jun 5 16:01:16 UTC 2010
I've written a quick and dirty python program that makes it easy to
compare deinterlacers while watching a video. It is attached below.
Here are the comments from the top of the file:
Usage: Set up a playback profile named "test" with only one rule:
if rez >= 0 0
Put any renderers/deinterlacers you want, except leave the secondary
deinterlacer as "none" so you'll be able to tell if the primary one
isn't working.
Make this your default playback profile. Then start this script
from a terminal window (e.g. a laptop remotely logged in). (You
may need to edit the script to provide database credentials.)
If all is well, it will show your current settings for the test
profile, and offer you a list of deinterlacers to choose from.
When you choose a deinterlacer, it will stop playback, adjust the
database settings, pause a bit, restart playback and skip backwards.
When you select a deinterlacer, it changes the renderers to match and
within about a second you find yourself 15 seconds back in the same
recording. So you can watch the same 15 seconds over and over again
with different deinterlacers.
Note that this script *changes the database*. So use it at your own
risk.
When run, the script gives you a menu that looks like:
Current settings:
pref_cmp0 >= 0 0
pref_decoder ffmpeg
pref_deint0 greedyhdoubleprocessdeint
pref_deint1 none
pref_max_cpus 2
pref_osdfade 1
pref_osdrenderer opengl2
pref_priority 1
pref_videorenderer opengl
pref_cmp1
pref_filters openglbicubic
Deinterlacers:
0 none
1 onefield
2 linearblend
3 bobdeint
4 kerneldeint
5 kerneldoubleprocessdeint
6 greedyhdeint
7 greedyhdoubleprocessdeint
8 yadifdeint
9 yadifdoubleprocessdeint
10 vdpauonefield
11 vdpaubobdeint
12 vdpaubasic
13 vdpaubasicdoublerate
14 vdpauadvanced
15 vdpauadvanceddoublerate
s Toggle high-quality scaling
q Quit
Choose a deinterlacer:
This isn't meant to be polished, and you may need to edit it for your
situation, but I found it very useful. After receiving any feedback,
I'll post it on the wiki.
Dan
-------------- next part --------------
A non-text attachment was scrubbed...
Name: test_interlacers.py
Type: text/x-python
Size: 4875 bytes
Desc: not available
URL: <http://mythtv.org/pipermail/mythtv-users/attachments/20100605/fba638b6/attachment.py>
More information about the mythtv-users
mailing list