digitalFAQ.com Forums [Archives]

digitalFAQ.com Forums [Archives] (http://www.digitalfaq.com/archives/)
-   Video Encoding and Conversion (http://www.digitalfaq.com/archives/encode/)
-   -   Bitrates: CQmatic (http://www.digitalfaq.com/archives/encode/7599-bitrates-cqmatic.html)

nighthawk 01-10-2004 09:51 AM

CQmatic
 
Hi all,

:cry: No matter what I do CQmatic is making my video files to large :!:

The finished video if muxed with my sound file will never fir on a 80min cd.

Do I need to change the bitrates upper and lower in TMPGEnc after CQmatic gives me it's final CQ or does CQmatic take care of that automatically like for the CQ?

I'm beginning to get the feeling that CQmatic just won't accuratly get the video files size right. Anyone else been able to figure this thing out so it will work properly?

nighthawk

Crackhead 01-10-2004 11:17 AM

^^ first, a bit more information about settings, final file size etc. would be great :lol:

but, i have noticed this, too. All my encodes were approx. 50mb too big. I did a little search in the forums here and found out that it is recommended to set the min bitrate in your project to 0.57xAvg.Bit.
Tried this and really, my encode went down by 3, maybe this helps.

btw @all the experts here :wink: : is there a workaround for this? since such a high min bitrate wastes a lot of space!

bigggt 01-10-2004 12:06 PM

Hi Nighthawk ,i was having the same problems but like Crackhead said

Quote:

Originally Posted by Crackhead
recommended to set the min bitrate in your project to 0.57xAvg.Bit.

That worked for me ,also you could try TOK and see if it is better for you

nighthawk 01-10-2004 01:41 PM

Here is the script right out of moviestacker :D


LoadPlugin("C:\Program Files\MovieStacker\Filters\MPEG2Dec.dll")
LoadPlugin("C:\Program Files\MovieStacker\Filters\GripFit_preview.dll")
LoadPlugin("C:\Program Files\MovieStacker\Filters\BlockBuster.dll")
LoadPlugin("C:\Program Files\MovieStacker\Filters\UnFilter.dll")
LoadPlugin("C:\Program Files\MovieStacker\Filters\LegalClip.dll")

Mpeg2Source("F:\The Movie\movie.d2v")
LegalClip()
GripCrop(352, 240, overscan=1)
GripSize(resizer="BilinearResize")
UnFilter(50, 50)
TemporalSmoother(1, 2)
MergeChroma(blur(1.58))
MergeLuma(blur(0.2))
BlockBuster(method="noise", detail_max=7, seed=1)
GripBorders()
LegalClip()


The rest of the story:

Audio is 128 and the file size is 126mb from HeadAC3he

Calcmatic give me this Source is 138min & 15sec
Audio is 128 bitrate 1 stream
number of disks is 1 80min
Average bitrate is 662.1 & ".57" average is 377.4
Video size is 686480
Audio size is 132720

I then loade my script into TMPGEnc loaded the proper KVCD template which is the NTSC LBR 180min
Made sure that the source range is unchecked and the numbers were 0 & -1
Saved the project as a TMPGEnc text file

I then loaded the text file into CQmatic with the movie length 138 and the average bitrate of 662. Ran perdiction only and my final CQ was 82.85 when encoded the files size came way larger than the predicted size in calcmatic. So much in fact that when muxed with the audio it was right around 860mb

I am completly stumped as to where the problem is or how to fix it. I also would get these same problems with manual prediction. :x

I should mention that I'm using Smartripper DVD2AVI 1.76 HeadAC3he and Moviestacker.

TMPGEnc is version 2.521.58.169 which I think is the latest version right now.
Also when using DVD2AVI is set it to force film.

ANY HELP ON THIS WOULD BE GREAT AS IT'S DRIVING ME NUTS!! 8O

mistermickster 01-12-2004 04:19 AM

Quote:

Originally Posted by nighthawk
Here is the script right out of moviestacker :D


LoadPlugin("C:\Program Files\MovieStacker\Filters\MPEG2Dec.dll")
LoadPlugin("C:\Program Files\MovieStacker\Filters\GripFit_preview.dll")
LoadPlugin("C:\Program Files\MovieStacker\Filters\BlockBuster.dll")
LoadPlugin("C:\Program Files\MovieStacker\Filters\UnFilter.dll")
LoadPlugin("C:\Program Files\MovieStacker\Filters\LegalClip.dll")

Mpeg2Source("F:\The Movie\movie.d2v")
LegalClip()
GripCrop(352, 240, overscan=1)
GripSize(resizer="BilinearResize")
UnFilter(50, 50)
TemporalSmoother(1, 2)
MergeChroma(blur(1.58))
MergeLuma(blur(0.2))
BlockBuster(method="noise", detail_max=7, seed=1)
GripBorders()
LegalClip()

Why are you using this script from MovieStacker :?

You will get better results using the MA script here, only using MovieStacker to give you the correct GripCrop line :wink:

An alternative to this script is to remove the asharp line and change the resizer to "LanczosResize", to produce a sharper picture. :)

Try that and see what happens to your file size.

Dialhot 01-12-2004 04:48 AM

Quote:

Originally Posted by nighthawk
I then loaded the text file into CQmatic with the movie length 138 and the average bitrate of 662

On such long movie is HIGHTLY recommanded to use x3 prediction.

In x1 mode, CQMAtic takes a 2 min sample whatever the source length. The longer is the source, the worst is the accuracy.

In x3 the sample is 6 minutes long.

nighthawk 01-12-2004 09:45 AM

Is there a guide for using the scripts? I've been following a couple of different guides here and both call for loading the script out of Moviestacker into TMPGEnc. I'm not at all familiar with the MA script or even how to use it :cry:

I will try perdiction x3 and see if that's better.

nighthawk

Dialhot 01-12-2004 09:53 AM

There is no guide. There is the avisynth manual that explain how avisynth works and there is this :

http://www.avisynth.org/index.php?page=YourFirstScript

nighthawk 01-12-2004 04:16 PM

Is there anything wrong with using the script right out of moviestacker? I went to the avisysnth site and I really very much fell like a complete noob. Not that eventually I couldn't learn it but when reading some of the threads here about different dll's to be installed and different scripts and filters and such. It's very hard to know just where to start the process.

Before I learned of KVCD there was only VCD for me. In which I used the internal filters of TMPGEnc with good results. Maybe not the best by some of the pro's standards here. But it was enough for me to do what I wanted to do.

Are there more exact perdiciton methods for the scripts right out of moviestacker?

nighthawk

rds_correia 01-12-2004 06:46 PM

Hi nighthawk,
The thing is that when you use Moviestacker to create your script it will make up a script for avisynth 2.0x which is now out of business.
Nowadays we use avisynth 2.53 with Kwags MA script.
If you press the search button for MA script you will find the latest build for avisynth 2.5x.
Use it because it will optimize your movies compression.
You just have to adapt it a bit like the path of your d2v file or the resolution you prefer.
But don't get rid of Moviestacker or FitCD as from times to times they are very helpfull.
And don't worry about feeling like a complete noob. We all feel like that once in a while. Like me: I've been using avisynth for months and I only realized I can stop using the "LoadPlugin()" lines about 2 or 3 weeks ago...

nighthawk 01-12-2004 08:16 PM

I found the latest MA script as a sticky thread under Scripts.

However I am not completly sure how to use it.?

From the looks of the Script there are certain dll's needed and filters. Where would I find those dll's and the filters? And how to install them.

I've gotten use to Moviestacker preloading the dll's and appling the proper filters. When I'm looking at the Script I see that I have to specify my own gripcrop parameters.

Is this script used with moviestacker?

Wow am I lost :!:

dazedconfused 01-13-2004 02:20 AM

Quote:

Originally Posted by nighthawk
I found the latest MA script as a sticky thread under Scripts. However I am not completly sure how to use it.?

You really don't need to understand every single thing that is going on within the MA script in order to use it. All you really need to do is copy and paste the script into Notepad and save it as a .avs file (or you could save it as a text file with a .txt extension and then rename it to have a .avs extension later). Then you make the few changes that rds_correia already previously mentioned to your MPEG2Source() line and GripCrop() line and save the changes.

Quote:

From the looks of the Script there are certain dll's needed and filters. Where would I find those dll's and the filters?
Doing a search here will turn up many posts by other people who have asked the same question and were told to go to http://www.avisynth.org/warpenterprises/ to find the vast majority of filters they could ever need. :wink:

Quote:

And how to install them.
If you are using Avisynth 2.53 (which is the necessary version in order to use the MA script), then just download all of the 2.53 filters you see that are being used in the MA script. You might also want to download all of the filters listed by Dialhot in his optimal AVI script if you ever plan on doing conversions of that type and using his script. Once you have downloaded the necessary .dlls, just unzip them (ONLY THE ACTUAL .dll files for 2.53!.......not the .src or .txt or anything else that might come bundled within the zip files) into the "Plugins" folder which you will find within the main "Avisynth" program folder that is created automatically when you installed Avisynth 2.53. You can also unzip the .doc or .txt ReadMe files for each of the filters into the "docs" folder found within the "Avisynth" folder (or anywhere else you'd like to keep them for that matter) in case you'd like to read them later on to learn what each filter does and how to make changes to their parameters.

Quote:

Is this script used with moviestacker?
Since MovieStacker is based on the old avisynth 2.08 (and uses old filters), the only thing some people use it for anymore is to obtain the correct resizing and addborders parameters to plug into their scripts if they do not trust letting GripCrop/GripSize/GripBorders perform its own automatic functions to determine size and borders for them. On some occasions the Gripfit .dll will struggle to properly find the correct resizing values for a source, and it will not work. So some people do not like using Gripfit. However, it usually works and is recommended to newcomers since it makes scripting easier and eliminates the need for an extra step (MovieStacker) in the process.

Quote:

Wow am I lost :!:
But you're finding your way (as we all did), so don't worry. :wink: It'll be worth the effort.

Good luck,
-d&c

nighthawk 01-13-2004 11:41 AM

O.k I think I'm on the right trail now and thanks :!: :D

I'm confused about the Linear motion adaptive filtering and how to set that up. Also the line right under GripBorders that refers to letterbox do I need to do anything there? As well as the last line that refers to function do I do anything there or just leave as is?

nighthawk

nighthawk 01-13-2004 03:51 PM

O.K I've got everything downloaded and the ninstalled into the plugins folder of avisynth however I keep getting the error unable to load MPEG2Dec3.dll and I have that installed into the plugins folder of avisynth.

Did I install this into a wrong area?

nighthawk 01-13-2004 03:52 PM

one quick note the avisynth version is 2.53.

Dialhot 01-13-2004 04:42 PM

What is the exact and complete text of the error, and you script ?

rds_correia 01-13-2004 04:46 PM

Hi nighthawk,
Go to Donald Graft's site http://neuron2.net/ and search for decodefix or just
download http://neuron2.net/fixd2v/decodefix100.zip.
That's DG's bundle that comes with a fixed DVD2AVI 1.77.3 and a fixed Mpeg2Dec3.dll.
The fix applies for source frame loss under some circumstances.
Extract the zipfile and copy the Mpeg2Dec3.dll to your avisynth plugins folder which would probably be c:\program files\avisynth\plugins
Now try your script with VDubMod again.
PS-Maybe you would be better off with DG's DVD2AVI for the future. Just remember to save your projects in 1.76 mode :wink:

Dialhot 01-13-2004 06:24 PM

rds_correia, you are giving the advice to take this version to everyone even if their problem isn't tied to what is fixed in this version. It's very confusing for a newbie !

I DO NOT USE THIS VERSION and never had the slightest problem.
This package comes with a new DVD2AVI intoducing new problems (as you said, you have to think about the save format else all will screw up - btw this new DVD2AVI MUST be used when you have the new dll. That's not a matter of choice, and there is no "may be"), a new MPEG2DEC3 dll (that does not even have the same name !) and you must remove the dll that every script here refer (the original mpeg2dec3.dll) because if you forget that, again everything is screwed up.

And all that for what ? Because under some circumtances, old dll loses ONE frame !

Please, think twice before talking this dll.

Just my 2 cents (and no offence)

nighthawk 01-13-2004 11:16 PM

I'm using the MA script now and each time I try to load it into TMPGEnc I'm getting this error message in TMPGEnc.

"LoadPlugin: unable to load "C:\Filters25\MPEG2Dec3.dll""

nighthawk 01-13-2004 11:17 PM

I do have that DLL in the plugin folder of avisynth 2.53

dazedconfused 01-14-2004 12:04 AM

Hi again Nighthawk,

Carefully read what you yourself have just written in your last 2 posts, and you will see that you've already answered your own question without realizing it. :wink:

Look at the pathname to the .DLL in the error message that TMPG gave you when you tried opening your .avs script....

Now in your 2nd post, look at where you said you have the .DLL located on your PC...

You need to change all of the pathnames in the script so that they will reflect where you have things on your PC, not to where Kwag has them on his PC.

And actually, you don't even need any of the LoadPlugin() lines in your script at all if you installed your filters (.DLLs) into the "plugins" folder of Avisynth (which you said you did). By installing your .DLLs there, they will auto-load for you, making the LoadPlugin lines totally unnecessary in your scripts.

So just open your script with Notepad and put a "#" in front of all of the LoadPlugin() lines in your script to deactivate those lines, and then save the changes, and then it should work. And don't forget to set the correct pathname to your .d2v file as well in the MPEG2Source() line of your script, or else that will probably be your next error message in TMPG. :wink:

-d&c

nighthawk 01-14-2004 09:24 AM

:oops: O.K. I fixed that along with the path to my d2v file. However I'm now getting a Script Error "invalid arguments to function "undot" and I do have that dll in the plugins folder.

Dialhot 01-14-2004 09:25 AM

?? What is exactly your script now ?

nighthawk 01-14-2004 09:36 AM

## DLL Section ##
#
#LoadPlugin("C:\Filters25\MPEG2Dec3.dll")
#LoadPlugin("C:\Filters25\GripFit_YV12.dll")
#LoadPlugin("C:\Filters25\STMedianFilter.dll")
#LoadPlugin("C:\Filters25\asharp.dll")
#LoadPlugin("C:\Filters25\unfilter.dll")
#LoadPlugin("C:\Filters25\undot.dll")
#
####
## Main section and static filters ###
#
("F:\movie\movie.d2v")
#
undot()
Limiter()
asharp(1, 4)
GripCrop(352, 240, overscan=1)
GripSize(resizer="BicubicResize")
STMedianFilter(3, 3, 1, 1 )
MergeChroma(blur(1.5))
MergeLuma(blur(0.1))
#
#

## Linear Motion Adaptive Filtering ##
#
# ( Portions from AviSynth's manual )
# This will apply variable temporalsoften
# and variable blur.
# Both filters are active at all times, and work inversely proportional to the
# activity, measured from current frame to next frame.

ScriptClip(" nf = YDifferenceToNext()" +chr(13)+ "unfilter( -(fmin(round(nf)*2, 100)), -(fmin(round(nf)*2, 100)) ).TemporalSoften( fmin( round(2/nf), 6), round(1/nf) , round(3/nf) , 1, 1) ")

#
#
#

GripBorders()
#LetterBox( Your_Values_Here ) # Depends on situation. Use MovieStacker!
Limiter()

#
#
## Functions ###

function fmin( int f1, int f2) {
return ( f1<f2 ) ? f1 : f2
}

#
####

Dialhot 01-14-2004 09:49 AM

Quote:

Originally Posted by nighthawk
("F:\movie\movie.d2v") <-- you miss something here !

The correct line is :
Mpeg2Dec3("F:\movie\movie.d2v")

Second : where are exactly your plugins now ? The complete and exact path.

nighthawk 01-14-2004 09:54 AM

C:\Program Files\AviSynth 2.5\Plugins

nighthawk 01-14-2004 09:59 AM

8O This is discouraging :!: Now I'm getting the error there is no fucntion named "Mpeg2Dec3"

Dialhot 01-14-2004 10:14 AM

Quote:

Originally Posted by nighthawk
8O This is discouraging :!: Now I'm getting the error there is no fucntion named "Mpeg2Dec3"

My mistake !!!

The line is "Mpeg2Source("your d2v")"

Sorry for this error.

nighthawk 01-14-2004 10:18 AM

O.k. I changed that now tmpgenc is giving me a full blown error telling me that MA Sript can not open or is unsuppported.

I don't understand this at all

Dialhot 01-14-2004 10:40 AM

Add "ConvertToRGB24()" at the end of the script. If it fixes the problem that means that you miss a YV12 codec on your PC. I suggest you to install the last Xvid codec.

mistermickster 01-14-2004 10:46 AM

Also make sure you have Mpeg2Dec3.dll in your plugins folder and not Mpeg2Dec.dll and /or Mpeg2Dec2.dll.

As I understand it, they all have the same functions included but Mpeg2Dec3 is the latest. If they are all in the plugins folder, Avisynth might call the function in Mpeg2Dec :?

Just a thought. Might help. :wink:

nighthawk 01-14-2004 11:02 AM

I added that line to the end of the script & double checked the dll. I re-ripped frameserved with DVD2AVI 1.77.3 and now I'm getting the error

"The script's return value was not a video clip"

:cry:

Dialhot 01-14-2004 11:07 AM

Why did you redo the d2v with 1.77.3 ? You were close to the end and your restart from the begining :-(

Note: I never saw your error anywhere :-)

nighthawk 01-14-2004 11:11 AM

O.k I just now installed the DivX codec and the script will open in tmpgenc, I also removed that last line in the script that dialhot had me add. All seems to open now. Is there anything else I would have missed?

Talk about noob problems maybe we should have a "pre-noob" catagory and then I'll moderate that.

nighthawk

nighthawk 01-14-2004 11:15 AM

I redid the d2v with 1.77.3 because I thought that maybe something got corrupted along the way there.

1.77.3 is the one I should be using now or do I still use 1.76?

Dialhot 01-14-2004 11:17 AM

Quote:

Originally Posted by nighthawk
Talk about noob problems maybe we should have a "pre-noob" catagory and then I'll moderate that.

:lol:

For the DVD2AVI version I still use 1.76, I never had problem with it, and I do not see why I would change. But if it's okay with 1.77, just keep it.

nighthawk 01-14-2004 11:20 AM

Thanks everyone for giving me a hand through the setup stages :!: :!:

I am going to start working with some perdeiction on the script and then encode. I hope all goes well. :)


All times are GMT -5. The time now is 03:23 PM  —  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.