Welcome to Doom9's Forum, THE in-place to be for everyone interested in DVD conversion.

Before you start posting please read the forum rules. By posting to this forum you agree to abide by the rules.

Domains: forum.doom9.org / forum.doom9.net / forum.doom9.se

 

Go Back   Doom9's Forum > Video Encoding > MPEG-4 ASP
Register FAQ Today's Posts Search

Reply
 
Thread Tools Search this Thread
Old 10th February 2007, 11:54   #41  |  Link
squid_80
Registered User
 
Join Date: Dec 2004
Location: Melbourne, AU
Posts: 1,963
Quote:
Originally Posted by SealTooGreat View Post
Code:
AVIStreamGetFrameOpen failed
That means for some reason avsutil couldn't play the file given as input. Installing a YV12 codec will probably fix it. (Sounds like xvid isn't installed properly?)
squid_80 is offline   Reply With Quote
Old 10th February 2007, 12:09   #42  |  Link
buzzqw
HDConvertToX author
 
Join Date: Nov 2003
Location: Cesena,Italy
Posts: 6,552
confirm the solution given by squid_80, reinstall xvid (koepi build) fix it

BHH
__________________
HDConvertToX: your tool for BD backup
MultiX264: The quick gui for x264
AutoMen: The Mencoder GUI
AutoWebM: supporting WebM/VP8
buzzqw is offline   Reply With Quote
Old 11th February 2007, 06:15   #43  |  Link
henryho_hk
Registered User
 
Join Date: Mar 2004
Posts: 889
Yeah, the bundled celticdruid's MTK xvid build does not install the directshow filter. I am using FFDShow and so I did not notice this problem.
henryho_hk is offline   Reply With Quote
Old 11th February 2007, 06:47   #44  |  Link
squid_80
Registered User
 
Join Date: Dec 2004
Location: Melbourne, AU
Posts: 1,963
Does it install the vfw component though? That version of AVSUtil is pretty old, to play a file it requires the stream to be RGB or a codec that can convert whatever format it is to RGB.
squid_80 is offline   Reply With Quote
Old 11th February 2007, 10:48   #45  |  Link
henryho_hk
Registered User
 
Join Date: Mar 2004
Posts: 889
Yeah, VFW component is installed. I am using AVSUtil and writefile() to obtain the details of the avs script. Is there a newer version of AVSUtil?
henryho_hk is offline   Reply With Quote
Old 11th February 2007, 16:31   #46  |  Link
squid_80
Registered User
 
Join Date: Dec 2004
Location: Melbourne, AU
Posts: 1,963
There is, I must have forgotten to upload it. The text output is slightly different (I use it for benchmarking) but it still returns the framecount in %errorlevel%. I'll upload it tomorrow.
squid_80 is offline   Reply With Quote
Old 12th February 2007, 08:14   #47  |  Link
vanger
Registered User
 
Join Date: Nov 2003
Location: Russia, Novosibirsk
Posts: 58
what's wrong in such usage?
Code:
D:\avs2qxvid>avs2qxvid_25e.bat COMPTEST 700MB zxxxz91.avs

Usage:
  avs2qxvid_25e.bat {TGHQ/TGFAST/MTK}-{30/45/58/90/CT} <value>{bppx/kbps/KB/MB/G
B} {PAR} {FOD} {input1.avs} {input2.avs} ...
  avs2qxvid_25e.bat {COMPTEST} <value>{bppx/kbps/KB/MB/GB} {PAR} {FOD} {input1.a
vs} {input2.avs} ...

  Taking input1.avs, input2.avs ... and producing input1.avi, input2.avi ...
  in the corresponding directories.

  TGHQ and TGFAST are original Teegedeck's 2-pass XviD quality presets. MTK
  is quick and dirty adaptation of TGFAST (hopefully) to work with mpeg4
  standalones players.

  If the AVS has audio, it will be compressed into CBR/ABR MP3 or OGG at about
  128kbps (MP3 is for MTK).  If an audio file inputN.mp3 or inputN.ogg
  is present, it will also be used.  In both cases, if you specify the target
  size, the audio size will be taken into account into size prediction.  An AVI
  or MKV (for its chapter support) will be muxed.

  -30, 45, 58 and 90 are the Teegedeck's preset levels.  It governs many
  critical settings of XviD encodes, such as quantizer ranges and matrices.

  Target size can be specified in bit per pixel, kbit per sec, kilobytes,
  or gigabytes.  Beware that _Quality_ takes precedence over the size and
  bitrate and so it is possible to have oversize or undersize.

  You can also use "-CT" and let the compressibility test to pick a right level
  according to your desired target size or bitrate.  3 of the input will be
  used for the comp test if there are more than 500 frames.  It works well most
  of the time unless you enter extreme values, e.g. 650MB for a 10s clip (too
  big) or 100MB for a 1080p movie (too small).  Note:  If the AVS ends with a
  "return" statement, 3 sampling won't work and the full clip will be tested.

  Anamorphic encode is also supported.  You can specify a pixel aspect ratio
  (PAR) of 1:1 (default), PAL_4:3, PAL_16:9, NTSC_4:3, NTSC_16:9 or anything lik
e
  xxx:yyy.  Your player (software/standalone) will perform the resize.

  In case you need a comp test only, use COMPTEST.  After the test, a file named

  input.enc.txt will be generated in the source directory.  And then, when you
  specify only input.avs in the command line, the script will try to look for
  input.enc.txt for the compression options.  If not found, it will assume
  "TGFAST-CT 0.15bppx VGA_1:1".

  In case you want to force key-frames for, e.g., chapter points, create a text
  input.zones.txt listing all the frame numbers there.  If audio (separate file
  or audio in AVS) is also present, the program will mux them into a MKV
  container with these chapter points.

  All credits go to Teegedeck for his great quality presets and squid_80 for his

  wonderful xvid_encraws.exe and avsutil.exe.

  Examples:

  Compress input.avs using TGHQ-58 preset at a reference size of 700MB.
  > avs2qxvid_25e.bat TGHQ-58 700MB 1:1 PRO input.avs

  Compress input1.avs and input2.avs as PAL 16:9 and TFF using TGFAST preset at
  a preference bitrate of 1300kbps.  The preset level of indivdual avs will be
  selected according to each comp test result.
  > avs2qxvid_25e.bat TGFAST-CT 1300kbps PAL_4:3 TFF PAL_16:9 input1.avs input2.
avs

  Compress input.avs using the default of TGFAST-CT and 0.15bppx, or according
  to the settings in input.enc.txt in the same directory.  This is also what
  got executed when you drag and drop a AVS (or a number of AVS) onto this
  script.
  > avs2qxvid_25e.bat input.avs

  Test the compressibility of input.avs for the target size of 0.5GB.
  > avs2qxvid_25e.bat COMPTEST 0.5GB input.avs

Press any key to continue . . .
the avs script:
Code:
DirectShowSource("D:\capture\video\gen.mkv",fps=25,audio=false)
vanger is offline   Reply With Quote
Old 12th February 2007, 14:08   #48  |  Link
squid_80
Registered User
 
Join Date: Dec 2004
Location: Melbourne, AU
Posts: 1,963
New AVSUtil, as promised. (I can make a build that isn't dependent on the VS2005 runtime library if you like, but it will blow up in size to be 80k instead of 7.5k.)
squid_80 is offline   Reply With Quote
Old 12th February 2007, 15:18   #49  |  Link
henryho_hk
Registered User
 
Join Date: Mar 2004
Posts: 889
Do you mean this runtime library?
http://download.microsoft.com/downlo...redist_x86.exe
henryho_hk is offline   Reply With Quote
Old 12th February 2007, 15:30   #50  |  Link
squid_80
Registered User
 
Join Date: Dec 2004
Location: Melbourne, AU
Posts: 1,963
Yes, if it's for VS2005 (I can't tell from the url and I'm not going to download it just to find out).
squid_80 is offline   Reply With Quote
Old 12th February 2007, 15:43   #51  |  Link
henryho_hk
Registered User
 
Join Date: Mar 2004
Posts: 889
Quote:
Originally Posted by vanger View Post
what's wrong in such usage?
Sorry for the typo in the online help. Try:

avs2qxvid_25e.bat COMPTEST-CT 700MB 1:1 PRO zxxxz91.avs

"1:1" is ignored and does not really matter. "PRO" means progressive footage; you can also specify "TFF" or "BFF".
henryho_hk is offline   Reply With Quote
Old 13th February 2007, 13:31   #52  |  Link
squid_80
Registered User
 
Join Date: Dec 2004
Location: Melbourne, AU
Posts: 1,963
FYI I found a bug today in AVSUtil that causes it to incorrectly report the number of frames in AVI files larger than 2GB. I'll try and get another new version uploaded soon.

EDIT: New version is available now, same url as above.

Last edited by squid_80; 14th February 2007 at 12:26.
squid_80 is offline   Reply With Quote
Old 14th February 2007, 16:32   #53  |  Link
Dams
Registered User
 
Dams's Avatar
 
Join Date: Sep 2002
Location: France
Posts: 190
@squid_80 : for what is used your software named AVSUtil ?
do you have a post on it ?
__________________
Dams
Dams is offline   Reply With Quote
Old 14th February 2007, 16:44   #54  |  Link
henryho_hk
Registered User
 
Join Date: Mar 2004
Posts: 889
AVSUtil is an essential tool for my script. ^_^
henryho_hk is offline   Reply With Quote
Old 14th February 2007, 17:09   #55  |  Link
Dams
Registered User
 
Dams's Avatar
 
Join Date: Sep 2002
Location: France
Posts: 190
sorry daddy, I didn't see it

__________________
Dams
Dams is offline   Reply With Quote
Old 15th February 2007, 09:13   #56  |  Link
vanger
Registered User
 
Join Date: Nov 2003
Location: Russia, Novosibirsk
Posts: 58
Quote:
Originally Posted by henryho_hk View Post
Sorry for the typo in the online help. Try:

avs2qxvid_25e.bat COMPTEST-CT 700MB 1:1 PRO zxxxz91.avs

"1:1" is ignored and does not really matter. "PRO" means progressive footage; you can also specify "TFF" or "BFF".
It works,
vanger is offline   Reply With Quote
Old 15th February 2007, 21:32   #57  |  Link
pdanpdan
Registered User
 
Join Date: Apr 2005
Location: Bucharest, Romania
Posts: 145
Quote:
Originally Posted by squid_80 View Post
New AVSUtil, as promised. (I can make a build that isn't dependent on the VS2005 runtime library if you like, but it will blow up in size to be 80k instead of 7.5k.)
Hi, with this version of avsutil I get an error stating that there is a configuration problem and cannot be started
Attached Images
File Type: jpg error.jpg (15.8 KB, 1148 views)
pdanpdan is offline   Reply With Quote
Old 16th February 2007, 06:45   #58  |  Link
vanger
Registered User
 
Join Date: Nov 2003
Location: Russia, Novosibirsk
Posts: 58
how to make comptest for 2pass encoding and get quality near q=2 ?

a want to get bitrate for max quality (in reasonable limits)

Last edited by vanger; 16th February 2007 at 10:41.
vanger is offline   Reply With Quote
Old 16th February 2007, 12:03   #59  |  Link
kastiauto
Registered User
 
Join Date: Nov 2005
Posts: 14
Why preset: MTK-CT xxMB won't do second pass? TGHQ-CT xxMB was OK.

__

Installing that XViD included in this package solved the problem and now 2 pass in MKT is working.
avs2qxvid_25e_full_\xvid_celticdruid\xvid.inf

Last edited by kastiauto; 4th September 2011 at 07:57.
kastiauto is offline   Reply With Quote
Old 17th February 2007, 04:14   #60  |  Link
henryho_hk
Registered User
 
Join Date: Mar 2004
Posts: 889
Quote:
Originally Posted by vanger View Post
how to make comptest for 2pass encoding and get quality near q=2 ?
"Quality near q=2" is vague since you did not mention the matrix. For me, 6of9 or V3UHR at q=3 looks better than H.263 at q=2. (Very) generally speaking, I think TGHQ-90 or TGFAST-90 would be your choice. The trick is to pick the right target size. Since the comp-test result value (not the quantizers!) is in linear with the target bitrate/size, I think you can try this:

1) Pick a target reasonable bitrate, say 1600kbps for 640x480x29.97fps, and do a COMPTEST-CT pass.
2) Assuming that you obtain a comp test result of 42, you can project for the desired target: 1600*95/42 = 3620kbps
3) Do a TGFAST-90 at a target bitrate 3620kbps. It would be quite likely that the average quantizer is around 2 with the 6of9 matrix.

Last edited by henryho_hk; 17th February 2007 at 05:49.
henryho_hk is offline   Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 14:55.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.