Quantcast AVI Files: Avisynth and TMPGEnc Not Supported? - digitalFAQ.com Forums [Archives]
Go Back    digitalFAQ.com Forums [Archives] > Video Production Forums > Avisynth Scripting

Reply
 
LinkBack Thread Tools
  #1  
07-14-2002, 12:55 PM
b00n b00n is offline
Free Member
 
Join Date: May 2002
Posts: 41
Thanks: 0
Thanked 0 Times in 0 Posts
Hi folks,

I decided to try AviSynth too.
But so far I had no success opening the DivX avi's I want to convert with TMPGEnc.

Perhaps one of you more experienced guys could post a sticky thread with an explanation of all the neccessary steps involved ?

I could open my .avs file with windows media player, but couldn't open it in TMPGEnc (tried both DirectShow and the other one (OpenDML)).
"... not supported ..."

Maybe I used the wrong opening handler in AviSynth?
Reply With Quote
Someday, 12:01 PM
admin's Avatar
Site Staff / Ad Manager
 
Join Date: Dec 2002
Posts: 42
Thanks: ∞
Thanked 42 Times in 42 Posts
  #2  
07-15-2002, 02:13 PM
Daagar Daagar is offline
Free Member
 
Join Date: May 2002
Posts: 158
Thanks: 0
Thanked 0 Times in 0 Posts
Try turning off the DirectShow filter in TMPGEnc.
Reply With Quote
  #3  
07-15-2002, 05:57 PM
b00n b00n is offline
Free Member
 
Join Date: May 2002
Posts: 41
Thanks: 0
Thanked 0 Times in 0 Posts
thanks Daagar,
that was one of my first attempts to solve the problem - but it didn't help.

I don't have much time at the moment, so I have to confess I gave up pretty fast.

Anyways it would be nice to have the usage of AviSynth explained with a few words.
(Like which handler to chose for DivX etc.)

in a few days I'll give it another try, and see what the problem was/is.
Reply With Quote
  #4  
07-17-2002, 09:08 PM
b00n b00n is offline
Free Member
 
Join Date: May 2002
Posts: 41
Thanks: 0
Thanked 0 Times in 0 Posts
Well, I succeded in opening an .avs script with TMPGEnc.

I had to switch to VFW file handler...

The resulting movie quality is horrible!
I did the exact conversion using TMPGEnc's resize before, and the results where quite satisfying.

Any hints on this?

btw here is my script:

AviSource("D:\Eigene Dateien\Clips\wow.avi")
BilinearResize(320,224,0,0,640,28
#TemporalSmoother(2,2)
AddBorders(16,32,16,32)
Reply With Quote
  #5  
07-17-2002, 10:08 PM
kwag kwag is offline
Free Member
 
Join Date: Apr 2002
Location: Puerto Rico, USA
Posts: 13,537
Thanks: 0
Thanked 0 Times in 0 Posts
Quote:
Originally Posted by b00n
Well, I succeded in opening an .avs script with TMPGEnc.

I had to switch to VFW file handler...

The resulting movie quality is horrible!
I did the exact conversion using TMPGEnc's resize before, and the results where quite satisfying.

Any hints on this?

btw here is my script:

AviSource("D:\Eigene Dateien\Clips\wow.avi")
BilinearResize(320,224,0,0,640,28
#TemporalSmoother(2,2)
AddBorders(16,32,16,32)
Yep, I can see the problem. You're trying to convert a 640x288 avi.
That will work, so so, if you use a 352x288 template. If you use a 352x480 or the 704x480, you're up scaling the resolution. The result will not be very good. Plus the source is a DivX, which already is a multi-generation compressed format, and that doesn't help either.

-kwag
Reply With Quote
  #6  
07-17-2002, 10:22 PM
b00n b00n is offline
Free Member
 
Join Date: May 2002
Posts: 41
Thanks: 0
Thanked 0 Times in 0 Posts
hey Massa
thanks for your answer.

It's a computer-animation trailer and was released by Blizzard, if you know these guys (games like Diablo etc.).
Their trailers rock and the quality of the DivX is quite good as it is no reencode of a DVD, but rather compressed for internet distribution.
(11mb for 1:30 min)

What shocked me was the difference between the visual quality of the two encodes.
The one I did using TMPGEnc's custom size settings were quite good though not as sharp as the original (due to 352x288 res).
After I heard so many people praising AviSynth I decided to try it's resize feature. The resulting movie looked like 256 colors or something, "color steps" everywhere.

How do I find out the color scale of my source movie by the way?

greetz,
b00n
Reply With Quote
  #7  
07-17-2002, 11:04 PM
kwag kwag is offline
Free Member
 
Join Date: Apr 2002
Location: Puerto Rico, USA
Posts: 13,537
Thanks: 0
Thanked 0 Times in 0 Posts
"Right click" on the file and select "Properties" should give you the bit depth.

-kwag
Reply With Quote
  #8  
07-17-2002, 11:11 PM
b00n b00n is offline
Free Member
 
Join Date: May 2002
Posts: 41
Thanks: 0
Thanked 0 Times in 0 Posts
funny you should say that

I don't get any info about video-files by right clicking.
I know that there should be an information sheet, but on .mpg there is none and on .avi it says "detailed information not available" (roughly translated from German).

Don't know why that is...
Reply With Quote
  #9  
07-17-2002, 11:22 PM
b00n b00n is offline
Free Member
 
Join Date: May 2002
Posts: 41
Thanks: 0
Thanked 0 Times in 0 Posts
You can have a look at the difference yourself at

boon.kicks-ass.org

the file I got using AviSynth is a pain in the eyes.


Edit:

I added a sample clip encoded at 704x480 just so you could get an idea about what "Blizzard trailer" means

I don't play any of their games actually, but their trailers pretty much kick as$.

Hmm, ok. This part of the Warcraft III trailer is pretty boring, but you can get an idea about the quality anyways.

greetings,
b00n

PS: I am going to sleep (6:38 am, DANG!). Quite possibly my provider has cut the connection if you have problems reaching my site...
Reply With Quote
  #10  
07-18-2002, 03:06 AM
kwag kwag is offline
Free Member
 
Join Date: Apr 2002
Location: Puerto Rico, USA
Posts: 13,537
Thanks: 0
Thanked 0 Times in 0 Posts
Quote:
Originally Posted by b00n
You can have a look at the difference yourself at

boon.kicks-ass.org

the file I got using AviSynth is a pain in the eyes.


Edit:

I added a sample clip encoded at 704x480 just so you could get an idea about what "Blizzard trailer" means

I don't play any of their games actually, but their trailers pretty much kick as$.

Hmm, ok. This part of the Warcraft III trailer is pretty boring, but you can get an idea about the quality anyways.

greetings,
b00n

PS: I am going to sleep (6:38 am, DANG!). Quite possibly my provider has cut the connection if you have problems reaching my site...
Good morning b00n
At the time of this writing this, you must be dreaming with angels ( or devils ) as it's now 8:30AM where you are and 3:30 AM here.
Here's your answer to the DivX of the Warcraft sample. Which indeed looks damn good!.
I downloaded the WarCraft DivX trailer and encoded it. The problem you had is that the DivX is a True Color file, and probably that's why you got the colors the way you did. Here's my .avs script file:

LoadPlugin("C:\encoding\MPEG2DEC.dll")
AviSource("c:\download\WoW-ECTS-2001-CinematicTrailer.avi")
ConvertToYUY2()
BicubicResize(704,288,0,0.6,0,0,640,28
#TemporalSmoother(2,2)
AddBorders(0,96,0,96)

Note that I'm using ConvertToYUY2() and also Bicubic resize instead of Bilinear. This is done because we're up-scaling the image from 640x288 to 704x480. If we were downscaling, we would use Bilinear.
I saved the audio from Vdub as a WAV, and encoded it with headac3he as 128Kbps mp2 audio. Then processed the .avs directly with TMPEG and muxed the audio/video stream with BBmpeg.
Here's the result:
http://ns1.shidima.com/kwag/wow.mpg
And the original DivX file, for anyone who wants to see what it looks like, is here:
http://ftp.blizzard.com/pub/WoW/movi...ticTrailer.avi
The original DivX is 11,500KB and the KVCD 704x480 Plus file is 14,739
Please let me know if this result is what you were looking for

Enjoy!,
kwag
Reply With Quote
  #11  
07-18-2002, 05:41 AM
b00n b00n is offline
Free Member
 
Join Date: May 2002
Posts: 41
Thanks: 0
Thanked 0 Times in 0 Posts
Yep.
Did you take a look at the movie when leaving away the ConvertToYUY2() function?
Gruesome.

Allright, I will give it a shot right now.

b00n

PS: had to be up again at 10:00 AM, outch

Edit:

Didn't work. Same bad result.
I strongly guess it's the VFW file handler because it looks nice in WMP.
I can't open the .avs script with any other handler, don't know why that is...
Reply With Quote
  #12  
07-18-2002, 05:49 AM
b00n b00n is offline
Free Member
 
Join Date: May 2002
Posts: 41
Thanks: 0
Thanked 0 Times in 0 Posts
What do you think of encoding letterboxed by the way?

My TV set cuts off quite much at the borders, so I can go as low as 320 pixel horizontal resolution (on 352x res.) before I get black borders on my TV. That saves quite a lot of bitrate.
Reply With Quote
  #13  
07-18-2002, 09:36 AM
kwag kwag is offline
Free Member
 
Join Date: Apr 2002
Location: Puerto Rico, USA
Posts: 13,537
Thanks: 0
Thanked 0 Times in 0 Posts
Hi b00n:

I tried once encoding at 320 instead of 352, but on my TV it showed borders on the side.
Never did it again!

-kwag
Reply With Quote
  #14  
07-18-2002, 12:31 PM
b00n b00n is offline
Free Member
 
Join Date: May 2002
Posts: 41
Thanks: 0
Thanked 0 Times in 0 Posts
that's what I meant: I got borders at 320 too (small ones tho).

Try 336 for 352x or 672 for 704x and take a look at the resulting filesize!
Reply With Quote
  #15  
07-26-2002, 08:17 PM
marko marko is offline
Free Member
 
Join Date: Jul 2002
Posts: 13
Thanks: 0
Thanked 0 Times in 0 Posts
Ive had good results converting good quality divx (4.11- 5.02 codecs) to vcd mpeg inc kvcd format(s) but only by separating the audio and video streams.

Using virtualdub open the divX avi file - if you try to play it - youll get an error message - dont worry about it.

from menu - File, Save Wav, then use the divX AVI file as the video source in tmpgenc and the saved WAV file as the audio source. Havent tried this with low bitrate less than 910 divx (jus cant visualize a requirement for this) Works great every time for me so far.

All this is on XP/98 /2000 platforms
__________________
such a wicked web we weave - when we endeavour
cheers........ marko
Reply With Quote
  #16  
07-28-2002, 07:22 AM
Bigswaffo Bigswaffo is offline
Free Member
 
Join Date: Apr 2002
Location: Tejas
Posts: 86
Thanks: 0
Thanked 0 Times in 0 Posts
Kwag,
About the ConvertToYUY2, do you need a codec for that?
Reply With Quote
  #17  
07-28-2002, 11:36 AM
kwag kwag is offline
Free Member
 
Join Date: Apr 2002
Location: Puerto Rico, USA
Posts: 13,537
Thanks: 0
Thanked 0 Times in 0 Posts
Quote:
Originally Posted by Bigswaffo
Kwag,
About the ConvertToYUY2, do you need a codec for that?
No, that's part of AviSynth.

-kwag
Reply With Quote
  #18  
08-17-2002, 11:16 AM
reman reman is offline
Free Member
 
Join Date: May 2002
Posts: 174
Thanks: 0
Thanked 0 Times in 0 Posts
Why use virtualdub? TMPGenc handles DivX fine for me so far. Very pleased with the results as long as the original DivX file is high quality. If it is a low quality low resolution file it will not convert well.

TMPGenc is great. If I could only understand what changed from 2.56 to 2.57 (I read the site but dont understand ) I would actually buy it.
__________________
Thanks!
reman
Reply With Quote
Reply




Similar Threads
Thread Thread Starter Forum Replies Last Post
Avisynth: Frame size 1028x56 is not supported? jorel Avisynth Scripting 5 06-29-2004 08:20 PM
avisynth script - tmpgenc says not supported? andybno1 Avisynth Scripting 22 01-12-2004 05:28 PM
TMPGEnc: Not supported error in avisynth script bigggt Video Encoding and Conversion 6 01-02-2004 10:54 PM
TMPGEnc: Can't open avs files in TMPGEnc, but ReadAVS installed audioslave Video Encoding and Conversion 8 10-05-2003 08:57 PM
Avisynth: Which TMPGEnc filter is best for reading AVS files? LisaB Avisynth Scripting 0 06-08-2003 02:01 PM




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