Log in

View Full Version : IsCombed(parameter_list) help


kcb
30th January 2006, 14:47
I'm trying to find a possible avisynth script that possibly scans an ivtc'd svcd and returns the location and the number of interlaced frames (perhaps in a text file?). After posting http://forum.doom9.org/showthread.php?t=106554
thanks to manono for the suggestion, i'm not really familar with avisynth so any help would be appreciated unless someone can recommend a non-avisynth solution.

Mr_Odwin
30th January 2006, 16:45
I use the following:

LoadPlugin("FolderPath\Decomb.dll")
AviSource("FilePath.avi")
WriteFile("Folderpath\VidInfo.txt", "IsCombed()", True)


Then I run the script through avs2avi with a null output (-c "null" -o n).
That produces a text file with lines made up of either true or false, with obvious meaning. Line 1 = First Frame, etc.

kcb
30th January 2006, 17:11
ok here's what i tried (i just created a d2v file with dgindex to frameserve):

avs2avi.exe test.avs -c "null"
-o n

it gives me:


Source:
* Filename: "G:\Video_Editing\test.avs"
* FourCC: None (RGB32)
* Frames: 240
* Resolution: 604x56
* Frame rate: 24.000 FPS
Compressor:
* No Recompression
Destination:
* Format: Null
* Pass 1/1: Finished in 00:00:00.250 (960.00 FPS)
* Frames: 240 (240 keyframes)
* Size: 30.97 MB


with no textfile generated and a 10 second blank test.avi ?

Mr_Odwin
30th January 2006, 17:23
In the avisynth script the filename given in writefile has to be very specific. the folder has to exist for example, and I always encapsulate it with quotations. So I actually use:

WriteFile("C:\Documents and Settings\James\My Documents\FAVC\Working Folder 0\VidInfo.txt", "IsCombed()", True)


Maybe start with something simple, like "G:\TestInfo.txt"

kcb
30th January 2006, 17:29
same thing happens with:



LoadPlugin("G:\Video_Tools\AviSynth_Scripts\Decomb.dll")
AviSource("G:\test.d2v")
WriteFile("G:\VidInfo.txt", "IsCombed()", True)



an avi file is just generated and no textfile? In the avi file it says
AVFileSource: couldn't open file g:\test.avs, line 2)

I have confirmed that if i start->run and put the name of the .mpg file that dgindex is frameserving i can open it, so it's not an issue with the file.

Mr_Odwin
30th January 2006, 17:39
You can't open a d2v file with AVISource. You need to load some plugin (DGDecode?) and use mpeg2source instead.

kcb
30th January 2006, 17:44
hmm i get "there was no action called "WriteFile" " with:


LoadPlugin("G:\Video_Tools\DGIndex\DGDecode.dll")
LoadPlugin("G:\Video_Tools\AviSynth_Scripts\Decomb.dll")
mpeg2source("G:\test.d2v")
WriteFile("G:\VidInfo.txt", "IsCombed()", True)

Mr_Odwin
30th January 2006, 17:45
You need Avisynth v2.55, at least.

kcb
30th January 2006, 17:50
ok now the text file is generated but it's filled with:

Script error: there is no function named "IsCombed"

kcb
30th January 2006, 17:56
nevermind. i upgraded to the latest version of Decomb . The generated textfile has true, false is there anyway to get it to show the framenumber?

kcb
30th January 2006, 17:59
damn... i don't think this is gonna work because if i play the svcd through vlcplayer with no deinterlacing it has no interlaced frames but when i put it through dgindex all of a sudden it has interlaced frames so the avisynth script reads most of the frames as interlaced. I have tested a PAL SVCD which works great because it has been deinterlaced. However i think the problem is with DGIndex it thinks IVTC'd frames are interlaced for some reason. Any ideas?

edit: nevermind! i selected ignore pull down flags in dgindex it's all fine now. I just need to know how to put the frame number next to the boolean evaluation.

Mr_Odwin
30th January 2006, 20:52
From the avisynth website:

this will print the frame number, a ":" and the average luma for that frame

WriteFile("F:\text.log", "current_frame", "colon", "AverageLuma")


You could figure it out from that I reckon.

kcb
31st January 2006, 02:42
i got everything to work but for some weird reason the script thinks that some of the frames are interlaced when they're not, what could be the problem (and it skips on the frames that are actually interlaced...) and i'm not sure should Field operation in dgindex be ignore or honor pulldown flags?

kcb
31st January 2006, 03:07
Ok it seems to be 'ignore pulldown flags' what's frustrating is in tmpegencs ivtc setting i go to the frame that avisynth reports as interlaced and double deinterlace it yet it still says its interlaced?!