View Full Version : AutoMKV 0.93a - (DVD/TS/AVI/AVS to X264/XviD/WVC1 into MKV/MP4/WMV) update 30/12/2007
buzzqw
16th December 2006, 16:51
@Barleyman and @weaver4
Fixed in 0.62e :)
BHH
vOjToL
18th December 2006, 11:08
AutoMKV 0.62,c,d
Queued Job always start with audio encoder NeroAAC(even "1'Audio Codec" is set "Lame")and ignore many other settings...
The input file is .avi. If encoding starting by press "Start", not "Add to Queue" - it's ok.
buzzqw
18th December 2006, 13:32
fixed in 0.62e
thanks for this bug reporting!
BHH
Barleyman
18th December 2006, 18:03
no need manual cropping.
just set with to 720 and on advanced setting better to check Force ITU Resing and Anamorphic Encoding
Nice in theory, doesn't work in practice. Source is 2.35 PAL DVD, which obviously has black borders.
I have "USE CRF for autoresize [3]", "force ITU resize", "anamorphic encoding" selected and "resize filters [NONE]". I'm using CQ XVID MKV.
The black borders are kept in the encoded file, it's 576 pixels high.
2nd problem, DTS audio is fubarred. In the TEMP directory I have 475MB "fixed1.ac3"-file, and 244kb "audio.ac3"-file. Apparently MKVmerge-command is using the audio.ac3-file..
Does this only happen because my temp-directory was not empty? Rename fails?
23:21:12 0.62d - - - - - - - - - - - - - START JOBS - - - - - - - - - - - - - -
23:21:12 Selected Input file: E:\Movies-E\POTC\VTS_01_0.IFO
23:21:12 Selected Output dir: E:\Movies-E\POTC\temp\
23:21:12 Selected Container type: MKV
23:21:12 Selected Encoder: XviD
23:21:12 Selected Size: 2200
23:21:12 Selected Slice: 1
23:21:12 Selected Profile: XviD_CQ.xml
23:21:12 Selected Width: 720
23:21:12 Selected Resizer: NONE
23:21:12 Selected Filters: NONE
23:21:12 Selected Deinterlacer: AUTO
23:21:12 NeroAACEnc.exe not present
23:21:12 Enabled CRF/CQ autoresize with value 3
23:21:12 Track Language 1: English (AC3 6ch, 0xBD 0x80) [0]
23:21:12 Audio Codec 1: Copy Original
23:21:12 Audio Quality 1: 5
23:21:12 Activate Force ITU Resizing
23:21:12 Activate Anamorphic Encoding
23:21:12 Selected Unlimited media size
23:21:12 Starting Indexing
23:21:12 Dgindex CMD: C:\Program Files\AutoMKV\exe\dgindex\dgindex.exe -FO=0 -OM=1 -TN=1 -YR=2 -AIF=[E:\Movies-E\POTC\VTS_01_1.vob] -OF=[E:\Movies-E\POTC\temp\movie] -exit -minimize
23:23:20 Finished indexing
23:23:21 Starting fixing audio delay on track number 1
23:23:21 DelayCut CMD: C:\Program Files\AutoMKV\exe\dgindex\Delaycut.exe -auto -out "E:\Movies-E\POTC\temp\fixed1.ac3" "E:\Movies-E\POTC\temp\movie T01 3_2ch 448Kbps DELAY 0ms.ac3"
23:23:37 Original 1' Audio Size: 485522688 bytes
23:23:37 Finished fixing audio delay
23:23:37 Renamed file fixed1.ac3 to audio.ac3
23:23:37 Encoded 1' Audio Track: 249128 bytes
23:23:42 Number of Frames: 216795
23:23:42 Framerate: 25.000000
23:23:42 Movie lenght in Seconds: 8672
23:23:42 Movie Width: 720
23:23:42 Movie Height: 576
23:30:52 Processing completed. Type is determined to be interlaced.
23:30:52 BFF: 830
23:30:52 TFF: 7
23:30:52 Order: 0
23:30:52 CQ encoding XviD: C:\Program Files\AutoMKV\exe\encoder\xvid_encraw.exe -cq 3 -progress -threads 1 -max_bframes 2 -imax 31 -quality 6 -vhqmode 1 -qtype 0 -pmax 31 -bmax 31 -bquant_ratio 162 -bquant_offset 0 -nopacked -nochromame -noclosed_gop -bvhq -qmatrix "C:\Program Files\AutoMKV\profiles\XviD-profiles\matrix\Sharktooth's EQM v3LR.cqm" -i "E:\Movies-E\POTC\temp\movie.avs" -type 2 -avi "E:\Movies-E\POTC\temp\movie.avi"
11:43:49 Accepted values are between 2191523840 and 2329935872 bytes (movie+audio)
11:43:49 Got a file of size: -2142293504 bytes + audio size 249128 bytes (-2142044416)
11:43:49 Only Movie Size: -2142293504 bytes
11:43:49 C:\Program Files\AutoMKV\exe\matroska\mkvmerge.exe -o "E:\Movies-E\POTC\temp\potc.mkv" --aspect-ratio 1:2.438095 --chapters "C:\Program Files\AutoMKV\exe\chapters.txt" "E:\Movies-E\POTC\temp\movie.avi" --language 0:eng "E:\Movies-E\POTC\temp\audio.ac3"
11:46:03 Final Muxed size: -2140865844 bytes
11:46:03 Encoding finished: 12:24:51 elapsed time
11:46:03 -----------------------------------------------------------------------
11:46:03 Script AutoCrop.log
11:46:03
11:46:03 Crop(10,78,704,420)
11:46:03 -----------------------------------------------------------------------
11:46:03 Script Resmovie.avs
11:46:03
11:46:03 -----------------------------------------------------------------------
11:46:03 Script movie.avs
11:46:03
11:46:03 LoadPlugin("C:\Program Files\AutoMKV\exe\filter\autocrop.dll")
11:46:03 LoadPlugin("C:\Program Files\AutoMKV\exe\filter\blockbuster.dll")
11:46:03 LoadPlugin("C:\Program Files\AutoMKV\exe\filter\cnr2.dll")
11:46:03 LoadPlugin("C:\Program Files\AutoMKV\exe\filter\ColorMatrix.dll")
11:46:03 LoadPlugin("C:\Program Files\AutoMKV\exe\filter\Convolution3D.dll")
11:46:03 LoadPlugin("C:\Program Files\AutoMKV\exe\filter\corrector.dll")
11:46:03 LoadPlugin("C:\Program Files\AutoMKV\exe\filter\DctFilter.dll")
11:46:03 LoadPlugin("C:\Program Files\AutoMKV\exe\filter\decomb.dll")
11:46:03 LoadPlugin("C:\Program Files\AutoMKV\exe\filter\Deen.dll")
11:46:03 LoadPlugin("C:\Program Files\AutoMKV\exe\filter\degrainmedian.dll")
11:46:03 LoadPlugin("C:\Program Files\AutoMKV\exe\filter\DGDecode.dll")
11:46:03 LoadPlugin("C:\Program Files\AutoMKV\exe\filter\EEDI2.dll")
11:46:03 LoadPlugin("C:\Program Files\AutoMKV\exe\filter\fft3dfilter.dll")
11:46:03 LoadPlugin("C:\Program Files\AutoMKV\exe\filter\FluxSmooth.dll")
11:46:03 LoadPlugin("C:\Program Files\AutoMKV\exe\filter\frfun7.dll")
11:46:03 LoadPlugin("C:\Program Files\AutoMKV\exe\filter\hqdn3d.dll")
11:46:03 LoadPlugin("C:\Program Files\AutoMKV\exe\filter\LeakKernelDeint.dll")
11:46:03 LoadPlugin("C:\Program Files\AutoMKV\exe\filter\MaskTools.dll")
11:46:03 LoadPlugin("C:\Program Files\AutoMKV\exe\filter\medianblur.dll")
11:46:03 LoadPlugin("C:\Program Files\AutoMKV\exe\filter\MipSmooth.dll")
11:46:03 LoadPlugin("C:\Program Files\AutoMKV\exe\filter\mvtools.dll")
11:46:03 LoadPlugin("C:\Program Files\AutoMKV\exe\filter\NicAudio.dll")
11:46:03 LoadPlugin("C:\Program Files\AutoMKV\exe\filter\RemoveGrain.dll")
11:46:03 LoadPlugin("C:\Program Files\AutoMKV\exe\filter\SangNom.dll")
11:46:03 LoadPlugin("C:\Program Files\AutoMKV\exe\filter\SimpleResize.dll")
11:46:03 LoadPlugin("C:\Program Files\AutoMKV\exe\filter\TBilateral.dll")
11:46:03 LoadPlugin("C:\Program Files\AutoMKV\exe\filter\TDeint.dll")
11:46:03 LoadPlugin("C:\Program Files\AutoMKV\exe\filter\TIVTC.dll")
11:46:03 LoadPlugin("C:\Program Files\AutoMKV\exe\filter\TomsMoComp.dll")
11:46:03 LoadPlugin("C:\Program Files\AutoMKV\exe\filter\TTempSmooth.dll")
11:46:03 LoadPlugin("C:\Program Files\AutoMKV\exe\filter\UnDot.dll")
11:46:03 LoadPlugin("C:\Program Files\AutoMKV\exe\filter\UnFilter.dll")
11:46:03 LoadPlugin("C:\Program Files\AutoMKV\exe\filter\VSFilter.dll")
11:46:03 #loadpluginstart
11:46:03
11:46:03 #test1
11:46:03
11:46:03 Import("C:\Program Files\AutoMKV\exe\filter\mvbob.avsi")
11:46:03 Import("C:\Program Files\AutoMKV\exe\filter\QMF.avsi")
11:46:03 #importstart
11:46:03
11:46:03 #test2
11:46:03
11:46:03 movie = mpeg2source("E:\Movies-E\POTC\temp\movie.d2v")
11:46:03 function getOrder(clip c) {
11:46:03 order = GetParity(c) ? 1 : 0
11:46:03 Return order }
11:46:03 #filter1start
11:46:03
11:46:03 #test3
11:46:03
11:46:03 function Filter_Motion_Nil(clip c) {
11:46:03 c = RemoveGrain(c,mode=25)
11:46:03 return c }
11:46:03 function Filter_Motion_Min(clip c) {
11:46:03 c = RemoveGrain(c,mode=2)
11:46:03 return c }
11:46:03 function Filter_Motion_Mid(clip c) {
11:46:03 c = RemoveGrain(c,mode=3)
11:46:03 return c }
11:46:03 function Filter_Motion_High(clip c) {
11:46:03 c = RemoveGrain(c,mode=17)
11:46:03 return c }
11:46:03 function Filter_Motion_Very_High(clip c) {
11:46:03 c = RemoveGrain(c,mode=20)
11:46:03 return c }
11:46:03 #cropstart
11:46:03
11:46:03 cropclip = autocrop(movie,mode=0,wmultof=4,hmultof=4,samples=40,aspect=0,threshold=34,samplestartframe=0)
11:46:03 fixed_aspect = 1
11:46:03 c_width = width(cropclip)
11:46:03 c_height = Round(height(cropclip) / fixed_aspect)
11:46:03 input_par = float(float(c_width)/float(c_height))
11:46:03 input_par = input_par > 1.4 ? input_par : (4.0/3.0)
11:46:03 out_width = 720
11:46:03 out_height = Round(float(out_width) / input_par)
11:46:03 hmod = out_height - (floor(out_height / 16 ) * 16)
11:46:03 out_height = (hmod > 4) ? (out_height + (16 - hmod)) : (out_height - hmod)
11:46:03 new_aspect = (float(out_width) / float(out_height)) / fixed_aspect
11:46:03 autocrop(movie,mode=0,wmultof=4,hmultof=4,samples=40,aspect=new_aspect,threshold=34,samplestartframe=0)
11:46:03
11:46:03 #resizestart
11:46:03
11:46:03 #test4
11:46:03
11:46:03 last=movie
11:46:03 LeakKernelDeint(order=0,sharp=true)
11:46:03 #filter2start
11:46:03
11:46:03 #test5
11:46:03
11:46:03 QMF()
11:46:03 ColorMatrix("Rec.709->Rec.601",hints=false)
11:46:03 -----------------------------------------------------------------------
11:46:03 Script mkvmaudio.avs
11:46:03
11:46:03 LoadPlugin("C:\Program Files\AutoMKV\exe\filter\NicAudio.dll")
11:46:03 NicAC3Source("E:\Movies-E\POTC\temp\fixed1.ac3")
11:46:03 EnsureVBRMP3Sync()
11:46:03 ConvertAudioTo16bit()
11:46:03 #Applyed Original downmixing routines
11:46:03 Normalize()
11:46:03 -----------------------------------------------------------------------
11:46:03 Script mkvmaudio.bat
11:46:03
11:46:03 -----------------------------------------------------------------------
11:46:03 Script mkvmaudio2.avs
11:46:03
11:46:03 -----------------------------------------------------------------------
11:46:03 Script mkvmaudio2.bat
11:46:03
11:46:03
11:46:03 - - - - - - - - - - - - FINISHED JOBS - - - - - - - - - - - - - - - - -
Barleyman
18th December 2006, 18:14
I'll answer myself:
a) Yeah, cropping will not happen if resize filter is "NONE". After I enable laczos4resize, black borders are cropped.
b) Looks like the problem is indeed with the temp file not being empty to start with (unchecked delete temp files for testing)
vOjToL
18th December 2006, 18:45
cropping will not happen if resize filter is "NONE". After I enable laczos4resize, black borders are cropped.
If input file is avs script, cropping, resize and filtering not happen too.
buzzqw
18th December 2006, 19:10
If input file is avs script, cropping, resize and filtering not happen too.
this is wanted. if one can make an avs , can even crop inside.
2nd problem, DTS audio is fubarred. In the TEMP directory I have 475MB "fixed1.ac3"-file, and 244kb "audio.ac3"-file. Apparently MKVmerge-command is using the audio.ac3-file..
from the log file seems you have selected the ac3 track...
BHH
vOjToL
18th December 2006, 20:03
this is wanted. if one can make an avs , can even crop inside.
Ok, I agree. In this case, what is the comptest (resmovie.avs) doing for? In log file the new resolution is set after test, but in movie.avs is set nothing (sorry about my english, I am learnig...).
Barleyman
18th December 2006, 20:20
from the log file seems you have selected the ac3 track...
DTS track is identified as AC3 as well..
The problem is that if you un-tick "del temp file" and then compress files several times in the same directory with AC3 audio, the step where fixed.ac3 should be renamed to audio.ac3 fails.
buzzqw
18th December 2006, 20:46
Ok, I agree. In this case, what is the comptest (resmovie.avs) doing for?
this is a good question... in next update on avs input i will put resizer to NONE and WIDTH to fullwidth
(sorry about my english, I am learning...).
your english is enough, no prob !
DTS track is identified as AC3 as well..
ifo/dvd or mpeg input file ?
BHH
Barleyman
18th December 2006, 21:36
ifo/dvd or mpeg input file ?
BHH
In the mpeg cut file I made for testing..
Maybe check if the target file exists before rename operations? Or, heck, just *delete* the target by default! (In the temp directory). In any case you'll only ever see that prob if you want to keep temp files, so :rolleyes:
BTW, dct filter didn't do anything for file compressibility on q=3, hqdn3d appeared to slash bitrate by about 10-20%.
Are you specifying the XVID PAR switch for anamorphic avi/xvid encode? Looks like that would allow anamorphic files without using the MKV container? Can't figure out the logic for the pixel aspect ratio, thought.
-par integer[:integer] : Set Pixel Aspect Ratio.
1 = 1:1
2 = 12:11 (4:3 PAL)
3 = 10:11 (4:3 NTSC)
4 = 16:11 (16:9 PAL)
5 = 40:33 (16:9 NTSC)
other = custom (width:height)
vOjToL
18th December 2006, 21:52
Ok, one more question then. Why in "Movie Name" I canot type capital letters?
Barleyman
18th December 2006, 22:25
So all right, having fooled around with the ac3 audio, here's what happens with DTS audio. Nothing. It's not even in the mkvmerge line and like a fool I told automkv it's OK to delete temp files.. Oh well, good thing the computer doesn't get bored processing the same movie several times..
20:08:02 0.62d - - - - - - - - - - - - - START JOBS - - - - - - - - - - - - - -
20:08:03 Selected Input file: E:\Movies-E\POTC\VTS_01_0.IFO
20:08:03 Selected Output dir: E:\Movies-E\POTC\temp\
20:08:03 Selected Container type: MKV
20:08:03 Selected Encoder: XviD
20:08:03 Selected Size: 1 DVD-R
20:08:03 Selected Slice: 1
20:08:03 Selected Profile: XviD_CQ.xml
20:08:03 Selected Width: 720
20:08:03 Selected Resizer: LanczosResize
20:08:03 Selected Filters: Hqdn3d(4,3,6,4.5)
20:08:03 Selected Deinterlacer: AUTO
20:08:03 NeroAACEnc.exe not present
20:08:03 Track Language 1: English (DTS 6ch, 0xBD 0x89) [0]
20:08:03 Audio Codec 1: Copy Original
20:08:03 Audio Quality 1: 5
20:08:03 Activate Force ITU Resizing
20:08:03 Activate Anamorphic Encoding
20:08:03 Selected Unlimited media size
20:08:03 Starting Indexing
20:08:03 Dgindex CMD: C:\Program Files\AutoMKV\exe\dgindex\dgindex.exe -FO=0 -OM=1 -TN=2 -YR=2 -AIF=[E:\Movies-E\POTC\VTS_01_1.vob] -OF=[E:\Movies-E\POTC\temp\movie] -exit -minimize
20:10:25 Finished indexing
20:10:25 Starting fixing audio delay on track number 2
20:10:25 DelayCut CMD: C:\Program Files\AutoMKV\exe\dgindex\Delaycut.exe -auto -out "E:\Movies-E\POTC\temp\fixed1.dts" "E:\Movies-E\POTC\temp\movie T02 DELAY 0ms.dts"
20:10:59 Original 1' Audio Size: 817693902 bytes
20:10:59 Finished fixing audio delay
20:10:59 Renamed file fixed1.dts to audio.dts
20:10:59 Encoded 1' Audio Track: 817693902 bytes
20:11:04 Number of Frames: 216795
20:11:04 Framerate: 25.000000
20:11:04 Movie lenght in Seconds: 8672
20:11:04 Movie Width: 720
20:11:04 Movie Height: 576
20:17:52 Processing completed. Type is determined to be interlaced.
20:17:52 BFF: 830
20:17:52 TFF: 7
20:17:52 Order: 0
20:17:53 CQ encoding XviD: C:\Program Files\AutoMKV\exe\encoder\xvid_encraw.exe -cq 3 -progress -threads 1 -max_bframes 2 -imax 31 -quality 6 -vhqmode 1 -qtype 0 -pmax 31 -bmax 31 -bquant_ratio 162 -bquant_offset 0 -nopacked -nochromame -noclosed_gop -bvhq -qmatrix "C:\Program Files\AutoMKV\profiles\XviD-profiles\matrix\Sharktooth's EQM v3LR.cqm" -i "E:\Movies-E\POTC\temp\movie.avs" -type 2 -avi "E:\Movies-E\POTC\temp\movie.avi"
23:15:48 Accepted values are between 4461743104 and 4743537664 bytes (movie+audio)
23:15:48 Got a file of size: 2101630464 bytes + audio size 817693902 bytes (2919324416)
23:15:48 Only Movie Size: 2101630464 bytes
23:15:48 C:\Program Files\AutoMKV\exe\matroska\mkvmerge.exe -o "E:\Movies-E\POTC\temp\potc.mkv" --aspect-ratio 1:2.438095 --chapters "C:\Program Files\AutoMKV\exe\chapters.txt" "E:\Movies-E\POTC\temp\movie.avi"
23:18:01 Final Muxed size: 2099380657 bytes
23:18:01 Encoding finished: 03:09:59 elapsed time
23:18:01 -----------------------------------------------------------------------
23:18:01 Script AutoCrop.log
23:18:01
23:18:01 Crop(10,78,704,420)
23:18:01 -----------------------------------------------------------------------
23:18:01 Script Resmovie.avs
23:18:01
23:18:01 -----------------------------------------------------------------------
23:18:01 Script movie.avs
23:18:01
23:18:01 LoadPlugin("C:\Program Files\AutoMKV\exe\filter\autocrop.dll")
23:18:01 LoadPlugin("C:\Program Files\AutoMKV\exe\filter\blockbuster.dll")
23:18:01 LoadPlugin("C:\Program Files\AutoMKV\exe\filter\cnr2.dll")
23:18:01 LoadPlugin("C:\Program Files\AutoMKV\exe\filter\ColorMatrix.dll")
23:18:01 LoadPlugin("C:\Program Files\AutoMKV\exe\filter\Convolution3D.dll")
23:18:01 LoadPlugin("C:\Program Files\AutoMKV\exe\filter\corrector.dll")
23:18:01 LoadPlugin("C:\Program Files\AutoMKV\exe\filter\DctFilter.dll")
23:18:01 LoadPlugin("C:\Program Files\AutoMKV\exe\filter\decomb.dll")
23:18:01 LoadPlugin("C:\Program Files\AutoMKV\exe\filter\Deen.dll")
23:18:01 LoadPlugin("C:\Program Files\AutoMKV\exe\filter\degrainmedian.dll")
23:18:01 LoadPlugin("C:\Program Files\AutoMKV\exe\filter\DGDecode.dll")
23:18:01 LoadPlugin("C:\Program Files\AutoMKV\exe\filter\EEDI2.dll")
23:18:01 LoadPlugin("C:\Program Files\AutoMKV\exe\filter\fft3dfilter.dll")
23:18:01 LoadPlugin("C:\Program Files\AutoMKV\exe\filter\FluxSmooth.dll")
23:18:01 LoadPlugin("C:\Program Files\AutoMKV\exe\filter\frfun7.dll")
23:18:01 LoadPlugin("C:\Program Files\AutoMKV\exe\filter\hqdn3d.dll")
23:18:01 LoadPlugin("C:\Program Files\AutoMKV\exe\filter\LeakKernelDeint.dll")
23:18:01 LoadPlugin("C:\Program Files\AutoMKV\exe\filter\MaskTools.dll")
23:18:01 LoadPlugin("C:\Program Files\AutoMKV\exe\filter\medianblur.dll")
23:18:01 LoadPlugin("C:\Program Files\AutoMKV\exe\filter\MipSmooth.dll")
23:18:01 LoadPlugin("C:\Program Files\AutoMKV\exe\filter\mvtools.dll")
23:18:01 LoadPlugin("C:\Program Files\AutoMKV\exe\filter\NicAudio.dll")
23:18:01 LoadPlugin("C:\Program Files\AutoMKV\exe\filter\RemoveGrain.dll")
23:18:01 LoadPlugin("C:\Program Files\AutoMKV\exe\filter\SangNom.dll")
23:18:01 LoadPlugin("C:\Program Files\AutoMKV\exe\filter\SimpleResize.dll")
23:18:01 LoadPlugin("C:\Program Files\AutoMKV\exe\filter\TBilateral.dll")
23:18:01 LoadPlugin("C:\Program Files\AutoMKV\exe\filter\TDeint.dll")
23:18:01 LoadPlugin("C:\Program Files\AutoMKV\exe\filter\TIVTC.dll")
23:18:01 LoadPlugin("C:\Program Files\AutoMKV\exe\filter\TomsMoComp.dll")
23:18:01 LoadPlugin("C:\Program Files\AutoMKV\exe\filter\TTempSmooth.dll")
23:18:01 LoadPlugin("C:\Program Files\AutoMKV\exe\filter\UnDot.dll")
23:18:01 LoadPlugin("C:\Program Files\AutoMKV\exe\filter\UnFilter.dll")
23:18:01 LoadPlugin("C:\Program Files\AutoMKV\exe\filter\VSFilter.dll")
23:18:01 #loadpluginstart
23:18:01
23:18:01 #test1
23:18:01
23:18:01 Import("C:\Program Files\AutoMKV\exe\filter\mvbob.avsi")
23:18:01 Import("C:\Program Files\AutoMKV\exe\filter\QMF.avsi")
23:18:01 #importstart
23:18:01
23:18:01 #test2
23:18:01
23:18:01 movie = mpeg2source("E:\Movies-E\POTC\temp\movie.d2v")
23:18:01 function getOrder(clip c) {
23:18:01 order = GetParity(c) ? 1 : 0
23:18:01 Return order }
23:18:01 #filter1start
23:18:01
23:18:01 #test3
23:18:01
23:18:01 #cropstart
23:18:01
23:18:01 cropclip = autocrop(movie,mode=0,wmultof=4,hmultof=4,samples=40,aspect=0,threshold=34,samplestartframe=0)
23:18:01 fixed_aspect = 1
23:18:01 c_width = width(cropclip)
23:18:01 c_height = Round(height(cropclip) / fixed_aspect)
23:18:01 input_par = float(float(c_width)/float(c_height))
23:18:01 input_par = input_par > 1.4 ? input_par : (4.0/3.0)
23:18:01 out_width = 720
23:18:01 out_height = Round(float(out_width) / input_par)
23:18:01 hmod = out_height - (floor(out_height / 16 ) * 16)
23:18:01 out_height = (hmod > 4) ? (out_height + (16 - hmod)) : (out_height - hmod)
23:18:01 new_aspect = (float(out_width) / float(out_height)) / fixed_aspect
23:18:01 autocrop(movie,mode=0,wmultof=4,hmultof=4,samples=40,aspect=new_aspect,threshold=34,samplestartframe=0)
23:18:01
23:18:01 LeakKernelDeint(order=0,sharp=true)
23:18:01 #resizestart
23:18:01
23:18:01 #test4
23:18:01
23:18:01 LanczosResize(out_width,out_height)
23:18:01 #filter2start
23:18:01
23:18:01 #test5
23:18:01
23:18:01 Hqdn3d(4,3,6,4.5)
23:18:01 ColorMatrix("Rec.709->Rec.601",hints=false)
23:18:01 -----------------------------------------------------------------------
23:18:01 Script mkvmaudio.avs
23:18:01
23:18:01 LoadPlugin("C:\Program Files\AutoMKV\exe\filter\NicAudio.dll")
23:18:01 NicDTSSource("E:\Movies-E\POTC\temp\fixed1.dts")
23:18:01 EnsureVBRMP3Sync()
23:18:01 ConvertAudioTo16bit()
23:18:01 #Applyed Original downmixing routines
23:18:01 Normalize()
23:18:01 -----------------------------------------------------------------------
23:18:01 Script mkvmaudio.bat
23:18:01
23:18:01 -----------------------------------------------------------------------
23:18:01 Script mkvmaudio2.avs
23:18:01
23:18:01 -----------------------------------------------------------------------
23:18:01 Script mkvmaudio2.bat
23:18:01
23:18:01
23:18:01 - - - - - - - - - - - - FINISHED JOBS - - - - - - - - - - - - - - - - -
Barleyman
18th December 2006, 22:33
I checked the -par parameter with an avi file and it works just fine. At least with the five presets and xvid decoder filter.
Media player classic and actual windows media player both displayed it with correct AR. Dunno if any SAP is going to honor that, thought.
Nico.Laus.2001
19th December 2006, 00:43
just demux your ts file to m2v (video) and mpa/ac3 (audio) elementary streams
Open AutoMKV, as input choose the m2v file, automkv will ask to browse for till 2 audio files. Make your choice or click cancel at seconda audio track.
cool, thanks - unfortunately when adding files in that way to the queue and starting to process it, the program asks again for the audio files
could it be, that when "Shutdown PC when finished" the PC does actually not shut down but only log off (or restart?) - at least when enabling this I find myself in the login screen
some further improvements I can think of:
selecting 2 audio tracks that way, you still have to choose the second - this could be enabled by default when chosen
mp4box does support setting names for audio tracks - could you maybe provide input fields for that beneath the audio chooser?
x264 is supported in avi as well (?) - would be nice to have this opportunity, too (especially because mp4 editing tools are quite rare)
as far as I know, AC3 can not be part of an mp4 compliant container - an error message before the actual muxing process would be nice, if such file is to be integrated (saves computing time - especially if "Del temp file" is on you'd have to do it all again :( )
same for lame not supporting more than 2 audio channels
I know it might be difficult to find out about program features dynamically since that would be the best way to implement the latter 2 improvements, but maybe there is a way - otherwise it' just a minor improvement that would be nice but is not that important if you know the tricks
AutoMKV is a great program anyway
fogbav
19th December 2006, 11:19
Little bit offtopic :
One Question to the Xbox Freaks out there ...
I converted TS files to XVID_Normal Profile ... Audio : 3 Tracks with Nero AAC ... AC3/Stereo/Stereo ... everything goes with mp4Box to an MP4 Container.
My Problem now is that when the Video starts everything is fine, but after ca. 30 seconds the Video gets "Croppy" until its look like a slideshow.
So i thought its the CPU Power of the Xbox ... BUT :
When i set the Cache on XBMC to 4096 the video goes to 1 Minute without error and then starts to get croppy ... so it looks like a Network Caching problem i think ...
Networking no Problem - 100 MBIt - no error on other Xvid AVIs from Internet ...
XBMC - Newest version ... 17.12.
Does anyone here has the same Problems ?
Is there the posibility that XBMC has a problem with mp4 Containers ... ?
Barleyman
19th December 2006, 14:58
I converted TS files to XVID_Normal Profile ... Audio : 3 Tracks with Nero AAC ... AC3/Stereo/Stereo ... everything goes with mp4Box to an MP4 Container.
AC3? That's HD? Xbox simply cannot cope with 1920x1080p material.
1280x720p might and might not work. I've seen some xvid encodes with about 900xSomething resolution that work OK.
Another issue might be that the AAC decoder is probably quite cpu intensive, especially if it's been encrypted as 6-AAC channels instead of straight AC3.
fogbav
19th December 2006, 17:05
Thanks Barleyman for your tips ....
I found the Bug - and a temp. fix ...
I analysed that Cache was going down to 0 % ... only recovering when i was presing pause and then play ... raising to 8 MB didn't work ... so :
I DEACTIVATED the cache function .... evrything works normal now ... perfectly... strange bug ....
Thanx
FoGBaV
fogbav
19th December 2006, 20:16
OK ... this is the answer i get in XBMC Forum .... HElp !!! 8)
:
"sounds like you have muxed your stuff in a mp4 stream format, not the proper one for local playback (there's a header flag iirc)."
I convert with automkv into AVI container (same with mp4) and then mux with mp4box -add ****.avi -add ***.acc ....
i think this is the same way automkv gets into mp4 containers when converting to xvid - it generates an avi and mp4boxes into mp4 ... (because plain automkv mp4-Xvid files are also bad on xbmc)
Has this one to do with interleaving/packet/raw parameters ... i don't know ... any proffesionals out there ? 8)
Do i have to use an mystic switch in mp4box ... ?
Shit ... this one is out of my range ...8)
So the best solution for me seems to be converting to mp4 container with automkv (video only - getting all nice PAR Settings and anything else) and then only "add" the Audio MP4 Tracks ... i'm right ?
buzzqw
19th December 2006, 21:28
I convert with automkv into AVI container (same with mp4) and then mux with mp4box -add ****.avi -add ***.acc ....
i think this is the same way automkv gets into mp4 containers when converting to xvid - it generates an avi and mp4boxes into mp4 ... (because plain automkv mp4-Xvid files are also bad on xbmc)
YES, automkv (when codec video is xvid) will make an movie.avi and then mux it with audio into mp4 (like you say mp4box -add ****.avi -add ***.MP4 .... )
Has this one to do with interleaving/packet/raw parameters ... i don't know ... any proffesionals out there ? 8)
xvid are encoded with packed b frames ! edit the profile and set <PackedBitstream> to true ( <PackedBitstream>true</PackedBitstream> )... but i don't think this is the problem...
So the best solution for me seems to be converting to mp4 container with automkv (video only - getting all nice PAR Settings and anything else) and then only "add" the Audio MP4 Tracks ... i'm right ? BUT this is the way automkv work ! :confused:
try posting the muxing line to xmbc forum (mybe also the xvid command line) :)
BHH
fogbav
19th December 2006, 21:46
Thanks buzzqw ... don't be confused with my manual muxxing action ... only doing some test. Automkv is doing the 99 % part of the work in my batch ...8)
So i found out that it has to do with the Nero AAC file .
Playing automkv plain mp4 file works great on xmbc. but when i am adding an audiotrack with mp4box the xbox goes down as discribed.
Think there is a bug ... but it has nnooooothing to do with automkv .... !!! 8)
Thanks a lot
FoGBaV
Barleyman
20th December 2006, 08:06
I'm still beating the DTS horse. Looks like the audio will be out of synch even when everything else works OK.
For some reason when I tried it again automkv included the dts audio in the mkvmerge command line. Weird.
I'll check encoding the same movie with AC3, let you know when it's finished if that worked OK.
buzzqw
20th December 2006, 13:17
@Barleyman
about dts audio not selected ... it's a bug in automkv
i hope tomorrow to release the new 0.63, a good bug fixes release with some add-on very interesting
BHH
fogbav
20th December 2006, 13:35
Feature Question ...(Maybe still implemented, but "me" to stupid to find 8) )
Is it possible to not autoresize but do a autocrop of "back lines" in the MIDDLE of the Film ?
My Ts files are all 720x576 even when 16:9 films are send. So it would be wonderfull to get full width but only crop the black lines(high).
Because of some comercials or trailers in front and at the end of the film it would be good to decide the autocrop in the middle of the film.
Happy encoding
FoGBaV
buzzqw
20th December 2006, 14:03
:D Already possible ! :D
go to \exe\filter and open base.avs
find this line
autocrop(movie,mode=0,wmultof=4,hmultof=4,samples=40,aspect=new_aspect,threshold=34,samplestartframe=0)
and the value of samplestartframe to 5000 (as example)
like this
autocrop(movie,mode=0,wmultof=4,hmultof=4,samples=40,aspect=new_aspect,threshold=34,samplestartframe=5000)
in this way the autocrop will start to analyze movie from frame 5000
Happy Encoding Too !
BHH
Barleyman
21st December 2006, 15:34
Finished encoding with AC3-stream. Audio is till out of sync.. Any ideas there? I get these lines for dgindex + delaycut:
22:46:55 Dgindex CMD: C:\Program Files\AutoMKV\exe\dgindex\dgindex.exe -FO=0 -OM=1 -TN=1 -YR=2 -AIF=[E:\Movies-E\POTC\VTS_01_1.vob] -OF=[E:\Movies-E\POTC\temp\movie] -exit -minimize
22:49:15 Finished indexing
22:49:15 Starting fixing audio delay on track number 1
22:49:15 DelayCut CMD: C:\Program Files\AutoMKV\exe\dgindex\Delaycut.exe -auto -out "E:\Movies-E\POTC\temp\fixed1.ac3" "E:\Movies-E\POTC\temp\movie T01 3_2ch 448Kbps DELAY 0ms.ac3"
0ms delay at least does not seem to be correct. Audio is out of sync from the very beginning. Maybe this is thrown by the company logo sequence in the beginning? I checked with latest (1.49b7) build of DGindex but same result (0ms delay). I also tried muxing in the dgindex output file but it had the same problem.
buzzqw
21st December 2006, 15:57
0ms delay at least does not seem to be correct.
in wich way you ripped the dvd ? have you used RipIt4me ?
BHH
weaver4
21st December 2006, 16:12
By any chance does this DVD have multiple angles? If so you will have an audio sync problem. Movies like Star-Wars, Armageddon, The Incredibles and many more will have multiple angles in them.
If so; here is the process that I use to overcome that problem.
> Rip the COMPLETE DVD using anydvd, dvdfab decrypter, or RipIt4Me into a directory.
> Open those files in DVD Shrink 3.1
> Re-author the movie:
--- Select only the angle you are interested in (generally the first)
--- Set the Compression Settings:
----- to select only the audio and subpictures that want.
----- set video compression to "no compression"; ignore warnings
> Backup to second directory (ignore "too big" warnings)
> In AutoMKV open the files in this second directory and process as normal.
Barleyman
21st December 2006, 18:23
in wich way you ripped the dvd ? have you used RipIt4me ?
BHH
Either dvd decrypter or dvdfab if it was corrupted dvd..
Ed: DVD decrypter.
Barleyman
21st December 2006, 18:32
By any chance does this DVD have multiple angles? If so you will have an audio sync problem. Movies like Star-Wars, Armageddon, The Incredibles and many more will have multiple angles in them.
Interesting..
I have ripped it with dvd decrypter in IFO mode. DVD shrink is not happy with it.
So how does autogk etc get around this? Because this is 1st time I encounter this problem and I must have processed some multi-angle dvd's with autogk..
weaver4
21st December 2006, 19:07
Interesting..
I have ripped it with dvd decrypter in IFO mode. DVD shrink is not happy with it.
So how does autogk etc get around this? Because this is 1st time I encounter this problem and I must have processed some multi-angle dvd's with autogk..
Most programs don't get around it since they rely on dgdecode which has the problem.
Some disk will have multiple angles and copy-protection. That is why it is a good idea to use one of the rippers that I mentioned and not dvd decrypter alone.
Barleyman
21st December 2006, 19:44
Most programs don't get around it since they rely on dgdecode which has the problem.
Some disk will have multiple angles and copy-protection. That is why it is a good idea to use one of the rippers that I mentioned and not dvd decrypter alone.
Let's see what autogk does with that rip.
I use dvdfab when there's a copy protection, otherwise usually always dvd decrypter. Especially nice on episodic DVDs because you can make batch files to rip all the episodes on the disk without having to wait next to the PC.
In any case I think there's angle processing on DVD decrypter, I just didn't figure out it's a problem.
Ed: Apparently in IFO mode only angle 1 is retained. In FILE mode you can pick the angle you want.
buzzqw
22nd December 2006, 08:53
www.64k.it/andres/data/a/AutoMKV063.rar
New full package
ADDED: If final muxed file already exist in destination directory, the new file name will be based on time of muxing (suggest of Barleyman)
ADDED: If MP4 container is selected and muxing audio is ac3 the program will, at end of encoding, prompt an error and quit, without removing the temp directory (suggest of Nico.Laus.2001)
ADDED: In advanced Settings is possible to force value '-par' to command line of XviD. On AUTO no par is feeded to command line (suggest of vOjToL)
ADDED: Is now possible to choose shutdown mode (StayOn/Shutdown/LogOff/Reboot) (suggest of vOjToL)
ADDED: Added filter Spresso and SeeSaw
ADDED: Several new Tips!
FIXED: Some glitch on Advanced Settings layout
FIXED: Queue with multiple audio selected (thanks to BleedingGums)
FIXED: Muxing in avi container when no audio is selected (thanks to weaver4)
FIXED: Several bugs on work with queue and command line
FIXED: Deinterlacer routines use the field order to determine best deinterlacer
FIXED: Movie name now accept even capital letters (thanks to vOjToL)
FIXED: When using queue automkv will not more ask again audio files for m2v input files (thanks to Nico.Laus.2001)
FIXED: Correct order of audio tracks when input is mpeg. This one was nasty and ugly resolve (thanks to Barleyman)
FIXED: If Lame encoder is selected audio will be, when needed, downmixed to Stereo (thanks to Nico.Laus.2001)
FIXED: Number of threads on x264 encoding will be NUMBER_OF_PROCESSORS * 1.5 (on HT machine is already 2)
UPDATE: Italian translation
UPDATE: DOC folder removed. Please read the License.txt file for information regarding AutoMKV license and other bundled software licenses
UPDATE: X264.exe to 614, TIVTC to v1.0 RC11, Dgindex to 1.4.7 b9
happy bug hunting and encoding ! :)
BHH
buzzqw
22nd December 2006, 14:37
update 0.63a www.64k.it/andres/data/a/AutoMKV063a.exe
0.63a
FIXED: bad parsing of ifo file
vOjToL
22nd December 2006, 16:46
In queue mode AutoMKV 0.63a still ignore preset "custom matrix-NONE".
If there are a few jobs in queue(1.avs+1.mp3; 2.avs+2.mp3; 3.avs+3.mp3....), AutoMKV always use(in every job) only the last audio file(3.mp3) with every video file(1,2,3.avs).
buzzqw
22nd December 2006, 17:27
are you queueing avs files ? :confused:
BHH
buzzqw
22nd December 2006, 17:48
could you try this build ?
www.64k.it/andres/data/a/AutoMKV063b.exe
BHH
vOjToL
22nd December 2006, 18:26
are you queueing avs files ?
Yes, e.g. for reencoding ~120 avi files, everyone with it's own posprocessing and filtering settings... :)
0.63b (in queue) still always processing the same audio file with many others video files :(
fogbav
22nd December 2006, 18:30
Thanks buzzqw 4 new Version ...
test is running ...
Edit :
Testing CLi ... something wrong when going to convert the avi into the mp4 container ... analysing now ...
fogbav
22nd December 2006, 20:45
5 encodings later:
BUG (!)
movie.mp4 (destination format and file) is written into the temp directory ... where it is killed when option del temp file is selected ... bad thing ...8)
Tested with 0.63 (not a or b)
I did not test gui mode ...
Suggestion on Audio Tracks :
i still have some difficults with Audio Tracks in TS Files ...
i tested different programs converting all Tracks to Nero AAC ... best thing worked out is converting with Besweet with new bsn.dll and following command line
for Stereo :
start /low /wait /min .\exe\besweet\besweet.exe -core( -input ".\tmp\film.mp2" -output ".\tmp\final\film_en.aac" -logfile ".\tmp\final\film_en.aac.log" ) -azid( -s stereo -c normal -L -3db ) -bsn( -vbr 0.2 ) -ota( -g max )
AC3 :
start /low /wait /min .\exe\besweet\besweet "BeSweet.exe" -core( -input ".\tmp\film.ac3" -output ".\tmp\final\film.ac3" -logfile ".\tmp\final\film.ac3.log" ) -azid( -c normal ) -bsn( -vbr 0.2 -6chnew ) -ota( -g max )
No BePipe or Delaycut is nessary when using ProjectX - perfect Sync ... AND FINALLY working AC3 conversion ... (didn't worked with Bepipe)
I'm not professional enough to say if this is a good way ... but has worked now for 20 econdings (using Automkv for video and cli converting Audio Tracks this way and then mux everything together).
Only something i wanted to say ....8)
Greets
FoGBaV
buzzqw
22nd December 2006, 20:50
@fogbav
this build shoul be ok
www.64k.it/andres/data/a/AutoMKV063d.exe
BHH
fogbav
22nd December 2006, 22:16
Damn ... you are to fast ...8)
Thannnx ... heating up the engines ...
Edit : Works 100 % again ... thanks ... ! Going to test filters now ...8)
buzzqw
22nd December 2006, 22:53
@vOjToL
www.64k.it/andres/data/a/AutoMKV063e.exe
i hope is ok. i tryed with 3 queue avses file
BHH
ehushagen
23rd December 2006, 01:09
Just wanted to thank you for creating a wonderful GUI for x264. You seem to be standing right on that fine line of easy-to-use and still being a very powerful program in the hands of an experienced user, so huge congratulations to you. If you've got any sort of Paypal donation system set up, please let me (and others, I'm sure) know. I'd love to give you some money for all your hard work.
One suggestion to make, if I may. When selecting an MPEG-2 transport stream (.mpv) as the video source, and then selecting the audio stream in the pop-up boxes that appear after, the Audio Track 1 selection always seems to default to 'None'. This is easily corrected by selecting the chosen audio source from the drop-down box, but it might be handy to have it automatically select it.
Anyways, thanks again!
weaver4
23rd December 2006, 02:22
Using XviD constant profile the audio was way out of sync. This for a movie that was perfectly insync in version 62c.
vOjToL
23rd December 2006, 09:11
www.64k.it/andres/data/a/AutoMKV063e.exe
i hope is ok. i tryed with 3 queue avses file
It's really ok! :)
Very much thanks for your GREAT job!
One more little problem(probably with "code page"): when output file name is e.g. "Co ludzie powiedzą" ("Keeping Up Appearances" in english), I get finally file(after muxing) "Co ludzie powiedzA..."
AMED
23rd December 2006, 10:39
Hi buzzqw,
Is there any chance of getting the statically linked versions of Removegrain.dll and Repair.dll for the stable package instead of the dynamically versions. when i was using the dynamically linked versions from the 0.63 package, the compression test onward was failing because the avs script couldn't import removegrain.dll and repair.dll. i manually changed the dll's to statically linked versions and the error stopped.
also is there any chance for some simple error checking as Automkv goes through the conversion process. e.g. when you get to the conversion of the audio and the resulting audio file equals 0 give a error or when you do the compression test and the resulting filesize = 0 etc.
buzzqw
23rd December 2006, 11:22
@AMED
statically linked versions of Removegrain.dll and Repair.dll
good suggestion, more generally users can change this dll with optimized versions of same library
also is there any chance for some simple error checking as Automkv goes through the conversion process. e.g. when you get to the conversion of the audio and the resulting audio file equals 0 give a error or when you do the compression test and the resulting filesize = 0 etc.
i could add a "Stop on Error" check... i will think about it :)
Co ludzie powiedzą yep... no unicode support now... , i will search...
EDIT2: removed link...
BHH
AMED
23rd December 2006, 11:47
good suggestion, more generally users can change this dll with optimized versions of same library
i could add a "Stop on Error" check... i will think about it :)
Thank you for considering my suggestions :).
BTW do you know what other library is needed to get the dynamic removegrain.dll and repair.dll to work? I've had a look at the removegrain website and it says it that the dynamic versions need a library but fails to say what it is. :confused:
buzzqw
23rd December 2006, 12:05
the statically compiled are RemoveGrainS.dll and RepairS.dll (from removegrain pre 1.0 package http://www.64k.it/andres/data/avisynth/RemoveGrain10.rar )
BHH
P.S try this build with your failing audio... www.64k.it/andres/data/a/AutoMKV063f.exe
vBulletin® v3.8.11, Copyright ©2000-2026, vBulletin Solutions Inc.