digitalFAQ.com Forums [Archives]

digitalFAQ.com Forums [Archives] (http://www.digitalfaq.com/archives/)
-   Video Encoding and Conversion (http://www.digitalfaq.com/archives/encode/)
-   -   Problems converting 640x359 Divx file using CCE and Avisynth (http://www.digitalfaq.com/archives/encode/5462-problems-converting-640x359.html)

rs008f 09-08-2003 12:54 PM

Problems converting 640x359 Divx file using CCE and Avisynth
 
I'm using vmesquita's script excluding the filtering lines, below are the crucial lines
#Resize, overscan and borders
gripCrop(720, 480, overscan=0,source_anamorphic=true,dest_anamorphic= true)
GripSize(resizer="BicubicResize")
GripBorders()
swapuv() #To correct colors in Divx 3 videos
ConvertToYUY2()
When I import this scrip into CCE, it gave me an error saying "Frame size 868x56 is not supported. Supported frame is up to 720x576." I suspect it's because the Divx video has an unusual resolution of 640x359(almost 16:9). What can I do in the script so I can import it into CCE. 640x360 Divx video works fine using identical scripts.

rs008f 09-08-2003 01:15 PM

This a filter error I see in TMPGEnc.
"Filter error: Attempted to request an YV12 frame that wasn't mod2 in width and height!"
I think this a AVISource problem. it doesn't support the resolution 640x359. Is there an alternative to AVISource that I can use with Divx avi?

Dialhot 09-08-2003 04:36 PM

Either you source nor your target are anamorphic. So set both parameters of gripcrop to "false".
But your problem is elsewhere. Open your script directly in wmp and you will see it in red letters :!:

rs008f 09-08-2003 04:47 PM

What I see is on my second post. "Filter error: Attempted to request an YV12 frame that wasn't mod2 in width and height!" It points out to the line AVISource.
Also isn't anamorphic 16:9? is 640x360 16:9. hence anamorphic?

Dialhot 09-08-2003 05:24 PM

Do not mistaken 16:9 and anamorphic.

Anamorphic is a 16:9 picture streched into a 4:3 box. That is why you can see a picture is anamorphic by the "conehead" effects.

Here you have a W/H ratio of 640/360 = 1.77777778 = .... 16/9 !

Your message error is "very" clear : you have a picture with one dimension not "mod2" that means "not modulo 2" or if you prefer that can't be divided by 2 (even).

Try this : AVISource("cap.avi",false,"YUY2")

If it doesn't work, you will need to frameserve from vdub.

Racer99 09-08-2003 05:55 PM

Re: Problems converting 640x359 Divx file using CCE and Avis
 
Quote:

Originally Posted by rs008f

gripCrop(720, 480, overscan=0,source_anamorphic=true,dest_anamorphic= true)
GripSize(resizer="BicubicResize")

The only time I've every had a problem with this error is when my GripCrop line was 720,480. Try changing it to 704,480. If you insist on using 720, then use the Bilinear resize lines and AddBorders genereated from Moviestacker.

Racer99

Dialhot 09-08-2003 06:04 PM

No Racer, the error here isn't "illegal frame size" but "can't produce a YV12 picture if one of the dimension isn't even".

That is a requisite of YV12 color space : all sizes must be even !

rs008f 09-08-2003 07:20 PM

AVISource("cap.avi",false,"YUY2")
It works. I don't even have to add the line swapuv() anymore. Thanks.

Dialhot 09-08-2003 07:37 PM

Quote:

Originally Posted by rs008f
AVISource("cap.avi",false,"YUY2")
It works. I don't even have to add the line swapuv() anymore. Thanks.

Happy to read that.


All times are GMT -5. The time now is 05:35 AM  —  vBulletin © Jelsoft Enterprises Ltd

Site design, images and content © 2002-2026 The Digital FAQ, www.digitalFAQ.com
Forum Software by vBulletin · Copyright © 2026 Jelsoft Enterprises Ltd.