Welcome to Doom9's Forum, THE in-place to be for everyone interested in DVD conversion. Before you start posting please read the forum rules. By posting to this forum you agree to abide by the rules. |
|
|
#3 | Link |
|
Registered User
Join Date: Jun 2007
Location: Earth
Posts: 51
|
But what about end result ?
Let's say i use -vf pullup,softskip on a telecined PAL DVD, how does the result compare to using the "best" avaliable ivtc filters for avisynth ? Last edited by Major_Kong; 3rd September 2009 at 19:59. |
|
|
|
|
|
#4 | Link |
|
member of flaskmpeg.info
Join Date: Oct 2001
Location: Germany
Posts: 2,224
|
the sad story is: at least from my testing there's in general always a better and normally faster ways to do the filtering (not just ivtc) via avisynth.
iirc these are the main commen ivtc methods used with mencoder: 1. -vf decimate=2:1000:1600:.001 -ofps 24000/1001 2. -vf framestep=2,filmdint=dint_thres=256,harddup -ofps 24000/1001 3. -vf pullup,softskip 4. -vf filmdint on the other hand mencoders ivtc normally isn't bad and does a decent job. Cu Selur
__________________
Hybrid |
|
|
|
|
|
#6 | Link |
|
h264enc & xvidenc author
Join Date: May 2007
Location: /dev/video0
Posts: 845
|
filmdint has an IFPS and an OFPS option to convert down frame rates so I don't know why you use framestep=2. Also if you have "normal" telecine (29.970fps) there's no need for framestep=2 either as filmdint will convert it to 23.976 just fine
__________________
openSUSE Linux 64-bit - h264enc - xvidenc - divxenc Fedora & openSUSE repo: http://download.opensuse.org/reposit...me:/microchip8 |
|
|
|
|
|
#7 | Link |
|
member of flaskmpeg.info
Join Date: Oct 2001
Location: Germany
Posts: 2,224
|
wrote these 4 ways down in a small file called mencoderIVTC.txt in my encoderNotes-folder, don't really know when I last used this call
![]() might be that I used it on a 60p sample to get it to 24p and just wrote it down there accidentally, might be that number 1. was a solution for the same 'problem', since I only use 3&4 in sx264 there should also be the possibitlity to do ivtc with: -vf softpulldown,ivtc=1 and -vf yadif=3:1,mcdeint=2:1:10,framestep=2,filmdint=dint_thres=256 iirc the last one delivered the best results, but was damn slow,...
__________________
Hybrid Last edited by Selur; 3rd September 2009 at 22:22. |
|
|
|
|
|
#10 | Link |
|
Registered User
Join Date: Mar 2005
Location: Finland
Posts: 1,826
|
-vf yadif=3:1,mcdeint=0:1:10,framestep=2,filmdint=dint_thres=256
Should be about 10 times faster without decreasing quality noticeably. Could you post a sample clip where this works better than filmdint or pullup alone? |
|
|
|
|
|
#11 | Link |
|
Registered User
Join Date: Jun 2007
Location: Earth
Posts: 51
|
Sure.
The source is a (bad) PAL DVD of Transformers TOS, and i've been only encoding the intro (there's a lot of movement so that should be enough) in order to test the filters. Results: -vf pullup,softskip ![]() ![]() -vf filmdint ![]() ![]() vf yadif=3:1,mcdeint=2:1:10,framestep=2,filmdint=dint_thres=256 ![]() ![]() Comparing filmdint with pullup, the latter would be the better choice, but yadif(...) does a better job. PS: The codec options were: "-oac copy -ovc lavc -lavcopts vcodec=ffvhuff:vstrict=-1 red=2:context=1"EDIT: -vf yadif=3:1,mcdeint=0:1:10,framestep=2,filmdint=dint_thres=256 ![]() ![]() Indeed faster, but something weird happened in the second frame. So i guess quality/speed wise pullup is the winner afterall. Last edited by Major_Kong; 4th September 2009 at 19:48. |
|
|
|
|
|
#12 | Link | |
|
Registered User
Join Date: Mar 2005
Location: Finland
Posts: 1,826
|
Quote:
Have you tried simply deinterlacing it, with -vf pp=lb (for smooth but ghosty effect), -vf yadif=0 or -vf yadif=3,mcdeint=0:0:10,framestep=2 (note the field order for yadif and mcdeint: probably top field first since it's from a PAL DVD) and compare that to pullup? Also compare fluidity of playback instead of just static screenshots. I'd still be interested in seeing a video clip of the source. |
|
|
|
|
|
|
#13 | Link |
|
h264enc & xvidenc author
Join Date: May 2007
Location: /dev/video0
Posts: 845
|
Yes, like nm said, that's definitely interesting source you have there. If you can, cut a small piece and upload it somewhere. I'm interested too
__________________
openSUSE Linux 64-bit - h264enc - xvidenc - divxenc Fedora & openSUSE repo: http://download.opensuse.org/reposit...me:/microchip8 |
|
|
|
|
|
#14 | Link | ||
|
Registered User
Join Date: Jun 2007
Location: Earth
Posts: 51
|
Oops..
Source: ![]() ![]() Quote:
Quote:
Last edited by Major_Kong; 5th September 2009 at 04:05. |
||
|
|
|
|
|
#15 | Link |
|
h264enc & xvidenc author
Join Date: May 2007
Location: /dev/video0
Posts: 845
|
yadif=0 and pp=ci seem to do a good job on this sample, better than filmdint and pullup. Of course, yadif + mcdeint are the best out of all here
__________________
openSUSE Linux 64-bit - h264enc - xvidenc - divxenc Fedora & openSUSE repo: http://download.opensuse.org/reposit...me:/microchip8 |
|
|
|
|
|
#16 | Link | |
|
Registered User
Join Date: Jun 2007
Location: Earth
Posts: 51
|
Quote:
![]() Well, just for the sake of the topic, i'll compare the results of yadif + mcdeint with using avisynth filters, if and when i get wine+avisynth running. |
|
|
|
|
|
|
#17 | Link |
|
Registered User
Join Date: Mar 2005
Location: Finland
Posts: 1,826
|
Srestore can deblend the video and restore the original framerate and smooth motion. This can't be done by MEncoder without coding/porting new filters.
Srestore with yadif: http://www.mediafire.com/download.php?g5cyrxw5zmh AviSynth script (transformers.yadif.avs): Code:
LoadPlugin("ffms2.dll")
LoadCplugin("yadif.dll")
LoadPlugin ("ReduceFlicker.dll")
LoadPlugin("RemoveGrain.dll")
import("Srestore.avsi")
FFVideoSource("sample.avi")
d = last.bob(-0.2,0.6).reduceflicker(strength=1)
yadif(mode=1)
srestore(dclip=d)
Code:
mkfifo pipe.y4m wine avs2yuv.exe transformers.yadif.avs -o pipe.y4m & \ x264 --preset slower --tune animation --crf 20 -o tr.yadif.264 pipe.y4m mkvmerge -o tr.yadif.mkv --default-duration 0:24000/1001fps tr.yadif.264 -D sample.avi rm -f tr.yadif.264 pipe.y4m Code:
transformers.yadif.avs: 720x576, 24000/1001 fps, 1128 frames encoded 1128 frames, 3.27 fps, 1720.87 kb/s real 5m33.098s user 1m8.104s sys 0m0.676s Srestore with TempGaussMC: http://www.mediafire.com/download.php?iudniuyzynz AviSynth script (transformers.tgmc.nnedi.avs): Code:
LoadPlugin("ffms2.dll")
LoadPlugin("nnedi2.dll")
LoadPlugin ("ReduceFlicker.dll")
LoadPlugin("RemoveGrain.dll")
LoadPlugin ("mvtools2.dll")
import("TempGaussMC_beta1mod.avsi")
import("Srestore.avsi")
FFVideoSource("sample.avi")
d = last.bob(-0.2,0.6).reduceflicker(strength=1)
TempGaussMC_beta1mod(edimode="nnedi2")
srestore(dclip=d)
Code:
mkfifo pipe.y4m wine avs2yuv.exe transformers.tgmc.nnedi.avs -o pipe.y4m & \ x264 --preset slower --tune animation --crf 20 -o tr.tgmc.nnedi.264 pipe.y4m mkvmerge -o tr.tgmc.nnedi.mkv --default-duration 0:24000/1001fps tr.tgmc.nnedi.264 -D sample.avi rm -f tr.tgmc.nnedi.264 pipe.y4m Code:
transformers.tgmc.nnedi.avs: 720x576, 24000/1001 fps, 1128 frames encoded 1128 frames, 0.95 fps, 1323.97 kb/s real 19m44.908s user 19m18.508s sys 0m1.464s |
|
|
|
![]() |
| Thread Tools | |
| Display Modes | |
|
|