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

survivant
7th July 2007, 12:34
07:26:58 0.86d - - - - - - - - - - - - - START JOBS - - - - - - - - - - - - - -
07:26:58 Selected Input file: C:\DVD\encode\D2VAVS\V01000100001002.AVS
07:26:58 Selected Output dir: C:\DVD\encode\automkv\temp\
07:26:58 Selected Final Name: V01000100001002
07:26:58 Selected Container type: MP4
07:26:58 Selected Encoder: X264
07:26:58 Selected Size: 1/4 CD
07:26:58 Selected Slice: 1
07:26:58 Selected Profile: PS3_41.xml
07:26:58 Selected Width: Original
07:26:58 Selected Resizer: NONE
07:26:58 Selected Filters: NONE
07:26:58 Selected Deinterlacer: AUTO
07:26:58 Selected Field Order: AUTO
07:26:58 Enabled CRF/CQ AutoRes at 18 value
07:26:58 Track Language 1: All Audio Tracks
07:26:58 Audio Codec 1: Nero AAC
07:26:58 Audio Quality 1: 0.85
07:26:58 Audio Channel 1: Stereo
07:26:58 Advanced Audio Settings DUMP Track 1
07:26:58 Nero Option Profiles: AUTO --- Encoding Mode: Quality
07:26:58 CCT Option Profiles: AUTO --- Channel Options: AUTO
07:26:58 Lame Settings: ABR
07:26:58 Audio Normalization: 1
07:26:58 Frequency: AUTO --- Tempo : NONE
07:26:58 Pitch: NONE --- Other Add :
07:26:58 Advanced Audio Settings DUMP Track 2
07:26:58 Nero Option Profiles: AUTO --- Encoding Mode: Quality
07:26:58 CCT Option Profiles: AUTO --- Channel Options: AUTO
07:26:58 Lame Settings: ABR
07:26:58 Audio Normalization: 1
07:26:58 Frequency: AUTO --- Tempo : NONE
07:26:58 Pitch: NONE --- Other Add :
07:26:58
07:26:58 Starting fixing all audio files
07:27:07 Number of Frames: 3276
07:27:07 Framerate: 23.976000
07:27:07 Movie length in Seconds: 137
07:27:07 Movie Width/Height: 720/480
07:30:44 Starting X264
07:30:45 Command Line 1' Pass X264: C:\DVD\tools\AutoMKV086\exe\encoder\x264.exe --pass 1 --bitrate 10704 --stats "C:\DVD\encode\automkv\temp\.stats" --ref 1 --no-b-adapt --progress --keyint 300 --bframes 1 --qpmin 10 --qpmax 51 --no-psnr --filter 0,0 --subme 1 --direct auto --vbv-maxrate 14000 --me dia --no-ssim --level 4.1 --no-cabac --analyse none --threads 3 --output NUL "C:\DVD\encode\automkv\temp\movie.avs"
07:30:45 Command Line 2' Pass X264: C:\DVD\tools\AutoMKV086\exe\encoder\x264.exe --pass 2 --bitrate 10704 --stats "C:\DVD\encode\automkv\temp\.stats" --progress --keyint 300 --bframes 1 --qpmin 10 --qpmax 51 --no-psnr --ref 1 --filter 0,0 --direct auto --vbv-maxrate 14000 --me umh --no-ssim --level 4.1 --no-cabac --weightb --b-rdo --bime --analyse p8x8,b8x8,i4x4 --threads 3 --output "C:\DVD\encode\automkv\temp\movie.mp4" "C:\DVD\encode\automkv\temp\movie.avs"
07:30:48 Finished 1' Pass X264
07:30:53 BREAK ! FILE NOT SUPPORTED ! LAST TRY WITH FFMPEG!
07:30:53 Switched to FFmpeg for Video Encoding!
07:30:53 FFmpeg.exe String: "C:\DVD\tools\AutoMKV086\exe\BeSweet\ffmpeg.exe" -i "C:\DVD\encode\D2VAVS\V01000100001002.AVS" -vcodec h264 -bf 3 -b 10704000 -s 720x480 -an -partitions all -deblockalpha -2 -deblockbeta -1 -directpred 2 -refs 6 -threads 0 -flags2 -brdo -wpred -bpyramid -mixed_refs -dct8x8 -pass 1 -r 23.976000 "C:\DVD\encode\automkv\temp\movie.mp4"
07:30:53 FFmpeg.exe String: "C:\DVD\tools\AutoMKV086\exe\BeSweet\ffmpeg.exe" -i "C:\DVD\encode\D2VAVS\V01000100001002.AVS" -vcodec h264 -bf 3 -b 10704000 -s 720x480 -an -partitions all -deblockalpha -2 -deblockbeta -1 -directpred 2 -refs 6 -threads 0 -flags2 -brdo -wpred -bpyramid -mixed_refs -dct8x8 -pass 2 -r 23.976000 "C:\DVD\encode\automkv\temp\movie.mp4"
07:32:22 Fished FFmpeg Encoding!
07:32:23 "C:\DVD\tools\AutoMKV086\exe\matroska\NicMP4Box.exe" -normal-mode -add "C:\DVD\encode\automkv\temp\movie.mp4":par=1.000000 -fps 23.976000 "C:\DVD\encode\automkv\temp\V01000100001002_full.mp4"
07:32:24 Final Muxed size: 13763660 bytes
07:32:24 Encoding finished: 00:01:36 elapsed time
07:32:24 -----------------------------------------------------------------------
07:32:24 Script AutoCrop.log
07:32:24 -----------------------------------------------------------------------
07:32:24 Script Resmovie.avs
07:32:24 -----------------------------------------------------------------------
07:32:24 Script movie.avs
07:32:24 -----------------------------------------------------------------------
07:32:24 Script mkvmaudio.avs
07:32:24 -----------------------------------------------------------------------
07:32:24 Script mkvmaudio.bat
07:32:24 -----------------------------------------------------------------------
07:32:24 Script mkvmaudio2.avs
07:32:24 -----------------------------------------------------------------------
07:32:24 Script mkvmaudio2.bat
07:32:24
07:32:24 - - - - - - - - - - - - FINISHED JOBS - - - - - - - - - - - - - - - - -

2007-07-07 07:32 <REP> .
2007-07-07 07:32 <REP> ..
2007-07-07 07:27 0 AutoCrop.log
2007-07-07 07:27 258 createautodeintmovie.avs
2007-07-07 07:27 590 createautodeintmovie.avs.bautodeint_temp.avs

2007-07-07 07:28 29 167 createautodeintmovie.avs.bautodeint_temp.dat
a
2007-07-07 07:27 156 deint.bat
2007-07-07 07:28 5 417 deint.log
2007-07-07 07:27 110 deint.vbs
2007-07-07 07:26 0 dummy.log
2007-07-07 07:30 0 ffmpeg2pass-0.log
2007-07-07 07:30 142 ffmpeglenght.bat
2007-07-07 07:30 117 ffmpeglenght.vbs
2007-07-07 07:30 672 ffmpeg_2pass.bat
2007-07-07 07:30 628 frame.txt
2007-07-07 07:28 180 hgavs.bat
2007-07-07 07:28 110 hgavs.vbs
2007-07-07 07:30 0 hgavsmovie.avs
2007-07-07 07:28 0 hgmovie.avs
2007-07-07 07:30 0 movie.avs
2007-07-07 07:32 13 764 435 movie.mp4
2007-07-07 07:26 257 movielenght.bat
2007-07-07 07:27 53 531 movielenght.mp4
2007-07-07 07:26 116 movielenght.vbs
2007-07-07 07:32 196 muxing.bat
2007-07-07 07:28 662 par.txt
2007-07-07 07:28 <REP> temp
2007-07-07 07:26 340 time.avs
2007-07-07 07:30 386 x264cmdq_pass1.bat
2007-07-07 07:30 433 x264cmdq_pass2.bat
2007-07-07 07:31 23 925 x264_2pass.log
28 fichier(s) 13 881 828 octets

survivant
7th July 2007, 13:09
here for the QMtrim.exe

This window appear 4 times.

QMtrim.exe - Erreur d'application
L'instruction à "0x004051f8" emploie l'adresse mémoire "0x00000008". Le mémoire ne peut pas être "read".

Cliquez sur OK pour terminer le programme




08:03:45 0.86d - - - - - - - - - - - - - START JOBS - - - - - - - - - - - - - -
08:03:45 Selected Input file: C:\DVD\encode\D2VAVS\V01000100001002.AVS
08:03:45 Selected Output dir: C:\DVD\tools\AutoMKV086\temp\
08:03:45 Selected Final Name: qmtrim
08:03:45 Selected Container type: MP4
08:03:45 Selected Encoder: X264
08:03:45 Selected Size: 1/4 CD
08:03:45 Selected Slice: 1
08:03:45 Selected Profile: PS3_41.xml
08:03:45 Selected Width: Original
08:03:45 Selected Resizer: NONE
08:03:45 Selected Filters: NONE
08:03:45 Selected Deinterlacer: AUTO
08:03:45 Selected Field Order: AUTO
08:03:45 Enabled CRF/CQ AutoRes at 18 value
08:03:45 Track Language 1: All Audio Tracks
08:03:45 Audio Codec 1: Nero AAC
08:03:45 Audio Quality 1: 0.85
08:03:45 Audio Channel 1: Stereo
08:03:45 Advanced Audio Settings DUMP Track 1
08:03:45 Nero Option Profiles: AUTO --- Encoding Mode: Quality
08:03:45 CCT Option Profiles: AUTO --- Channel Options: AUTO
08:03:45 Lame Settings: ABR
08:03:45 Audio Normalization: 1
08:03:45 Frequency: AUTO --- Tempo : NONE
08:03:46 Pitch: NONE --- Other Add :
08:03:46 Advanced Audio Settings DUMP Track 2
08:03:46 Nero Option Profiles: AUTO --- Encoding Mode: Quality
08:03:46 CCT Option Profiles: AUTO --- Channel Options: AUTO
08:03:46 Lame Settings: ABR
08:03:46 Audio Normalization: 1
08:03:46 Frequency: AUTO --- Tempo : NONE
08:03:46 Pitch: NONE --- Other Add :
08:03:46
08:03:46 Starting fixing all audio files
08:03:52 Number of Frames: 3276
08:03:52 Framerate: 23.976000
08:03:52 Movie length in Seconds: 137
08:03:53 Movie Width/Height: 720/480
08:07:51 Running QMtrim pass: UnSaw=50, Threshold=AUTO, Script LVL=Anime_Denoise.lvl
08:09:56 Finish QMtrim pass
08:09:59 Starting X264

buzzqw
7th July 2007, 13:18
open the C:\DVD\encode\automkv\temp\movie.avs in virtualdub... any error ?

BHH

Darksoul71
7th July 2007, 15:33
oops, sorry, wrong thread... :(

g_aleph_r
7th July 2007, 17:28
I'm here again.
@ buzzqw: I tried with command line and everything worked fine except for two things:
1. automkv create a name on it's own for the destination file (some number sequence)
2. (Probably my fault) But I can't do mono aac encodes, is it possible? either in command line or with gui it resets the channel to stereo

survivant
7th July 2007, 17:50
@ buzzqw

I tried.. I got this message :

Avisynth open failure :

There is no function named : "DCTfilter" line 8



Import("C:\DVD\encode\D2VAVS\V01000100001002.AVS")
C0 = Spline16Resize(720,480).deen("c3d",1,1,2,2)
C1 = BicubicResize(720,480,0.1,0.45).deen("c3d",1,3,3,2)
C2 = BicubicResize(720,480,0.2,0.4).deen("c3d",1,3,4,2)
C3 = BicubicResize(720,480,0.3,0.35).deen("c3d",1,4,4,2)
C4 = BicubicResize(720,480,0.334,0.333).deen("c3d",1,4,5,1)
C5 = BicubicResize(720,480,0.4,0.3).deen("c3d",1,5,5,1)
C6 = BicubicResize(720,480,0.5,0.25).deen("c3d",1,5,6,1).DCTFilter(1,1,1,1,1,1,1,.5)
C7 = BilinearResize(720,480).deen("c3d",1,6,7,1).DCTFilter(1,1,1,1,1,1,.5,0)

survivant
7th July 2007, 17:57
my tests are completed for the 4.1 HP profile.

here the command line (that's cool.. the PS3 really support all the 4.1 settings.. the previous firmware only support few of them)

Can you update the ps3_4.1 profile in automkv ?

--pass 3 --bitrate 4000 --stats ".stats" --level 4.1 --ref 3 --mixed-refs --bframes 3 --b-pyramid --bime --weightb --direct auto --trellis 1 --analyse p8x8,b8x8,i4x4,i8x8 --8x8dct --threads auto --thread-input --progress --no-psnr --no-ssim --output "C:\DVD\encode\megui\output.mp4" "C:\DVD\encode\D2VAVS\V01000100001002.AVS"

buzzqw
7th July 2007, 19:36
@g_aleph_r
1. automkv create a name on it's own for the destination file (some number sequence)

attention! automkv will produce the strange name when found a file with already that name. Since automkv is a kind software it will not overwrite the file but create a file(name) based on time and select final name

2. (Probably my fault) But I can't do mono aac encodes, is it possible? either in command line or with gui it resets the channel to stereo

open your automkv.ini and search for
Audio Channel 1 = Mono
is mono or stereo in your file ?

@survivant
... you should have in \exe\filter folder a DctFilter.dll (or is here http://www.64k.it/andres/data/avisynth/dctfilter_25_dll_20030221.zip )

thanks also for the ps3 profile! i will update in next full package!

BHH

survivant
7th July 2007, 20:09
@g_aleph_r


@survivant
... you should have in \exe\filter folder a DctFilter.dll (or is here http://www.64k.it/andres/data/avisynth/dctfilter_25_dll_20030221.zip )

thanks also for the ps3 profile! i will update in next full package!

BHH

thansk for the profile update

and Yes I have DctFilter.dll in automkv\exe\Filter

look like maybe virtualdubmod don't have the \exe\Filter in his path

survivant
7th July 2007, 20:15
I put all the dll from the Filter folder into my avisynth\plugins\

and Now I obtain in VirtualbudMod :

Avisynth open failure :
The script's return value was not a video clip

buzzqw
7th July 2007, 21:33
... the problem is with avs input file

with avs input automkv (as reported in wiki) will not put any filter/resize.. is an error that hg avs or qmtrim are enabled with avs input file

try pointing automkv to d2v file (those referenced by avs file)

BHH

survivant
8th July 2007, 00:57
... the problem is with avs input file

try pointing automkv to d2v file (those referenced by avs file)

BHH

I use chopperXp to extract a smaller vob. I import it in automkv. I set the DeInterlacer to AUTO
Field Order AUTO
Checked HQ Deint.

when I start the encoding, a popup appear telling to use d2vFix.

here the log from deint.log


BAutoDeint [info]: Number of sections of type `film': 12
BAutoDeint [info]: There are 0 sections with 0 frames moving.
BAutoDeint [info]: There are 14 sections with 1 frames moving.
BAutoDeint [info]: There are 3 sections with 2 frames moving.
BAutoDeint [info]: There are 10 sections with 3 frames moving.
BAutoDeint [info]: There are 6 sections with 4 frames moving.
BAutoDeint [info]: There are 14 sections with 5 frames moving.

Processing completed. Type is determined to be unknown.

the result is a movie Interlaced :(

for the info
the vob is : Interlaced Top Field First

survivant
8th July 2007, 02:55
@buzzqw

QMtrim-v0.6b1 been release

survivant
8th July 2007, 03:32
Why the encoder ffmpeg is used instead of x264 ?

22:11:27 Movie length in Seconds: 31
22:11:27 Movie Width/Height: 720/480
22:11:27 DgIndex AR: 16:9
22:11:27 Running QMtrim pass: UnSaw=50, Threshold=AUTO, Script LVL=Anime_Denoise.lvl
22:14:37 Finish QMtrim pass
22:14:38 Starting X264
22:14:38 Command Line 1' Pass X264: C:\DVD\tools\AutoMKV086\exe\encoder\x264.exe --pass 1 --bitrate 47307 --stats "C:\DVD\encode\automkv\temp\.stats" --ref 1 --no-b-adapt --progress --keyint 300 --bframes 1 --qpmin 10 --qpmax 51 --no-psnr --filter 0,0 --subme 1 --direct auto --vbv-maxrate 14000 --me dia --no-ssim --level 4.1 --no-cabac --analyse none --threads 3 --output NUL "C:\DVD\encode\automkv\temp\movie.avs"
22:14:38 Command Line 2' Pass X264: C:\DVD\tools\AutoMKV086\exe\encoder\x264.exe --pass 2 --bitrate 47307 --stats "C:\DVD\encode\automkv\temp\.stats" --progress --keyint 300 --bframes 1 --qpmin 10 --qpmax 51 --no-psnr --ref 1 --filter 0,0 --direct auto --vbv-maxrate 14000 --me umh --no-ssim --level 4.1 --no-cabac --weightb --b-rdo --bime --analyse p8x8,b8x8,i4x4 --threads 3 --output "C:\DVD\encode\automkv\temp\movie.mp4" "C:\DVD\encode\automkv\temp\movie.avs"
22:14:47 Finished 1' Pass X264
22:14:58 BREAK ! FILE NOT SUPPORTED ! LAST TRY WITH FFMPEG!
22:14:58 Switched to FFmpeg for Video Encoding!
22:14:58 FFmpeg.exe String: "C:\DVD\tools\AutoMKV086\exe\BeSweet\ffmpeg.exe" -i "C:\DVD\done\intro.vob" -vcodec h264 -bf 3 -b 47307000 -s 720x480 -deinterlace -an -partitions all -deblockalpha -2 -deblockbeta -1 -directpred 2 -refs 6 -threads 0 -flags2 -brdo -wpred -bpyramid -mixed_refs -dct8x8 -pass 1 -r 29.970 "C:\DVD\encode\automkv\temp\movie.mp4"
22:14:58 FFmpeg.exe String: "C:\DVD\tools\AutoMKV086\exe\BeSweet\ffmpeg.exe" -i "C:\DVD\done\intro.vob" -vcodec h264 -bf 3 -b 47307000 -s 720x480 -deinterlace -an -partitions all -deblockalpha -2 -deblockbeta -1 -directpred 2 -refs 6 -threads 0 -flags2 -brdo -wpred -bpyramid -mixed_refs -dct8x8 -pass 2 -r 29.970 "C:\DVD\encode\automkv\temp\movie.mp4"

g_aleph_r
8th July 2007, 07:27
@g_aleph_r


attention! automkv will produce the strange name when found a file with already that name. Since automkv is a kind software it will not overwrite the file but create a file(name) based on time and select final name
NIce feature! but when I create a batch it is supposed to save the file with the same name of the imput and a different extension but it doesn't: in the automkv.ini the line "movie name =" is not updated with the imput file name.
In other words I don't know how to set an output file name in batch mode without editing manually the ini every time.



open your automkv.ini and search for
Audio Channel 1 = Mono
is mono or stereo in your file ?
It is Mono, I thought it was a aac limitation

buzzqw
8th July 2007, 08:26
@survivant


I use chopperXp to extract a smaller vob

the analysis works better on long sample.. more shorter is more probably the analysis is incorrect

BUT if you know that your movie is Interlaced TFF, you can set this info in deinterlacer box, in that way automkv will not do the deinterlcer test but will apply directly the deinterlace!

Why the encoder ffmpeg is used instead of x264 ?

ffmpeg is used whenever x264 is unable to process the script

(this is usually due to some weird filter...) , again open movie.avs in virtualdub and spot the error

@g_aleph_r
but when I create a batch it is supposed to save the file with the same name of the imput and a different extension but it doesn't

Thanks! fixed in next update!

It is Mono, I thought it was a aac limitation
open the mkvmaudio.avs is ConvertToMono() present ?
also... just try another encoding (same source) with Stereo.. and look at file size.. the Mono should be smaller then Stereo encoding..

BHH

mevensson
8th July 2007, 10:32
When I select a .mkv file as input it's not possible to select "Copy Original" as audio codec like it is with .vob or .ts files.

I miss that functionality as I have lots of DVD backups with MPEG2 video and AC3 audio and I would like to reencode the video to h264 to save space but keep the AC3 audio.

I know I can just reencode the video and manually mux the audio but it would make my life easier if AutoMKV supported it directly.

Anyway thansk for a great program.

survivant
8th July 2007, 13:54
@survivant


ffmpeg is used whenever x264 is unable to process the script

(this is usually due to some weird filter...) , again open movie.avs in virtualdub and spot the error

BHH

I found the problem.. Automkv create the movie.avs file... BUT it didn't have the line


TEST 5 in movie.avs withou QMtrim (the encoding works with x264)

#test5

return last

wwith QMtrim (x264 failed.. and not able to open it with virtualdubmod, but don't give speciifc error)

#test5

C0 = Spline16Resize(720,480).deen("c3d",1,1,2,2)
C1 = BicubicResize(720,480,0.1,0.45).deen("c3d",1,3,3,2)
C2 = BicubicResize(720,480,0.2,0.4).deen("c3d",1,3,4,2)
C3 = BicubicResize(720,480,0.3,0.35).deen("c3d",1,4,4,2)
C4 = BicubicResize(720,480,0.334,0.333).deen("c3d",1,4,5,1)
C5 = BicubicResize(720,480,0.4,0.3).deen("c3d",1,5,5,1)
C6 = BicubicResize(720,480,0.5,0.25).deen("c3d",1,5,6,1).DCTFilter(1,1,1,1,1,1,1,.5)
C7 = BilinearResize(720,480).deen("c3d",1,6,7,1).DCTFilter(1,1,1,1,1,1,.5,0)



I try running the x264pass in command prompt and I obtian this

C:\DVD\encode\automkv\temp>x264cmdq_pass1.bat

C:\DVD\encode\automkv\temp>"C:\DVD\tools\AutoMKV086\exe\encoder\x264.exe" --pas
s 1 --bitrate 47307 --stats "C:\DVD\encode\automkv\temp\.stats" --ref 1 --no-b-a
dapt --progress --keyint 300 --bframes 1 --qpmin 10 --qpmax 51 --no-psnr --filte
r 0,0 --subme 1 --direct auto --vbv-maxrate 14000 --me dia --no-ssim --level 4.1
--no-cabac --analyse none --threads 3 --output NUL "C:\DVD\encode\automkv\temp
\movie.avs"
avis [error]: unsupported input format (DIB )
x264 [error]: could not open input file 'C:\DVD\encode\automkv\temp\movie.avs'

C:\DVD\encode\automkv\temp>


I had the add ConvertToYV12() in the bottow of the script.

My input file source was an .vob. AutoMkv shouldn't check in the source is in YV12, if I came from .vob ?

and why it's work when I not using QMtrim ?

buzzqw
8th July 2007, 14:40
@mevensson

as stated in wiki , automkv isn't able to demux audio from mkv,avi,ogm,mp4... only from mpeg2 (vob, ts,pvr...)

but.. i am NOW working on it (i hope better news for 0.87)

survivant

i will retry to let you understand

with avs input automkv (as reported in wiki) will not put any filter/resize.. is an error that hg avs or qmtrim are enabled with avs input file

automkv assume that avs as input file are already fully compliant and ready to encode

My input file source was an .vob. AutoMkv shouldn't check in the source is in YV12, if I came from .vob
no isn't need to check since dgdecode output yv12 already

please post your movie.avs

BHH

survivant
8th July 2007, 14:43
LoadPlugin("C:\DVD\tools\AutoMKV086\exe\filter\AddGrain.dll")
LoadPlugin("C:\DVD\tools\AutoMKV086\exe\filter\autocrop.dll")
LoadPlugin("C:\DVD\tools\AutoMKV086\exe\filter\aWarpSharp(Pruned).dll")
LoadPlugin("C:\DVD\tools\AutoMKV086\exe\filter\blockbuster.dll")
LoadPlugin("C:\DVD\tools\AutoMKV086\exe\filter\cnr2.dll")
LoadPlugin("C:\DVD\tools\AutoMKV086\exe\filter\ColorMatrix.dll")
LoadPlugin("C:\DVD\tools\AutoMKV086\exe\filter\Convolution3D.dll")
LoadPlugin("C:\DVD\tools\AutoMKV086\exe\filter\corrector.dll")
LoadPlugin("C:\DVD\tools\AutoMKV086\exe\filter\DctFilter.dll")
LoadPlugin("C:\DVD\tools\AutoMKV086\exe\filter\Decomb.dll")
LoadPlugin("C:\DVD\tools\AutoMKV086\exe\filter\Deen.dll")
LoadPlugin("C:\DVD\tools\AutoMKV086\exe\filter\degrainmedian.dll")
LoadPlugin("C:\DVD\tools\AutoMKV086\exe\filter\DGDecode.dll")
LoadPlugin("C:\DVD\tools\AutoMKV086\exe\filter\EEDI2.dll")
LoadPlugin("C:\DVD\tools\AutoMKV086\exe\filter\FFT3DFilter.dll")
LoadPlugin("C:\DVD\tools\AutoMKV086\exe\filter\FluxSmooth.dll")
LoadPlugin("C:\DVD\tools\AutoMKV086\exe\filter\frfun7.dll")
LoadPlugin("C:\DVD\tools\AutoMKV086\exe\filter\hqdn3d.dll")
LoadPlugin("C:\DVD\tools\AutoMKV086\exe\filter\LeakKernelDeint.dll")
LoadPlugin("C:\DVD\tools\AutoMKV086\exe\filter\MaskTools.dll")
LoadPlugin("C:\DVD\tools\AutoMKV086\exe\filter\medianblur.dll")
LoadPlugin("C:\DVD\tools\AutoMKV086\exe\filter\MipSmooth.dll")
LoadPlugin("C:\DVD\tools\AutoMKV086\exe\filter\MSharpen.dll")
LoadPlugin("C:\DVD\tools\AutoMKV086\exe\filter\mt_masktools.dll")
LoadPlugin("C:\DVD\tools\AutoMKV086\exe\filter\mvtools.dll")
LoadPlugin("C:\DVD\tools\AutoMKV086\exe\filter\NicAudio.dll")
LoadPlugin("C:\DVD\tools\AutoMKV086\exe\filter\RemoveGrainS.dll")
LoadPlugin("C:\DVD\tools\AutoMKV086\exe\filter\RepairS.dll")
LoadPlugin("C:\DVD\tools\AutoMKV086\exe\filter\SangNom.dll")
LoadPlugin("C:\DVD\tools\AutoMKV086\exe\filter\SimpleResize.dll")
LoadPlugin("C:\DVD\tools\AutoMKV086\exe\filter\SoundOut.dll")
LoadPlugin("C:\DVD\tools\AutoMKV086\exe\filter\TBilateral.dll")
LoadPlugin("C:\DVD\tools\AutoMKV086\exe\filter\TDeint.dll")
LoadPlugin("C:\DVD\tools\AutoMKV086\exe\filter\TIVTC.dll")
LoadPlugin("C:\DVD\tools\AutoMKV086\exe\filter\TomsMoComp.dll")
LoadPlugin("C:\DVD\tools\AutoMKV086\exe\filter\TTempSmooth.dll")
LoadPlugin("C:\DVD\tools\AutoMKV086\exe\filter\UnDot.dll")
LoadPlugin("C:\DVD\tools\AutoMKV086\exe\filter\UnFilter.dll")
LoadPlugin("C:\DVD\tools\AutoMKV086\exe\filter\VSFilter.dll")
LoadPlugin("C:\DVD\tools\AutoMKV086\exe\filter\warpsharp.dll")
#loadpluginstart

#test1

Import("C:\DVD\tools\AutoMKV086\exe\filter\BlindDeHalo3_mt2.avsi")
Import("C:\DVD\tools\AutoMKV086\exe\filter\FastLineDarkenMOD.avsi")
Import("C:\DVD\tools\AutoMKV086\exe\filter\HybridFuPP.avsi")
Import("C:\DVD\tools\AutoMKV086\exe\filter\LanczosPlus.avsi")
Import("C:\DVD\tools\AutoMKV086\exe\filter\Lem.avsi")
Import("C:\DVD\tools\AutoMKV086\exe\filter\LimitedSharpenFaster.avsi")
Import("C:\DVD\tools\AutoMKV086\exe\filter\MCBob_v03c.avsi")
Import("C:\DVD\tools\AutoMKV086\exe\filter\mvbob.avsi")
Import("C:\DVD\tools\AutoMKV086\exe\filter\seesaw.avsi")
Import("C:\DVD\tools\AutoMKV086\exe\filter\spresso.avsi")
#importstart

#test2

movie = mpeg2source("C:\DVD\encode\automkv\temp\movie.d2v",info=3)
function getOrder(clip c) {
order = GetParity(c) ? 1 : 0
Return order }
#filter1start

#test3

movie = ColorMatrix(movie,mode="Rec.709->Rec.601",hints=true,threads=0)
movie = Tdeint(movie,order=1)
#resizestart

#test4

last = movie
#filter2start

#test5

C0 = Spline16Resize(720,480).deen("c3d",1,1,2,2)
C1 = BicubicResize(720,480,0.1,0.45).deen("c3d",1,3,3,2)
C2 = BicubicResize(720,480,0.2,0.4).deen("c3d",1,3,4,2)
C3 = BicubicResize(720,480,0.3,0.35).deen("c3d",1,4,4,2)
C4 = BicubicResize(720,480,0.334,0.333).deen("c3d",1,4,5,1)
C5 = BicubicResize(720,480,0.4,0.3).deen("c3d",1,5,5,1)
C6 = BicubicResize(720,480,0.5,0.25).deen("c3d",1,5,6,1).DCTFilter(1,1,1,1,1,1,1,.5)
C7 = BilinearResize(720,480).deen("c3d",1,6,7,1).DCTFilter(1,1,1,1,1,1,.5,0)

buzzqw
8th July 2007, 16:03
i finally done the audio copy from NOT mpeg2 file!!! (like avi/mp4/mkv/ogm...)

i will do some more test.. but i haven't a lot of sample (fell free to post link to freely avaiable video to test)

@survivant

look in \temp folder is present a statfile.txt, t.txt and QMtrim.avs ? post these file (no need for all statfile.txt)

BHH

survivant
8th July 2007, 16:03
What is the usage of the stat file of qmtrim ?

QMwritefile("C:\DVD\encode\automkv\temp\statfile.txt")

I saw in the log that qmtrim is done before the x264 encoding.. and same to be reuse after that ?

09:48:17 Running QMtrim pass: UnSaw=50, Threshold=AUTO, Script LVL=Light_All_around_Denoise.lvl
09:53:46 Finish QMtrim pass

What I'm trying to say, is how can I use the script qmtrim if I encode manually ? or running the .bat generated my automkv manually.

I'm trying to compare the result of automkv and megui(with all the 4.1 options), but in megui I'm still obtaning a 17 megs video and automkv is 30. It's the same bitrate pass to x264. I don't understand why. That why I'm trying to modify the avs into megui to compare. I'm able to add convolution3d now I'm trying to find document about qmtrim or hgavs but I found nothing interesting on goole.

survivant
8th July 2007, 16:11
qmytim.avs
LoadPlugin("C:\DVD\tools\AutoMKV086\exe\filter\AddGrain.dll")
LoadPlugin("C:\DVD\tools\AutoMKV086\exe\filter\autocrop.dll")
LoadPlugin("C:\DVD\tools\AutoMKV086\exe\filter\aWarpSharp(Pruned).dll")
LoadPlugin("C:\DVD\tools\AutoMKV086\exe\filter\blockbuster.dll")
LoadPlugin("C:\DVD\tools\AutoMKV086\exe\filter\cnr2.dll")
LoadPlugin("C:\DVD\tools\AutoMKV086\exe\filter\ColorMatrix.dll")
LoadPlugin("C:\DVD\tools\AutoMKV086\exe\filter\Convolution3D.dll")
LoadPlugin("C:\DVD\tools\AutoMKV086\exe\filter\corrector.dll")
LoadPlugin("C:\DVD\tools\AutoMKV086\exe\filter\DctFilter.dll")
LoadPlugin("C:\DVD\tools\AutoMKV086\exe\filter\Decomb.dll")
LoadPlugin("C:\DVD\tools\AutoMKV086\exe\filter\Deen.dll")
LoadPlugin("C:\DVD\tools\AutoMKV086\exe\filter\degrainmedian.dll")
LoadPlugin("C:\DVD\tools\AutoMKV086\exe\filter\DGDecode.dll")
LoadPlugin("C:\DVD\tools\AutoMKV086\exe\filter\EEDI2.dll")
LoadPlugin("C:\DVD\tools\AutoMKV086\exe\filter\FFT3DFilter.dll")
LoadPlugin("C:\DVD\tools\AutoMKV086\exe\filter\FluxSmooth.dll")
LoadPlugin("C:\DVD\tools\AutoMKV086\exe\filter\frfun7.dll")
LoadPlugin("C:\DVD\tools\AutoMKV086\exe\filter\hqdn3d.dll")
LoadPlugin("C:\DVD\tools\AutoMKV086\exe\filter\LeakKernelDeint.dll")
LoadPlugin("C:\DVD\tools\AutoMKV086\exe\filter\MaskTools.dll")
LoadPlugin("C:\DVD\tools\AutoMKV086\exe\filter\medianblur.dll")
LoadPlugin("C:\DVD\tools\AutoMKV086\exe\filter\MipSmooth.dll")
LoadPlugin("C:\DVD\tools\AutoMKV086\exe\filter\MSharpen.dll")
LoadPlugin("C:\DVD\tools\AutoMKV086\exe\filter\mt_masktools.dll")
LoadPlugin("C:\DVD\tools\AutoMKV086\exe\filter\mvtools.dll")
LoadPlugin("C:\DVD\tools\AutoMKV086\exe\filter\NicAudio.dll")
LoadPlugin("C:\DVD\tools\AutoMKV086\exe\filter\RemoveGrainS.dll")
LoadPlugin("C:\DVD\tools\AutoMKV086\exe\filter\RepairS.dll")
LoadPlugin("C:\DVD\tools\AutoMKV086\exe\filter\SangNom.dll")
LoadPlugin("C:\DVD\tools\AutoMKV086\exe\filter\SimpleResize.dll")
LoadPlugin("C:\DVD\tools\AutoMKV086\exe\filter\SoundOut.dll")
LoadPlugin("C:\DVD\tools\AutoMKV086\exe\filter\TBilateral.dll")
LoadPlugin("C:\DVD\tools\AutoMKV086\exe\filter\TDeint.dll")
LoadPlugin("C:\DVD\tools\AutoMKV086\exe\filter\TIVTC.dll")
LoadPlugin("C:\DVD\tools\AutoMKV086\exe\filter\TomsMoComp.dll")
LoadPlugin("C:\DVD\tools\AutoMKV086\exe\filter\TTempSmooth.dll")
LoadPlugin("C:\DVD\tools\AutoMKV086\exe\filter\UnDot.dll")
LoadPlugin("C:\DVD\tools\AutoMKV086\exe\filter\UnFilter.dll")
LoadPlugin("C:\DVD\tools\AutoMKV086\exe\filter\VSFilter.dll")
LoadPlugin("C:\DVD\tools\AutoMKV086\exe\filter\warpsharp.dll")
#loadpluginstart

#test1

Import("C:\DVD\tools\AutoMKV086\exe\filter\BlindDeHalo3_mt2.avsi")
Import("C:\DVD\tools\AutoMKV086\exe\filter\FastLineDarkenMOD.avsi")
Import("C:\DVD\tools\AutoMKV086\exe\filter\HybridFuPP.avsi")
Import("C:\DVD\tools\AutoMKV086\exe\filter\LanczosPlus.avsi")
Import("C:\DVD\tools\AutoMKV086\exe\filter\Lem.avsi")
Import("C:\DVD\tools\AutoMKV086\exe\filter\LimitedSharpenFaster.avsi")
Import("C:\DVD\tools\AutoMKV086\exe\filter\MCBob_v03c.avsi")
Import("C:\DVD\tools\AutoMKV086\exe\filter\mvbob.avsi")
Import("C:\DVD\tools\AutoMKV086\exe\filter\seesaw.avsi")
Import("C:\DVD\tools\AutoMKV086\exe\filter\spresso.avsi")
#importstart

#test2

movie = mpeg2source("C:\DVD\encode\automkv\temp\movie.d2v",info=3)
function getOrder(clip c) {
order = GetParity(c) ? 1 : 0
Return order }
#filter1start

#test3

movie = ColorMatrix(movie,mode="Rec.709->Rec.601",hints=true,threads=0)
#resizestart

#test4

last = movie
#filter2start

#test5

Convolution3d (preset="animeHQ")
Function QMstats(clip c, string "statfile")
{
Global QMclip = c
Global QMstatfile = statfile
# v = c.MVAnalyse(isb=true,delta=1,idx=3,truemotion=true,sharp=1)
V = c.MVAnalyse(blksize=4,pel=2,search=3,isb=true,idx=3,truemotion=true,sharp=2)
c = c.MVMask(V)
c = ScriptClip(c, "WriteFile(QMclip, QMstatfile, String(current_frame), Chr(34)+Chr(32)+Chr(34), String(AverageLuma))")
Return c
}
Function QMAnalyse(clip c, bool "chroma")
{
Return c.MVAnalyse(truemotion=false,dct=1,isb=true,chroma=chroma)
}
Function QMMask(clip c, bool "chroma")
{
V = c.QMAnalyse(chroma=chroma)
Return c.MVMask(V)
}
Function QMwritefile(clip c, string "statfile", bool "chroma")
{
Global QMfclip = c
Global QMstatfile = statfile
c=c.QMMask(chroma=chroma)
Assert(!Exist(statfile), "FATAL error. PLEASE REMOVE file '" + statfile + "', THEN TRY AGAIN.")
Return c.ScriptClip("WriteFile(QMfclip, QMstatfile, String(current_frame), Chr(34)+Chr(32)+Chr(34), String(AverageLuma))")
}
Function QMwritesub(clip c, bool "chroma")
{
Global QMsclip = c
c = c.QMMask(chroma=chroma)
Return c.ScriptClip("""Subtitle(QMsclip,String(AverageLuma),x=25, y=75, font="courier new",Size=16)""")
}
Function QMshow(clip c, bool "chroma")
{
V = c.QMAnalyse(chroma=chroma)
c = c.MVShow(V, scale=1)
Return c
}
Function QMstack(clip c, bool "chroma")
{
c=c.ConvertToYV12()
ClipA=QMwritesub(c, chroma=false)
ClipB=QMshow(c, chroma=false)
Return StackVertical(ClipA,ClipB)
}
QMwritefile("C:\DVD\encode\automkv\temp\statfile.txt")


t.txt is empty

statfile.txt

0 3.399502
1 1.493218
2 15.981793
3 3.960799
4 3.721921
5 3.510729
6 28.622849
7 10.943866
8 1.611875
9 14.717292
10 35.687626
11 2.814815
12 3.559144
13 1.496076
14 11.884561
15 8.434745
16 1.667025
17 5.175568
18 2.204259
19 12.676366
20 3.768866
21 6.177292
22 4.593611
23 1.535602
24 3.754780
25 12.807673
26 1.688935
27 3.321030
28 1.673796
29 17.515474
30 3.908611
31 1.837685
32 6.082812
33 2.617535
34 3.981238
35 3.901632
36 5.159213
37 4.460498
38 1.640289
39 3.947685
40 14.515821
41 1.667894
42 6.907187
43 2.184074
44 11.064329
45 10.386308
46 1.773981
47 8.560567
48 3.335579
49 11.258692
50 58.529236
51 28.700788
52 54.662212
53 9.189756
54 26.323044
55 43.748730
56 14.279015
57 19.192129
58 5.178241
59 24.936319
60 0.000003

buzzqw
8th July 2007, 16:27
qmtrim is used launched as this (for example)

QMtrim.exe -i statfile.txt -u 50 -c 5 1,2,3,3,2,2,1

and the file you got is t.txt, in your situation t.txt ins't created... but i don't know why

you can try from dos

BHH

survivant
8th July 2007, 17:17
I sent you a private message. You can get the sample that I'm using to test at my website.

survivant
8th July 2007, 17:18
C:\DVD\encode\automkv\temp>C:\DVD\tools\AutoMKV086\exe\Encoder\QMtrim.exe -i sta
tfile.txt -u 50 -c 5 1,2,3,3,2,2,1
Processed 923 input frames.

Cx-rest is 5, Unsaw is 50

Cx Frames Quote Threshold Density
0 185 20.04% 0.3644 3.975
1 309 33.48% 0.371 367.4
2 12 1.30% 0.371 0
3 130 14.08% 0.7543 2.655
4 163 17.66% 1.142 3.292
5 117 12.68% 2.029 1.033
6 7 0.76% 7.227 0.01054

buzzqw
8th July 2007, 18:42
i have donwloaded and runned an encoding successfully

what i have done: select audio/video codec, set as width ORIGINAL, convolution hq_anime, activated QMtrim, -u 25, -c 5 , thres AUTO, script anime_denoise

and then go

here is the last part of movie.avs
last = movie
#filter2start

#test5

Convolution3d (preset="animeHQ")
C0 = Spline16Resize(720,480).deen("c3d",1,1,2,2)
C1 = BicubicResize(720,480,0.1,0.45).deen("c3d",1,3,3,2)
C2 = BicubicResize(720,480,0.2,0.4).deen("c3d",1,3,4,2)
C3 = BicubicResize(720,480,0.3,0.35).deen("c3d",1,4,4,2)
C4 = BicubicResize(720,480,0.334,0.333).deen("c3d",1,4,5,1)
C5 = BicubicResize(720,480,0.4,0.3).deen("c3d",1,5,5,1)
C6 = BicubicResize(720,480,0.5,0.25).deen("c3d",1,5,6,1).DCTFilter(1,1,1,1,1,1,1,.5)
C7 = BilinearResize(720,480).deen("c3d",1,6,7,1).DCTFilter(1,1,1,1,1,1,.5,0)
C5.Trim(0,1)+C6.Trim(2,7)+C5.Trim(8,59)+C0.Trim(60,60)+C1.Trim(61,66)\
+C2.Trim(67,72)+C3.Trim(73,78)+C4.Trim(79,171)+C0.Trim(172,172)+C1.Trim(173,178)\
+C2.Trim(179,184)+C3.Trim(185,190)+C4.Trim(191,196)+C5.Trim(197,202)+C6.Trim(203,232)\
+C5.Trim(233,254)+C4.Trim(255,256)+C5.Trim(257,265)+C4.Trim(266,266)+C5.Trim(267,268)\
+C4.Trim(269,271)+C5.Trim(272,274)+C4.Trim(275,290)+C3.Trim(291,347)+C0.Trim(348,348)\
+C1.Trim(349,354)+C2.Trim(355,357)+C0.Trim(358,358)+C1.Trim(359,364)+C2.Trim(365,370)\
+C3.Trim(371,372)+C0.Trim(373,373)+C1.Trim(374,379)+C2.Trim(380,385)+C3.Trim(386,396)\
+C0.Trim(397,398)+C1.Trim(399,404)+C2.Trim(405,410)+C0.Trim(411,922)
ColorMatrix(mode="Rec.709->Rec.601")

BHH

survivant
8th July 2007, 19:15
the movie encode too, but with ffmpeg

here the automkv.log
14:11:31 Command Line 1' Pass X264: C:\DVD\tools\AutoMKV086\exe\encoder\x264.exe --pass 1 --bitrate 47307 --stats "C:\DVD\encode\automkv\temp\.stats" --ref 1 --no-b-adapt --progress --keyint 300 --bframes 1 --qpmin 10 --qpmax 51 --no-psnr --filter 0,0 --subme 1 --direct auto --vbv-maxrate 14000 --me dia --no-ssim --level 4.1 --no-cabac --analyse none --threads 3 --output NUL "C:\DVD\encode\automkv\temp\movie.avs"
14:11:31 Command Line 2' Pass X264: C:\DVD\tools\AutoMKV086\exe\encoder\x264.exe --pass 2 --bitrate 47307 --stats "C:\DVD\encode\automkv\temp\.stats" --progress --keyint 300 --bframes 1 --qpmin 10 --qpmax 51 --no-psnr --ref 1 --filter 0,0 --direct auto --vbv-maxrate 14000 --me umh --no-ssim --level 4.1 --no-cabac --weightb --b-rdo --bime --analyse p8x8,b8x8,i4x4 --threads 3 --output "C:\DVD\encode\automkv\temp\movie.mp4" "C:\DVD\encode\automkv\temp\movie.avs"
14:11:40 Finished 1' Pass X264
14:11:52 BREAK ! FILE NOT SUPPORTED ! LAST TRY WITH FFMPEG!
14:11:52 Switched to FFmpeg for Video Encoding!



I saved the setting.. here my automkv.ini

you jsut have to choose the input.. and Start Encoding. If you don't have a problem.. I'll need your automkv version :)

and Why your test 5 finish by ColorMatrix(movie,mode="Rec.709->Rec.601",hints=true,threads=0)

and me it's in #test3 ?

movie = ColorMatrix(movie,mode="Rec.709->Rec.601",hints=true,threads=0)
#resizestart

#test4

last = movie
#filter2start

#test5

Convolution3d (preset="animeHQ")
C0 = Spline16Resize(720,480).deen("c3d",1,1,2,2)
C1 = BicubicResize(720,480,0.1,0.45).deen("c3d",1,3,3,2)
C2 = BicubicResize(720,480,0.2,0.4).deen("c3d",1,3,4,2)
C3 = BicubicResize(720,480,0.3,0.35).deen("c3d",1,4,4,2)
C4 = BicubicResize(720,480,0.334,0.333).deen("c3d",1,4,5,1)
C5 = BicubicResize(720,480,0.4,0.3).deen("c3d",1,5,5,1)
C6 = BicubicResize(720,480,0.5,0.25).deen("c3d",1,5,6,1).DCTFilter(1,1,1,1,1,1,1,.5)
C7 = BilinearResize(720,480).deen("c3d",1,6,7,1).DCTFilter(1,1,1,1,1,1,.5,0)




; AutoMKV default parameters
; If AutoMKV.ini is present then specified parameters will be loaded
[AutoMKV]
AutoMKV version = 0.86d
Input Folder = C:\DVD\done\
Output Folder = C:\DVD\encode\automkv\
Source on DVD = 0
Container = MP4
Movie Name = intro
Size = 1/4 CD
Slice = 1
Resizer = 13
Width = Original
Set encoding mode = X264
Allow Expert Profile = 1
Audio Codec 1 = Nero AAC
Audio Bit 1 = 17
Audio Bitrate 1 = 0.85
Audio Channel 1 = Stereo
Audio Codec 2 = Nero AAC
Audio Bit 2 = 7
Audio Bitrate 2 = 0.35
Audio Channel 2 = Stereo
Encoding Profiles = PS3_41.xml
Bitrate Encoding = 0
Bitrate Value = 700
External Sub =
Delete temporary files = 0
Encrust/Burn Subtitles = 0
Enable Shutdown = 0
Allow AVS check = 0
Allow x264 Stats = 1
Process this IFO = 0
Process this PGC = 0
PGC to Process = -1
Force ITU Resizing = 0
Anamorphic Encoding = 0
Filter = Convolution3d (preset="animeHQ")
Enable Last Line AVS Script = 0
Last Line AVS Script = ConvertToYV12()
Deinterlacer = Progressive
Field Order = AUTO
HQ Deinterlacer = 0
Allow Hybrid Order/Pattern = 0
Language = eng
Use CRF/CQ for AutoResize = 1
CRF/CQ Value = 18
Use ProjectX for TS files = 0
Use custom X.ini = 0
Use DelayCut = 1
Matrix = NONE
Force PAR in XviD = NONE
FFmpeg Encoding = NONE
Use DirectShowSource for Video = 0
Use DirectShowSource for Audio = 0
No Colormatrix = 0
GreyScale = 0
MVDenoise = 0
MVDegrain = 0
Limiter = 0
Enable QMtrim = 1
Enable HGAVS = 0
Unsaw Frames = 25
Motion Levels = AUTO
Trim from =
QMtrim Script = Anime_Denoise.lvl
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
Windows Media Audio = AUTO
Windows Media Channel = AUTO
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
8th July 2007, 19:34
ahem... i am using the latest beta... 0.86e.. better.. the 0.86f not already pubblic...

but only for you i have prepared the build (with the qmtrim 0.6 compatibility!)
put qmtrim.exe in \exe\encoder folder
put QMlib.avsi in \exe\filter folder

(do a backup of all interested files)... then launch the 0.86f

http://www.64k.it/andres/data/a/Automkv0.86f.zip

i hope better news :)

BHH

survivant
8th July 2007, 21:03
thanks

#1 First bug. I select a filter : covolution3D.. go in Advance Setting.. Advance profile..

Enabled Qmtrim. choose 25.
return back to basic and the filter is set to NONE.

buzzqw
8th July 2007, 21:23
not a bug, is wanted. Qmtrim/hg avs are already advanced filters
adding another filter to the chain list could "damage" the filters applycation of qmtrim/hg avs

BHH

survivant
8th July 2007, 21:55
ok didn'T know.

#another observation.. my sample have 739 frames.. the x264 only did 144 frames.


C:\DVD\encode\automkv\temp>"C:\DVD\tools\Automkv0.86f\exe\encoder\x264.exe" --p
ass 1 --bitrate 47307 --stats "C:\DVD\encode\automkv\temp\.stats" --ref 1 --no-b
-adapt --progress --keyint 300 --bframes 1 --qpmin 10 --qpmax 51 --no-psnr --fil
ter 0,0 --subme 1 --direct auto --vbv-maxrate 14000 --me dia --no-ssim --level 4
.1 --no-cabac --analyse none --threads 3 --output NUL "C:\DVD\encode\automkv\te
mp\movie.avs"
avis [info]: 720x480 @ 29.97 fps (144 frames)
x264 [info]: using cpu capabilities MMX MMXEXT SSE SSE2
x264 [warning]: max bitrate less than average bitrate, ignored.
x264 [info]: slice I:2 Avg QP:10.00 size:1022140:00
x264 [info]: slice P:99 Avg QP:10.00 size: 24209
x264 [info]: slice B:43 Avg QP:12.00 size: 13775
x264 [info]: mb I I16..4: 24.1% 0.0% 75.9%
x264 [info]: mb P I16..4: 10.3% 0.0% 0.0% P16..4: 74.7% 0.0% 0.0% 0.0% 0
.0% skip:14.9%
x264 [info]: mb B I16..4: 1.4% 0.0% 0.0% B16..8: 33.3% 0.0% 0.0% direct:
40.0% skip:25.3%
x264 [info]: final ratefactor: -4.92
x264 [info]: direct mvs spatial:97.7% temporal:2.3%
x264 [info]: kb/s:5317.0

encoded 144 frames, 15.46 fps, 5318.10 kb/s


C:\DVD\encode\automkv\temp>x264cmdq_pass2.bat

C:\DVD\encode\automkv\temp>"C:\DVD\tools\Automkv0.86f\exe\encoder\x264.exe" --p
ass 2 --bitrate 47307 --stats "C:\DVD\encode\automkv\temp\.stats" --progress --k
eyint 300 --bframes 1 --qpmin 10 --qpmax 51 --no-psnr --ref 1 --filter 0,0 --dir
ect auto --vbv-maxrate 14000 --me umh --no-ssim --level 4.1 --no-cabac --weightb
--b-rdo --bime --analyse p8x8,b8x8,i4x4 --threads 3 --output "C:\DVD\encode\au
tomkv\temp\movie.mp4" "C:\DVD\encode\automkv\temp\movie.avs"
avis [info]: 720x480 @ 29.97 fps (144 frames)
x264 [info]: using cpu capabilities MMX MMXEXT SSE SSE2
x264 [warning]: max bitrate less than average bitrate, ignored.
x264 [warning]: Error: 2pass curve failed to converge
x264 [warning]: target: 47307.00 kbit/s, expected: 5552.48 kbit/s, avg QP: 10.00
05
x264 [warning]: try reducing target bitrate or reducing qp_min (currently 10)
mp4 [info]: initial delay 1001 (scale 30000)



#test2

movie = mpeg2source("C:\DVD\encode\automkv\temp\movie.d2v",info=3)
function getOrder(clip c) {
order = GetParity(c) ? 1 : 0
Return order }
#filter1start

#test3

#resizestart

#test4

last = movie
#filter2start

#test5

C0 = Spline16Resize(720,480).deen("c3d",1,1,2,2)
C1 = BicubicResize(720,480,0.1,0.45).deen("c3d",1,3,3,2)
C2 = BicubicResize(720,480,0.2,0.4).deen("c3d",1,3,4,2)
C3 = BicubicResize(720,480,0.3,0.35).deen("c3d",1,4,4,2)
C4 = BicubicResize(720,480,0.334,0.333).deen("c3d",1,4,5,1)
C5 = BicubicResize(720,480,0.4,0.3).deen("c3d",1,5,5,1)
C6 = BicubicResize(720,480,0.5,0.25).deen("c3d",1,5,6,1).DCTFilter(1,1,1,1,1,1,1,.5)
C7 = BilinearResize(720,480).deen("c3d",1,6,7,1).DCTFilter(1,1,1,1,1,1,.5,0)


C6.Trim(0,2)+C5.Trim(3,3)+C6.Trim(4,42)+C5.Trim(43,43)+C6.Trim(44,47)+C5.Trim(48,48)+C6.Trim(49,60)+C5.Trim(61,67)+C4.Trim(68,68)+C5.Trim(69,70)+C4.Trim(71,112)+C3.Trim(113,113)+C4.Trim(114,117)+C3.Trim(118,118)+C4.Trim(119,127)+C3.Trim(128,128)+C4.Trim(129,131)+C3.Trim(132,133)+C4.Trim(134,139)+C5.Trim(140,232)+C4.Trim(233,255)+C3.Trim(256,256)+C4.Trim(257,260)+C3.Trim(261,261)+C4.Trim(262,265)+C3.Trim(266,266)+C4.Trim(267,268)+C3.Trim(269,271)


+C4.Trim(272,275)+C3.Trim(276,276)+C4.Trim(277,280)+C3.Trim(281,281)+C4.Trim(282,285)+C3.Trim(286,286)+C4.Trim(287,290)+C3.Trim(291,291)+C4.Trim(292,297)+C5.Trim(298,322)+C4.Trim(323,340)+C3.Trim(341,342)+C2.Trim(343,343)+C3.Trim(344,347)+C2.Trim(348,348)+C3.Trim(349,352)+C2.Trim(353,353)+C3.Trim(354,357)+C0.Trim(358,358)+C1.Trim(359,364)+C2.Trim(365,370)+C3.Trim(371,372)+C0.Trim(373,373)+C1.Trim(374,379)+C2.Trim(380,385)+C3.Trim(386,387)+C1.Trim(388,388)


+C2.Trim(389,394)+C3.Trim(395,397)+C1.Trim(398,398)+C2.Trim(399,404)+C3.Trim(405,410)+C2.Trim(411,411)+C3.Trim(412,417)+C1.Trim(418,418)+C2.Trim(419,424)+C3.Trim(425,442)+C0.Trim(443,443)+C1.Trim(444,445)+C0.Trim(446,538)+C1.Trim(539,553)+C2.Trim(554,602)+C1.Trim(603,603)+C2.Trim(604,617)+C0.Trim(618,618)+C1.Trim(619,624)+C2.Trim(625,627)+C1.Trim(628,628)+C2.Trim(629,657)+C0.Trim(658,658)+C1.Trim(659,670)+C0.Trim(671,673)+C1.Trim(674,777)+C0.Trim(778,778)


+C1.Trim(779,797)+C0.Trim(798,798)+C1.Trim(799,818)+C2.Trim(819,882)+C1.Trim(883,883)+C2.Trim(884,897)+C1.Trim(898,898)+C2.Trim(899,916)+C3.Trim(917,922)

ColorMatrix(mode="Rec.709->Rec.601")

survivant
8th July 2007, 22:01
first guess will be that automkv in trying to encode a sample.. like the one to estimate the overall bitrate ?

survivant
8th July 2007, 22:25
there is a verbose mode that I can get all the command line use in the process. maybe I can help try to find which step is bad.

survivant
8th July 2007, 22:30
If I try the option Hgavs instead I obtain

17:29:18 Command Line 1' Pass X264: C:\DVD\tools\Automkv0.86f\exe\encoder\x264.exe --pass 1 --bitrate 47307 --stats "C:\DVD\encode\automkv\temp\.stats" --ref 1 --no-b-adapt --progress --keyint 300 --bframes 1 --qpmin 10 --qpmax 51 --no-psnr --filter 0,0 --subme 1 --direct auto --vbv-maxrate 14000 --me dia --no-ssim --level 4.1 --no-cabac --analyse none --threads 3 --output NUL "C:\DVD\encode\automkv\temp\movie.avs"
17:29:18 Command Line 2' Pass X264: C:\DVD\tools\Automkv0.86f\exe\encoder\x264.exe --pass 2 --bitrate 47307 --stats "C:\DVD\encode\automkv\temp\.stats" --progress --keyint 300 --bframes 1 --qpmin 10 --qpmax 51 --no-psnr --ref 1 --filter 0,0 --direct auto --vbv-maxrate 14000 --me umh --no-ssim --level 4.1 --no-cabac --weightb --b-rdo --bime --analyse p8x8,b8x8,i4x4 --threads 3 --output "C:\DVD\encode\automkv\temp\movie.mp4" "C:\DVD\encode\automkv\temp\movie.avs"
17:29:26 Finished 1' Pass X264
17:29:38 BREAK ! FILE NOT SUPPORTED ! LAST TRY WITH FFMPEG!
17:29:38 Switched to FFmpeg for Video Encoding!

survivant
8th July 2007, 22:34
if I obtian the movie.avs in virtualdubmob I obtain this message:


invalid arguments to function : Spline16Resize

here the movie.avs

#OPTIMIZATION
P1=last.Spline16Resize(720,480).deen("c3d",1,1,2,2)
P2=last.BicubicResize(720,480,0.1,0.45).deen("c3d",1,3,3,2)
P3=last.BicubicResize(720,480,0.2,0.4).deen("c3d",1,3,4,2)
P4=last.BicubicResize(720,480,0.3,0.35).deen("c3d",1,4,4,2)
P5=last.BicubicResize(720,480,0.334,0.333).deen("c3d",1,4,5,1)
P6=last.BicubicResize(720,480,0.4,0.3).deen("c3d",1,5,5,1)
P7=last.BicubicResize(720,480,0.5,0.25).deen("c3d",1,5,6,1).DCTFilter(1,1,1,1,1,1,1,.5)
P8=last.BilinearResize(720,480).deen("c3d",1,6,7,1).DCTFilter(1,1,1,1,1,1,.5,0)

buzzqw
9th July 2007, 07:31
thanks (a lot) survivant for your test!

please download this http://www.64k.it/andres/data/a/AutoMKV086f2.zip

put Anime_Denoise.lvl in \exe\script folder and use the new AutoMKV086f.exe

should be fixed both qmtrim and hg avs

thanks again

BHH

zacoz
9th July 2007, 12:38
Is there a way to have filter chains appear in the filters selection box?

I've been using different filter chains for different tv series sources I've been processing, and would prefer to have them appear for selection rather than having to type them in or cut and paste them everytime.

e.g. undot().fft3dfilter(sigma=4, sharpen=0.4).TTempSmooth()

buzzqw
9th July 2007, 13:10
yes.. is possible!

edit your filter box to your taste (you can also configure video/audio codec)... then go in advanced setting and at bottom there is "Load and Save configuration", here you can save (in automkv folder!) varius cofiguration and you will able to load one these when needed :)

BHH

zacoz
9th July 2007, 13:14
:thanks:

survivant
9th July 2007, 14:41
thanks (a lot) survivant for your test!

please download this http://www.64k.it/andres/data/a/AutoMKV086f2.zip

put Anime_Denoise.lvl in \exe\script folder and use the new AutoMKV086f.exe

should be fixed both qmtrim and hg avs

thanks again

BHH


I'm at the office now, I try it, but qmtrim and hgavs crash here (Windows 2000). (Windows Error message.)

I'll try it at home.

thanks for the bug fix.

zacoz
9th July 2007, 15:48
hm.. i dont get the flash of Chapterextractor at all. I see a quick flash of a command prompt, but its too fast to see what it is. I see its taking chapters from your chapters.txt
about the chapter... is automkv installed in very long path ? (or with space ?) (but i think i have fixed it in next update)
@buzzqw
I've just discovered that all my previous encodes had similarly been affected. In my case the path was "G:\Program Files\DVD Tools\AutoMKV".
I can confirm that for me the problem has been resolved with 0.86e :) Now to go back and remux the correct chapter times for them all :(

buzzqw
9th July 2007, 15:58
@zacoz

:( i am sorry

but i hope you will continue in use of automkv! :)

:thanks:

BHH

survivant
9th July 2007, 22:28
found a bug related to dgindex.

if I load the movie in .avs just the movie.dv I obtain a picture interlaced and the source is progressive. I compare with the .dv obtain by automkv and the one generated by DGindex from megui.

here the difference :


automkv
DGIndexProjectFile16
1
C:\DVD\encode\automkv\intro.vob

Stream_Type=1
MPEG_Type=2
iDCT_Algorithm=6
YUVRGB_Scale=0
Luminance_Filter=0,0
Clipping=0,0,0,0
Aspect_Ratio=16:9
Picture_Size=720x480
Field_Operation=0
Frame_Rate=29970 (30000/1001)
Location=0,0,0,4892

commandline =
C:\DVD\tools\Automkv0.86f\exe\dgindex\dgindex.exe -FO=0 -OM=0 -YR=2 -If=[C:\DVD\encode\automkv\intro.vob] -OF=[C:\DVD\encode\automkv\temp\movie] -exit -minimize

megui
DGIndexProjectFile16
1
C:\DVD\encode\automkv\intro.vob

Stream_Type=1
MPEG_Type=2
iDCT_Algorithm=6
YUVRGB_Scale=1
Luminance_Filter=0,0
Clipping=0,0,0,0
Aspect_Ratio=16:9
Picture_Size=720x480
Field_Operation=1
Frame_Rate=23976 (24000/1001)
Location=0,0,0,4892

and everything is fine with that


in the DGIndex.ini from automkv
YUVRGB_Scale=0

in megui dgindex.ini
YUVRGB_Scale=1

if I edit the movie.d2v
and change
Field_Operation=0 by Field_Operation=1
the image is clean

TheRyuu
9th July 2007, 22:51
I think it might be because the 23.96 one is honoring the 3:2 pulldown flag that DGIndex might do. IIRC, it's nothing to worry about. the 23.97fps one is just the original framerate of the movie. Almost all films are like that.

If it encodes fine that I think it's nothing to worry about. If it is a genuine bug then so be it. But I don't think so.

Edit:
I also don't understand what your saying in the second line:
f I load the movie in .avs just the movie.dv I obtain a picture interlaced and the source is progressive. I compare with the .dv obtain by automkv and the one generated by DGindex from megui.

I think I sort of understand.
The DGIndex from megui might be honoring the 3:2 Pulldown.

AutoMKV might use tfm().tdecimate() for that instead. I really couldn't tell ya.

survivant
10th July 2007, 00:17
ok.. what I want to say is the movie encoded by automkv is like a movie interlaced. You can see line corrupted (don't know the term..but if you take a frame from an interlaced movie.. it will look lke what I got now.

I'll do more tests

~bT~
10th July 2007, 00:24
The DGIndex from megui might be honoring the 3:2 Pulldown.

AutoMKV might use tfm().tdecimate() for that instead.
The above is probably better than force film IMO. Force film tends to leave residual interlaced artefacts at times.

TheRyuu
10th July 2007, 00:51
ok.. what I want to say is the movie encoded by automkv is like a movie interlaced. You can see line corrupted (don't know the term..but if you take a frame from an interlaced movie.. it will look lke what I got now.

I'll do more tests

If the original is interlaced (film) that has to be IVTCed then choose film as your deinterlacer and check HQ. Or choose decimate (they're both the same).

Nothing to it :)

The above is probably better than force film IMO. Force film tends to leave residual interlaced artefacts at times.

I'm not sure if my statement you quoted from my post is correct. It just seems logical since Megui was reporting 23.97fps that it's DGIndex was honoring 3:2 pulldown flag. I'm not an expert in mpeg2 or DVD files or movies though so I'm not sure.

survivant
10th July 2007, 01:02
here a sample of the result movie.

DGIndexProjectFile16
1
C:\DVD\encode\automkv\intro.vob

Stream_Type=1
MPEG_Type=2
iDCT_Algorithm=6
YUVRGB_Scale=0
Luminance_Filter=0,0
Clipping=0,0,0,0
Aspect_Ratio=16:9
Picture_Size=720x480
Field_Operation=0
Frame_Rate=29970 (30000/1001)
Location=0,0,0,4892

I try with movie.avs (to test)
LoadPlugin("C:\DVD\tools\Automkv0.86f\exe\Filter\LeakKernelDeint.dll")
DGDecode_mpeg2source("C:\DVD\encode\automkv\temp\movie.d2v",cpu=4,info=3)
LeakKernelDeint(order=1,sharp=true)

the image here : http://24.202.22.217:8282/bad_interlace.png

if I change
Field_Operation=1

the image is OK
http://24.202.22.217:8282/image_ok.png

if I keep the
Field_Operation=0

but change to avs like suggested (thanks by the way)
LoadPlugin("C:\DVD\tools\Automkv0.86f\exe\Filter\LeakKernelDeint.dll")
DGDecode_mpeg2source("C:\DVD\encode\automkv\temp\movie.d2v",cpu=4,info=3)
#LeakKernelDeint(order=1,sharp=true)
tfm().tdecimate()

the image is ok again.

So the big question.. how to do that in automkv automatically ?
before qmtrim start.

I want to test the qmtrim : anime_denoise.lvl . and no filter selected in the main page (buzzqw suggest than I must not choose another filter if I had selected qmtrim or hsavg)



by the way. if you want to try it.. here the sample (36 megs)
http://24.202.22.217:8282/intro.vob

I'm trying to find a profile that can give good result for my ps3, something that will works almost everytime.

survivant
10th July 2007, 01:16
@buzzqw

I be able to try the new version. It works.. but I need to do something first.

If I try with just the qmtrim filter, x264 won't encode.. it will be ffmpeg again and the result is bad (look a the previous post)

but if I had

tfm().tdecimate() in the filter. everything is nice..encoded with x264 too. still lot a noise in the image... but the image quality is a little better than megui.

can you release your ps3 4.1 HP profile.. I'll be able to compare with megui. (now it's just megui that is in full HP profile..)

I want to see if a full movie encoded with automkv will give a better resolution (even now without the full HP, the frames look better)