Log in

View Full Version : Imagereader and odd video size


jriker1
16th April 2006, 20:01
I have a 320x240 video. I converted it with imagewriter to individual frames. Frames show they are still 32x240 individual tiff files. Did some work and then used imagereader in AVISynth to convert the individual frames back to AVI format. Did so running the AVS file through DIVX Converter and CCE with no resizing at max settings. The output I get is 288x224. Anyone know what's up here?

avs file is simple (tried both below):
#imagereader("i:\\t\\t\\%06d_filtered.tif", 0, 45433,29.97)
ImageSource("i:\t\t\%06d_filtered.tif", 0, 45433, 29.97)

Thanks.

JR

Richard Berg
16th April 2006, 20:18
ImageReader takes its size from the first image in the series. Make sure it's really the right size. What does Info() say?

jriker1
17th April 2006, 22:18
Well that's odd. If I change the script to the following:

#imagereader("i:\\t\\t\\%06d_filtered.tif", 0, 45433,29.97).Crop(4,2,316,238)
imagereader("i:\\t\\t\\%06d_filtered.tif", 0, 45433,29.97).Info
#ImageSource("i:\t\t\%06d_filtered.tif", 0, 45433, 29.97).Crop(4,2,-0,-0)

CCE comes back and sees it as 320x240. Wasn't working before however now it seems to return the right dimensions even without the info() in there. Other issue is if I have either of the crop settings above on there it goes back to 304x288 in CCE. Not sure where it's getting that dimension from.

Richard Berg
18th April 2006, 00:48
CCE probably has some restrictions on its image format, e.g. mod16. Use VDub or WMP to debug Avisynth.

jriker1
18th April 2006, 01:21
If I open the script in WMP it looks good and the properties show 316x238 which is exactly what I would expect it to be after cropping. CCE still returns 304x288 for the video size. I'm beginning to expect it's a size defined based on an error condition however it's opening fine in WMP.

jriker1
18th April 2006, 02:16
I believe this to be a bug in CCE. If I open the script in CCE and uncheck DVD complaince, it sets the video to 304x288. If I check and uncheck the resize button, it resets to 316x238 which is the correct measurement.

jriker1
19th April 2006, 01:59
Still no dice. Even after CCE properly identified the video size, it still came back at 304x228. Even more wierdness. With info on top of the crop it shows the video size of 316 x 240 however everything else says the video and image is 304 x 228. I am also getting some wrapping of the left side of the video on the right. Will upload a sample when I can. This site is running slow and keeps timing out.