Log in

View Full Version : resizing letterboxed AVI to real 16:9


Pages : 1 [2]

sander815
25th August 2008, 08:45
when i remove the ConvertToYV12(interlaced=true), i get nnedi: only YV12 and YUY2 are supported

mikeytown2
25th August 2008, 08:46
Download and install the Cedocida DV Codec
http://neuron2.net/misc/cedocida020.zip

Alex_ander
25th August 2008, 08:54
the clip is already YV12
info() reads 'YUY2' for me, but I've imported it with DirectShowSource() (no DV codec installed), so it might depend on particular decoder, better to test it with info() in the script. Looks like sander815 even has RGB24.

sander815
25th August 2008, 09:03
after installing that dv codec i get the following error: avisource: could not decompress frame 0

sander815
25th August 2008, 12:47
i cannot get it to work with the cedocida codec, info() with papnasonic dv codec gives me YUY2

smok3
25th August 2008, 13:12
probably missing yv12 splitter, install xvid which has one. Another option is helix yv12 splitter.

sander815
25th August 2008, 13:31
will Koepi's XviD Codec 1.1.3 do the job?

smok3
25th August 2008, 13:32
yes it should.

sander815
25th August 2008, 14:14
Frame 148 using Tdeint(1) on the source, for a non interlaced comparison (remove the last line of the script i posted)
http://img378.imageshack.us/img378/3294/out2wf0.th.jpg (http://img378.imageshack.us/my.php?image=out2wf0.jpg)

can you post the exact script used here? cause mine is still jagged

sander815
25th August 2008, 14:31
and, after installing xvid, it should work with cedocida? or do i need some setting changed?
I still cannot op the DV in VD with cedocida

smok3
25th August 2008, 14:41
nuke the other dv decoders.

Gavino
25th August 2008, 15:01
VCSwap (http://members.chello.nl/~p.bekke/index.html) will selectively disable and reenable VFW codecs.

sander815
25th August 2008, 15:05
yeah, found that already, but i am not able to load the vid in VD
http://www.pichost.nl/uploads/e6a71957c1.jpg (http://www.pichost.nl/)

smok3
25th August 2008, 15:28
if you render the avi with gspot what gives you when you click 1 under gspot render?

Gavino
25th August 2008, 15:29
"dvsd" should be the FOURCC that matters.

Is your avi file a type 1 DV when it needs to be a type 2 for VfW use?

Alex_ander
25th August 2008, 18:59
Maybe this will work?
AVISource("C:/finalniers.avi", fourCC="DVSD")

mikeytown2
25th August 2008, 19:44
As requested here is my exact script

AVISource("testvideo.avi")
a=last.TDeint(1)

AssumeBFF() #or AssumeBFF if necessary

#Bob-deinterlace to 50p/60p
TempGaussMC_beta2(EdiMode="NNEDI",tr2=3)

#Crop as necessary
Crop(0,72,0,-72)

#Edge-directed interpolation to double height
NNEDI(field=0, dh=true)

#Make it fit
Spline36resize(720,576)

#Reinterlace
#SeparateFields.SelectEvery(4,0,3).Weave()
StackHorizontal(a,last)


ps use [PHP ] ...script... /[/PHP ] (remove trailing space) or the php button to the far right in advanced mode to get the nice color highlighting.


codec screenshot:
http://img236.imageshack.us/img236/9775/screenshotka8.th.png (http://img236.imageshack.us/my.php?image=screenshotka8.png)

sander815
26th August 2008, 07:50
when i go to gspot, and select list video codecs i do see this:
VFW DVSD Cedocida DV codec (SD format) v0.2.0 vidc.dvsd 0x00200000 ** File Missing: cedocida.dll <---- in red

i assume thats my problem, a restart doesn't solve it

sander815
26th August 2008, 07:52
"dvsd" should be the FOURCC that matters.

Is your avi file a type 1 DV when it needs to be a type 2 for VfW use?

File Length Correct
DV Type 2 AVI
Multipart OpenDML AVI (2 parts)
(11493 frames in first part, 0 frames follow)

DV type 2 according to GSPOT

smok3
26th August 2008, 08:03
try to reinstall cedocida and feel free to write about things you have tryed/did, somebody else may learn from this thread as well.

sander815
26th August 2008, 08:18
i reinstalled it several times, i see no difference in gspot. Other codecs, mainconcept, canopus, panasonic work normally
and i don't know why it says file missing, as it is in my system32 folder:
http://www.pichost.nl/uploads/7de739179d.jpg (http://www.pichost.nl/)

and i have the exact same error on 2 machines, both running win2003, maybe thats the problem?

smok3
26th August 2008, 08:30
maybe ask the cedocida developer or even better the guy that did the compiles/installer?

sander815
26th August 2008, 08:59
As requested here is my exact script



#Bob-deinterlace to 50p/60p
TempGaussMC_beta2(EdiMode="NNEDI",tr2=3)






where do i get TempGaussMC_beta2

mikeytown2
26th August 2008, 09:07
it's the same as TempGaussMC_beta1 except it uses the newest branch of MVTools.
http://forum.doom9.org/showthread.php?p=1173626#post1173626
http://forum.doom9.org/showthread.php?p=1171286#post1171286

sander815
26th August 2008, 10:05
when i use TempGaussMC_beta1 i get this error:
http://www.pichost.nl/uploads/24cbdfacc4.jpg (http://www.pichost.nl/)

i think becuase i disabled #ConvertToYV12(interlaced=true)

2Bdecided
26th August 2008, 11:42
My results on frame 74, using the script I posted (http://forum.doom9.org/showthread.php?p=1173534#post1173534)
http://img177.imageshack.us/img177/6425/outvv3.th.jpg (http://img177.imageshack.us/my.php?image=outvv3.jpg)

The pavement edge is jagged. I think it's partly nnedi and partly the deinterlacing.

This solves it:

avisource("testvideo.avi")

TempGaussMC_alpha3

Crop(0,72,0,-72)

eedi2()

Spline36resize(720,576)

sharpen(0.25)

#then reinterlace as needed


Example attached.

Cheers,
David.

P.S. thanks for the hint about using PHP instead of CODE to wrap code when posting messages - very nice!

sander815
26th August 2008, 14:04
could anyone explain why i get the error above?
i do have all required plugins

and where can i find alpha3?

2Bdecided
26th August 2008, 15:07
alpha3 is here...
http://forum.doom9.org/showthread.php?p=1138514#post1138514
...but you could also try different settings on beta1 or beta2 (much faster).

Can't help with your error message. Sorry.

Cheers,
David.

sander815
2nd September 2008, 22:35
thanx for all the tips, finally got it working pretty ok
although, when i make a new sequence in avid liquid as pal dv 16:9, i still get black borders left and right, because its still 4:3
when i get some real 16:9 footage, the video gets stretched to 16:9

stretched footage
http://www.pichost.nl/uploads/6b2119acc3.jpg (http://www.pichost.nl/)
real 16:9 footage
http://www.pichost.nl/uploads/b6b98ccc4d.jpg (http://www.pichost.nl/)

i have to force vlc to 16:9 in order to get the correct aspect ratio

smok3
2nd September 2008, 23:43
in premiere the solution would be: rmb click on footage and select interpret footage (then click on something that smells like 16:9), check the docs for liquid or click around a while.