digitalFAQ.com Forums [Archives]

digitalFAQ.com Forums [Archives] (http://www.digitalfaq.com/archives/)
-   Video Encoding and Conversion (http://www.digitalfaq.com/archives/encode/)
-   -   TMPGEnc: Readavs problem (http://www.digitalfaq.com/archives/encode/13556-tmpgenc-readavs-problem.html)

oxycotton420 06-05-2005 11:53 AM

readavs problem
 
hey
whenever i try and open up a avs script using tmpgenc it gives me this error which it never gave before :
Code:

Can not open, or unsupported
this is very strange i tried it with 2 other scripts using 2 different .d2v and it still didn't work. This problem i think happened after i installed a new version of avisynth to my computer. but i'm sure there is a way to fix it. Thanks

kwag 06-05-2005 12:02 PM

Make sure you have the ReadAVS.dll file, and registered, on your TMPGEnc folder.

-kwag

oxycotton420 06-05-2005 12:04 PM

yes kwag i did that even tried re-installing tmpgenc and doing the readavs.dll and registry thing all over again but still didn't work :cry:

rds_correia 06-05-2005 12:21 PM

Hi oxycotton420 :),
Make sure you put readavs.dll in a short path.
Try not to put any spaces in the folders names where it will be located ;-).
Usually I make a c:\video folder and I install everything inside it.
If you take such a suggestion you will end up with tmpgenc installed under something like c:\video\tmpgenc.
Next make sure you add it to the registry using the ReadAVS.reg file that comes with it.
Following the above recommendations your edited ReadAVS.reg registry file should look like this:
Code:

[HKEY_CURRENT_USER\Software\VFPlugin]
"Avisynth"="c:\\video\\tmpgenc\\ReadAVS.dll"

This time make sure you use double back-slashes on the path inside the reg file.
Now double click that ReadAVS.reg file and agree when asked if you want to upload it's contents to your registry.
After that, if it still doesn't work, make sure you reinstall XviD.
It is XviD that decodes YV12 so you better make sure it is correctly installed.
After that make sure that the Mpeg2Dec3.dll you're using is appropriate for the DVD2AVI you're using.
If you're using DGIndex instead of DVD2AVI, make sure that you copied the dgdecode.dll that comes with it to the c:\video\avisynth\plugins directory.
If it still doesn't work we'll try to think of something else :lol:.
Cheers

Prodater64 06-05-2005 12:45 PM

Can you preview your avs file in VDMod?

oxycotton420 06-05-2005 03:38 PM

alright thanks for that but it still didn't work here is my script that i am using.....

Code:

LoadPlugin("C:\Filters25\MPEG2Dec3.dll")
LoadPlugin("D:\KVCD\avisynth plugins\DGDecode.dll")
LoadPLugin("D:\KVCD\avisynth plugins\RemoveGrainSSE2.dll")
LoadPlugin("D:\KVCD\avisynth plugins\deen.dll")


DGDecode_Mpeg2Source("D:\movie\VIDEO_TS\movienew.d2v",cpu=4,idct=7)
LanczosResize(496,416,8,0,704,576)
RemoveGrain()
Deen()
TemporalSoften(2,7,7,3,2)
#Blockbuster(method="noise",detail_min=1,detail_max=10,variance=0.3,seed=5823)
AddBorders(16,80,16,80)

i am using DGIndex to make my d2v project. But even if i don't use it and use dvd2avi, tmpgenc still won't like it.
Also i dunno if this is normal but when i tried opening my avs file using VLC or any other playback player it won't work. I doesn't give me an AVS script error but just that the file isn't supported. I am using the avisynth 2.5 version

EDIT:
When i oepn my avs file using VDmode it won't open gives me this error

Code:

Could'nt locate decompressor for 'YV12' (unknown) . .. ..

Dialhot 06-05-2005 03:43 PM

Very common problem : install XVID (yes, XVID) codec and all will be ok.

New avisynth produces YV12 output by default. As you don't have any YV12 codec on your PC, this does not work. Windows will use XVID to convert YV12 into something usable by the system.

rds_correia 06-05-2005 03:58 PM

Quote:

Originally Posted by Dialhot
Very common problem : install XVID (yes, XVID) codec and all will be ok.

New avisynth produces YV12 output by default. As you don't have any YV12 codec on your PC, this does not work. Windows will use XVID to convert YV12 into something usable by the system.

As I had already pointed out.
Quote:

Originally Posted by rds_correia
After that, if it still doesn't work, make sure you reinstall XviD.
It is XviD that decodes YV12 so you better make sure it is correctly installed.

I never forget to point that out as it was my 1st argue with Phil and he also told me to install XviD.
I disregarded his tip because "I was trying kvcd :arrow: not XviD".
Turned out he was right about it and I try not to forget what I learn :lol:.
Cheers

oxycotton420 06-05-2005 04:12 PM

okay that worked thanks everyone i installed xvid and it worked perfectly i guesss that was the problem.

on the tmgpenc note i was wondering something:
i noticed that i havent been using the kvcd-notch matrix when using tmpgenc and i was wondering if there was a faster way to upload the matrix rather then type each number by itself thanks.

rds_correia 06-05-2005 04:29 PM

Are you kidding us :lol:.
Just load one of the kvcd templates that you can find at http://www.kvcd.net/dvd-models.html.
You ARE kidding right?
Cheers

kwag 06-05-2005 04:33 PM

Quote:

Originally Posted by oxycotton420
i noticed that i havent been using the kvcd-notch matrix when using tmpgenc

Then you don't know what you've been missing :mrgreen:

-kwag

oxycotton420 06-05-2005 04:59 PM

bahhh :lol:
i always loaded templets i just lost my mind and forgot that they included the matrix :)
haha sorry about that

rds_correia 06-05-2005 05:27 PM

Quote:

Originally Posted by oxycotton420
bahhh :lol:
i always loaded templets i just lost my mind and forgot that they included the matrix :)
haha sorry about that

Phew :!:
For a moment I almost believed you hadn't been using "The Notch" for a while.
You almost had me going for it :lol:.
Cheers

the viking 06-06-2005 05:09 AM

Dialhot wrote:
..."New avisynth produces YV12 output by default"...

Does that mean that AviSynth Converts to YV12 anyway,even if
input are YUY2 and I want the output to be the same(for CCE)?

Dialhot 06-06-2005 05:21 AM

Quote:

Originally Posted by the viking
Does that mean that AviSynth Converts to YV12 anyway,even if
input are YUY2 and I want the output to be the same(for CCE)?

No. It means that if you do not force the mode, all commands like Avisource, Mpeg2Source and DirectShowSource will first ask to the codec installed on the PC if it can produce YV12, and use it. Else it will go to YUY2, then to RGB.

Look at "pixel_type" parameter in the doc for more informations :
http://www.avisynth.org/AviSource
(mpeg2source is not internal to avisynth but follows the same logic if I'm not wrong).

the viking 06-06-2005 05:50 AM

Ok,I read the page.And as you say,as long as I force the mode,the
output will be the the same as input.
So when I use
"AVISource("D:\VVCR Cap\video1.avi",pixel_type="YUY2")",
output will be YUY2 and then good for CCE.

I think I understand it now,thanks

Dialhot 06-06-2005 05:56 AM

Quote:

Originally Posted by the viking
output will be YUY2 and then good for CCE.

1/ avisynth is 30% faster in YV12 than in YUY2
2/ for DVD (not AVI) YV12 is the original colorspace. Using YUY2 force the codec to perform a conversion
3/ Only CCE2.50 do not like YV12. Version above it don't have any problem if correct YV12 decompressor is installed on the PC.
(the same way tmpgenc should work in RGB24 but can be fed with YV12).

In few words : let work in YV12, or just put a "convertToYUY2" at the end of your script.

the viking 06-06-2005 06:13 AM

My captures are YUY2,so It takes time,speed CCE 0,39.Its
probably a bad idea to convert to YV12 and then back to YUY2
at the end of the script.

So when using DVD RB,I should uncheck ConvertToYUY2()
option?Im using CCE 2.67

Dialhot 06-06-2005 06:46 AM

Quote:

Originally Posted by the viking
My captures are YUY2,so It takes time,speed CCE 0,39.Its
probably a bad idea to convert to YV12 and then back to YUY2
at the end of the script.

You are right, I didn't think about captures.

Quote:

So when using DVD RB,I should uncheck ConvertToYUY2()
option?Im using CCE 2.67
Yes you should.

the viking 06-06-2005 09:00 AM

Then I try that! Thanks!

Zyphon 06-06-2005 02:09 PM

Code:

"AVISource("D:\VVCR Cap\video1.avi",pixel_type="YUY2")",
output will be YUY2 and then good for CCE.

So guys are we saying that if you are working with captures then you should use the above AviSynth command when using YUY2 colorspace?

Or do you use a new line with 'Converttoyuy2()'

Dialhot 06-06-2005 02:15 PM

Quote:

Originally Posted by Zyphon
So guys are we saying that if you are working with captures then you should use the above AviSynth command when using YUY2 colorspace?

If you encoded your captures with a codec that is YUY2 (let say huffmann), then yes, you should use the pixel_type parameter to be sure that the format won't be converted by the codec used on your PC to render huffman (let say ffdshow).
Using a "ConvertTo" line in such situation lead to a double space color convertion and should not be used.

Zyphon 06-06-2005 04:53 PM

Thank you Phil for clearing that up for me, now I fully understand the difference. :)

nicksteel 08-07-2005 05:27 PM

Quote:

Originally Posted by kwag
Make sure you have the ReadAVS.dll file, and registered, on your TMPGEnc folder.

-kwag

Bringing up a new machine and my memory is about gone. How and where do you load readavs.dll? :roll:

I've loaded dvd2avi and avisynth 2.5

kwag 08-07-2005 05:51 PM

Put readavs.dll on your TMPEG folder :)

-kwag

nicksteel 08-07-2005 06:22 PM

Thanks, I must be going brain dead :D

Zyphon 08-08-2005 12:21 PM

Dont you also have to run a reg file to get the readavs.dll to work?

I had to edit the regfile to the path where I had TMPGEnc stored and then save it and double click it to enter it into the registry.

nicksteel 08-08-2005 01:14 PM

Quote:

Originally Posted by Zyphon
Dont you also have to run a reg file to get the readavs.dll to work?

I had to edit the regfile to the path where I had TMPGEnc stored and then save it and double click it to enter it into the registry.

:?: Where is the regfile located? (Am at work and can't access the computer)

I did check my existing installation last night and I don't have readavs.dll in my tmpgenc directory. It's been so long since I installed it that I've forgotten how! :oops:

Prodater64 08-08-2005 01:25 PM

Quote:

Originally Posted by nicksteel
Quote:

Originally Posted by Zyphon
Dont you also have to run a reg file to get the readavs.dll to work?

I had to edit the regfile to the path where I had TMPGEnc stored and then save it and double click it to enter it into the registry.

:?: Where is the regfile located? (Am at work and can't access the computer)

I did check my existing installation last night and I don't have readavs.dll in my tmpgenc directory. It's been so long since I installed it that I've forgotten how! :oops:

Quote:

Originally Posted by Readavs pack readme file
This is an import filter for TMPGEnc version 0.11e. It adds support
for Avisynth AVS files and VirtualDub VDR files to TMPGEnc.


To install this filter, you will have to do the following:

1. Unpack the archive to a temporary directory.

2. Move the ReadAVS.dll file to your TMPGEnc directory.

3. Edit the ReadAVS.reg file with a text editor so that the path to
the DLL is correct for your system.

4. Double-click on the ReadAVS.reg file to add its contents to the
registry.

5. Close and restart TMPGEnc if it's running.


Once you've completed the steps above, you can delete the contents of
the temporary directory.


To compile the source code you will need vfapi.h from the VFAPI SDK.
Use the following command to compile under VC6:

cl /MD /LD /Ox ReadAVS.cpp /link /def:ReadAVS.def vfw32.lib /filealign:512


If you have problems, email benrg@math.berkeley.edu.
For more information about Avisynth, please see
http://www.math.berkeley.edu/~benrg/avisynth.html.


Legal boilerplate:

Copyright 2000 Ben Rudiak-Gould. This program is free software; you
can redistribute it and/or modify it under the terms of the GNU
General Public License as published by the Free Software Foundation;
either version 2 of the License, or (at your option) any later
version.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.

To view the GPL, please see http://www.gnu.org/copyleft/gpl.html .

http://www.kvcd.net/ReadAVS.zip

Take a look where I find out the file!

Zyphon 08-08-2005 02:09 PM

@nicksteel

download the ReadAVS.zip file that Pro posted and then edit the ReadAVS.reg

Quote:

From the ReadAVS.reg

REGEDIT4

; Replace the path below with the real path to the DLL.
; Be sure to type each backslash twice, as in the example.

[HKEY_CURRENT_USER\Software\VFPlugin]
"Avisynth"="c:\\1flaskmpeg\\TMPGEnc12e\\ReadAVS.dl l"
Edit the line after the "Avisynth"="c:\\ to the path where you have your TMPGEnc stored remembering to use \\ for the path.

nicksteel 08-08-2005 02:59 PM

Thanks, Guys :D

Feel like a dummy, having used this for several years, now forgetting how I installed it in the first place! :oops:

Prodater64 08-08-2005 03:52 PM

Quote:

Originally Posted by nicksteel
Thanks, Guys :D

Feel like a dummy, having used this for several years, now forgetting how I installed it in the first place! :oops:

Dont worry, it means that your system is very stable indeed.
:D

kwag 08-08-2005 05:00 PM

Quote:

Originally Posted by Zyphon
Dont you also have to run a reg file to get the readavs.dll to work?

Yes :oops:
I'm the one going brain dead :mrgreen:

-kwag

Prodater64 08-08-2005 05:12 PM

Quote:

Originally Posted by kwag
I'm the one going brain dead :mrgreen:
-kwag

http://www.digitalfaq.com/archives/error.gif

http://www.digitalfaq.com/archives/error.gif

No way, no, no.

kwag 08-08-2005 05:28 PM

But it might have been a brain fart :!:
( :arrow: Don't draw that one Pro :hihi: )

-kwag

Zyphon 08-08-2005 08:20 PM

Quote:

Originally Posted by kwag
Yes :oops:
I'm the one going brain dead :mrgreen:

-kwag

Don't worry your not alone Karl, I think its catching, I think im going brain dead also. :D

The other day I wanted to run some tests on CQMatic as I wanted to test the new prediction of CQMatic and I almost forgot how TMPGEnc works, its been so long since I used it.

I forgot it was the reverse of CCE in terms of the value in OPV prediction, I forgot the higher the CQ the better the quality was. :oops:
:douh:

nicksteel 08-09-2005 07:04 AM

Quote:

Originally Posted by Zyphon
@nicksteel

download the ReadAVS.zip file that Pro posted and then edit the ReadAVS.reg

Quote:

From the ReadAVS.reg

REGEDIT4

; Replace the path below with the real path to the DLL.
; Be sure to type each backslash twice, as in the example.

[HKEY_CURRENT_USER\Software\VFPlugin]
"Avisynth"="c:\\1flaskmpeg\\TMPGEnc12e\\ReadAVS.dl l"
Edit the line after the "Avisynth"="c:\\ to the path where you have your TMPGEnc stored remembering to use \\ for the path.

Thanks :D , I'm up and running. My new Gateway dual-core 820 is interesting to watch run.

Zyphon 08-09-2005 08:23 AM

Quote:

Originally Posted by nicksteel
Thanks :D , I'm up and running. My new Gateway dual-core 820 is interesting to watch run.

Your welcome, im glad I could help out. :)

Good luck with the new PC, im jealous I think I will have to upgrade soon. :D

Prodater64 08-09-2005 10:20 AM

It could be a posibility that you send me your old PC?

nicksteel 08-09-2005 11:24 AM

Quote:

Originally Posted by Prodater64
It could be a posibility that you send me your old PC?

The wife has already claimed it. It is a P4 pretty loaded up (with a Sun 21" CAD monitor), so a bit beyond her needs in roaming the internet, but a good excuse for me getting the new one! :D

The new one appears to be utilizing the dual cores with the Windows XP Home OS so I don't know if I need to load Windows XP Pro or not. It is a stand alone machine.


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

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