View Full Version : avs2qxvid.bat [AVS to Quality XviD]
henryho_hk
16th May 2007, 06:43
ELDER is much more sophisticated. You can spread the encoding jobs over several computers with ELDER. I am planning for local computer encodes only. Also, I think the bitrate allocation are different. I use linear interpolation based on compressibility test while ELDER uses another method.
--------------------------
%NUM_OF_PROCESSORS% is disabled solely because I was testing multi-part encoding that night. If you are using 2.5f, please apply the amendments in post #90 as well.
Revgen
16th May 2007, 18:02
Well whatever you do sounds like a good idea if it means more speed while maintaining good quality.
Thanks for script.:)
Irakli
20th May 2007, 01:43
Hi
I have a small question. I noticed that packed bitstream is always enabled for the encoding. Is there any way to disable it?
Revgen
20th May 2007, 07:21
Hi
I have a small question. I noticed that packed bitstream is always enabled for the encoding. Is there any way to disable it?
Open the avs2qxvid_25f.bat in notepad and change:
set PPK=-packed
into
set PPK=-nopacked
AtomicStryker
26th May 2007, 11:17
I've got a problem with your cool Batch, it won't find the installed Avisynth on my comp - running Win XP Prof x64 SP2. How does your script "look" for Avisynth, can i specify it's folder somehow?
I already thought it might be related to the Program Files (x86)-naming, so i copied the Avisynth-folder into Program Files, but that didn't help. Avisynth is perfectly functional, I use MeGUI to encode stuff and wanted to use your batch for a Compress. Check
buzzqw
26th May 2007, 13:13
maybe is missing the registry key..
you could check HKLM/Software/Avisynth and look for plugindir2.5 key... or simply reinstall avisynth 2.57
BHH
henryho_hk
26th May 2007, 13:40
The batch looks for %SystemRoot%\System32\avisynth.dll
I believe that the DLL installation directory is different for XP x64 (is it something like wow64?) If you have AVIsynth installed, you can remove that checking completely. I would also like to know whether avsutil works under XP x64.
celtic_druid
26th May 2007, 14:16
If you are using 32bit apps then you should launch the batch with a 32bit command prompt, that way system32 and sysWOW64 are the same thing. If you are using 64bit tools then avisynth.dll would be in system32 for real.
I'll test it some time later with 64 and 32 bit tools, see how it goes.
AtomicStryker
26th May 2007, 16:04
Alright then ... how do i launch a 32bit console?
Ah, found it myself, go to the sysWOW64 folder and launch the cmd.exe there, then proceed to use the batch.
Works! Using a 32bit command prompt, that batch finds avisynth
Thanks a ton
squid_80
26th May 2007, 16:17
I would also like to know whether avsutil works under XP x64.
It certainly does. Also I forgot to let you know the source for it is available on my website ( http://members.optusnet.com.au/squid_80/sources/avsutil_src.zip ).
AtomicStryker
26th May 2007, 21:01
In spite of the "tweaks" to the .bat given in this thread, the xvid-encoder doesn't utilize my second CPU core .. funny enough the set %NUM_OF_PROCESSORS% thing made the script use 2 threads (0 cpus detected lol) instead of 1, but still they're running core 1 solely.
It's even funnier because another part of your batch (the one recoding audio to an .ogg, even when i only choose COMPTEST - is that necessary?) actually DOES take advantage of both cores...
Oh, and the lines you give to correct that script errors in are wrong, or atleast Notepad++ tells me so
Uhh - and as a sidenote: What the hell is pcrecpp.dll? MeGUIs mkvmerge tool demands it (along with a few other missing .dlls, but those i could download) and i can't even find it on google .. some sort of Opensolaris source??????
celtic_druid
26th May 2007, 22:57
MeGUI just uses the regular mkvmerge from mkvtoolnix.
Main site down here but you can get it at:
http://www.videohelp.com/tools/MKVtoolnix
dependencies included and you can use 7-zip to unpack if you don't want to install.
foxyshadis
27th May 2007, 00:51
pcre -> perl-compatible regular expressions. It's usually called just pcre.dll though.
squid_80
27th May 2007, 16:00
In spite of the "tweaks" to the .bat given in this thread, the xvid-encoder doesn't utilize my second CPU core .. funny enough the set %NUM_OF_PROCESSORS% thing made the script use 2 threads (0 cpus detected lol) instead of 1, but still they're running core 1 solely.If it's detecting 0 cpus then you don't have a multithreaded capable version of xvid installed.
henryho_hk
28th May 2007, 00:40
Ithe xvid-encoder doesn't utilize my second CPU core .. another part of your batch (the one recoding audio to an .ogg, even when i only choose COMPTEST - is that necessary?) actually DOES take advantage of both cores...
I am using wingogo (optimized version of LAME 3.88) and the Blacksword Lancer build of oggenc. Both can keep your cores busy automatically. If you use the bundled version of XviD (uninstall existing one, install this one and load defaults), you will also see certain degree of multi-core activities. You can also try the "MT" AVS plugin for multi-thread avs processing.
It's also intentional to encode audio for comp-test because if you specify target size in KB/MB/GB it also includes the audio size.
As for the syntax error, I don't see any error in my 2.5g. Nevertheless, I had released 2.5h to prevent further confusion. In addition, I wrote a small assembly program to detect the number of CPU cores instead of using %NUM_OF_PROCESSERS%. If you have a multi-CPU system or multi-core AMD system, please help me to test it.
AtomicStryker
29th May 2007, 22:06
If i might ask: What included Xvid? As far i can see, there's Xvid_Encraw included, but no Xvid.dlls or Setups
I uninstalled my 1.1.2 (Koepi) Xvid Build and tried to use your batch again, i get an error message about "xvidcore.dll not found"
celtic_druid
29th May 2007, 22:36
There was definitely an xvidcore.dll included at some stage. But yeah v1.1.2 would explain it since the 1.1 branch isn't multithread capable.
Shouldn't be any need to uninstall your exisiting Xvid version either though. Simply putting a 1.2.x dll in the same dir as encraw should be enough.
Lux Delux
29th May 2007, 23:46
Hi, I've a question but first want to thank you for the excellent work! Keep it up!
Anyways, when the enocde finishes I get 2 .avi files instead of just one. One of 'em is a few bytes bigger for some reason.
Any ideas? :)
EDIT: aaaah damn I'm so stupid :o just noticed it does automatic muxing and since I haven't selected any audio track it muxes it with some small file from TMP.
Is there perhaps an option to disable automatic muxing?
henryho_hk
30th May 2007, 15:31
If i might ask: What included Xvid?
Sorry, I left out the xvid directory by mistake. The package is now updated.
henryho_hk
30th May 2007, 15:34
... it muxes it with some small file from TMP. Is there perhaps an option to disable automatic muxing?
It never muxes anything from the TMP. It was picking up a mp3 or ogg in the same directory. And, tidying up your conversion directory would help avoiding this problem. ^_^
AtomicStryker
30th May 2007, 21:31
Alright, using the new, updated package and the Xvid within i get 2 CPUs detected, 2 threads used and actual Dualcore-Encoding yay ;)
EDIT:
A Suggestion: To add Windows x64 Compatibility (means FINDING avisynth.dll in the sysWOW32 folder without launching a special 32bit commandline) simply insert
if not "%AVISDLL%"=="" if not exist "%AVISDLL%" (
set AVISDLL=%SystemRoot%\SysWOW64\avisynth.dll
)
above this part here
if not "%AVISDLL%"=="" if not exist "%AVISDLL%" (
echo AVISynth not found. Please download it from:
echo http://bengal.missouri.edu/~kes25c/
echo and install it
pause
goto :EOF
)
Tested, works
Thus, i also get to drag&drop my .avs files again
Lux Delux
30th May 2007, 23:50
It never muxes anything from the TMP. It was picking up a mp3 or ogg in the same directory. And, tidying up your conversion directory would help avoiding this problem. ^_^
Ah I see, didn't know it does that, thanks for the tip :)
This is a truly excellent alternative to my old vdubmod encoding ways and am looking forward to the next update! ;)
celtic_druid
31st May 2007, 05:20
Looking in SysWOW64 folder directly I think is a bad idea. The whole idea behind the folder is that it appears as system32 to 32bit apps.
AtomicStryker
31st May 2007, 17:13
Adding that piece of code simply makes the batch look into the syswow64 folder IF it didn't find its dll in the system32 one. I don't see an option or reason to have windows use the 32bit console instead of its 64bit one.. there might be a flag or something to run the batch in 32bit though
ADD:
I was able to crank CPU-Usage a bit higher and get about 15% better FPS by using the MT Plugin for Avisynth and the SetMTMode(2,2) command before proceeding the .avs as usual ... MTSource(DirectShowSource("etc") gave me crippled Performance
henryho_hk
10th June 2007, 05:50
I am still working on the new version featuring multi-part encode. Yet, I have come up with a question. 32bit XP is limited to about 3.5GB. What about 32bit apps in 64bit XP/Vista? Does each of them has ~3.5GB or is the whole 32bit sub-system limited to ~3.5GB?
elguaxo
18th June 2007, 14:59
Automatic preset selection through 3% compressibility test
I would like to do a larger comptest, 6% perhaps. What lines should I change?
One is this:
SelectRangeEvery^(466, 14^)
Anything else? Thanks in advance.
fight2win
18th June 2007, 17:03
is this app better than megui?
henryho_hk
19th June 2007, 14:08
I would like to do a larger comptest, 6% perhaps. What lines should I change?
Yeah, change it to "233,14". Keep the 2nd number at 14. I was doing it in earlier versions too. Yet, as advised by Teegedeck, we need only a rough estimate for the preset selection and so 3% comptest should be sufficient.
elguaxo
19th June 2007, 14:48
:thanks:
salman1
23rd June 2007, 01:30
i have this .avs file and i would like to use this awesome and beautiful batch file. can some one please help me. Thanks...
DGDecode_mpeg2source("My source was here",cpu=4,info=3)
ColorMatrix(hints=true)
edeintted = AssumeTFF().SeparateFields().SelectEven().EEDI2(field=-1)
tdeintted = TDeint(edeint=edeintted,order=1)
tfm(order=1,clip2=tdeintted).tdecimate(hybrid=3)
crop( 8, 0, -4, -2)
removeblend() #remove ghost and duplicate frames
removedirt() #remove mess,dirt, and dust
removegrain(mode=17) # Heavy Noise
tweak(sat=0.75)
limitedsharpenfaster(dest_x=640, dest_y=480)
Guest
23rd June 2007, 01:54
@salman1
You have apparently made no attempt at all to use this tool, nor have you specified what kind of help you need. Your threads show a pattern of giving insufficient information to allow people to help you. So, specifically, what kind of help do you need with this? Please show evidence of having done some research on it and tried it out. Otherwise, a less tolerant mod might start thinking rule 1.
salman1
23rd June 2007, 02:18
i just need to know how to set up file size with this? Thanks a lot..
Guest
23rd June 2007, 03:32
It's all there if you just bother to read stuff:
avs2qxvid_25e.bat ... <value>{bppx/kbps/KB/MB/GB} ...
E.g.:
avs2qxvid_25e.bat ... 700MB ...
I figured that out after reading the thread for 2 minutes. Post #9 explains:
"I have put some online help and usage samples in the batch script. You can read it by running the batch script without any parameters."
And post #47 shows the actual help output.
salman1
23rd June 2007, 03:46
Thanks.. i read before posting for help or i don't understand.
henryho_hk
23rd June 2007, 04:17
is this app better than megui?
This batch script is really aiming at batch processing. MeGUI is a GUI application. Hence, I don't know how to compare them. :p
HackAR
27th June 2007, 13:50
First pass is done without problems, but second one wont start:
start "MTK-58 - Pass 2/2" /b /wait /belownormal "D:\Download\avs2qxvid_25h_full_1\avs2qxvid_25h_full_\bin\xvid_encraw_20070203.exe" -zones 0,w,1.0,KO -threads 1 -progress 100 -max_key_interval 250 -packed -vbvsize 3145728 -vbvmax 4854000 -vbvpeak 8000000 -quality 6 -vhqmode 1 -max_bframes 1 -bquant_ratio 162 -bquant_offset 0 -qtype 1 -qmatrix "D:\Download\avs2qxvid_25h_full_1\avs2qxvid_25h_full_\matrix\Didees-SixOfNine-HVS.cqm" -imin 3 -imax 4 -pmin 3 -pmax 5 -bmin 3 -bmax 5 -chigh 15 -clow 5 -bvhq -bitrate 1440 -altpass2 "Y:\tmp\1_DIREKT.pass" -stats "Y:\tmp\1_DIREKT.stats" -type 2 -i "Y:\1_DIREKT.avs" -avi "Y:\1_DIREKT_MTK-58_br_1440.avi"
Got 'An unhandled win32 exception occured in xvid_encraw_20070203.exe [2532] ...'
my avs:
SetMemoryMax (128)
Loadplugin("DGdecode.dll")
v1 = mpeg2source("DIREKT 2.d2v", cpu2="xxxxoo")
v2 = mpeg2source("DIREKT 1.d2v", cpu2="xxxxoo")
v1 = Lanczos4Resize (v1, 720, 400) #16:9
v2 = Lanczos4Resize (v2, 720, 400) #16:9
t1 = Trim (v1,0,110803)
t2 = Trim (v2,110755,110800)
t3 = Trim (v1,110836,115861)
t4 = Trim (v2,115605,115700)
t5 = Trim (v1,115884,0)
v=t1+t2+t3+t4+t5
a= Tone (1.0, 440 , 48000, 2, "Silence", 1.0)
AudioDub(v,a)
Using WinXP 32bit, latest official Avisynth and Xvid 1.1.2. What went wrong?
celtic_druid
28th June 2007, 03:21
You could try using a recent 1.2.x build and see if that helps.
HackAR
28th June 2007, 11:38
:thanks:
It seems to help.
I just wonder why the latest version of XviD 1.2 is dated on 25.02.2006 :confused:
celtic_druid
28th June 2007, 12:27
It isn't. It is over a year newer than that.
i'm missing pcrecpp.dll too, how can i fix that ?
henryho_hk
9th July 2007, 14:17
pcrecpp.dll ? I have not met this error before. At which step is it complaining?
celtic_druid
9th July 2007, 16:33
Part of mkvtoolnix. Make sure that you don't just have mkvmerge, but also its dependencies.
henryho_hk
9th July 2007, 16:57
I am using AVIMux_GUI for MKV muxing. Perhaps Nic is using an old version of my script.
hannah
10th July 2007, 07:27
Ok I now have managed to crash avs2qxvid.bat.
Please find the crash info here:
http://maxupload.com/30DFE9DC
Some more info:
Running WinXp Pro Version 2002 SP2
The batch file works fine in all other presets however if I try to encode MTK mode it crashes always.
This is my .avs
SetMemoryMax(256)
LoadPlugin("C:\Program Files\AviSynth 2.5\plugins\SeeSaw\MaskTools.dll")
LoadPlugin("C:\Program Files\AviSynth 2.5\plugins\SeeSaw\RemoveGrainSSE2.dll")
LoadPlugin("C:\Program Files\AviSynth 2.5\plugins\SeeSaw\MVTools.dll")
LoadPlugin("C:\Program Files\AviSynth 2.5\plugins\SeeSaw\degrainmedian.dll")
LoadPlugin("C:\Program Files\AviSynth 2.5\plugins\SeeSaw\RepairSSE2.dll")
LoadPlugin("C:\Program Files\AviSynth 2.5\plugins\SeeSaw\LeakKernelDeint.dll")
Import("C:\Program Files\AviSynth 2.5\plugins\SeeSaw\SeeSaw.avs")
DirectShowSource("D:\Raw\Tape2\KitChan.07-05-18_22-21.00.avi")
ConvertToYV12(interlaced=true)
LeakKernelDeint(order=0,sharp=true,threshold=10)
a = last
b=a.degrainmedian(mode=1)
SeeSaw(a,b, NRlimit=4, NRlimit2=5, Sstr=1.5, Slimit=9, Spower=9, Szp=16, sootheT=80, bias=40 )
Trim(45200,45700)
____________________________________
My .enc.txt command is
MTK-45
___________________________________
Infos from Dos windows before it crashes:
"Checking Source...."
Streaming frame 0 (of 1, 0.00%)
Clock time: 2125
1
***************************************
BePipe by dimzon
***************************************
Script used:
# BEGIN
import("D:\Raw\Script\KitChan_Seesaw.avs")
# END
==> Priority set to Low.
Scanning for Audio Stream...
Found Audio Stream
Channels=2, BitsPerSample=16, SampleRate=32000Hz
Writing Header...
Writing Data...
0%LAME 3.97 32bits (http://www.mp3dev.org/)
CPU features: MMX (ASM used), SSE (ASM used), SSE2
Using polyphase lowpass filter, transition band: 15613 Hz - 16000 Hz
Encoding <stdin> to D:\Raw\Script\KitChan_Seesaw.mp3
Encoding as 32 kHz average 128 kbps j-stereo MPEG-1 Layer III (8x) qval=3
Done!
D:\Raw\Script\KitChan_Seesaw.mp3
Applying mp3 gain change of -2 to D:\Raw\Script\KitChan_Seesaw.mp3...
'E:\Software\Megui\Henry' is not recognized as an internal or external command,
operable program or batch file.
start "3% Compressibility Test - Single Pass" /b /wait /belownormal "E:\Software
\Megui\Henry Bat file\avs2qxvid_25h_full_\bin\xvid_encraw_20070203.exe" -zones
0,w,1,KO -threads 1 -progress 100 -max_key_interval 250 -nopacked -vbvsize 31457
28 -vbvmax 4854000 -vbvpeak 8000000 -quality 4 -vhqmode 0 -max_bframes 1 -bquant
_ratio 162 -bquant_offset 0 -qtype 1 -qmatrix "E:\Software\Megui\Henry Bat file\
avs2qxvid_25h_full_\matrix\Didees-SixOfNine.cqm" -nochromame -turbo -single -cq
3 -stats "D:\Raw\Script\tmp\KitChan_Seesaw.ct.stats" -type 2 -i "D:\Raw\Script\K
itChan_Seesaw.ct.avs" -avi "D:\Raw\Script\KitChan_Seesaw.ct.avi"
xvid_encraw - raw mpeg4 bitstream encoder written by Christoph Lampert 2002-2003
xvid [info]: outputting statistics to D:\Raw\Script\tmp\KitChan_Seesaw.ct.stats
Trying to retrieve width and height from input header
xvid [info]: Avisynth detected
xvid [info]: Input colorspace is YV12
xvid [info]: Input is 720 x 576, 25.000fps (25/1), starting from frame 0
xvid [info]: Number of frames to encode: 28
xvid [info]: xvidcore build version: xvid-1.1.3
xvid [info]: Bitstream version: 1.1.3
xvid [info]: Detected CPU flags: ASM MMX MMXEXT SSE SSE2 TSC
xvid [info]: Detected cpus = 0, threads requested = 1, threads in use = 1
Tot: enctime(ms) =3375.00, length(bytes) = 1132672
Avg: enctime(ms) = 116.38, fps = 8.59, length(bytes) = 39057, psnr y = 3
8.61, psnr u = 47.32, psnr v = 47.37
I frames: 1 frames, size = 127857/ 127857, quants = 3 / 3.00 / 3
P frames: 14 frames, size = 55890/ 782460, quants = 3 / 3.00 / 3
B frames: 13 frames, size = 17104/ 222355, quants = 4 / 4.00 / 4
Source FPS = 25/1
No. of frames for CT = 20
Size of selected frames = 705849
Target Bitrate = 1555kbps
Compressibility Test = 22
Selected Level = 30
Preset to use = MTK-30
start "MTK-30 - Pass 1/2" /b /wait /belownormal "E:\Software\Megui\Henry Bat fil
e\avs2qxvid_25h_full_\bin\xvid_encraw_20070203.exe" -zones 0,q,3,KO -threads 1 -
progress 100 -max_key_interval 250 -packed -vbvsize 3145728 -vbvmax 4854000 -vbv
peak 8000000 -quality 5 -vhqmode 1 -max_bframes 1 -bquant_ratio 162 -bquant_offs
et 0 -qtype 1 -qmatrix "E:\Software\Megui\Henry Bat file\avs2qxvid_25h_full_\mat
rix\Jawor_1CD_Matrix.xcm" -nochromame -turbo -lumimasking -bitrate 1555 -pass1 "
D:\Raw\Script\tmp\KitChan_Seesaw.pass" -type 2 -i "D:\Raw\Script\KitChan_Seesaw.
avs"
xvid_encraw - raw mpeg4 bitstream encoder written by Christoph Lampert 2002-2003
Trying to retrieve width and height from input header
xvid [info]: Avisynth detected
xvid [info]: Input colorspace is YV12
xvid [info]: Input is 720 x 576, 25.000fps (25/1), starting from frame 0
xvid [info]: Number of frames to encode: 501, Bitrate = 1555kbps
xvid [info]: xvidcore build version: xvid-1.1.3
xvid [info]: Bitstream version: 1.1.3
xvid [info]: Detected CPU flags: ASM MMX MMXEXT SSE SSE2 TSC
xvid [info]: Detected cpus = 0, threads requested = 1, threads in use = 1
501 frames(100%) encoded, 10.87 fps, Average Bitrate = 3460kbps
Tot: enctime(ms) =46093.00, length(bytes) = 8668105
Avg: enctime(ms) = 91.82, fps = 10.89, length(bytes) = 17267
I frames: 2 frames, size = 69145/ 138290, quants = 3 / 3.00 / 3
P frames: 250 frames, size = 27376/ 6844019, quants = 3 / 3.00 / 3
B frames: 249 frames, size = 6770/ 1685796, quants = 4 / 4.00 / 4
start "MTK-30 - Pass 2/2" /b /wait /belownormal "E:\Software\Megui\Henry Bat fil
e\avs2qxvid_25h_full_\bin\xvid_encraw_20070203.exe" -zones 0,w,1.0,KO -threads 1
-progress 100 -max_key_interval 250 -packed -vbvsize 3145728 -vbvmax 4854000 -v
bvpeak 8000000 -quality 6 -vhqmode 1 -max_bframes 1 -bquant_ratio 162 -bquant_of
fset 0 -qtype 1 -qmatrix "E:\Software\Megui\Henry Bat file\avs2qxvid_25h_full_\m
atrix\Jawor_1CD_Matrix.xcm" -imin 3 -imax 5 -pmin 3 -pmax 5 -bmin 3 -bmax 5 -chi
gh 30 -clow 15 -bvhq -lumimasking -bitrate 1555 -altpass2 "D:\Raw\Script\tmp\Kit
Chan_Seesaw.pass" -stats "D:\Raw\Script\tmp\KitChan_Seesaw.stats" -type 2 -i "D:
\Raw\Script\KitChan_Seesaw.avs" -avi "D:\Raw\Script\KitChan_Seesaw_MTK-30_br_155
5.avi"
xvid_encraw - raw mpeg4 bitstream encoder written by Christoph Lampert 2002-2003
xvid [info]: outputting statistics to D:\Raw\Script\tmp\KitChan_Seesaw.stats
Trying to retrieve width and height from input header
xvid [info]: Avisynth detected
xvid [info]: Input colorspace is YV12
xvid [info]: Input is 720 x 576, 25.000fps (25/1), starting from frame 0
xvid [info]: Number of frames to encode: 501, Bitrate = 1555kbps
xvid [info]: xvidcore build version: xvid-1.1.3
xvid [info]: Bitstream version: 1.1.3
xvid [info]: Detected CPU flags: ASM MMX MMXEXT SSE SSE2 TSC
xvid [info]: Detected cpus = 0, threads requested = 1, threads in use = 1
________________________________________
It crashes after this. My source is miniDV.
I have gone to squid's webpage and downloaded the lates encraw
http://members.optusnet.com.au/squid_80/
Same result.
Thanks for all the help.
hannah
15th July 2007, 23:33
My source is DV. Captured in Panasonic NV GS180. It’s live badminton games. I capture these videos in my computer through WinDV. After encoding and muxing, the video and audio is out of sync. Please see below the different ways I am doing it.
I have used Megui and avs2qxvid.bat. First of all thanks to the developers who had given us these wonderful tools. My comp test comes back with 45% compression. So the setting I am using is TGHQ – 45%. When I use Megui or avs2qxid.bat, ( am encoding sound in 128kbps CBR MP3) in my computer the encoded video plays fine and video, audio is in sync however I also like to play these videos in my DVD player. So I burn these videos on DVD and play in my DVD player. After first few secs, the video and audio freezes. It has to be to do with the way audio streams are muxed as I have played the same videos without any sound stream and it plays fine in my DVD players (and yes, QPEL was ticked while encoding and it does not cause any problem while playing back in my DVD player).
So to fix this audio freezing problem I started to use VDubMod.
This is the flow chart:
1) Encode the MP3 audio from my .avs script with setting MTK-30 in avs2qxvid.bat (which is VBR)
2) Or, encode the MP3 audio from my .avs script in Megui in 128kbps / 64kbps CBR
3) Encode the video with avs2qxvid.bat, setting TGHQ-45 2000kbps
4) Use VDubMod to mux the video with audio (tried both CBR and VBR)
I have used following settings in VDubMod: priss rocks, interleaving and video -> Frame rate ->changes so video audio duration match. I have used CBR or VBR audio to mux but it always gets out of sync. The reason I am using VdubMod to mux, because when I mux it through VDubMod, I can play these video in my DVD player however audio gets out of sync.
I cannot do the whole job in avs2qxvid.bat with setting: MTK –CT or MTK -45 as I have not been able to use these functions. See my posting just above.
Questions:
1. Why the video play back gets stuck when I mux the audio with Megui or avs2qxvid.bat. Please note the video stream with out any audio plays perfect in my DVD player.
2. How can I resolve this audio out of sync issue? Audio plays before the video and it gets more and more out of sync towards the end of the video.
Many thanks for your time.
Lux Delux
16th July 2007, 22:26
Howdy, I've been experimenting with some matrices at min quant 3 and everything seemed to work fine until I tried v3uhr and foxhome.
When 2 pass is about to start I get this
Trying to retrieve width and height from input header
xvid [error]: Bad Framerate 0.000000 (25/1)
And I get that with both PAL and NTSC sources.
:eek: It seems it has something to do with my computer as my pal tried it on his comp and second pass ran normally.
Please, if anyone has any idea what could be the cause of this I'd be very grateful :)
smok3
16th July 2007, 22:48
The batch looks for %SystemRoot%\System32\avisynth.dll
what iam doing in my latest batch-es is:
reg query HKEY_CLASSES_ROOT\avsfile\ >nul 2>&1
if %ERRORLEVEL%==1 (
echo warning, avisynth registry entrie was not found
pause
)
henryho_hk
19th July 2007, 04:52
Ok I now have managed to crash avs2qxvid.bat.
Could you please host somewhere the a small portion of the DV clip that will also crash xvid_encraw? This will help the diagnostics.
henryho_hk
19th July 2007, 04:54
reg query HKEY_CLASSES_ROOT\avsfile\ >nul 2>&1
Thanks. I will incorporate it in the long (over)due new version.
Revgen
24th July 2007, 18:38
@henryho_hk
The Xvid Encraw exe you included in 25h doesn't recognize my 2 cores. I had to use the exe provided in 25F instead.
vBulletin® v3.8.11, Copyright ©2000-2026, vBulletin Solutions Inc.