AMVApp - Compressing to the smallest file size

Locked
User avatar
GloryQuestor
Moderation Hero
Joined: Tue Apr 13, 2004 4:59 pm
Status: Always around, creating more AMVs. :)
Org Profile

Post by GloryQuestor » Thu Jan 27, 2005 10:42 pm

First, thanks for the info, Scintilla. :)

I opened up the "ROD_1-4--default.avs" file, which has the Script above.

So, I went back to my original AVS file (with the MPEG2 import lines):

Code: Select all

mpeg2source("C:\Documents and Settings\Johnny\My Documents\My Videos\My AMV Material\Movies\DG Indexes\ROD_1-4.d2v")
LanczosResize(640,480)
Telecide(Order=1)
ComplementParity()
ConvertToRGB32()
Then I recompiled the AVI file using makeAVIS.

I'm still getting the error in WMM2, though. :?

Is there something I'm missing...?
Website Administrator, AnimeMusicVideos.Org
Samurai Warriors Productions
Pittsburgh Japanese Culture Society Events - AMV Department Head
Middle Tennessee Anime Convention - Main Events Operations Manager
Anime Weekend Atlanta - Section Manager of Programming - Video Art Track

User avatar
downwithpants
BIG PICTURE person
Joined: Tue Dec 03, 2002 1:28 am
Status: out of service
Location: storrs, ct
Org Profile

Post by downwithpants » Thu Jan 27, 2005 10:57 pm

this won't solve the codec error, but add decimate(5) in a line below telecide(order=1), otherwise your footage is going to look jumpy.

as for why wmm can't read the avi, i'm not sure. can you play the avs and the avi in a media player?
maskandlayer()|My Guide to WMM 2.x
a-m-v.org Last.fm|<a href="http://www.frappr.com/animemusicvideosdotorg">Animemusicvideos.org Frappr</a>|<a href="http://tinyurl.com/2lryta"> Editors and fans against the misattribution of AMVs</a>

User avatar
GloryQuestor
Moderation Hero
Joined: Tue Apr 13, 2004 4:59 pm
Status: Always around, creating more AMVs. :)
Org Profile

Post by GloryQuestor » Thu Jan 27, 2005 11:07 pm

downwithpants wrote:this won't solve the codec error, but add decimate(5) in a line below telecide(order=1), otherwise your footage is going to look jumpy.
I will. Thanks. :)
downwithpants wrote:as for why wmm can't read the avi, i'm not sure. can you play the avs and the avi in a media player?
I just played it in Windows Media Player without a problem. So, the problem's apparently with WMM2, not the media itself.

In short, this is a very weird problem. :?
Website Administrator, AnimeMusicVideos.Org
Samurai Warriors Productions
Pittsburgh Japanese Culture Society Events - AMV Department Head
Middle Tennessee Anime Convention - Main Events Operations Manager
Anime Weekend Atlanta - Section Manager of Programming - Video Art Track

User avatar
GloryQuestor
Moderation Hero
Joined: Tue Apr 13, 2004 4:59 pm
Status: Always around, creating more AMVs. :)
Org Profile

Post by GloryQuestor » Fri Jan 28, 2005 7:42 pm

I figured out what was going on in the script and fixed it. I was able to load the video into Movie Maker without any problems. :)

Here is the script I used:

Code: Select all

LoadPlugin("C:\Program Files\AviSynth 2.5\plugins\SimpleResize.dll")
   mpeg2source("<AVS Script File>")
   SimpleResize(640,480)
ConvertToYUY2()
Telecide(Order=1)
Decimate(5)
ComplementParity()
ConvertToRGB32()
The differences here and in Scintilla's document:

- I use the SimpleResize plugin instead of LanczosResize. (I used SimpleResize before when compressing my AVIs, and it's a really good alternative IMHO)

- I put ConvertToYUY2() before the Telecide command because makeAVIS was alerting me that it could not run Telecide because the footage was not YUY2 or YUY12. My speculation is that this error might have confused WMM2 when it tried to load the fake AVI file.

- I used the Force Output Colorspace option in makeAVIS and specified RGB32. While I don't think this was the problem (since the Output box stated "RGB32"), it couldn't have hurt.

Thanks to downwithpants and Scintilla for pointing me in the right direction. I really appreciate it, and will definitely use this method in my future projects. :D

(Mods: Sorry for the double-post.)
Website Administrator, AnimeMusicVideos.Org
Samurai Warriors Productions
Pittsburgh Japanese Culture Society Events - AMV Department Head
Middle Tennessee Anime Convention - Main Events Operations Manager
Anime Weekend Atlanta - Section Manager of Programming - Video Art Track

User avatar
Scintilla
(for EXTREME)
Joined: Mon Mar 31, 2003 8:47 pm
Status: Quo
Location: New Jersey
Contact:
Org Profile

Post by Scintilla » Fri Jan 28, 2005 8:08 pm

GloryQuestor wrote:

Code: Select all

   mpeg2source("<AVS Script File>")
.D2V files are not AVISynth files. They are DVD2AVI (/DGIndex) project files.
GloryQuestor wrote:- I put ConvertToYUY2() before the Telecide command because makeAVIS was alerting me that it could not run Telecide because the footage was not YUY2 or YUY12. My speculation is that this error might have confused WMM2 when it tried to load the fake AVI file.
First off, it's YV12, not YUY12.

Second: the DVD footage should have been in YV12 already, straight off the disc -- did you make sure to select "YUV 4:2:2" as your colorspace in DVD2AVI when you saved the .D2V file? I can't think of anything else that would make AVISynth think the incoming footage was RGB...
ImageImage
:pizza: :pizza: Image :pizza: :pizza:

User avatar
GloryQuestor
Moderation Hero
Joined: Tue Apr 13, 2004 4:59 pm
Status: Always around, creating more AMVs. :)
Org Profile

Post by GloryQuestor » Sat Jan 29, 2005 8:34 am

Scintilla wrote:
GloryQuestor wrote:

Code: Select all

   mpeg2source("<AVS Script File>")
.D2V files are not AVISynth files. They are DVD2AVI (/DGIndex) project files.
Okay, I relabelled it. Thanks for pointing it out. :)
Scintilla wrote:
GloryQuestor wrote:- I put ConvertToYUY2() before the Telecide command because makeAVIS was alerting me that it could not run Telecide because the footage was not YUY2 or YUY12. My speculation is that this error might have confused WMM2 when it tried to load the fake AVI file.
First off, it's YV12, not YUY12.
I was cutting-and-pasting. You're right, I'm wrong.
Scintilla wrote:Second: the DVD footage should have been in YV12 already, straight off the disc -- did you make sure to select "YUV 4:2:2" as your colorspace in DVD2AVI when you saved the .D2V file? I can't think of anything else that would make AVISynth think the incoming footage was RGB...
DGIndex doesn't seem to have a "colorspace" option anywhere. There are only five Video menu items in DGIndex - Three options and two switches:

- iDCT Algorithm (Default is 32-Bit SSE2 MMX; Other options are different bit and operation types. Using a P4, I should be using the higher option [64-Bit Floating Point], but I decided to stick with the default.)
- Field Operation (Default is None; Other options are Forced FILM and Raw Encoded Frames.)
- YUV -> RGB (Default is PC Scale; Only other option is TV Scale. This seems to be the only option under the video menu that mentioned the colorspace -- and based on the label for this menu, it looks like DGIndex converts all of the footage to RGB without an option to leave it YV12. :? )
- Lumanince Filter (Off by Default)
- Clipping (Off by Default)

Is there something here that needs to be changed?

Again, I appreciate all of your help. You really are giving me some great advice, and I do honestly appreciate it. :D
Website Administrator, AnimeMusicVideos.Org
Samurai Warriors Productions
Pittsburgh Japanese Culture Society Events - AMV Department Head
Middle Tennessee Anime Convention - Main Events Operations Manager
Anime Weekend Atlanta - Section Manager of Programming - Video Art Track

User avatar
AbsoluteDestiny
Joined: Wed Aug 15, 2001 1:56 pm
Location: Oxford, UK
Contact:
Org Profile

Post by AbsoluteDestiny » Sat Jan 29, 2005 8:47 am

If you use DGIndex and dgdecode as provided in the amvapp then it will give you YV12. It does not convert to RGB. The only way to convert a d2v file to rgb is by using VFAPI, which you are not.

However, something else in your filter chain might be doing this conversion. I'm betting it's the simpleresize filter. Get rid of this, you shouldn't be resizing before running telecide and decimate anyway.

To check the colorspace of your d2v, directly after the mpeg2source line add the command

info()

This will show the colorspace *at that point in the script*

You can then cut and paste this line later in your script to see when it becomes RGB. Like I said, I'm betting on the simpleresize not being YV12 compatible. Remove that, resize later in the script after telecide and decimate and most importantly do not convert your colorspace unless you have to - if simpleresize can't support YV12 then use bicubicresize or lanczosresize instead.


[P.S. The PC Scale and TV scale options do NOTHING unless you use VFAPI and are therefore irrelevant for avisynth use]

User avatar
GloryQuestor
Moderation Hero
Joined: Tue Apr 13, 2004 4:59 pm
Status: Always around, creating more AMVs. :)
Org Profile

Post by GloryQuestor » Sat Jan 29, 2005 9:05 am

AbsoluteDestiny wrote:If you use DGIndex and dgdecode as provided in the amvapp then it will give you YV12. It does not convert to RGB. The only way to convert a d2v file to rgb is by using VFAPI, which you are not.

However, something else in your filter chain might be doing this conversion. I'm betting it's the simpleresize filter. Get rid of this, you shouldn't be resizing before running telecide and decimate anyway.
Okay, I'll put the SimpleResize at the end of the code, after those, and take out the ConvertToYUY2().
AbsoluteDestiny wrote:To check the colorspace of your d2v, directly after the mpeg2source line add the command

info()

This will show the colorspace *at that point in the script*

You can then cut and paste this line later in your script to see when it becomes RGB.
Well, I have another VOB file I still need to use DGIndex on, so I'll try that with this one. :)
AbsoluteDestiny wrote:Like I said, I'm betting on the simpleresize not being YV12 compatible. Remove that, resize later in the script after telecide and decimate and most importantly do not convert your colorspace unless you have to - if simpleresize can't support YV12 then use bicubicresize or lanczosresize instead.
Well, here's the only thing in the Readme file (Start -> AMVApp -> AviSynth Filters -> Documentation -> Readme_SimpleResize) that mentions what it does:
Okay, on to business. SimpleResize is an Avisynth filter that will do a very simple
2 tap linear interpolation. It is unfiltered which means it will not soften much.
It's main advantage is that it will run somewhat faster than some of the others.
Also, I was using Lanczosresize before using SimpleResize, and still got the error from processing Telecide. I'll change it back to use Lanczosresize again. :)

Thanks for the advice, AbsoluteDestiny. :D
Website Administrator, AnimeMusicVideos.Org
Samurai Warriors Productions
Pittsburgh Japanese Culture Society Events - AMV Department Head
Middle Tennessee Anime Convention - Main Events Operations Manager
Anime Weekend Atlanta - Section Manager of Programming - Video Art Track

Locked

Return to “Video & Audio Help”