Log in

View Full Version : AutoMKV 0.93a - (DVD/TS/AVI/AVS to X264/XviD/WVC1 into MKV/MP4/WMV) update 30/12/2007


Pages : 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 [17] 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92

vOjToL
17th January 2007, 23:49
@jmnk

thanks for your insistance ! i got the problem too!

fixed in next release !, thanks !!!


I solved this problem(6ch ac3 to DLPII-mp3 with DirectShowSource:ffdshow) modifing mkvaudio.avs like this-
original:

video=DirectShowSource("I:\Scooby Doo Loch Ness Monster.avi",audio=false)
audio=DirectShowSource("I:\Scooby Doo Loch Ness Monster.avi",video=false)
stereo=getchannel(audio,1,2)
Return AudioDub(video, stereo)
EnsureVBRMP3Sync()
ConvertAudioTo16bit()
#Applyed DLP II downmixing routines
function DLPII(clip a)
{
fl = GetChannel(a, 1)
fr = GetChannel(a, 2)
c = GetChannel(a, 3)
sl = GetChannel(a, 5)
sr = GetChannel(a, 6)
ssl = MixAudio(sl, sr, 0.2818, 0.1627).Amplify(-1.0)
fl_c = MixAudio(fl, c, 0.3254, 0.2301)
ssr = MixAudio(sl, sr, 0.1627, 0.2818)
fr_c = MixAudio(fr, c, 0.3254, 0.2301)
l = MixAudio(ssl, fl_c, 1.0, 1.0)
r = MixAudio(ssr, fr_c, 1.0, 1.0)
Return MergeChannels(l, r)
}
#
function original(clip a)
{
Normalize(a)
Return last
}
6==Audiochannels() ? DLPII() : original()

modified:

video=DirectShowSource("I:\Scooby Doo Loch Ness Monster.avi",audio=false)
audio=DirectShowSource("I:\Scooby Doo Loch Ness Monster.avi",video=false)
AudioDub(video, audio)
EnsureVBRMP3Sync()
ConvertAudioTo16bit()
#Applyed DLP II downmixing routines
function DLPII(clip a)
{
fl = GetChannel(a, 1)
fr = GetChannel(a, 2)
c = GetChannel(a, 3)
sl = GetChannel(a, 5)
sr = GetChannel(a, 6)
ssl = MixAudio(sl, sr, 0.2818, 0.1627).Amplify(-1.0)
fl_c = MixAudio(fl, c, 0.3254, 0.2301)
ssr = MixAudio(sl, sr, 0.1627, 0.2818)
fr_c = MixAudio(fr, c, 0.3254, 0.2301)
l = MixAudio(ssl, fl_c, 1.0, 1.0)
r = MixAudio(ssr, fr_c, 1.0, 1.0)
Return MergeChannels(l, r)
}
#
function original(clip a)
{
lft=getchannel(a,1)
rgt=getchannel(a,2)
Mergechannels(lft,rgt)
Normalize()
Return last
}
6==Audiochannels() ? DLPII() : original()

The original script in both cases -DLPII or ORIGINAL returns only 2 channels left and right, no dialogs.

dlflannery
18th January 2007, 05:08
I'm trying to convert an AVI (xvid, mp3) to WMV with no success at all.

Per mediaInfo the input file properties are:
Format : AVI
Format/Info : Audio Video Interleave
Format/Family : RIFF
File size : 18.8 MiB
PlayTime : 2mn 30s
Bit rate : 1039 Kbps
StreamSize : 349 KiB

Video #0
Codec : XviD
Codec settings/BVOP : No
Codec settings/QPel : No
Codec settings/GMC : 0
Codec settings/Matri : Default
PlayTime : 2mn 30s
Bit rate : 904 Kbps
Width : 320 pixels
Height : 240 pixels
Aspect ratio : 4/3
Frame rate : 29.970 fps
Resolution : 8 bits
Chroma : 4:2:0
Interlacement : Progressive
Bits/(Pixel*Frame) : 0.390
StreamSize : 16.2 MiB

Audio #0
Codec : MPEG-1 Audio layer 3
Codec profile : Joint stereo
PlayTime : 2mn 30s
Bit rate : 125 Kbps
Bit rate mode : CBR
Channel(s) : 2 channels
Sampling rate : 48 KHz
Resolution : 16 bits
StreamSize : 2.25 MiB

This file plays fine in WMP11 or MPC 6.4.9.0
It renders and plays fine in gspot and graphEdit.
It can be served by AVS either with AviSource or DirectShowSource. In other words, all indications are this is a good video!

I've tried various WMV profiles and with or without the "Use DirectShowSource". Output size is same as input and fixed bit rate is 500kbps + audio_bit_rate.

Some encodes fail completely. The closest I've come to success is to check "Use DirectShowSource" and force use of the WMV7 codec via the Zune_1pass_fast profile. The file size is about 1/4 of what it should be and mediaInfo shows a video bitrate of 108kbps (should be 500kbps, and I see that rate being passed to the WME9 script).

When played in WMP11, this file shows good video and audio, but the video rushes along as if in 14X fast forward and finishes in 13 seconds while the audio plays along normally for the full 2.5 min duration.

If anyone can give me details on how they have successfully performed an AVI (xvid + mp3) --> WMV conversion with AutoMKV, I would really appreciate it. I've come so close, I hate to give up now!

Thanks for your attention

cosmos
18th January 2007, 07:00
In some clips of episodes I knew that they were of type film. So in AutoMKV070 I've set in the advanced properties the type to "Film" but left the next box (field order) to "Auto". Does the automatic field order detection take place in such a case? I'll try to paste a log of such operation later on today.

buzzqw
18th January 2007, 10:51
This is an experimental build, since i no more parse channels downmix for mpeg4 (or directshowsource) input files.

update 0.70a
www.64k.it/andres/data/a/AutoMKV070a.exe

FIXED: on avi/mkv/ogm or whenever is needed directshowsource , the audio encoding NO MORE LOOK AT CHANNELS downmixing. please USE FFDSHOW/AC3Filter to downmix!
ADDED: Leave Interlaced ... but please select field order..., now is applyed only to XviD, when --interlaced will be fuctional in x264 i will add to it

for example in ffdshow i check Mixer and select 2.0 (or feel bra

To anyone with problem with wmv please try this build ! :thanks:

EDIT: @cosmos don't use Film, since i parse d2v for force film usage !

buzzqw
18th January 2007, 11:21
update 0.70b

www.64k.it/andres/data/a/AutoMKV070b.exe

FIXED: removed audio=getchannel(audio,1,2) from wmv encoding...

BHH

dlflannery
19th January 2007, 01:30
@buzzqw:
70b did not fix my WMV encoding problems detailed in a prior post (http://forum.doom9.org/showthread.php?p=938643#post938643). I tried both with and without Use DirectShowSource. In either case the output file size is even smaller than before (850k when it should be 10-12 Meg) and MediaInfo throws a floating point exception on it.

I played it in WMP11 and now the video appears to be the same 13 sec 14X fast-forward version as before. Again the sound plays at normal speed but it now stops at 13 sec also. (Clip is 2.5 min long.)

I watch the WME script command window and it never takes as long as it should.

I can post log files if you want -- just tell me which ones you want.

I haven't tried sourcing this AVI via an AVS -- my understanding is this is not supported for WMV (??)

Thanks.

AMED
19th January 2007, 02:54
Is there any way in AukoMKV to make forced subtitles (not burnt in) using the mkv container?

I'm trying to encode flying high (or aeroplane depending on which country your in) and when I try and play the resulting movie in VLC I see that the subtitles are always defaulted to off.

dlflannery
19th January 2007, 04:24
@buzzqw:
I've been able to encode my test AVI file with the WME9 encoder script file, several different ways actually, all resulting in good encodes.

On Computer #1, which has the DivX codec installed:
Just sourced the .avi file into the script.

On Computer #2, with XviD codec installed (not DivX)
Sourcing the .avi directly didn't work, But sourcing it as .avs using AviSource() worked fine.

Installed the DivX codec on computer #2 and then it also will encode sourcing the .avi directly.

Apparently the DivX codec (or something else that gets installed in its "bundle") makes the difference. However the GraphEdit for either case is very simple: AviSplitter, Mpeg4 Decoder (DivX or Xvid), then Video Renderer, i.e., no filter or color-space converter is being used in either case, so it looks like the only difference is the Mpeg4 decoders.

Here is the WMCmd.vbs command line I'm using (very similar to your Zune 1 Pass Quick, I think):

cscript.exe wmcmd.vbs -input %1 -output "%outdir%%outfile%.wmv" -v_codec WMV7 -v_mode 0 -v_bitrate %bitrate% -v_keydist 10 -v_buffer 10000 -v_quality 100 -v_preproc 0 -v_width %width% -v_height %height% -a_setting 128_44_2

I'm using 500 kbps bitrate, 320x240 (widthxheight)

So this shows there is no problem with my computer(s) or WME9 encoder or the input file. It's just a matter of getting AutoMKV to feed WME9 the right file and command line.

cosmos
19th January 2007, 07:05
Is there any way in AukoMKV to make forced subtitles (not burnt in) using the mkv container?

I'm trying to encode flying high (or aeroplane depending on which country your in) and when I try and play the resulting movie in VLC I see that the subtitles are always defaulted to off.Search and download mkvtoolnix for Windows. Then doubleclick the mkvmerge icon. In the input files throw in the movie you are talking about. In the middle boxes the video, audio and subtitle tracks will appear. In the subtitle track, check the "default track" box and then mux the file. A new mkv file will be produced.

I believe there might be a more elegant solution, but I don't know how :)

BTW, for Matroska (and everything else) I've switched to using the CCCP codec pack (google for it), together with Quicktime alternative and Realalternative. Much faster playback, plus better looking subs.

AMED
19th January 2007, 08:57
Search and download mkvtoolnix for Windows. Then doubleclick the mkvmerge icon. In the input files throw in the movie you are talking about. In the middle boxes the video, audio and subtitle tracks will appear. In the subtitle track, check the "default track" box and then mux the file. A new mkv file will be produced.

I have just tried that and the subtitles are still disabled by default when playing the movie

cosmos
19th January 2007, 09:08
I've observed that VLC does not respect the default-track property, nothing to worry about. Perhaps it will be fixed in a future release. I do continue to strongly suggest using the CCCP pack.

gekan
19th January 2007, 09:16
Hi. This is my 1st message and I'd like to say thanks for all the work you guys have been putting into AutoMKV!

Is there any way in AukoMKV to make forced subtitles (not burnt in) using the mkv container?
...
I've been having the same problem with 0.70 myself. If I choose subtitles they get burned in no matter what..

I have another problem. I encoded an episode for media size 300MBs. The final size was 285MBs. Why is that? The other 4 episodes (with the same settings) were ok (2 of them 300MBs and the other 2 at 299MBs). Here is the log for the file:
Selected Input file: E:\Media\BA\VTS_03_0.IFO
Selected Output dir: E:\Media\temp\
Selected Final Name: VTS_03_0
Selected Container type: MKV
Selected Encoder: X264
Selected Size: 300
Selected Slice: 1
Selected Profile: CQ-ASP_Q2_eq(crf).xml
Selected Width: Automatic
Selected Resizer: BicubicResize (neutral=0,0.50)
Selected Filters: RemoveGrain(mode=2)
Selected Deinterlacer: AUTO
Selected Field Order: AUTO
Using Queue: queue2.ini of 4 works
Track Language 1: English (AC3 2ch, 0xBD 0x80) [0]
Audio Codec 1: Nero AAC
Audio Quality 1: 0.35
Advanced Audio Settings DUMP Track 1
Movie Title Name:
Audio Track Language:
Audio Track Name:
Nero Option Profiles: AUTO --- Encoding Mode: Quality
CCT Option Profiles: AUTO --- Channel Options: AUTO
Lame Settings: ABR
Audio Normalization: 1
Frequency: AUTO --- Tempo : NONE
Pitch: NONE --- Other Add :
Advanced Audio Settings DUMP Track 2
Audio Track Language:
Audio Track Name:
Nero Option Profiles: AUTO --- Encoding Mode: Quality
CCT Option Profiles: AUTO --- Channel Options: AUTO
Lame Settings: ABR
Audio Normalization: 1
Frequency: AUTO --- Tempo : NONE
Pitch: NONE --- Other Add :
Selected 1' Sub tracks: NONE
Selected 2' Sub tracks: NONE

Starting Indexing
Dgindex CMD: C:\Program Files\AutoMKV\exe\dgindex\dgindex.exe -FO=0 -OM=1 -TN=1 -YR=2 -AIF=[E:\Media\BA\VTS_03_1.vob] -OF=[E:\Media\temp\movie] -exit -minimize
Finished indexing
Starting fixing audio delay on track number 1
DelayCut CMD: C:\Program Files\AutoMKV\exe\dgindex\Delaycut.exe -auto -out "E:\Media\temp\fixed1.ac3" "E:\Media\temp\movie T01 2_0ch 224Kbps DELAY 0ms.ac3"
Original 1' Audio Size: 54803840 bytes
Finished fixing audio delay
Encoding E:\Media\temp\fixed1.ac3 to NeroAAC with 0.35 quality
Encoded 1' Audio Track: 19428801 bytes
Number of Frames: 48933
Framerate: 25.000000
Movie lenght in Seconds: 1958
Movie Width: 720
Movie Height: 576
Processing completed. Type is determined to be partly interlaced.
Processing completed. Type is determined to be partly interlaced.
BFF: 17
TFF: 246
Order: tff
Starting X264 AutoResize with WIDTH of Automatic and wanted size of 314572800 bytes
Testing ABR of: 1204
CRF encoding X264: C:\Program Files\AutoMKV\exe\encoder\x264.exe --bitrate 1204 --ratetol inf --progress --keyint 250 --bframes 3 --qpmin 10 --qpmax 51 --no-psnr --mixed-refs --trellis 1 --ref 3 --filter -2,-1 --direct spatial --vbv-maxrate 25000 --me umh --no-ssim --weightb --b-pyramid --b-rdo --bime --analyse p8x8,b8x8,i4x4,i8x8,p4x4 --8x8dct --threads 3 --output "E:\Media\temp\resmovie.mp4" "E:\Media\temp\resmovie.avs"
CRF Iterate LOG
First sample as ABR log
avis [info]: 704x528 @ 25.00 fps (980 frames)
x264 [info]: using cpu capabilities MMX MMXEXT SSE SSE2
mp4 [info]: initial delay 2 (scale 25)
x264 [info]: slice I:40 Avg QP:19.80 size: 24500
x264 [info]: slice P:459 Avg QP:21.75 size: 9292
x264 [info]: slice B:481 Avg QP:23.94 size: 2727
x264 [info]: mb I I16..4: 17.3% 48.3% 34.4%
x264 [info]: mb P I16..4: 9.1% 19.8% 3.4% P16..4: 31.4% 12.9% 3.8% 0.6% 0.4% skip:18.6%
x264 [info]: mb B I16..4: 0.3% 1.2% 0.2% B16..8: 17.6% 1.2% 2.2% direct:11.4% skip:65.9%
x264 [info]: final ratefactor: 21.10
x264 [info]: 8x8 transform intra:59.0% inter:42.3%
x264 [info]: ref P 75.5% 17.6% 6.9%
x264 [info]: ref B 78.5% 16.4% 5.1%
x264 [info]: kb/s:1338.1
x264 [info]: kb/s:1338.1
encoded 980 frames, 6.88 fps, 1338.45 kb/s
End of first Sample LOG
Tested total movie: 2%
AutoResize movie size: 6569301 bytes
Movie Width suggested: 1008 value based on sample size
Starting X264
CRF encoding X264: C:\Program Files\AutoMKV\exe\encoder\x264.exe --pass 1 --crf 21.10 --stats "E:\Media\temp\.stats" --progress --keyint 250 --bframes 3 --qpmin 10 --qpmax 51 --no-psnr --mixed-refs --trellis 1 --ref 3 --filter -2,-1 --direct spatial --vbv-maxrate 25000 --me umh --no-ssim --weightb --b-pyramid --b-rdo --bime --analyse p8x8,b8x8,i4x4,i8x8,p4x4 --8x8dct --threads 3 --output "E:\Media\temp\movie.mp4" "E:\Media\temp\movie.avs"
Accepted values are between 298844160 and 317718528 bytes (movie+audio)
Got a file of size: 279713969 bytes + audio size 19428801 bytes (299142784)
"C:\Program Files\AutoMKV\exe\matroska\mkvmerge.exe" -o "E:\Media\temp\VTS_03_0.mkv" --track-name -1:"VTS_03_0" --aspect-ratio 1:1.361702 --chapters "C:\Program Files\AutoMKV\exe\chapters.txt" "E:\Media\temp\movie.mp4" --language -1:eng "E:\Media\temp\audio.mp4" --title "Done with AutoMKV 0.70 http://forum.doom9.org/showthread.php?p=854221 "
Final Muxed size: 299097985 bytes
Encoding finished: 01:59:30 elapsed time
-----------------------------------------------------------------------
Script AutoCrop.log

Crop(10,6,700,564)
-----------------------------------------------------------------------
Script Resmovie.avs

LoadPlugin("C:\Program Files\AutoMKV\exe\filter\autocrop.dll")
LoadPlugin("C:\Program Files\AutoMKV\exe\filter\blockbuster.dll")
LoadPlugin("C:\Program Files\AutoMKV\exe\filter\cnr2.dll")
LoadPlugin("C:\Program Files\AutoMKV\exe\filter\ColorMatrix.dll")
LoadPlugin("C:\Program Files\AutoMKV\exe\filter\Convolution3D.dll")
LoadPlugin("C:\Program Files\AutoMKV\exe\filter\corrector.dll")
LoadPlugin("C:\Program Files\AutoMKV\exe\filter\DctFilter.dll")
LoadPlugin("C:\Program Files\AutoMKV\exe\filter\Decomb.dll")
LoadPlugin("C:\Program Files\AutoMKV\exe\filter\Deen.dll")
LoadPlugin("C:\Program Files\AutoMKV\exe\filter\degrainmedian.dll")
LoadPlugin("C:\Program Files\AutoMKV\exe\filter\DGDecode.dll")
LoadPlugin("C:\Program Files\AutoMKV\exe\filter\EEDI2.dll")
LoadPlugin("C:\Program Files\AutoMKV\exe\filter\fft3dfilter.dll")
LoadPlugin("C:\Program Files\AutoMKV\exe\filter\FluxSmooth.dll")
LoadPlugin("C:\Program Files\AutoMKV\exe\filter\frfun7.dll")
LoadPlugin("C:\Program Files\AutoMKV\exe\filter\hqdn3d.dll")
LoadPlugin("C:\Program Files\AutoMKV\exe\filter\LeakKernelDeint.dll")
LoadPlugin("C:\Program Files\AutoMKV\exe\filter\MaskTools.dll")
LoadPlugin("C:\Program Files\AutoMKV\exe\filter\medianblur.dll")
LoadPlugin("C:\Program Files\AutoMKV\exe\filter\MipSmooth.dll")
LoadPlugin("C:\Program Files\AutoMKV\exe\filter\mt_masktools.dll")
LoadPlugin("C:\Program Files\AutoMKV\exe\filter\mvtools.dll")
LoadPlugin("C:\Program Files\AutoMKV\exe\filter\NicAudio.dll")
LoadPlugin("C:\Program Files\AutoMKV\exe\filter\RemoveGrain.dll")
LoadPlugin("C:\Program Files\AutoMKV\exe\filter\Repair.dll")
LoadPlugin("C:\Program Files\AutoMKV\exe\filter\SangNom.dll")
LoadPlugin("C:\Program Files\AutoMKV\exe\filter\SimpleResize.dll")
LoadPlugin("C:\Program Files\AutoMKV\exe\filter\TBilateral.dll")
LoadPlugin("C:\Program Files\AutoMKV\exe\filter\TDeint.dll")
LoadPlugin("C:\Program Files\AutoMKV\exe\filter\TIVTC.dll")
LoadPlugin("C:\Program Files\AutoMKV\exe\filter\TomsMoComp.dll")
LoadPlugin("C:\Program Files\AutoMKV\exe\filter\TTempSmooth.dll")
LoadPlugin("C:\Program Files\AutoMKV\exe\filter\UnDot.dll")
LoadPlugin("C:\Program Files\AutoMKV\exe\filter\UnFilter.dll")
LoadPlugin("C:\Program Files\AutoMKV\exe\filter\VSFilter.dll")
#loadpluginstart

#test1

Import("C:\Program Files\AutoMKV\exe\filter\MCBob_v03c.avsi")
Import("C:\Program Files\AutoMKV\exe\filter\mvbob.avsi")
Import("C:\Program Files\AutoMKV\exe\filter\QMF.avsi")
Import("C:\Program Files\AutoMKV\exe\filter\seesaw.avsi")
Import("C:\Program Files\AutoMKV\exe\filter\spresso.avsi")
#importstart

#test2

movie = mpeg2source("E:\Media\temp\movie.d2v")
function getOrder(clip c) {
order = GetParity(c) ? 1 : 0
Return order }
#filter1start

#test3

#cropstart

cropclip = autocrop(movie,mode=0,wmultof=4,hmultof=4,samples=40,aspect=0,threshold=34,samplestartframe=0)
fixed_aspect = 1.066667
c_width = width(cropclip)
c_height = Round(height(cropclip) / fixed_aspect)
input_par = float(float(c_width)/float(c_height))
input_par = input_par > 1.4 ? input_par : (4.0/3.0)
out_width = 704
out_height = Round(float(out_width) / input_par)
hmod = out_height - (floor(out_height / 16 ) * 16)
out_height = (hmod > 4) ? (out_height + (16 - hmod)) : (out_height - hmod)
new_aspect = (float(out_width) / float(out_height)) / fixed_aspect
autocrop(movie,mode=0,wmultof=4,hmultof=4,samples=40,aspect=new_aspect,threshold=34,samplestartframe=0)

TDeint(order=1,full=false)
#resizestart

#test4

BicubicResize(out_width,out_height,0,0.50)
#filter2start

#test5

RemoveGrain(mode=2)
function Comptest(clip c, float percent)
{
frange=floor(14./(percent/100.))
Return SelectRangeEvery(c, frange, 14)
}
Comptest(2)
-----------------------------------------------------------------------
Script movie.avs

LoadPlugin("C:\Program Files\AutoMKV\exe\filter\autocrop.dll")
LoadPlugin("C:\Program Files\AutoMKV\exe\filter\blockbuster.dll")
LoadPlugin("C:\Program Files\AutoMKV\exe\filter\cnr2.dll")
LoadPlugin("C:\Program Files\AutoMKV\exe\filter\ColorMatrix.dll")
LoadPlugin("C:\Program Files\AutoMKV\exe\filter\Convolution3D.dll")
LoadPlugin("C:\Program Files\AutoMKV\exe\filter\corrector.dll")
LoadPlugin("C:\Program Files\AutoMKV\exe\filter\DctFilter.dll")
LoadPlugin("C:\Program Files\AutoMKV\exe\filter\Decomb.dll")
LoadPlugin("C:\Program Files\AutoMKV\exe\filter\Deen.dll")
LoadPlugin("C:\Program Files\AutoMKV\exe\filter\degrainmedian.dll")
LoadPlugin("C:\Program Files\AutoMKV\exe\filter\DGDecode.dll")
LoadPlugin("C:\Program Files\AutoMKV\exe\filter\EEDI2.dll")
LoadPlugin("C:\Program Files\AutoMKV\exe\filter\fft3dfilter.dll")
LoadPlugin("C:\Program Files\AutoMKV\exe\filter\FluxSmooth.dll")
LoadPlugin("C:\Program Files\AutoMKV\exe\filter\frfun7.dll")
LoadPlugin("C:\Program Files\AutoMKV\exe\filter\hqdn3d.dll")
LoadPlugin("C:\Program Files\AutoMKV\exe\filter\LeakKernelDeint.dll")
LoadPlugin("C:\Program Files\AutoMKV\exe\filter\MaskTools.dll")
LoadPlugin("C:\Program Files\AutoMKV\exe\filter\medianblur.dll")
LoadPlugin("C:\Program Files\AutoMKV\exe\filter\MipSmooth.dll")
LoadPlugin("C:\Program Files\AutoMKV\exe\filter\mt_masktools.dll")
LoadPlugin("C:\Program Files\AutoMKV\exe\filter\mvtools.dll")
LoadPlugin("C:\Program Files\AutoMKV\exe\filter\NicAudio.dll")
LoadPlugin("C:\Program Files\AutoMKV\exe\filter\RemoveGrain.dll")
LoadPlugin("C:\Program Files\AutoMKV\exe\filter\Repair.dll")
LoadPlugin("C:\Program Files\AutoMKV\exe\filter\SangNom.dll")
LoadPlugin("C:\Program Files\AutoMKV\exe\filter\SimpleResize.dll")
LoadPlugin("C:\Program Files\AutoMKV\exe\filter\TBilateral.dll")
LoadPlugin("C:\Program Files\AutoMKV\exe\filter\TDeint.dll")
LoadPlugin("C:\Program Files\AutoMKV\exe\filter\TIVTC.dll")
LoadPlugin("C:\Program Files\AutoMKV\exe\filter\TomsMoComp.dll")
LoadPlugin("C:\Program Files\AutoMKV\exe\filter\TTempSmooth.dll")
LoadPlugin("C:\Program Files\AutoMKV\exe\filter\UnDot.dll")
LoadPlugin("C:\Program Files\AutoMKV\exe\filter\UnFilter.dll")
LoadPlugin("C:\Program Files\AutoMKV\exe\filter\VSFilter.dll")
#loadpluginstart

#test1

Import("C:\Program Files\AutoMKV\exe\filter\MCBob_v03c.avsi")
Import("C:\Program Files\AutoMKV\exe\filter\mvbob.avsi")
Import("C:\Program Files\AutoMKV\exe\filter\QMF.avsi")
Import("C:\Program Files\AutoMKV\exe\filter\seesaw.avsi")
Import("C:\Program Files\AutoMKV\exe\filter\spresso.avsi")
#importstart

#test2

movie = mpeg2source("E:\Media\temp\movie.d2v")
function getOrder(clip c) {
order = GetParity(c) ? 1 : 0
Return order }
#filter1start

#test3

#cropstart

cropclip = autocrop(movie,mode=0,wmultof=4,hmultof=4,samples=40,aspect=0,threshold=34,samplestartframe=0)
fixed_aspect = 1.066667
c_width = width(cropclip)
c_height = Round(height(cropclip) / fixed_aspect)
input_par = float(float(c_width)/float(c_height))
input_par = input_par > 1.4 ? input_par : (4.0/3.0)
out_width = 704
out_height = Round(float(out_width) / input_par)
hmod = out_height - (floor(out_height / 16 ) * 16)
out_height = (hmod > 4) ? (out_height + (16 - hmod)) : (out_height - hmod)
new_aspect = (float(out_width) / float(out_height)) / fixed_aspect
autocrop(movie,mode=0,wmultof=4,hmultof=4,samples=40,aspect=new_aspect,threshold=34,samplestartframe=0)

TDeint(order=1,full=false)
#resizestart

#test4

BicubicResize(out_width,out_height,0,0.50)
#filter2start

#test5

RemoveGrain(mode=2)
-----------------------------------------------------------------------
Script mkvmaudio.avs

LoadPlugin("C:\Program Files\AutoMKV\exe\filter\NicAudio.dll")
NicAC3Source("E:\Media\temp\fixed1.ac3")
EnsureVBRMP3Sync()
ConvertAudioToFloat()
#Applyed STEREO downmixing routines
function stereo(clip a)
{
fl = GetChannel(a, 1)
fr = GetChannel(a, 2)
c = GetChannel(a, 3)
lfe = GetChannel(a, 4)
sl = GetChannel(a, 5)
sr = GetChannel(a, 6)
l_sl = MixAudio(fl, sl, 0.2929, 0.2929)
c_lfe = MixAudio(lfe, c, 0.2071, 0.2071)
r_sr = MixAudio(fr, sr, 0.2929, 0.2929)
l = MixAudio(l_sl, c_lfe, 1.0, 1.0)
r = MixAudio(r_sr, c_lfe, 1.0, 1.0)
Return MergeChannels(l, r).Normalize()
}
#
function original(clip a)
{
Normalize(a)
Return last
}
6==Audiochannels() ? stereo() : original()
-----------------------------------------------------------------------
Script mkvmaudio.bat

"C:\Program Files\AutoMKV\exe\besweet\bepipe.exe" --script "Import(^E:\Media\temp\mkvmaudio.avs^)" | "C:\Program Files\AutoMKV\exe\besweet\neroaacenc.exe" -ignorelength -q 0.35 -if - -of "E:\Media\temp\audio.mp4"
-----------------------------------------------------------------------
Script mkvmaudio2.avs
-----------------------------------------------------------------------
Script mkvmaudio2.bat

gekan
19th January 2007, 09:16
Now, another thing is that, even though I wanted single pass encoding one out of five times two pass mode was made active. Why is that? Here is the log file:
Selected Input file: E:\Media\BA\VTS_01_0.IFO
Selected Output dir: E:\Media\temp\
Selected Final Name: VTS_01_0
Selected Container type: MKV
Selected Encoder: X264
Selected Size: 300
Selected Slice: 1
Selected Profile: CQ-ASP_Q2_eq(crf).xml
Selected Width: Automatic
Selected Resizer: BicubicResize (neutral=0,0.50)
Selected Filters: RemoveGrain(mode=2)
Selected Deinterlacer: AUTO
Selected Field Order: AUTO
Track Language 1: English (AC3 2ch, 0xBD 0x80) [0]
Audio Codec 1: Nero AAC
Audio Quality 1: 0.35
Advanced Audio Settings DUMP Track 1
Movie Title Name:
Audio Track Language:
Audio Track Name:
Nero Option Profiles: AUTO --- Encoding Mode: Quality
CCT Option Profiles: AUTO --- Channel Options: AUTO
Lame Settings: ABR
Audio Normalization: 1
Frequency: AUTO --- Tempo : NONE
Pitch: NONE --- Other Add :
Advanced Audio Settings DUMP Track 2
Audio Track Language:
Audio Track Name:
Nero Option Profiles: AUTO --- Encoding Mode: Quality
CCT Option Profiles: AUTO --- Channel Options: AUTO
Lame Settings: ABR
Audio Normalization: 1
Frequency: AUTO --- Tempo : NONE
Pitch: NONE --- Other Add :
Selected 1' Sub tracks: NONE
Selected 2' Sub tracks: NONE

Starting Indexing
Dgindex CMD: C:\Program Files\AutoMKV\exe\dgindex\dgindex.exe -FO=0 -OM=1 -TN=1 -YR=2 -AIF=[E:\Media\BA\VTS_01_1.vob] -OF=[E:\Media\temp\movie] -exit -minimize
Finished indexing
Starting fixing audio delay on track number 1
DelayCut CMD: C:\Program Files\AutoMKV\exe\dgindex\Delaycut.exe -auto -out "E:\Media\temp\fixed1.ac3" "E:\Media\temp\movie T01 2_0ch 224Kbps DELAY 0ms.ac3"
Original 1' Audio Size: 50711808 bytes
Finished fixing audio delay
Encoding E:\Media\temp\fixed1.ac3 to NeroAAC with 0.35 quality
Encoded 1' Audio Track: 17715084 bytes
Number of Frames: 45280
Framerate: 25.000000
Movie lenght in Seconds: 1812
Movie Width: 720
Movie Height: 576
Processing completed. Type is determined to be partly interlaced.
Processing completed. Type is determined to be partly interlaced.
BFF: 37
TFF: 219
Order: var
Starting X264 AutoResize with WIDTH of Automatic and wanted size of 314572800 bytes
Testing ABR of: 1309
CRF encoding X264: C:\Program Files\AutoMKV\exe\encoder\x264.exe --bitrate 1309 --ratetol inf --progress --keyint 250 --bframes 3 --qpmin 10 --qpmax 51 --no-psnr --mixed-refs --trellis 1 --ref 3 --filter -2,-1 --direct spatial --vbv-maxrate 25000 --me umh --no-ssim --weightb --b-pyramid --b-rdo --bime --analyse p8x8,b8x8,i4x4,i8x8,p4x4 --8x8dct --threads 3 --output "E:\Media\temp\resmovie.mp4" "E:\Media\temp\resmovie.avs"
CRF Iterate LOG
First sample as ABR log
avis [info]: 704x528 @ 25.00 fps (910 frames)
x264 [info]: using cpu capabilities MMX MMXEXT SSE SSE2
mp4 [info]: initial delay 2 (scale 25)
x264 [info]: slice I:42 Avg QP:19.36 size: 22285
x264 [info]: slice P:478 Avg QP:21.72 size: 9411
x264 [info]: slice B:390 Avg QP:24.23 size: 3011
x264 [info]: mb I I16..4: 22.8% 46.8% 30.4%
x264 [info]: mb P I16..4: 10.4% 20.2% 3.8% P16..4: 29.2% 13.0% 4.2% 0.6% 0.4% skip:18.2%
x264 [info]: mb B I16..4: 0.4% 1.3% 0.2% B16..8: 20.2% 1.2% 2.4% direct:11.2% skip:62.9%
x264 [info]: final ratefactor: 21.16
x264 [info]: 8x8 transform intra:56.7% inter:38.0%
x264 [info]: ref P 74.6% 17.6% 7.9%
x264 [info]: ref B 78.9% 15.3% 5.7%
x264 [info]: kb/s:1452.5
x264 [info]: kb/s:1452.5
encoded 910 frames, 5.80 fps, 1452.86 kb/s
End of first Sample LOG
Tested total movie: 2%
AutoResize movie size: 6620161 bytes
Movie Width suggested: 1008 value based on sample size
Starting X264
CRF encoding X264: C:\Program Files\AutoMKV\exe\encoder\x264.exe --pass 1 --crf 21.16 --stats "E:\Media\temp\.stats" --progress --keyint 250 --bframes 3 --qpmin 10 --qpmax 51 --no-psnr --mixed-refs --trellis 1 --ref 3 --filter -2,-1 --direct spatial --vbv-maxrate 25000 --me umh --no-ssim --weightb --b-pyramid --b-rdo --bime --analyse p8x8,b8x8,i4x4,i8x8,p4x4 --8x8dct --threads 3 --output "E:\Media\temp\movie.mp4" "E:\Media\temp\movie.avs"
Accepted values are between 298844160 and 317718528 bytes (movie+audio)
Got a file of size: 268551942 bytes + audio size 17715084 bytes (286267040)
Switching to 2 pass mode
CRF encoding X264: C:\Program Files\AutoMKV\exe\encoder\x264.exe --pass 2 --bitrate 1309 --stats "E:\Media\temp\.stats" --progress --keyint 250 --bframes 3 --qpmin 10 --qpmax 51 --no-psnr --mixed-refs --trellis 1 --ref 3 --filter -2,-1 --direct spatial --vbv-maxrate 25000 --me umh --no-ssim --weightb --b-pyramid --b-rdo --bime --analyse p8x8,b8x8,i4x4,i8x8,p4x4 --8x8dct --threads 3 --output "E:\Media\temp\movie.mp4" "E:\Media\temp\movie.avs"
"C:\Program Files\AutoMKV\exe\matroska\mkvmerge.exe" -o "E:\Media\temp\VTS_01_0.mkv" --track-name -1:"VTS_01_0" --aspect-ratio 1:1.371429 --chapters "C:\Program Files\AutoMKV\exe\chapters.txt" "E:\Media\temp\movie.mp4" --language -1:eng "E:\Media\temp\audio.mp4" --title "Done with AutoMKV 0.70 http://forum.doom9.org/showthread.php?p=854221 "
Final Muxed size: 314567384 bytes
Encoding finished: 03:52:10 elapsed time
----------------------
Script AutoCrop.log

Crop(14,8,696,560)
----------------------
Script Resmovie.avs

LoadPlugin("C:\Program Files\AutoMKV\exe\filter\autocrop.dll")
LoadPlugin("C:\Program Files\AutoMKV\exe\filter\blockbuster.dll")
LoadPlugin("C:\Program Files\AutoMKV\exe\filter\cnr2.dll")
LoadPlugin("C:\Program Files\AutoMKV\exe\filter\ColorMatrix.dll")
LoadPlugin("C:\Program Files\AutoMKV\exe\filter\Convolution3D.dll")
LoadPlugin("C:\Program Files\AutoMKV\exe\filter\corrector.dll")
LoadPlugin("C:\Program Files\AutoMKV\exe\filter\DctFilter.dll")
LoadPlugin("C:\Program Files\AutoMKV\exe\filter\Decomb.dll")
LoadPlugin("C:\Program Files\AutoMKV\exe\filter\Deen.dll")
LoadPlugin("C:\Program Files\AutoMKV\exe\filter\degrainmedian.dll")
LoadPlugin("C:\Program Files\AutoMKV\exe\filter\DGDecode.dll")
LoadPlugin("C:\Program Files\AutoMKV\exe\filter\EEDI2.dll")
LoadPlugin("C:\Program Files\AutoMKV\exe\filter\fft3dfilter.dll")
LoadPlugin("C:\Program Files\AutoMKV\exe\filter\FluxSmooth.dll")
LoadPlugin("C:\Program Files\AutoMKV\exe\filter\frfun7.dll")
LoadPlugin("C:\Program Files\AutoMKV\exe\filter\hqdn3d.dll")
LoadPlugin("C:\Program Files\AutoMKV\exe\filter\LeakKernelDeint.dll")
LoadPlugin("C:\Program Files\AutoMKV\exe\filter\MaskTools.dll")
LoadPlugin("C:\Program Files\AutoMKV\exe\filter\medianblur.dll")
LoadPlugin("C:\Program Files\AutoMKV\exe\filter\MipSmooth.dll")
LoadPlugin("C:\Program Files\AutoMKV\exe\filter\mt_masktools.dll")
LoadPlugin("C:\Program Files\AutoMKV\exe\filter\mvtools.dll")
LoadPlugin("C:\Program Files\AutoMKV\exe\filter\NicAudio.dll")
LoadPlugin("C:\Program Files\AutoMKV\exe\filter\RemoveGrain.dll")
LoadPlugin("C:\Program Files\AutoMKV\exe\filter\Repair.dll")
LoadPlugin("C:\Program Files\AutoMKV\exe\filter\SangNom.dll")
LoadPlugin("C:\Program Files\AutoMKV\exe\filter\SimpleResize.dll")
LoadPlugin("C:\Program Files\AutoMKV\exe\filter\TBilateral.dll")
LoadPlugin("C:\Program Files\AutoMKV\exe\filter\TDeint.dll")
LoadPlugin("C:\Program Files\AutoMKV\exe\filter\TIVTC.dll")
LoadPlugin("C:\Program Files\AutoMKV\exe\filter\TomsMoComp.dll")
LoadPlugin("C:\Program Files\AutoMKV\exe\filter\TTempSmooth.dll")
LoadPlugin("C:\Program Files\AutoMKV\exe\filter\UnDot.dll")
LoadPlugin("C:\Program Files\AutoMKV\exe\filter\UnFilter.dll")
LoadPlugin("C:\Program Files\AutoMKV\exe\filter\VSFilter.dll")
#loadpluginstart

#test1

Import("C:\Program Files\AutoMKV\exe\filter\MCBob_v03c.avsi")
Import("C:\Program Files\AutoMKV\exe\filter\mvbob.avsi")
Import("C:\Program Files\AutoMKV\exe\filter\QMF.avsi")
Import("C:\Program Files\AutoMKV\exe\filter\seesaw.avsi")
Import("C:\Program Files\AutoMKV\exe\filter\spresso.avsi")
#importstart

#test2

movie = mpeg2source("E:\Media\temp\movie.d2v")
function getOrder(clip c) {
order = GetParity(c) ? 1 : 0
Return order }
#filter1start

#test3

#cropstart

cropclip = autocrop(movie,mode=0,wmultof=4,hmultof=4,samples=40,aspect=0,threshold=34,samplestartframe=0)
fixed_aspect = 1.066667
c_width = width(cropclip)
c_height = Round(height(cropclip) / fixed_aspect)
input_par = float(float(c_width)/float(c_height))
input_par = input_par > 1.4 ? input_par : (4.0/3.0)
out_width = 704
out_height = Round(float(out_width) / input_par)
hmod = out_height - (floor(out_height / 16 ) * 16)
out_height = (hmod > 4) ? (out_height + (16 - hmod)) : (out_height - hmod)
new_aspect = (float(out_width) / float(out_height)) / fixed_aspect
autocrop(movie,mode=0,wmultof=4,hmultof=4,samples=40,aspect=new_aspect,threshold=34,samplestartframe=0)

TDeint(full=false)
#resizestart

#test4

BicubicResize(out_width,out_height,0,0.50)
#filter2start

#test5

RemoveGrain(mode=2)
function Comptest(clip c, float percent)
{
frange=floor(14./(percent/100.))
Return SelectRangeEvery(c, frange, 14)
}
Comptest(2)
----------------------
Script movie.avs

LoadPlugin("C:\Program Files\AutoMKV\exe\filter\autocrop.dll")
LoadPlugin("C:\Program Files\AutoMKV\exe\filter\blockbuster.dll")
LoadPlugin("C:\Program Files\AutoMKV\exe\filter\cnr2.dll")
LoadPlugin("C:\Program Files\AutoMKV\exe\filter\ColorMatrix.dll")
LoadPlugin("C:\Program Files\AutoMKV\exe\filter\Convolution3D.dll")
LoadPlugin("C:\Program Files\AutoMKV\exe\filter\corrector.dll")
LoadPlugin("C:\Program Files\AutoMKV\exe\filter\DctFilter.dll")
LoadPlugin("C:\Program Files\AutoMKV\exe\filter\Decomb.dll")
LoadPlugin("C:\Program Files\AutoMKV\exe\filter\Deen.dll")
LoadPlugin("C:\Program Files\AutoMKV\exe\filter\degrainmedian.dll")
LoadPlugin("C:\Program Files\AutoMKV\exe\filter\DGDecode.dll")
LoadPlugin("C:\Program Files\AutoMKV\exe\filter\EEDI2.dll")
LoadPlugin("C:\Program Files\AutoMKV\exe\filter\fft3dfilter.dll")
LoadPlugin("C:\Program Files\AutoMKV\exe\filter\FluxSmooth.dll")
LoadPlugin("C:\Program Files\AutoMKV\exe\filter\frfun7.dll")
LoadPlugin("C:\Program Files\AutoMKV\exe\filter\hqdn3d.dll")
LoadPlugin("C:\Program Files\AutoMKV\exe\filter\LeakKernelDeint.dll")
LoadPlugin("C:\Program Files\AutoMKV\exe\filter\MaskTools.dll")
LoadPlugin("C:\Program Files\AutoMKV\exe\filter\medianblur.dll")
LoadPlugin("C:\Program Files\AutoMKV\exe\filter\MipSmooth.dll")
LoadPlugin("C:\Program Files\AutoMKV\exe\filter\mt_masktools.dll")
LoadPlugin("C:\Program Files\AutoMKV\exe\filter\mvtools.dll")
LoadPlugin("C:\Program Files\AutoMKV\exe\filter\NicAudio.dll")
LoadPlugin("C:\Program Files\AutoMKV\exe\filter\RemoveGrain.dll")
LoadPlugin("C:\Program Files\AutoMKV\exe\filter\Repair.dll")
LoadPlugin("C:\Program Files\AutoMKV\exe\filter\SangNom.dll")
LoadPlugin("C:\Program Files\AutoMKV\exe\filter\SimpleResize.dll")
LoadPlugin("C:\Program Files\AutoMKV\exe\filter\TBilateral.dll")
LoadPlugin("C:\Program Files\AutoMKV\exe\filter\TDeint.dll")
LoadPlugin("C:\Program Files\AutoMKV\exe\filter\TIVTC.dll")
LoadPlugin("C:\Program Files\AutoMKV\exe\filter\TomsMoComp.dll")
LoadPlugin("C:\Program Files\AutoMKV\exe\filter\TTempSmooth.dll")
LoadPlugin("C:\Program Files\AutoMKV\exe\filter\UnDot.dll")
LoadPlugin("C:\Program Files\AutoMKV\exe\filter\UnFilter.dll")
LoadPlugin("C:\Program Files\AutoMKV\exe\filter\VSFilter.dll")
#loadpluginstart

#test1

Import("C:\Program Files\AutoMKV\exe\filter\MCBob_v03c.avsi")
Import("C:\Program Files\AutoMKV\exe\filter\mvbob.avsi")
Import("C:\Program Files\AutoMKV\exe\filter\QMF.avsi")
Import("C:\Program Files\AutoMKV\exe\filter\seesaw.avsi")
Import("C:\Program Files\AutoMKV\exe\filter\spresso.avsi")
#importstart

#test2

movie = mpeg2source("E:\Media\temp\movie.d2v")
function getOrder(clip c) {
order = GetParity(c) ? 1 : 0
Return order }
#filter1start

#test3

#cropstart

cropclip = autocrop(movie,mode=0,wmultof=4,hmultof=4,samples=40,aspect=0,threshold=34,samplestartframe=0)
fixed_aspect = 1.066667
c_width = width(cropclip)
c_height = Round(height(cropclip) / fixed_aspect)
input_par = float(float(c_width)/float(c_height))
input_par = input_par > 1.4 ? input_par : (4.0/3.0)
out_width = 704
out_height = Round(float(out_width) / input_par)
hmod = out_height - (floor(out_height / 16 ) * 16)
out_height = (hmod > 4) ? (out_height + (16 - hmod)) : (out_height - hmod)
new_aspect = (float(out_width) / float(out_height)) / fixed_aspect
autocrop(movie,mode=0,wmultof=4,hmultof=4,samples=40,aspect=new_aspect,threshold=34,samplestartframe=0)

TDeint(full=false)
#resizestart

#test4

BicubicResize(out_width,out_height,0,0.50)
#filter2start

#test5

RemoveGrain(mode=2)
----------------------
Script mkvmaudio.avs

LoadPlugin("C:\Program Files\AutoMKV\exe\filter\NicAudio.dll")
NicAC3Source("E:\Media\temp\fixed1.ac3")
EnsureVBRMP3Sync()
ConvertAudioToFloat()
#Applyed STEREO downmixing routines
function stereo(clip a)
{
fl = GetChannel(a, 1)
fr = GetChannel(a, 2)
c = GetChannel(a, 3)
lfe = GetChannel(a, 4)
sl = GetChannel(a, 5)
sr = GetChannel(a, 6)
l_sl = MixAudio(fl, sl, 0.2929, 0.2929)
c_lfe = MixAudio(lfe, c, 0.2071, 0.2071)
r_sr = MixAudio(fr, sr, 0.2929, 0.2929)
l = MixAudio(l_sl, c_lfe, 1.0, 1.0)
r = MixAudio(r_sr, c_lfe, 1.0, 1.0)
Return MergeChannels(l, r).Normalize()
}
#
function original(clip a)
{
Normalize(a)
Return last
}
6==Audiochannels() ? stereo() : original()
----------------------
Script mkvmaudio.bat

"C:\Program Files\AutoMKV\exe\besweet\bepipe.exe" --script "Import(^E:\Media\temp\mkvmaudio.avs^)" | "C:\Program Files\AutoMKV\exe\besweet\neroaacenc.exe" -ignorelength -q 0.35 -if - -of "E:\Media\temp\audio.mp4"
----------------------
Script mkvmaudio2.avs
----------------------
Script mkvmaudio2.bat

These are my settings:
Input Folder = E:\Media\
Output Folder = E:\Media\
Container = MKV
Movie Name = VTS_01_0
Size = 300
Slice = 1
Resizer = 4
Width = Automatic
Set encoding mode = X264
Audio Codec 1 = Nero AAC
Audio Bit 1 = 7
Audio Bitrate 1 = 0.35
Audio Channel 1 = Stereo
Audio Codec 2 = Nero AAC
Audio Bit 2 = 7
Audio Bitrate 2 = 0.35
Audio Channel 2 = Stereo
Encoding Profiles = 10
Bitrate Encoding = 0
Bitrate Value = 700
Delete temporary files = 0
Encrust/Burn Subtitles = 0
Enable Shutdown = 0
Episodic DVD = 1
Force ITU Resizing = 0
Anamorphic Encoding = 0
Filter = RemoveGrain(mode=2)
Enable Last Line AVS Script = 0
Last Line AVS Script =
Deinterlacer = AUTO
Field Order = AUTO
HQ Deinterlacer = 0
Language = eng
Use CRF/CQ for AutoResize = 1
CRF/CQ Value = 19
Use ProjectX for TS files = 0
Use custom X.ini = 0
Use DelayCut = 1
Matrix = NONE
Force PAR in XviD = NONE
Use DirectShowSource = 0
Enable Manual Crop And Resize = 0
Crop Top =
Crop Left =
Crop Bottom =
Crop Right =
Manual Width =
Manual Height =
Audio Track Name 1 =
Audio Track Desc 1 =
Nero Profiles 1 = AUTO
Nero Encoding Mode 1 = Quality
CCT Profiles 1 = AUTO
Channel Options 1 = AUTO
MP3 Settings 1 = ABR
Normalize Audio 1 = 1
Frequency 1 = AUTO
Tempo 1 = NONE
Pitch 1 = NONE
OtherADD 1 =
Audio Track Name 2 =
Audio Track Desc 2 =
Nero Profiles 2 = AUTO
Nero Encoding Mode 2 = Quality
CCT Profiles 2 = AUTO
Channel Options 2 = AUTO
MP3 Settings 2 = ABR
Normalize Audio 2 = 1
Frequency 2 = AUTO
Tempo 2 = NONE
Pitch 2 = NONE
OtherADD 2 =

buzzqw
19th January 2007, 12:25
update 0.70c

www.64k.it/andres/data/a/AutoMKV070c.exe

Changelog

FIXED: If "Film" or "Partly Film" is selected then no analysis is performed against Forced Film (es. if in d2v film >=97% Force Film is applyed, but if i select "Film" or "Partial Film" preset under Deinterlacer no Force film is applyed on d2v, but (for "FILM") tfm(d2v="movie.d2v").tdecimate() )
FIXED: Audio now use channels downmixing options
FIXED: Avisource and DirectShowSource. First mode is AviSource is this is failing AutoMKV will swith to DirectShowSource
FIXED: More robust wmv encoding when input is mpeg4

@dlflannery
if you want to use directshowsource install ffdshow
anyway try this new build :)

@gekan
First of all Welcome to the Forum ! :)

The final size was 285MBs.
well... the reason is this CQ-ASP_Q2_eq(crf).xml in CQ mode the final file size isn't perfect ! (and you got a very good result !) look here (http://forum.doom9.org/showthread.php?t=116773&highlight=dabr) for more info
also look at this
Accepted values are between 298844160 and 317718528 bytes (movie+audio)
Got a file of size: 279713969 bytes + audio size 19428801 bytes (299142784)
In Advanced settings is possible to set the allow undersized and maximun oversized

again look at this (for second encoding)
CRF encoding X264: C:\Program Files\AutoMKV\exe\encoder\x264.exe --pass 1 --crf 21.16 --stats "E:\Media\temp\.stats" --progress --keyint 250 --bframes 3 --qpmin 10 --qpmax 51 --no-psnr --mixed-refs --trellis 1 --ref 3 --filter -2,-1 --direct spatial --vbv-maxrate 25000 --me umh --no-ssim --weightb --b-pyramid --b-rdo --bime --analyse p8x8,b8x8,i4x4,i8x8,p4x4 --8x8dct --threads 3 --output "E:\Media\temp\movie.mp4" "E:\Media\temp\movie.avs"
Accepted values are between 298844160 and 317718528 bytes (movie+audio)
Got a file of size: 268551942 bytes + audio size 17715084 bytes (286267040)
Switching to 2 pass mode
CRF encoding X264: C:\Program Files\AutoMKV\exe\encoder\x264.exe --pass 2 --bitrate 1309 --stats "E:\Media\temp\.stats" --progress --keyint 250 --bframes 3 --qpmin 10 --qpmax 51 --no-psnr --mixed-refs --trellis 1 --ref 3 --filter -2,-1 --direct spatial --vbv-maxrate 25000 --me umh --no-ssim --weightb --b-pyramid --b-rdo --bime --analyse p8x8,b8x8,i4x4,i8x8,p4x4 --8x8dct --threads 3 --output "E:\Media\temp\movie.mp4" "E:\Media\temp\movie.avs"

the CRF encoding got undersized and so AutoMKV switch to 2 pass mode, but since first pass was done in CRF mode, AutoMKV do another pass (the second) !

BHH

gekan
19th January 2007, 13:25
@buzzqw
Thanks a lot for the info.
The quality is good in all cases so I don't really mind about the size difference, but, for my information and because it wouldn't be bad to have all the episodes in the same size, what could I do to have one pass encoding with good quality and standard size?
Keep up the great work! :)

Edit: Btw, I have a minor bug to say. When I save jobs in the queue and exit the app and then restart it later I can only see the name of the job (queue1, queue2 etc) and not all the other columns. Everything works fine, it's just a visual thing.

buzzqw
19th January 2007, 14:34
what could I do to have one pass encoding with good quality and standard size?

encoding in CRF mean "I want a FIXED quality, regardless of final size. Please do your best in one pass, i don't mean size"

so what to do in 1 pass ? this a very good choice, only the 2 pass can lead a better quality at FIXED file size.

looking at your log a see this
Movie Width suggested: 1008 value based on sample size

you know (;)) that AutoMKV has a AutoResize fuction, in your case you are near full quality. This mean that you can put a fixed with of 704 (and so less time to encoding since not do autoresize)
You can try a 1P-Intemediate profile (with a fixed size of 300mb), should be a little faster, don't know about quality but should be equal (or near)

Also in your log i see Processing completed. Type is determined to be partly interlaced. this mean that autodeinterlacer test ISN'T needed. On Advanced setting select "Partly Interlaced" on "Deinterlacer" and in next box select "HYBRID" , again a speed improvment !

BHH

P.S this hints are valid for these encoding ! not for all encoding. Every encoding has own peculiarity ! :)

dlflannery
19th January 2007, 18:51
@dlflannery
if you want to use directshowsource install ffdshow
anyway try this new build

Note: Think I found the problem -- see near end of this post!

On my computer (#1) i already have ffdshow and when I render my AVI in graphEdit or gspot it is using the ffdshow mpeg4 decoder.

Ver. 70c still has problems I get essentially the same result with or without using "Use DirectShowSource". Files size is much too small and mediaInfro reports ~377kbps video bitrate. The duration is clipped from 151 sec to 51 sec and there is no audio. (Same whether done with "Use DirectShowSource.)

The log files are identical for the two cases.


First part of log file:

12:00:11 0.70c - - - - - - - - - - - - - START JOBS - - - - - - - - - - - - - -
12:00:11 Selected Input file: C:\MPEG4_encodes\ffmpeg\BF.avi
12:00:11 Selected Output dir: C:\MPEG4_encodes\ffmpeg\temp\
12:00:11 Selected Final Name: BF
12:00:11 Selected Container type: WMV
12:00:11 Selected Encoder: WMV
12:00:11 Selected Size: 1 CD
12:00:11 Selected Slice: 1
12:00:11 Selected Profile: Zune_1_Pass_Quick.xml
12:00:11 Selected Width: 320
12:00:11 Selected Resizer: SimpleResize (neutral soft)
12:00:11 Selected Filters: NONE
12:00:11 Selected Deinterlacer: NONE
12:00:11 Selected Field Order: AUTO
12:00:11 Enabled CRF/CQ AutoRes at 90 value
12:00:11 Enabled Bitrate encoding with value 628
12:00:11 Track Language 1: BF.avi
12:00:11 Audio Codec 1: WMV
12:00:11 Audio Quality 1: 128
12:00:11 Advanced Audio Settings DUMP Track 1
12:00:11 Movie Title Name:
12:00:11 Audio Track Language:
12:00:11 Audio Track Name:
12:00:11 Nero Option Profiles: AUTO --- Encoding Mode: Quality
12:00:11 CCT Option Profiles: AUTO --- Channel Options: AUTO
12:00:11 Lame Settings: ABR
12:00:11 Audio Normalization: 1
12:00:11 Frequency: AUTO --- Tempo : NONE
12:00:11 Pitch: NONE --- Other Add :
12:00:11 Advanced Audio Settings DUMP Track 2
12:00:11 Audio Track Language:
12:00:11 Audio Track Name:
12:00:11 Nero Option Profiles: AUTO --- Encoding Mode: Quality
12:00:11 CCT Option Profiles: AUTO --- Channel Options: AUTO
12:00:11 Lame Settings: ABR
12:00:11 Audio Normalization: 1
12:00:11 Frequency: AUTO --- Tempo : NONE
12:00:11 Pitch: NONE --- Other Add :
12:00:11 Selected 1' Sub tracks: NONE
12:00:11 Selected 2' Sub tracks: NONE
12:00:11
12:00:18 Number of Frames: 4510
12:00:18 Framerate: 29.970089
12:00:18 Movie lenght in Seconds: 151
12:00:18 Movie Width: 320
12:00:18 Movie Height: 240
12:00:18 WMV CMD: cscript.exe "C:\AutoMKV068\exe\encoder\WMCmd.vbs" -input "C:\MPEG4_encodes\ffmpeg\temp\movie.avs" -output "C:\MPEG4_encodes\ffmpeg\temp\movie.wmv" -v_codec WMV7 -v_mode 0 -v_bitrate 512000 -s_config "C:\MPEG4_encodes\ffmpeg\temp\wmv_crb" -v_bframedist 1 -v_dquantoption 2 -v_lookahead 0 -v_mbmodecost 0 -v_mmatch 0 -v_mslevel 1 -v_msrange 0 -v_mvcost 0 -v_peakbitrate 1500000 -v_bdeltaqp 1 -a_codec WMASTD -a_mode 0 -title "BF" -year 2007 -copyright "Done with AutoMKV! 0.70c" -a_setting 128_48_2
12:01:07 Final Muxed size: 3325824 bytes
12:01:07 Encoding finished: 00:00:56 elapsed time

Note that the file duration and size were determined correctly. I notice the audio sampling rate is set to 48 while this should be 44 for this profile, correct?

I double-clicked the movie.avs file created in the temp directory and it played OK in MPC. Since this is the source file for your WME script encode, I tried using it as the source file in my batch WME script encoding process. It failed with some obsure error code #. By process of elimination I determined that if I commented out the following line of movie.avs:

audio=ConvertAudioToFloat(audio).Normalize()

I could source that modified movie.avs to my batch converter and it worked perfectly!

Could it be the WME encoder doesn't like float audio?

buzzqw
19th January 2007, 19:20
i don't think the problem is float but normalized

please try this build i have only removed the normalize, and report back :thanks:

www.64k.it/andres/data/a/AutoMKV070d.exe

BHH

Unrealbr
19th January 2007, 22:48
Hey buzzqw i'm having a couple of issues, the program is crashing when i try to batch convert 10+ files. :(

buzzqw
20th January 2007, 01:43
ok, before i start batching... is it crashing in the middle , at start, at random queue ?

moreover, what type of encoding ?

BHH

Unrealbr
20th January 2007, 04:11
ok, before i start batching... is it crashing in the middle , at start, at random queue ?

moreover, what type of encoding ?

BHH

Random.

Re-encoding DVIX -> MP4 and MP4 -> MP4, it crashes with any type of encode.

dlflannery
20th January 2007, 04:15
i don't think the problem is float but normalized

please try this build i have only removed the normalize, and report back :thanks:

www.64k.it/andres/data/a/AutoMKV070d.exe

BHH
This version works fine (on Zune Quick 1 Pass, only one I've tried). It works on both computers and with or without "Use DirectShowSource" (now that I have ffdshow on both computers). I watch the WME script encoder command window while it's running and a puzzling thing is, when using DirectShowSource, that on one computer WME never gets the video length. On the faster computer it gets the video length on the second try after the usual warning message. But the encoded video is fine in all cases.

My testing so far has been with only a 2.5 min clip, also. Does it need to be tested with a longer clip to be sure it is really OK?

Now about the GUI, a small issue:
I have saved a configuration with WMV as the container and codec, and AutoMKV comes up that way (of course). However as soon as I load the .avi file, the audio codec choices on both audio tracks go to the four mp3 types (2 AAC, Ogg and Lame). To get them back to WMV I have to go to the Container entry (which already says WMV) and select WMV again. That causes the profile to switch to a different one from what I saved so I have to re-select the profile. It also causes the audio bitrate to change from what I saved so that has to be reset also. I hope that can be fixed. It defeats the advantage of saving the configuration and leads to mistakes by the operator. (As I'm sure you understand!)

Thanks for your efforts! :thanks:

weaver4
20th January 2007, 05:21
Most of the time you will want your output movies to go into the same specific folder. So if you set that folder up and then press the save settings button the output folder is saved. But every time you select a new input file the output folder is changed; and then you have to reset it up.

dlflannery
20th January 2007, 06:19
@buzzqw:
I've tested 0.70d with a 45 min AVI (xvid+mp3) with and without DirectShowSource. All seems OK, although I am puzzed the video bitrate is only 462 kbps while the WME command line specified 500. Is WME9 unable to control the bitrate any better than that on a single-pass CBR encode?

With my batch files this video encodes to 483 kbps video. The bitrate option is 500000 in both your CMD and my batch files. Maybe the autocrop (in AutoMKV but not in my batch process) removes enough information to explain that difference (?). Probably nothing to be concerned about, I suspect.

buzzqw
20th January 2007, 12:19
update www.64k.it/andres/data/a/AutoMKV070e.exe

0.70e
FIXED: Drag&Drop use (thanks to vOjToL)
FIXED: Default WMV profile is now 2_Pass_VBR_Quick
FIXED: Change audio bitrate writing directly into free string would cause a non correct wmv audio encoding parameter
FIXED: On load of saved settings the destination directory no more change accordling to input file directory (thanks to weaver4)


@Unrealbr
i hope i had found the culprit... give me some time :o

@dlflannery
However as soon as I load the .avi file, the audio codec choices on both audio tracks go to the four mp3 types (2 AAC, Ogg and Lame).

fixed !
Also remember that at 320*xxx is easy to saturate... even with bitrate around 500.. anyway in this build i had changed i little bit the way of computing bitrate... report back if better !

@weaver4
FIXED!

@vOjToL
fixed!

BHH

dlflannery
20th January 2007, 15:37
Everything I've "complained" about is fixed! :thanks:

I think I see the change you made in WMV bitrate calculation:
In versions before .70e the video bitrate passed to the WME script was the bitrate entered in the advanced tab ("Specify Bitrate") minus the audio bitrate set on the basic tab. Now it appears audio bitrate is no longer subtracted. I like the new way better. :cool:

buzzqw
20th January 2007, 16:02
@dlflannery
thanks !

about bitrate computing.. not really as you said...

now i take the video bitrate multiply it by 1024 and the subtract audio bitrate multiply by 1000

like 500*1024-96*1000=416000

previusly, as you correctly said was 500*1000-96*1000=404000

BHH

dlflannery
20th January 2007, 16:12
@dlflannery
thanks !

about bitrate computing.. not really as you said...

now i take the video bitrate multiply it by 1024 and the subtract audio bitrate multiply by 1000

like 500*1024-96*1000=416000

previusly, as you correctly said was 500*1000-96*1000=404000

BHH
@buzzqw:
When I enter 128 for audio and 628 for video the WME script option is:

-v_bitrate 641792

I don't think that matches your new calculation (??) I get 515072 using your new calculation.

buzzqw
20th January 2007, 16:16
that's great ! thank dlflannery !

just a typo bug (was video*1024-audio*10)

update the 0.70e, please re download ! the 0.70e

BHH

weaver4
20th January 2007, 23:36
I ran into a problem today encoding a movie into CQ Xvid with Lame MP3. I wish I had more to give you but the error dialog box came up and said it had a problem with audio and did I want to continue. The last thing it said in the log file was:

17:12:48 Encoding E:\Movies\temp\fixed1.ac3 To Mp3 with 5 quality

The batch file is pretty simple saw no problems there.

I tried encoding the movie using: Avi.Net, AutoGK and in Divx with Dr2. No problem with any of these applications.

What do you want me to try?

sjchmura
21st January 2007, 04:23
THose with AC3Filter and "dolby digital live encoding" enabled to output SPDIF crashes automkv.

Would there be a way to either have a checkbox to use the NEXT in line filter that properly decodes 6 channel audio? If not, the only solution is to disable the SPDIF out on AC3Filter while you are encoding .... even if say Nero is the next filter in the priority change

dlflannery
21st January 2007, 05:23
that's great ! thank dlflannery !

just a typo bug (was video*1024-audio*10)

update the 0.70e, please re download ! the 0.70e

BHH
The bitrate settings are fixed as you described in the "new" .70e, thanks. You asked how I liked the change so:

1. The way you have it now is OK with me, although I would suggest calling the check box "Set total bitrate" or "Set overall bitrate" and add to the hint: "Includes audio bitrate".

2. My personal preference would be to make it just the video bitrate and label the check box "Set video bitrate" and add in the hint: "Does not include audio bitrate". Perhaps there are some formats for which this does not work (?).

Either way, but I think it would be good to make it clear to the user whether the bitrate is total or just video.

I've found another problem:
If a file already exists matching the chosen output folder and file name, the encode will appear to run OK but the existing file will not be replaced by the new encoded one. (Perhaps this only applies to WMV output files?) It doesn't matter what size or actual content is in the existing file -- if the name and extension match then it will not be replaced with the new file.

This can cause obvious problems if you are re-encoding the same input file several times to find what settings are best.

A suggestion: check to see if the output file name already exists and delete it (or change the code so it will be overwritten). You could ask the operator if the file is to be replaced.

buzzqw
21st January 2007, 10:21
@weaver4

the problem is repetable with the same source ? if so could you mail me a link where to download a snippet ? (also mail me the log)

@sjchmura
with directshowfilters is impossible to select how the decoder handle the output :( , only with a graphedit files is possible

@dlflannery
2. My personal preference would be to make it just the video bitrate and label the check box "Set video bitrate" and add in the hint: "Does not include audio bitrate". Perhaps there are some formats for which this does not work (?).
i agree with your suggestion. This bitrate value is for video not audio. Thanks for pointing this out, as is now is misleading

If a file already exists matching the chosen output folder and file name, the encode will appear to run OK but the existing file will not be replaced by the new encoded one.

is a problem only with wmv, other container are ok. Fixed in next release

BHH

weaver4
21st January 2007, 14:00
buzzqw: I sent you a personal message with the log file in it; plus a link to the vob file I am having problems with.

buzzqw
21st January 2007, 15:10
thanks, got the link and i also replyed

just an info... looking at log files seems that there is some problem with delaycut..

look at this

07:48:18 Starting fixing audio delay on track number 1
07:48:18 DelayCut CMD: C:\Downloads\AutoMKV\AutoMKV068\exe\dgindex\Delaycut.exe -auto -out "E:\Movies\temp\fixed1.ac3" "E:\Movies\temp\movie T01 2_0ch 192Kbps DELAY 984ms.ac3"
07:48:20 Original 1' Audio Size: 39294720 bytes
07:48:21 Finished fixing audio delay

in 3 seconds delaycut had processed 380mb... strange...

look at "movie T01 2_0ch 192Kbps DELAY 984ms_log.txt" (or similar file) is reported any problem ?

thanks!

BHH

buzzqw
21st January 2007, 16:37
ok, i have downloaded enough... to replicate

is a problem within NicAC3source and this ac3 file ! (using DSS is ok)

i will indagate...

BHH

weaver4
21st January 2007, 19:23
Here is the content from that log file:

[Input info]
Bitrate=192
Actual rate=192.000000
Sampling Frec=48000
TotalFrames=51134
Bytesperframe= 768.0000
Filesize=39271676
FrameDuration= 32.0000
Framespersecond= 31.2500
Duration=00:27:16.319
Channels mode=2/0: L+R
LFE=LFE: Not present
[Target info]
StartFrame=-31
EndFrame=51133
NotFixedDelay= -8.0000
Duration=00:27:17.280
====== PROCESSING LOG ======================
Time 00:27:16.288; Frame#= 51135. Uncomplete frame...SKIPPED
Number of written frames = 51165
Number of Errors= 1

buzzqw
22nd January 2007, 13:11
update !

www.64k.it/andres/data/a/AutoMKV071.exe

0.71
FIXED: Previusly on WMV encoding if user specified the bitrate video this value was used as total bitrate (audio+video bitrate) this is misleading. Now if user check Specify Bitrate the value is used only for video. (suggestion by dlflannery)
FIXED: On WMV encoding if destination file exists automkv will not overwrite, just rename the new file based on date (thanks to dlflannery)
FIXED: Splitting wasn't fuctional (and nobody reported it...)

BHH

buzzqw
22nd January 2007, 16:00
NEWS!

i was able to encode wmv video with 5.1 WMA audio ! YES!!!

just use automkv BUT in ffdshow set audio as this

http://img294.imageshack.us/img294/4194/ffdshow3zr.png (http://imageshack.us)

BHH

dlflannery
23rd January 2007, 02:02
update !
.............
0.71
FIXED: Previusly on WMV encoding if user specified the bitrate video this value was used as total bitrate (audio+video bitrate) this is misleading. Now if user check Specify Bitrate the value is used only for video. (suggestion by dlflannery)
FIXED: On WMV encoding if destination file exists automkv will not overwrite, just rename the new file based on date (thanks to dlflannery)
...........
BHH
Thanks buzzqw! Works as expected.

buzzqw
23rd January 2007, 13:13
New FULL Package ! 0.72

www.64k.it/andres/data/a/AutoMKV072.rar

Changelog

0.72 Full Package
ADDED: ColorMatrix to 2.1, now using threads parameter. Please report back any problems
ADDED: Lot's of new QMFs made by WhOiS (a very big thanks)
ADDED: Loading QMF is now very different. Put your AVS with fuctions (and import of avsi) and the avsi in the \exe\Script folder
EDIT:ADDED In advanced audio setting is now possible to specify audio channel and audio format for wmv video, use only if you know what doing
UPDATE: DgIndex to 1.4.9 beta 12
UPDATE: Matroska to 2.0.0
UPDATE: TIVTC to rel 1.0
UPDATE: X264 to 620
UPDATE: TDeint to 1.1

BHH

weaver4
24th January 2007, 02:25
I was wondering if anyone has compared the quality of XVID encodes using AutoMKV with AutoGK or other tools.

cosmos
24th January 2007, 07:34
@buzzqw: Thanks for continuing to improve this little gem mate! :)

With the 072 release, I've been encoding with the deinterlacer and order both set to AUTO, but I don't see anywhere the deint.log file or any of the related bat/avs scripts to check for interlaced/film material. See below:


08:14:37 0.72 - - - - - - - - - - - - - START JOBS - - - - - - - - - - - - - -
08:14:37 Selected Input file: F:\test\rips\disk1\VTS_02_0.IFO
08:14:37 Selected Output dir: F:\test\finished\temp\
08:14:37 Selected Final Name: Test test
08:14:37 Selected Container type: MKV
08:14:37 Selected Encoder: X264
08:14:37 Selected Size: 171
08:14:37 Selected Slice: 1
08:14:37 Selected Profile: HQ-Slow.xml
08:14:37 Selected Width: 704
08:14:37 Selected Resizer: BicubicResize (neutral=0,0.50)
08:14:37 Selected Filters: RemoveGrain(mode=2)
08:14:37 Selected Deinterlacer: AUTO
08:14:37 Selected Field Order: AUTO
08:14:37 Enabled CRF/CQ AutoRes at 18 value
08:14:37 Track Language 1: English (AC3 2ch, 0xBD 0x80) [0,1,2,3]
08:14:37 Audio Codec 1: Nero AAC
08:14:37 Audio Quality 1: 0.25
08:14:37 Advanced Audio Settings DUMP Track 1
08:14:37 Movie Title Name:
08:14:37 Audio Track Language:
08:14:37 Audio Track Name: English AAC 2.0
08:14:37 Nero Option Profiles: AUTO --- Encoding Mode: Quality
08:14:37 CCT Option Profiles: AUTO --- Channel Options: AUTO
08:14:37 Lame Settings: VBR
08:14:37 Audio Normalization: 0
08:14:37 Frequency: AUTO --- Tempo : NONE
08:14:37 Pitch: NONE --- Other Add :
08:14:37 Advanced Audio Settings DUMP Track 2
08:14:37 Audio Track Language:
08:14:37 Audio Track Name:
08:14:37 Nero Option Profiles: AUTO --- Encoding Mode: Quality
08:14:37 CCT Option Profiles: AUTO --- Channel Options: AUTO
08:14:37 Lame Settings: ABR
08:14:37 Audio Normalization: 1
08:14:37 Frequency: AUTO --- Tempo : NONE
08:14:37 Pitch: NONE --- Other Add :
08:14:37 Selected 1' Sub tracks: NONE
08:14:37 Selected 2' Sub tracks: NONE
08:14:37 Activate Force ITU Resizing
08:14:37
08:14:37 Starting Indexing
08:14:37 Dgindex CMD: E:\AutoMKV\exe\dgindex\dgindex.exe -FO=0 -OM=1 -TN=1 -YR=2 -AIF=[F:\test\rips\disk1\VTS_02_1.vob] -OF=[F:\test\finished\temp\movie] -exit -minimize
08:15:03 Finished indexing
08:15:03 Starting fixing audio delay on track number 1
08:15:03 DelayCut CMD: E:\AutoMKV\exe\dgindex\Delaycut.exe -auto -out "F:\test\finished\temp\fixed1.ac3" "F:\test\finished\temp\movie T01 2_0ch 192Kbps DELAY 0ms.ac3"
08:15:05 Original 1' Audio Size: 65511168 bytes
08:15:05 Finished fixing audio delay
08:15:05 Encoding F:\test\finished\temp\fixed1.ac3 to NeroAAC with 0.25 quality
08:18:51 Encoded 1' Audio Track: 16540690 bytes
08:18:51 ForcedFilm applied: 98.300003% FILM found
08:18:54 Number of Frames: 65446
08:18:54 Framerate: 23.976025
08:18:54 Movie lenght in Seconds: 2730
08:18:54 Movie Width: 720
08:18:54 Movie Height: 480
08:18:54 Starting X264
08:18:54 Command Line 1' Pass X264: E:\AutoMKV\exe\encoder\x264.exe --pass 1 --bitrate 476 --stats "F:\test\finished\temp\.stats" --ref 0 --no-b-adapt --progress --keyint 250 --bframes 3 --qpmin 10 --qpmax 51 --no-psnr --trellis 1 --ref 3 --filter -2,-1 --direct auto --vbv-maxrate 25000 --me umh --no-ssim --merange 12 --weightb --b-pyramid --analyse p8x8,b8x8,i4x4,i8x8,p4x4 --8x8dct --threads 3 --output NUL "F:\test\finished\temp\movie.avs"
08:18:54 Command Line 2' Pass X264: E:\AutoMKV\exe\encoder\x264.exe --pass 2 --bitrate 476 --stats "F:\test\finished\temp\.stats" --progress --keyint 250 --bframes 3 --qpmin 10 --qpmax 51 --no-psnr --trellis 1 --ref 3 --filter -2,-1 --direct auto --vbv-maxrate 25000 --me umh --no-ssim --merange 12 --weightb --b-pyramid --analyse p8x8,b8x8,i4x4,i8x8,p4x4 --8x8dct --threads 3 --output "F:\test\finished\temp\movie.mp4" "F:\test\finished\temp\movie.avs"


movie.avs

LoadPlugin("E:\AutoMKV\exe\filter\autocrop.dll")
LoadPlugin("E:\AutoMKV\exe\filter\blockbuster.dll")
LoadPlugin("E:\AutoMKV\exe\filter\cnr2.dll")
LoadPlugin("E:\AutoMKV\exe\filter\ColorMatrix.dll")
LoadPlugin("E:\AutoMKV\exe\filter\Convolution3D.dll")
LoadPlugin("E:\AutoMKV\exe\filter\corrector.dll")
LoadPlugin("E:\AutoMKV\exe\filter\DctFilter.dll")
LoadPlugin("E:\AutoMKV\exe\filter\Decomb.dll")
LoadPlugin("E:\AutoMKV\exe\filter\Deen.dll")
LoadPlugin("E:\AutoMKV\exe\filter\degrainmedian.dll")
LoadPlugin("E:\AutoMKV\exe\filter\DGDecode.dll")
LoadPlugin("E:\AutoMKV\exe\filter\EEDI2.dll")
LoadPlugin("E:\AutoMKV\exe\filter\fft3dfilter.dll")
LoadPlugin("E:\AutoMKV\exe\filter\FluxSmooth.dll")
LoadPlugin("E:\AutoMKV\exe\filter\frfun7.dll")
LoadPlugin("E:\AutoMKV\exe\filter\hqdn3d.dll")
LoadPlugin("E:\AutoMKV\exe\filter\LeakKernelDeint.dll")
LoadPlugin("E:\AutoMKV\exe\filter\MaskTools.dll")
LoadPlugin("E:\AutoMKV\exe\filter\medianblur.dll")
LoadPlugin("E:\AutoMKV\exe\filter\MipSmooth.dll")
LoadPlugin("E:\AutoMKV\exe\filter\mt_masktools.dll")
LoadPlugin("E:\AutoMKV\exe\filter\mvtools.dll")
LoadPlugin("E:\AutoMKV\exe\filter\NicAudio.dll")
LoadPlugin("E:\AutoMKV\exe\filter\RemoveGrain.dll")
LoadPlugin("E:\AutoMKV\exe\filter\Repair.dll")
LoadPlugin("E:\AutoMKV\exe\filter\SangNom.dll")
LoadPlugin("E:\AutoMKV\exe\filter\SimpleResize.dll")
LoadPlugin("E:\AutoMKV\exe\filter\TBilateral.dll")
LoadPlugin("E:\AutoMKV\exe\filter\TDeint.dll")
LoadPlugin("E:\AutoMKV\exe\filter\TIVTC.dll")
LoadPlugin("E:\AutoMKV\exe\filter\TomsMoComp.dll")
LoadPlugin("E:\AutoMKV\exe\filter\TTempSmooth.dll")
LoadPlugin("E:\AutoMKV\exe\filter\UnDot.dll")
LoadPlugin("E:\AutoMKV\exe\filter\UnFilter.dll")
LoadPlugin("E:\AutoMKV\exe\filter\VSFilter.dll")
#loadpluginstart

#test1

Import("E:\AutoMKV\exe\filter\MCBob_v03c.avsi")
Import("E:\AutoMKV\exe\filter\mvbob.avsi")
Import("E:\AutoMKV\exe\filter\seesaw.avsi")
Import("E:\AutoMKV\exe\filter\spresso.avsi")
#importstart

#test2

movie = mpeg2source("F:\ds9\finished\temp\movie.d2v")
function getOrder(clip c) {
order = GetParity(c) ? 1 : 0
Return order }
#filter1start

#test3

#cropstart

cropclip = autocrop(movie,mode=0,wmultof=4,hmultof=4,samples=40,aspect=0,threshold=34,samplestartframe=0)
fixed_aspect = 0.911600
c_width = width(cropclip)
c_height = Round(height(cropclip) / fixed_aspect)
input_par = float(float(c_width)/float(c_height))
input_par = input_par > 1.4 ? input_par : (4.0/3.0)
out_width = 704
out_height = Round(float(out_width) / input_par)
hmod = out_height - (floor(out_height / 16 ) * 16)
out_height = (hmod > 4) ? (out_height + (16 - hmod)) : (out_height - hmod)
new_aspect = (float(out_width) / float(out_height)) / fixed_aspect
autocrop(movie,mode=0,wmultof=4,hmultof=4,samples=40,aspect=new_aspect,threshold=34,samplestartframe=0)

#resizestart

#test4

BicubicResize(out_width,out_height,0,0.50)
#filter2start

#test5

RemoveGrain(mode=2)


EDIT: xvid 1.1.2 is also installed and on the same setup, AutoMKV's deinterlacing logic worked fine (for previous versions of AutoMKV that is).

buzzqw
24th January 2007, 08:16
@weaver4

the quality should be very similar.

AutoGk is superior for at least two think: it disable bframes on very high compression test (mmm... should be easy to implement...) and select custom matrix.

I can think about these features... but.. i don't know much about compressibility&matrix... i should look around... THANKS for the suggestions ! (i love to make automkv better)

@cosmos
first of all i suppose that encoding is looking good and there's no visual need of deinterlacers ? isn't true ? :)

why am i so sure ?

look at this
08:18:51 ForcedFilm applied: 98.300003% FILM found

since forced film was applyed there is no need to do apply more deinterlacers

please report back if encoding wasn't good !

BHH

cosmos
24th January 2007, 13:16
@cosmos
first of all i suppose that encoding is looking good and there's no visual need of deinterlacers ? isn't true ? :)

why am i so sure ?

look at this
08:18:51 ForcedFilm applied: 98.300003% FILM found

since forced film was applyed there is no need to do apply more deinterlacers

please report back if encoding wasn't good !
Indd it seems ok, thx :)

PS: could you perhaps explain a bit what happened here? Why there was no need to have "tfm(d2v="movie.d2v").tdecimate()" in the movie.avs file? Does it happen automatically?

buzzqw
24th January 2007, 13:52
as you know in d2v if the film % reported, and as stated by varius guides and rules, is over 97% then is safe to use "Force Film" under dgindex options.

Since you have leaved AUTO as denterlacers automkv had analyzed the d2v file and marked is as FILM and so processed the d2v as FORCE FILM was applyed.

If force film is applyed there is no need to reapply tfm(d2v="movie.d2v").tdecimate() since it basically do the same thing (force film) dgindex had done.

The obvius advantage is that encoding time is quiker the cons is that not always movie with 97 or more % of FILM is really film.. (and so is better to leave the hard work to tfm/tdecimate)

So what to do?

Automkv will process in these way (based on deinterlacer selected)
AUTO: applyed force film AND NOT do the deint test
FILM: NO force film is applyed , no deint test is done BUT tfm(d2v="movie.d2v").tdecimate() is applyed

hope to be understud!

BHH

cosmos
24th January 2007, 13:53
Thank you, once more your information is right on spot!!!! :)

AMED
25th January 2007, 05:40
is there any chance of getting a use input folder for output folder check box ?
It used to work this way by default.

buzzqw
25th January 2007, 08:21
is there any chance of getting a use input folder for output folder check box ?
It used to work this way by default.

:confused: sorry pal... but my english isn't enough to understand

do you mean to use input folder as output folder ? ... no i don't think...

BHH

AMED
25th January 2007, 09:38
yeah thats what i mean, maybe it's a bug i have discovered.

it seems to have broken after version 0.70

basically all you need to do is open something in automkv v0.70+, take note of the output folder, now open something from another folder and you'll see that the output folder hasn't changed from when you opened the first file.

e.g.

open a file in C:\videos\ the output folder is C:\videos\ now open a file from C:\monkeys\ the output folder is still C:\videos\

i hope that makes sense :)