Quantcast Bitrates: CQmatic Error - digitalFAQ.com Forums [Archives]
  #1  
10-05-2005, 05:31 PM
dlettau dlettau is offline
Free Member
 
Join Date: Sep 2005
Posts: 18
Thanks: 0
Thanked 0 Times in 0 Posts
When try to do a full encode with cqmatic I get the alam Illegal Stream Format. Here is my avisynth script

# -= AviSynth v2.5.5.0 script by FitCD v1.2.4 =-





Loadplugin("C:\unfilter\UnFilter_Avisynth_2.5_Alph a\UnFilter.dll")
Loadplugin("C:\mpeg2dec\MPEG2Dec3.dll")
Loadplugin("C:\temporalcleaner_25_dll\TemporalClea ner.dll")
Loadplugin("C:\Documents and Settings\Administrator\Desktop\Download\Filters\un dot\UnDot.dll")

mpeg2source("C:\Movie\VIDEO_TS\movie.d2v")

TemporalCleaner(5, 10)
UnDot()


BicubicResize(448,256,0,0.6,10,60,700,356)
AddBorders(16,160,16,160)
Trim(0,33929).FadeOut(150)

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) ")

AddBorders(8, 9, 8, 9)
Limiter()

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

I am new to this, I am not sure if I should have Tmepgenc open when I do a full encode with cqmatic or not. Let me know if there are problems or needed improvements to this script or if more info is needed.

THX
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  
10-05-2005, 05:39 PM
Dialhot Dialhot is offline
Free Member
 
Join Date: May 2003
Posts: 10,463
Thanks: 0
Thanked 0 Times in 0 Posts
First you should use short pathname everywhere when you do KVCD.
Normally this is not a problem into a script but you should take the habit to never use long names. So this is too long :
Code:
"C:\Documents and Settings\Administrator\Desktop\Download\Filters\undot\UnDot.dll"
Put your Download directory elsewhere (preferably C:\Donwload).

Second : explain with all details when and what gives you the error. The "illegal stream alarm" speaks to you because you just had it but if I have to remember what gives this that I didn't have since, what, 12 months ?, then I can be wrong.

I'm quite sure so that you put your avs also on the desktop. Did you ?
If yes, then this is probably the source of your problem.
Reply With Quote
  #3  
10-05-2005, 08:06 PM
dlettau dlettau is offline
Free Member
 
Join Date: Sep 2005
Posts: 18
Thanks: 0
Thanked 0 Times in 0 Posts
I am working on getting the paths shortened. One other strange thing, No matter what I put in for avg. bitrate cqmatic comes back with 89.73 , I also opened another project and got the same value. I am now switching to dvd2avi version 1.76 to see if this helps.
Reply With Quote
  #4  
10-05-2005, 08:10 PM
dlettau dlettau is offline
Free Member
 
Join Date: Sep 2005
Posts: 18
Thanks: 0
Thanked 0 Times in 0 Posts
Also here is my updated script

Code:
# -= AviSynth v2.5.5.0 script by FitCD v1.2.4 =-





Loadplugin("C:\unfilter\UnFilter_Avisynth_2.5_Alpha\UnFilter.dll")
Loadplugin("C:\mpeg2dec\MPEG2Dec3.dll")
Loadplugin("C:\temporalcleaner_25_dll\TemporalCleaner.dll")
Loadplugin("C:\undot\UnDot.dll")

mpeg2source("C:\Movie\VIDEO_TS\movie.d2v")

TemporalCleaner(5, 10)
UnDot()


BicubicResize(448,256,0,0.6,10,60,700,356)
Trim(0,253824).FadeOut(150)


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) ")

AddBorders(8, 9, 8, 9)
Limiter()
I got rid of the 1st border created by fitcd

Thx
Reply With Quote
  #5  
10-05-2005, 08:15 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 dlettau
One other strange thing, No matter what I put in for avg. bitrate cqmatic comes back with 89.73
From the first post here: http://www.kvcd.net/forum/viewtopic.php?t=5145

Code:
Instructions and notes:
For CalcuMatic: If you want to run CalcuMatic from CQMatic, please put both files in the same directory. Then, when you click on the "Calculator" button of CQMatic, CalcuMatic will be launched.
*** TMPGEnc Project file must be saved as "text" project *** Exclamation CQMatic will not read TMPGEnc's propietary project files.
You must make sure that you save the project without source range selection, and "Cut editing" cleared (or reset), and start frame set to 0 and end frame set to -1. Normally, that is the default. But if you have done source editing, make sure you clear the list, and "Uncheck" source range. If you don't, CQMatic will run, but TMPEG will abort because of errors.
-kwag
Reply With Quote
  #6  
10-07-2005, 06:44 PM
dlettau dlettau is offline
Free Member
 
Join Date: Sep 2005
Posts: 18
Thanks: 0
Thanked 0 Times in 0 Posts
I was able to get cqmatic to run. The only problem is that when I mux the audio & video with mplex or with tmpenc the movie starts in sync but it looses sync more the farther along the film goes. I am using dvd2avi 1.76 to create d2v file extracting the audio to a wav file track #1, channel format auto select, dolby digital decode, mpeg audio demux, 48-44.1 off. Any help would be great. The vidoe portion turned out excellent. It's the Matrix.
Reply With Quote
  #7  
10-07-2005, 09:31 PM
Prodater64 Prodater64 is offline
Free Member
 
Join Date: Mar 2003
Location: Palma de Mallorca - España
Posts: 2,925
Thanks: 0
Thanked 0 Times in 0 Posts
Quote:
Originally Posted by dlettau
I was able to get cqmatic to run. The only problem is that when I mux the audio & video with mplex or with tmpenc the movie starts in sync but it looses sync more the farther along the film goes. I am using dvd2avi 1.76 to create d2v file extracting the audio to a wav file track #1, channel format auto select, dolby digital decode, mpeg audio demux, 48-44.1 off. Any help would be great. The vidoe portion turned out excellent. It's the Matrix.
Surely you are doing a system change and tmpgenc don't do that with audio if you don't include audio in your avs file, then, you have to reencode audio with besweet doing your mp2 by yourself.
You can't use original audio as extracted with dvd2avi if there is a system conversion.
Reply With Quote
  #8  
10-08-2005, 04:42 AM
dlettau dlettau is offline
Free Member
 
Join Date: Sep 2005
Posts: 18
Thanks: 0
Thanked 0 Times in 0 Posts
I used headache to create mp2 file from dvd2avi wav file. I am not sure what you mean by a system change.
Reply With Quote
  #9  
10-08-2005, 05:38 AM
rds_correia rds_correia is offline
Free Member
 
Join Date: Apr 2003
Location: Chinese Democracy starts now!
Posts: 2,563
Thanks: 1
Thanked 0 Times in 0 Posts
By system change Prodater64 means going from 25 frames per second to 23.9xx frames per second or the opposite way around.
That is, if you do a system conversion with the video then you have to do the same with the audio .
If you're not doing a system conversion then you're either doing something wrong with the muxing or the muxing utility is screwing it up.
Or last but not least, you're not using a DVD source and probably you are working with an AVI source (Mpeg4/DivX/XviD).
In case you think the problem is down to the muxing engine please try bbMpeg (if you are aiming for K(S)VCD) or Muxman (if you are aiming for KDVD).
An alternative to Muxman is DVDLab Pro but that one is not freeware...although it is the best DVD muxing studio that I know for Windoze .
These are prooven for keeping everything in sync.
If you are using an AVI instead of a DVD source...get rid of that AVI and try a DVD :P.
There is no way to tell if such AVI is 100% healthy and sometimes things like this out of sync can occur.
There are tools that try to repair it but these tools can fail too...
Cheers
__________________
Rui
Reply With Quote
  #10  
10-08-2005, 06:33 AM
Anerboda Anerboda is offline
Free Member
 
Join Date: Mar 2003
Location: Denmark
Posts: 132
Thanks: 0
Thanked 0 Times in 0 Posts
You are using this:
Code:
Trim(0,253824).
in your script.

Are you trimming the audio aswell? If not that may be the reason for the muxed movie to go out of sync.

-Anerboda
Reply With Quote
  #11  
10-08-2005, 06:56 AM
Dialhot Dialhot is offline
Free Member
 
Join Date: May 2003
Posts: 10,463
Thanks: 0
Thanked 0 Times in 0 Posts
Quote:
Originally Posted by Anerboda
You are using this:
Code:
Trim(0,253824).
in your script.

Are you trimming the audio aswell? If not that may be the reason for the muxed movie to go out of sync.

-Anerboda
Not at all. This trim select a part in the begining of the movie. The audio can't become out of synch because of that. In the worst case, the audio will be longer then the video, and you will have an unsuspected result at the end.
Reply With Quote
  #12  
10-08-2005, 10:26 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 dlettau
I used headache to create mp2 file from dvd2avi wav file. I am not sure what you mean by a system change.
Have you tried TMPEG muxing (in the MPEG tools tab) instead of MPLEX

-kwag
Reply With Quote
  #13  
10-08-2005, 12:27 PM
dlettau dlettau is offline
Free Member
 
Join Date: Sep 2005
Posts: 18
Thanks: 0
Thanked 0 Times in 0 Posts
Ok let me try to responde to all the help which I greatly appreciate. I am using a DVD source, I tried using tmpgenc to mux also. I think some of the problem may lie with my pc that I used let me know what you think. It is a PII 1 ghz with 512 ram, running win xp pro. When I took a close look at the video file (M1V File) I noticed that the video is messed up also, scenes repeat
2 or 3 times(2-3 second clips). I am following Dark Princes DVD to kvcd Tutorial. I heard mention that Kwag also had some tutorials. If I could have a look at them it would be great. Thanks for all the help.
Reply With Quote
  #14  
10-08-2005, 12:57 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
Hi dlettau,

Try another DVD source, just to see if the problem is that particular movie.
This has happened to us in the past, so it could be the problem.

-kwag
Reply With Quote
  #15  
10-08-2005, 02:54 PM
dlettau dlettau is offline
Free Member
 
Join Date: Sep 2005
Posts: 18
Thanks: 0
Thanked 0 Times in 0 Posts
I am trying it another pc. If someone could give an example of a current avs script I would appreciate it. Some of the scripts that I have found are a bit old and am having a hard time finding the filters. I have already looked at the avs site which has quite alot. I have not been able to find asharp and a few others that are referred to.

THX
Reply With Quote
  #16  
10-08-2005, 05:28 PM
rds_correia rds_correia is offline
Free Member
 
Join Date: Apr 2003
Location: Chinese Democracy starts now!
Posts: 2,563
Thanks: 1
Thanked 0 Times in 0 Posts
Hya dlettau
Then try some scripts from the optimal scripts sub-forum.
Here, take a link http://www.kvcd.net/forum/viewtopic.php?p=21878#21878.
Try using the For DVD and clean material ( for use ONLY with AviSynth 2.5x ).
But I would advise you to try a different source movie.
As Karl already said we've had some issues with some movies in the past.
Cheers
__________________
Rui
Reply With Quote
  #17  
10-09-2005, 06:40 AM
dlettau dlettau is offline
Free Member
 
Join Date: Sep 2005
Posts: 18
Thanks: 0
Thanked 0 Times in 0 Posts
Code:
## DLL Section ##
#
Loadplugin("C:\Filters25\TemporalCleaner.dll")
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 ###
#
Mpeg2Source("C:\Joe\joe.d2v")
#
undot()
asharp(1, 4)
#GripCrop(Your_GripCrop_Parameters_Here)
#GripSize(320,208,0,0.6,0,6,720,468)
#BicubicResize(320,208,0,0.6,0,6,720,468)
AddBorders(8, 9, 8, 9)
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!

#
#
## Functions ###

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

I am trying a different source now. But when I run avs file at the top of the video I get this message Eavaluate:Unrecognized exception([ScriptClip]),Line1
Not sure what this is and wasn't sure what to do with gripsize & gripcrop.

THX
Reply With Quote
  #18  
10-09-2005, 07:22 AM
rds_correia rds_correia is offline
Free Member
 
Join Date: Apr 2003
Location: Chinese Democracy starts now!
Posts: 2,563
Thanks: 1
Thanked 0 Times in 0 Posts
Please make absolutely sure that you're running the latest Avisynth 2.5.5.
Go get it here http://prdownloads.sourceforge.net/a...5.exe?download.
Other users in the past had issues like the error message that you're talking about and they fixed it by either reinstalling Avisynth 2.5.5 or just by upgrading to Avisynth 2.5.5.
Oh, and forget about GripCrop()/GripResize()/GripBorders().
Just use the BicubicResize() line that you commented with the hash (#) and move the AddBorders() line to the place where you had GripBorders() line.
Now, I looked at your BicubicResize()/AddBorders() combination and something is strange in the figures you're using .
Where did you get those figures?
Please try FitCD here http://shh.sysh.de/files/FitCD_v128.zip.
Just input the figures in FitCD and let it do the calculations .
If you are unsure how it works check this tuto in this post http://www.kvcd.net/forum/viewtopic.php?p=113035#113035.
Hope you make it .
Cheers
__________________
Rui
Reply With Quote
  #19  
10-09-2005, 08:29 AM
dlettau dlettau is offline
Free Member
 
Join Date: Sep 2005
Posts: 18
Thanks: 0
Thanked 0 Times in 0 Posts
Thanks alot for the help I will check to see what versions I am running and let you know how I make out.
Reply With Quote
  #20  
10-09-2005, 09:10 AM
dlettau dlettau is offline
Free Member
 
Join Date: Sep 2005
Posts: 18
Thanks: 0
Thanked 0 Times in 0 Posts
I think this formula was giving me trouble I made it one line and cqmatic is going thru its moves, the only thing I am a little concerned about is the the cq value it is coming up with is about 57 and avg. bitrate of 548 , the movie concert length is 163min. I am curious as to how well the filters work.

Code:
function fmin( int f1, int f2) {
  return ( f1<f2 ) ? f1 : f2
} 
Quote:
:roll:
Reply With Quote
Reply




Similar Threads
Thread Thread Starter Forum Replies Last Post
Bitrates: CQMatic Log Aielman Video Encoding and Conversion 8 03-18-2004 10:36 PM
Bitrates: CQmatic nighthawk Video Encoding and Conversion 36 01-14-2004 11:20 AM
Bitrates: CQMatic & TOK serrabastien Video Encoding and Conversion 9 09-08-2003 08:09 PM
Bitrates: KDVD bitrates with CQMatic nicksteel Video Encoding and Conversion 10 08-06-2003 08:44 AM
Bitrates: TOK vs CQMatic Bud Video Encoding and Conversion 4 08-04-2003 02:30 AM

Thread Tools



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