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

cosmos
25th January 2007, 09:43
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 :)
For me this is a feature and not a bug :) I use a common output directory and I don't want to see it switch to something else, each time I open an input file. So the way AutoMKV operates now, suits me perfectly. Then again these are personal preferences :)

AMED
25th January 2007, 09:47
For me this is a feature and not a bug :) I use a common output directory and I don't want to see it switch to something else, each time I open an input file. So the way AutoMKV operates now, suits me perfectly. Then again these are personal preferences :)
maybe we could get a check box that can flip between these two behaviors of determining the output folder. :D

buzzqw
25th January 2007, 11:18
:sly: ... i doubt to insert this to advanced settings :D

hints: use save setting to memoryze the default output folder

BHH

weaver4
25th January 2007, 18:24
For me this is a feature and not a bug :) I use a common output directory and I don't want to see it switch to something else, each time I open an input file. So the way AutoMKV operates now, suits me perfectly. Then again these are personal preferences :)

I also like the way it operates now.

dlflannery
27th January 2007, 03:52
I also like the way it operates now.

Me too!

dlflannery
28th January 2007, 05:37
I used the DVD ripping capability to (try to) encode "Planes, Trains and Automobiles" to a Zune WMV (320x240) using the Zune 1-pass Quick profile. DVDFabDecypter got 4 VOB's OK and all went well except:

1. I watched the Windows Command Line Script Encoder window. It proceeded normally at the normal speed right up to the very end -- then crashed, which crashed AutoMKV too. The Windows message said it was the Script Encoder that crashed.

2. A .wmv file of the right name and length was created but MediaInfo crashed with floating point error on this file.

3. The file plays fine in WMP11 except you cannot fast forward, reverse, i.e., you just start at the beginning and let it go. The "properties" says the file duration is 0.

Here is the log file:

22:05:12 0.72 - - - - - - - - - - - - - START JOBS - - - - - - - - - - - - - -
22:05:12 Selected Input file: Click on INPUT for choosing FILE to ENCODE
22:05:12 Selected Output dir: C:\AutoMKV072\temp\
22:05:12 Selected Final Name: Click on INPUT for choosing FILE to ENCOD
22:05:12 Selected Container type: WMV
22:05:12 Selected Encoder: WMV
22:05:12 Selected Size: 1 CD
22:05:12 Selected Slice: 1
22:05:12 Selected Profile: Zune_1_Pass_Quick.xml
22:05:12 Selected Width: 320
22:05:12 Selected Resizer: SimpleResize (neutral soft)
22:05:12 Selected Filters: NONE
22:05:12 Selected Deinterlacer: AUTO
22:05:12 Selected Field Order: AUTO
22:05:12 NeroAACEnc.exe: not present
22:05:12 Enabled CRF/CQ AutoRes at 90 value
22:05:12 Enabled Bitrate encoding with value 500
22:05:12 Track Language 1: English (AC3 6ch, 0xBD 0x80) [0,1,2]
22:05:12 Audio Codec 1: WMV
22:05:12 Audio Quality 1: 128
22:05:12 Advanced Audio Settings DUMP Track 1
22:05:12 Movie Title Name:
22:05:12 Audio Track Language:
22:05:12 Audio Track Name:
22:05:12 Nero Option Profiles: AUTO --- Encoding Mode: Quality
22:05:12 CCT Option Profiles: AUTO --- Channel Options: AUTO
22:05:12 Lame Settings: VBR
22:05:12 Audio Normalization: 0
22:05:12 Frequency: AUTO --- Tempo : NONE
22:05:12 Pitch: NONE --- Other Add :
22:05:12 Advanced Audio Settings DUMP Track 2
22:05:12 Audio Track Language:
22:05:12 Audio Track Name:
22:05:12 Nero Option Profiles: AUTO --- Encoding Mode: Quality
22:05:12 CCT Option Profiles: AUTO --- Channel Options: AUTO
22:05:12 Lame Settings: ABR
22:05:12 Audio Normalization: 1
22:05:12 Frequency: AUTO --- Tempo : NONE
22:05:12 Pitch: NONE --- Other Add :
22:05:12 Selected 1' Sub tracks: NONE
22:05:12 Selected 2' Sub tracks: NONE
22:05:12
22:05:12 Starting ripping from E:\VIDEO_TS\ to C:\AutoMKV072\temp\
22:30:05 Finished Ripping
22:30:05 Starting Indexing
22:30:05 Dgindex CMD: C:\AutoMKV072\exe\dgindex\dgindex.exe -FO=0 -OM=1 -TN=1 -YR=2 -AIF=[C:\AutoMKV072\temp\dvd\video_ts\VTS_01_1.vob] -OF=[C:\AutoMKV072\temp\movie] -exit -minimize
22:32:05 Finished indexing
22:32:05 Starting fixing audio delay on track number 1
22:32:05 DelayCut CMD: C:\AutoMKV072\exe\dgindex\Delaycut.exe -auto -out "C:\AutoMKV072\temp\fixed1.ac3" "C:\AutoMKV072\temp\movie T01 3_2ch 448Kbps DELAY 0ms.ac3"
22:32:25 Original 1' Audio Size: 310909184 bytes
22:32:25 Finished fixing audio delay
22:32:25 ForcedFilm applied: 99.400002% FILM found
22:32:33 Number of Frames: 133118
22:32:33 Framerate: 23.976025
22:32:33 Movie lenght in Seconds: 5553
22:32:33 Movie Width: 720
22:32:33 Movie Height: 480
22:32:33 WMV CMD: cscript.exe "C:\AutoMKV072\exe\encoder\WMCmd.vbs" -input "C:\AutoMKV072\temp\movie.avs" -output "C:\AutoMKV072\temp\movie.wmv" -v_codec WMV7 -v_mode 0 -v_bitrate 512000 -s_config "C:\AutoMKV072\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 "Click on INPUT for choosing FILE to ENCOD" -year 2007 -copyright "Done with AutoMKV! 0.72" -a_setting 128_44_2
22:57:55 Final Muxed size: 423989496 bytes
22:57:55 Encoding finished: 00:52:43 elapsed time
22:57:55 -----------------------------------------------------------------------

Any ideas what the problem was?

I used DelayCut -- should I have used ProjectX ?
I forced bitrates of 500kbps Video and 128 Kbps audio.

Edit:
I decided to try another route: Rip VOBs then combine into single .mpg using VideoReDo (VRD). VRD refused to open the fourth VOB saying it had problems and recommending a QSF (Quick Stream Fix, a feature of VRD). After the QSF that VOB would load and I generated a good MPEG of the entire DVD (at least as viewed in WMP11). I'm now converting this MPEG to Zune, which has worked in the past. Only difference is this is 24 fps "film" -- hope that's not what is crashing WME9 script.

Edit2:
Well, the mpeg->Zune encode failed exactly the same way as the DVD rip.
I had been selecting "AUTO" for deinterlace. So I tried it again selecting "NONE" for deinterlace and -- it succeeded! And -- the output file played great in WMP11 and on my Zune!

Sure would like to understand what's behind this (?) BTW gspot says 99+% "FILM" (24 fps expected to be pulled down to 30 fps) for this video, which agrees with what's in the log file from AutoMKV.

buzzqw
28th January 2007, 10:16
... edit... later

BHH

rjcobain
28th January 2007, 10:54
Hi BHH,

Thanks for the great tool! I am using AutoMKV to convert DVDs and uncompressed AVIs to VC1 format and I think there is a bug. Most of the uncompressed AVIs I use have no audio tracks, or empty audio tracks. When I try to convert these AVIs to VC1 I get an error from AVISynth on line 51 of the movie.avs script. It seems that even though I specified "NONE" as the audio track, the movie.avs script still tries to render audio. When I take the audio lines out, everything is fine and the VC1 video is produced. Cheers, Robert.

dlflannery
28th January 2007, 14:03
(This is a continuation of this prior post (http://forum.doom9.org/showthread.php?p=945401#post945401).)
Since setting interlace to NONE worked (once), I tried ripping directly from the DVD as source again (with NONE setting) -- failed exactly as before (WME script crashes exactly at end of encoding.)

So I tried the way that did work (once) again (with the same mpeg2 used before) and this time it crashed the usual way.

Since the video is 99+% "film" I tried setting interlace to FILM. This worked, and has worked three times now (same input). The log files always say "forcing film" regardless of the interlace setting. I wonder if this is actually happening ONLY when I set interlace to FILM (?). Shouldn't setting Interlace to AUTO be the same, since it is detecting film? I notice the WME9 encoding speed is slower when interlace is set to FILM, which makes me suspect something is different.

What should I look for in movie.avs (or where?) to tell whether it is actually forcing film?

Edit:
Think I answered my own question. The movie.avs file for interlace = FILM (which works) contains the following line:

tfm(d2v="C:\MPEG4_encodes\AutoMKV\temp\movie.d2v").tdecimate()

while for interlace = AUTO or NONE this line is missing (and encoding fails) . Shouldn't this line be there for AUTO, since it is detecting 99+% film ?

Edit #2:
And finally, with interlace set to FILM, I was able to do what I originally set out to do: Rip/Encode the DVD video to a good Zune Video!

dlflannery
28th January 2007, 16:41
I've noticed that DVDDecrypter rips a DVD a lot faster than DVDFabDecrypter (used by AutoMKV). I think it's because it runs my DVD drive at a higher speed.

If I rip to a hard disc folder, can I load the first video VOB as a file into AutoMKV then expect it to automatically combine all the VOB's as the source? (i.e., like it does when you rip within AutoMKV)

buzzqw
28th January 2007, 17:12
@dlflannery
I used DelayCut -- should I have used ProjectX ?

projectx should be used only with TS files never with vob files

and about FILM/FORCE FILM... using force film with dgindex (as i do) or using tfm().tdecimate() is the same thing (near...)

anyway in next update i will not use force film on FILM but let autodeint choose's best

This should resolve all problem with FILM ! :)

If I rip to a hard disc folder, can I load the first video VOB as a file into AutoMKV then expect it to automatically combine all the VOB's as the source? (i.e., like it does when you rip within AutoMKV)

if you rip all film just point at first ifo, or point at first one's vob belonging to film like vts_01_1.vob, all vob of this vts would be automatically processed!

@rjcobain
Thanks ! Fixed in next release

BHH

dlflannery
28th January 2007, 19:03
@dlflannery
................
and about FILM/FORCE FILM... using force film with dgindex (as i do) or using tfm().tdecimate() is the same thing (near...)

In my tests I varied Interlace = AUTO or NONE or FILM.
But I kept the Field Order on AUTO for all tests.
I notice the -FO option on dgIndex was always 0, never 1 (Force Film). When you say "... using force film with dgindex (as i do)" do you mean the -FO option should be 1 ?
@dlflannery
.... anyway in next update i will not use force film on FILM but let autodeint choose's best

This should resolve all problem with FILM ! :)
......
BHH
Thanks! :D However I'm not quite sure what you mean. Does this mean the tfm().tdecimate() will be used on my test video (99.4% film) if I select AUTO for both interlace and field order ? I believe this is the only way it wouild work on that video (unless I set FILM in interlace -- which means I have to analyze the video before with gspot or some other program before loading into AutoMKV -- not automatic. :( )

buzzqw
28th January 2007, 20:00
@dlflannery

some serius misurestanding are around...

FILM type could detected or by analyzing the d2v (as atuomkv do NOW) or by running autodeint or by selection FILM type on deinterlacer

in next update if the clip is FILM
1) if autodeint is AUTO then tfm(xxx).tdecimate() is applyed
2) if autodeint is FILM then tfm(xxx).tdecimate() is applyed
3) if autodeint is Interlaced (as example) then tdeint() is applyed
4) if autodeint is NONE then NO DEINTELACER or TFM() is applyed at all, or is done the deint test!

Field order is to leave ALWAYS AUTO unless you know the order!

I notice the -FO option on dgIndex was always 0, never 1 (Force Film). When you say "... using force film with dgindex (as i do)" do you mean the -FO option should be 1 ?

... as i said i don't re-run digindex on FILM, i simply change the d2v file and values as force film was applyed ;)

i hope to be clear :)

BHH

dlflannery
28th January 2007, 23:40
@dlflannery

some serius misurestanding are around...

FILM type could detected or by analyzing the d2v (as atuomkv do NOW) or by running autodeint or by selection FILM type on deinterlacer

in next update if the clip is FILM
1) if autodeint is AUTO then tfm(xxx).tdecimate() is applyed
2) if autodeint is FILM then tfm(xxx).tdecimate() is applyed
3) if autodeint is Interlaced (as example) then tdeint() is applyed
4) if autodeint is NONE then NO DEINTELACER or TFM() is applyed at all, or is done the deint test!

Field order is to leave ALWAYS AUTO unless you know the order!



... as i said i don't re-run digindex on FILM, i simply change the d2v file and values as force film was applyed ;)

i hope to be clear :)

BHH
This helps a lot, thanks! :) I was thinking you might have to run dgIndex again (which would take more time!).

Yes, I have some serious misunderstandings because I'm a newbie to video processing. :o I appreciate your patience!

Rogi
29th January 2007, 19:11
First of all, thank you for this program, it is very useful for us who don't know too much about encoding.

I notice when go to advanced audio options and change whatever settings there (example, mp3 vbr to mp3 cbr) it is not memorized.
When you back there, same settings is shown, nothing is changed.

I hope this can be fixed, thank you.

sillKotscha
30th January 2007, 03:07
hi buzzqw,

I have a little request/ contest for you :)

recently I more or less decided to play around with .flv files. As it is of now the only free application for flv output is RIVA (http://www.rivavx.com/index.php?id=483&L=0).

RIVA uses FFmpeg and LAME and FLVTool2 (http://inlet-media.de/flvtool2/), but they use a very old version of FFmpeg (ffmpeg version 0.4.9-pre1, build 4751).

It would be very nice to have another free alternative to existing Flash encoder (like Macromedia Flash 8 Video Encoder (http://www.adobe.com/products/flash/flashpro/productinfo/encoder/) or ON2's Flix Pro (http://www.on2.com/consumer/flix-pro))

this is a typical encode using RIVA (respectively FFmpeg ...)


ffmpeg version 0.4.9-pre1, build 4751, Copyright (c) 2000-2004 Fabrice Bellard
configuration: --enable-memalign-hack --enable-mp3lame --enable-mingw32 --extra-cflags=-I/local/include --extra-ldflags=-L/local/lib --enable-amr_nb
built on Mar 29 2005 07:26:02, gcc: 3.2.3 (mingw special 20030504-1)
Input #0, avi, from 'C:\surf_cut.avi':
Duration: 00:02:00.0, start: 0.000000, bitrate: 47624 kb/s
Stream #0.0: Video: rawvideo, yuv420p, 320x240, 25.00 fps
Stream #0.1: Audio: pcm_s16le, 48000 Hz, stereo, 1536 kb/s
Output #0, flv, to 'C:\surf_cut.flv':
Stream #0.0: Video: flv (hq), 320x240, 25.00 fps, q=2-31, 450 kb/s
Stream #0.1: Audio: mp3, 22050 Hz, stereo, 56 kb/s
Stream mapping:
Stream #0.0 -> #0.0
Stream #0.1 -> #0.1
[flv @ 0075C780]removing common factors from framerate
frame= 19 q=0.0 size= 88kB time=0.8 bitrate= 945.6kbits/s
frame= 38 q=0.0 size= 176kB time=1.5 bitrate= 946.2kbits/s
frame= 58 q=0.0 size= 241kB time=2.3 bitrate= 850.2kbits/s
frame= 79 q=0.0 size= 315kB time=3.2 bitrate= 815.4kbits/s
frame= 95 q=0.0 size= 361kB time=3.8 bitrate= 778.4kbits/s
frame= 120 q=0.0 size= 436kB time=4.8 bitrate= 743.8kbits/s
frame= 138 q=0.0 size= 491kB time=5.5 bitrate= 729.2kbits/s
frame= 162 q=0.0 size= 557kB time=6.5 bitrate= 704.5kbits/s
frame= 180 q=0.0 size= 602kB time=7.2 bitrate= 684.5kbits/s
frame= 203 q=0.0 size= 658kB time=8.1 bitrate= 664.3kbits/s
frame= 222 q=0.0 size= 702kB time=8.9 bitrate= 647.3kbits/s
frame= 247 q=0.0 size= 751kB time=9.9 bitrate= 622.6kbits/s
frame= 271 q=0.0 size= 794kB time=10.8 bitrate= 600.3kbits/s
frame= 289 q=0.0 size= 830kB time=11.6 bitrate= 587.9kbits/s
frame= 310 q=0.0 size= 877kB time=12.4 bitrate= 579.5kbits/s
frame= 334 q=0.0 size= 925kB time=13.4 bitrate= 567.2kbits/s
frame= 356 q=0.0 size= 977kB time=14.2 bitrate= 562.0kbits/s
frame= 377 q=0.0 size= 1030kB time=15.1 bitrate= 559.3kbits/s
frame= 404 q=0.0 size= 1096kB time=16.2 bitrate= 555.7kbits/s
frame= 426 q=0.0 size= 1156kB time=17.0 bitrate= 555.6kbits/s
frame= 449 q=0.0 size= 1216kB time=18.0 bitrate= 554.9kbits/s
frame= 472 q=0.0 size= 1278kB time=18.9 bitrate= 554.6kbits/s
frame= 492 q=0.0 size= 1322kB time=19.7 bitrate= 550.4kbits/s
frame= 520 q=0.0 size= 1381kB time=20.8 bitrate= 543.8kbits/s
frame= 547 q=0.0 size= 1446kB time=21.9 bitrate= 541.2kbits/s
frame= 569 q=0.0 size= 1496kB time=22.8 bitrate= 538.5kbits/s
frame= 588 q=0.0 size= 1533kB time=23.5 bitrate= 534.1kbits/s
frame= 609 q=0.0 size= 1583kB time=24.4 bitrate= 532.2kbits/s
frame= 633 q=0.0 size= 1646kB time=25.3 bitrate= 532.4kbits/s
frame= 658 q=0.0 size= 1711kB time=26.3 bitrate= 532.5kbits/s
frame= 684 q=0.0 size= 1779kB time=27.4 bitrate= 532.7kbits/s
frame= 703 q=0.0 size= 1826kB time=28.1 bitrate= 531.9kbits/s
frame= 727 q=0.0 size= 1888kB time=29.1 bitrate= 531.8kbits/s
frame= 749 q=0.0 size= 1941kB time=30.0 bitrate= 530.9kbits/s
frame= 778 q=0.0 size= 2010kB time=31.1 bitrate= 529.1kbits/s
frame= 799 q=0.0 size= 2068kB time=32.0 bitrate= 530.2kbits/s
frame= 818 q=0.0 size= 2119kB time=32.7 bitrate= 530.4kbits/s
frame= 841 q=0.0 size= 2169kB time=33.6 bitrate= 528.2kbits/s
frame= 861 q=0.0 size= 2225kB time=34.4 bitrate= 529.3kbits/s
frame= 879 q=0.0 size= 2270kB time=35.2 bitrate= 528.9kbits/s
frame= 902 q=0.0 size= 2326kB time=36.1 bitrate= 528.1kbits/s
frame= 928 q=0.0 size= 2385kB time=37.1 bitrate= 526.3kbits/s
frame= 947 q=0.0 size= 2427kB time=37.9 bitrate= 524.9kbits/s
frame= 974 q=0.0 size= 2493kB time=39.0 bitrate= 524.3kbits/s
frame= 994 q=0.0 size= 2542kB time=39.8 bitrate= 523.8kbits/s
frame= 1016 q=0.0 size= 2601kB time=40.6 bitrate= 524.4kbits/s
frame= 1040 q=0.0 size= 2665kB time=41.6 bitrate= 524.8kbits/s
frame= 1062 q=0.0 size= 2728kB time=42.5 bitrate= 526.1kbits/s
frame= 1086 q=0.0 size= 2792kB time=43.4 bitrate= 526.6kbits/s
frame= 1109 q=0.0 size= 2854kB time=44.4 bitrate= 527.0kbits/s
frame= 1130 q=0.0 size= 2907kB time=45.2 bitrate= 526.8kbits/s
frame= 1154 q=0.0 size= 2964kB time=46.2 bitrate= 526.0kbits/s
frame= 1178 q=0.0 size= 3024kB time=47.1 bitrate= 525.8kbits/s
frame= 1199 q=0.0 size= 3073kB time=48.0 bitrate= 525.0kbits/s
frame= 1219 q=0.0 size= 3121kB time=48.8 bitrate= 524.3kbits/s
frame= 1251 q=0.0 size= 3209kB time=50.0 bitrate= 525.3kbits/s
frame= 1271 q=0.0 size= 3258kB time=50.8 bitrate= 525.0kbits/s
frame= 1293 q=0.0 size= 3322kB time=51.7 bitrate= 526.1kbits/s
frame= 1323 q=0.0 size= 3406kB time=52.9 bitrate= 527.3kbits/s
frame= 1344 q=0.0 size= 3460kB time=53.8 bitrate= 527.3kbits/s
frame= 1367 q=0.0 size= 3521kB time=54.7 bitrate= 527.5kbits/s
frame= 1389 q=0.0 size= 3573kB time=55.6 bitrate= 526.8kbits/s
frame= 1420 q=0.0 size= 3651kB time=56.8 bitrate= 526.5kbits/s
frame= 1437 q=0.0 size= 3693kB time=57.5 bitrate= 526.3kbits/s
frame= 1463 q=0.0 size= 3757kB time=58.5 bitrate= 525.9kbits/s
frame= 1487 q=0.0 size= 3815kB time=59.5 bitrate= 525.4kbits/s
frame= 1514 q=0.0 size= 3883kB time=60.6 bitrate= 525.3kbits/s
frame= 1541 q=0.0 size= 3948kB time=61.6 bitrate= 524.7kbits/s
frame= 1561 q=0.0 size= 3996kB time=62.4 bitrate= 524.3kbits/s
frame= 1585 q=0.0 size= 4053kB time=63.4 bitrate= 523.6kbits/s
frame= 1602 q=0.0 size= 4100kB time=64.1 bitrate= 524.1kbits/s
frame= 1622 q=0.0 size= 4158kB time=64.9 bitrate= 525.0kbits/s
frame= 1642 q=0.0 size= 4212kB time=65.7 bitrate= 525.3kbits/s
frame= 1673 q=0.0 size= 4300kB time=66.9 bitrate= 526.4kbits/s
frame= 1693 q=0.0 size= 4358kB time=67.7 bitrate= 527.1kbits/s
frame= 1715 q=0.0 size= 4414kB time=68.6 bitrate= 527.1kbits/s
frame= 1740 q=0.0 size= 4482kB time=69.6 bitrate= 527.5kbits/s
frame= 1765 q=0.0 size= 4556kB time=70.6 bitrate= 528.7kbits/s
frame= 1790 q=0.0 size= 4627kB time=71.6 bitrate= 529.4kbits/s
frame= 1813 q=0.0 size= 4687kB time=72.5 bitrate= 529.5kbits/s
frame= 1837 q=0.0 size= 4749kB time=73.5 bitrate= 529.4kbits/s
frame= 1863 q=0.0 size= 4812kB time=74.5 bitrate= 529.0kbits/s
frame= 1883 q=0.0 size= 4859kB time=75.3 bitrate= 528.4kbits/s
frame= 1908 q=0.0 size= 4915kB time=76.3 bitrate= 527.6kbits/s
frame= 1936 q=0.0 size= 4984kB time=77.4 bitrate= 527.2kbits/s
frame= 1953 q=0.0 size= 5026kB time=78.1 bitrate= 527.1kbits/s
frame= 1975 q=0.0 size= 5093kB time=79.0 bitrate= 528.1kbits/s
frame= 1998 q=0.0 size= 5145kB time=79.9 bitrate= 527.4kbits/s
frame= 2012 q=0.0 size= 5174kB time=80.5 bitrate= 526.7kbits/s
frame= 2036 q=0.0 size= 5232kB time=81.4 bitrate= 526.3kbits/s
frame= 2059 q=0.0 size= 5284kB time=82.4 bitrate= 525.6kbits/s
frame= 2081 q=0.0 size= 5332kB time=83.2 bitrate= 524.8kbits/s
frame= 2100 q=0.0 size= 5376kB time=84.0 bitrate= 524.3kbits/s
frame= 2119 q=0.0 size= 5417kB time=84.8 bitrate= 523.5kbits/s
frame= 2146 q=0.0 size= 5477kB time=85.8 bitrate= 522.7kbits/s
frame= 2173 q=0.0 size= 5535kB time=86.9 bitrate= 521.7kbits/s
frame= 2197 q=0.0 size= 5591kB time=87.9 bitrate= 521.2kbits/s
frame= 2219 q=0.0 size= 5648kB time=88.8 bitrate= 521.3kbits/s
frame= 2240 q=0.0 size= 5690kB time=89.6 bitrate= 520.2kbits/s
frame= 2263 q=0.0 size= 5749kB time=90.5 bitrate= 520.3kbits/s
frame= 2289 q=0.0 size= 5818kB time=91.6 bitrate= 520.6kbits/s
frame= 2313 q=0.0 size= 5879kB time=92.5 bitrate= 520.5kbits/s
frame= 2338 q=0.0 size= 5939kB time=93.5 bitrate= 520.2kbits/s
frame= 2359 q=0.0 size= 5988kB time=94.4 bitrate= 519.9kbits/s
frame= 2379 q=0.0 size= 6038kB time=95.2 bitrate= 519.8kbits/s
frame= 2398 q=0.0 size= 6083kB time=95.9 bitrate= 519.5kbits/s
frame= 2421 q=0.0 size= 6137kB time=96.8 bitrate= 519.1kbits/s
frame= 2441 q=0.0 size= 6187kB time=97.6 bitrate= 519.1kbits/s
frame= 2462 q=0.0 size= 6243kB time=98.5 bitrate= 519.3kbits/s
frame= 2487 q=0.0 size= 6308kB time=99.5 bitrate= 519.4kbits/s
frame= 2514 q=0.0 size= 6383kB time=100.6 bitrate= 520.0kbits/s
frame= 2539 q=0.0 size= 6457kB time=101.6 bitrate= 520.9kbits/s
frame= 2561 q=0.0 size= 6531kB time=102.4 bitrate= 522.3kbits/s
frame= 2587 q=0.0 size= 6610kB time=103.5 bitrate= 523.3kbits/s
frame= 2599 q=0.0 size= 6647kB time=104.0 bitrate= 523.7kbits/s
frame= 2619 q=0.0 size= 6709kB time=104.8 bitrate= 524.6kbits/s
frame= 2647 q=0.0 size= 6792kB time=105.9 bitrate= 525.5kbits/s
frame= 2668 q=0.0 size= 6855kB time=106.7 bitrate= 526.2kbits/s
frame= 2691 q=0.0 size= 6923kB time=107.6 bitrate= 526.9kbits/s
frame= 2715 q=0.0 size= 6992kB time=108.6 bitrate= 527.4kbits/s
frame= 2739 q=0.0 size= 7057kB time=109.6 bitrate= 527.6kbits/s
frame= 2757 q=0.0 size= 7096kB time=110.3 bitrate= 527.2kbits/s
frame= 2787 q=0.0 size= 7166kB time=111.5 bitrate= 526.6kbits/s
frame= 2805 q=0.0 size= 7192kB time=112.2 bitrate= 525.1kbits/s
frame= 2830 q=0.0 size= 7240kB time=113.2 bitrate= 523.9kbits/s
frame= 2854 q=0.0 size= 7297kB time=114.2 bitrate= 523.7kbits/s
frame= 2871 q=0.0 size= 7347kB time=114.8 bitrate= 524.1kbits/s
frame= 2896 q=0.0 size= 7401kB time=115.8 bitrate= 523.4kbits/s
frame= 2925 q=0.0 size= 7466kB time=117.0 bitrate= 522.8kbits/s
frame= 2944 q=0.0 size= 7520kB time=117.8 bitrate= 523.1kbits/s
frame= 2969 q=0.0 size= 7573kB time=118.8 bitrate= 522.4kbits/s
frame= 3000 q=0.0 Lsize= 7661kB time=119.9 bitrate= 523.4kbits/s

video:6722kB audio:820kB global headers:0kB muxing overhead 1.572599%


RIVA produces nice output but I think there is a laaaarge room for improvement!! What do you think...

I'd love to have this option integrated in your app...

thanks in advance,

Sill

buzzqw
30th January 2007, 09:52
update ! 0.72b

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

Changelog 0.72b
ADDED: If Autoresize is enabled (and codec is XviD) AutoMKV will change the number of bframes and Quantitizer Ratio based on autoresize settings (only if autoresize will lead to very big width)
ADDED: If deint is set to Leave Interlaced with x264.exe is added --interlaced
ADDED: In X264 profiles added <interlaced>false</interlaced>. If this value is set to true then --interlaced will be added, if this value is false and deint is not "Leave Interlaced" no --interlaced will be add (these <interlaced> will be added in next full package)
ADDED: If Matrix selected is AUTO (and codec is XviD) this will trigger Adaptive Custom Matrix choice (will be triggered only by very high compression test (>100))
FIXED: RemoveGrain(mode=2) is again the default denoiser
FIXED: Queuing mpeg files and avi could bring to freeze of AutoMKV
FIXED: Muxing into AVI without audio
FIXED: Remove autodetection of force film. Now i let do to BDautodeint detect FILM type
FIXED: Encoding avi files with no audio in wmv container was broken (thanks to rjcobain)
FIXED: On WMV encoding the file wasn't always correctly moved on destination folder
FIXED: Changed default quality for autoresize with WMV is now 85


@Rogi

this behavior is wanted :)

set values as you want and automkv will remeber it (fyi after selecting your values and cliccked ok, click on save settings, you will read on automkv.ini those values)

@sillKotscha

interesting for sure ! and also easy to implement but this will lead to a new application. FFmpeg has awesome possibility and need a full branded program... anyway i will study it :)

BHH

sillKotscha
30th January 2007, 13:40
@sillKotscha

interesting for sure ! and also easy to implement but this will lead to a new application. FFmpeg has awesome possibility and need a full branded program... anyway i will study it :)

BHH

hi buzzqw,

oh, that would be very nice :)

when it's time I guess there will be enough testers around... /me's the first for sure !!

thanks a lot...

sill

Rogi
30th January 2007, 13:57
@buzzqw

Thank you for clarification, I've checked automkv.ini and there is everything OK.

buzzqw
30th January 2007, 14:15
glad to make things clear.

A manual is seriusly need... :scared: i hope to have time... :scared: :(

BHH

weaver4
30th January 2007, 22:51
Will AutoMKV support the new Apple TV box; I looked at one, it is very sharp.

Anyone make a profile for it yet?

DDogg
31st January 2007, 03:03
Buzz, I am doing some slight mods on the CQ-ASP_Q2_eq(crf).xml profile for use with NTSC DV files. (Stellar results so far). I ran into a problem with the way you pick up a value from the template.

When time allows, can you check <BframePredictionMode>0</BframePredictionMode> ?

I believe "0" should translate as "--direct none"?
Presently it shows as "auto" which causes problems with NTSC DV.avi files and M4G Smooth V1 Matrix (http://forum.doom9.org/showthread.php?p=887125#post887125)(can you add the M4G's (http://forum.doom9.org/attachment.php?attachmentid=6561&stc=1&d=1166687500) to the full pack next full build?)

With a little more research I think we can have a new modified CQ profile for NTSC DV that yields a file near identical to the original in appearance with a size reduction of 5 to 1.

Btw, that brings up a request for future consideration. Since you are saving the AutoMKV settings already, it would be helpful to be able to load them by name. For instance, when I do DV I need manual crop 8x8x8x8/640x480, "Leave interlaced", Force 4:3, my CQ DV template with --Direct=none / --no-fast-pskip, FFT3DGPU(plane=3,sigma=3), and the M4G Smooth V1 Matrix matrix. Obviously all of this has to be changed for my standard DVD based encodes.

So, to be able to load my carefully selected "DV settings", in one go, a month after I figured them out and saved them as "My DV settings" (and forgot them after a bottle of wine) would be a very good thing. I also like this idea because one person could post a settings file for another to try.

dlflannery
31st January 2007, 06:11
@dlflannery
..........
FILM type could detected or by analyzing the d2v (as atuomkv do NOW) or by running autodeint or by selection FILM type on deinterlacer

in next update if the clip is FILM
1) if autodeint is AUTO then tfm(xxx).tdecimate() is applyed
2) if autodeint is FILM then tfm(xxx).tdecimate() is applyed
3) if autodeint is Interlaced (as example) then tdeint() is applyed
4) if autodeint is NONE then NO DEINTELACER or TFM() is applyed at all, or is done the deint test!

Field order is to leave ALWAYS AUTO unless you know the order!
...........
BHH
I ran the same test video I've been using (99% FILM) using AUTO for Interlace and Field Order. It crashed the WME9 script just at the end of encoding, as it was doing before (unless I set FILM in the interlace setting).

The only difference between the movie.avs files for the good and bad cases is the tdecimate line where the bad case has
tdecimate(hybrid=3) and the good case has tdecimate().

Here is an excerpt from the log file for the bad case:

23:06:13 ForceFilm Detected: 99.400002% FILM found
23:06:19 Number of Frames: 166368
23:06:19 Framerate: 29.970030
23:06:19 Movie lenght in Seconds: 5552
23:06:19 Movie Width: 720
23:06:19 Movie Height: 480
23:12:42 Processing completed. Type is determined to be partly film.
23:12:42 Processing completed. Type is determined to be partly film.
23:12:42 BFF: 103
23:12:42 TFF: 407
23:12:42 Order: var

Some results from gspot on the source mpeg2:
Pics/s: 23.976 Frames/s: 29.970
Interlaced
3:2 ("Player telecine")
NTSC
kbps: 5273
audio: AC3, 448 kbps, 5.1
Pic(wxh): 720x480

I hope this helps you figure out the problem. I have saved all the temp folder and log file if you need to know more.

Thanks!

buzzqw
31st January 2007, 08:33
@weaver4
what is the specs of appe tv ? (a link is good enough)

@DDogg
... those matrixs are already present...

about the preset... is REALLY a good idea... in some way is already present just launch from DOS automkv.exe "my_dv_profile.ini"
the file my_dv_profile.ini is just a save setting of automkv

i will look how to implement.. but i don't want to break the already command line interface and queue

about --direct none, done in next release !

@dlflannery
this is now a problem of either tdecimate or wmv, please post a sample that is able to replicate the problem. Also try encoding this movie with xvid or x264 and please report if got the error again :thanks:

BHH

Rogi
31st January 2007, 10:57
@buzzqw

Take some free time to make tests with short clips. I've done avi with XviD + mp3 cbr settings,
but there is again problem with mp3 cbr.
GSpot shows me Xvid + mp3 VBR despite fact I changed to cbr in settings (checked in automkv.ini there is cbr).

Maybe is best to make yourself short test and see do you get same problem as I did.

Hope that will help you to make your program even better.

buzzqw
31st January 2007, 13:15
take a look at mkvmaudio.bat
what is written ?

from my test is ok...

just a BIG NOTE... quality preset are always VBR, for a CBR encoding you cannot use "6" (as default value) as value.

So hit advanced audio button, select CBR, click ok, on the value of bitrate write something reasonable... like 128 or 144 :)

try!

BHH

Rogi
31st January 2007, 15:35
@buzzqw

I did tests again and you have right, now is working perfect.
Checked with GSpot, it confirmed it is mp3 cbr.

Thank you very much for your help.:)

DDogg
31st January 2007, 17:02
* the file my_dv_profile.ini is just a save setting of automkv

Adding the ini to the shortcut on the desktop, like AutoMKV.exe DV.ini works fine. Thanks.

sidewalking
31st January 2007, 17:28
Hats off to buzzqw for a fine tool. I am enjoying my first days of tinkering with AutoMKV.

Quick question so far (can't find an answer on searching). How do I change the movie title, either before or after encode? The default title is put as "Done with AutoMKV 0.72b http://forum.doom9.org/showthread.php?p=854221" and it shows in my playlist in VLC, so I can't tell which movie is which if I have more than one in my playlist. ;)

I can change it in VLC, but it doesn't write to the file - it goes back to the "Done with..." upon reloading file.

Thanks again!

weaver4
31st January 2007, 19:59
@weaver4
what is the specs of appe tv ? (a link is good enough)

Here is what they say on their site: http://www.apple.com/appletv/specs.html

Video

* Video formats supported: H.264 and protected H.264 (from iTunes Store): 640 by 480, 30 fps, LC version of Baseline Profile; 320 by 240, 30 fps, Baseline profile up to Level 1.3; 1280 by 720, 24 fps, Progressive Main Profile. MPEG-4: 640 by 480, 30 fps, Simple Profile

buzzqw
31st January 2007, 20:30
@weaver4
thanks!
CE profiles should be already good... i will check

@sidewalking

thanks for your kind words!

with wmv encoding the parameter in profile is <copyright> if this is set to false than i will automatically add the string Done by Automkv...., if this value is different from false i will add what written

in mkv muxing the title is taken from advanced audio setting, the "Title" string, if leaved blank i will add Done with AutoMKV... if is written something (like title of movie) i will add this string :)

BHH

Bluegram
31st January 2007, 22:27
Hi BHH!

Thanks again for your great program :)

I just had a problem with autoresize from avi source to mkv:

I recoded an xvid avi file to x264 mkv using your standard settings. Auto resize correctly lowers the resolution from 960*528 to e.g. 448*256, but the aspect ratio of the created mkv seems to be saved wrong: VLC plays the video stretched using the correct width but the wrong height.

If i select MP4 as a containter though, the AR is correct?!
I compared both logs and didnt find any differences.

Hope you can help me out,
Thanks!

22:06:00 0.72b - - - - - - - - - - - - - START JOBS - - - - - - - - - - - - - -
22:06:00 Selected Input file: C:\test.avi
22:06:00 Selected Output dir: C:\temp\
22:06:00 Selected Final Name: test
22:06:00 Selected Container type: MKV
22:06:00 Selected Encoder: X264
22:06:00 Selected Size: 15
22:06:00 Selected Slice: 1
22:06:00 Selected Profile: CE-Mainprofile.xml
22:06:00 Selected Width: Automatic
22:06:00 Selected Resizer: SimpleResize (neutral soft)
22:06:00 Selected Filters: RemoveGrain(mode=2)
22:06:00 Selected Deinterlacer: AUTO
22:06:00 Selected Field Order: AUTO
22:06:00 Track Language 1: test.avi
22:06:00 Audio Codec 1: Nero AAC
22:06:00 Audio Quality 1: 0.35
22:06:00 Advanced Audio Settings DUMP Track 1
22:06:00 Movie Title Name:
22:06:00 Audio Track Language:
22:06:00 Audio Track Name:
22:06:00 Nero Option Profiles: AUTO --- Encoding Mode: Quality
22:06:00 CCT Option Profiles: AUTO --- Channel Options: AUTO
22:06:00 Lame Settings: ABR
22:06:00 Audio Normalization: 1
22:06:00 Frequency: AUTO --- Tempo : NONE
22:06:00 Pitch: NONE --- Other Add :
22:06:00 Advanced Audio Settings DUMP Track 2
22:06:00 Audio Track Language:
22:06:00 Audio Track Name:
22:06:00 Nero Option Profiles: AUTO --- Encoding Mode: Quality
22:06:00 CCT Option Profiles: AUTO --- Channel Options: AUTO
22:06:00 Lame Settings: ABR
22:06:00 Audio Normalization: 1
22:06:00 Frequency: AUTO --- Tempo : NONE
22:06:00 Pitch: NONE --- Other Add :
22:06:00 Selected 1' Sub tracks: NONE
22:06:00 Selected 2' Sub tracks: NONE
22:06:00
22:06:19 Number of Frames: 3399
22:06:19 Framerate: 23.976044
22:06:19 Movie lenght in Seconds: 142
22:06:19 Movie Width: 960
22:06:19 Movie Height: 528
22:08:11 Processing completed. Type is determined to be progressive.
22:08:11 Order: unk
22:08:11 Encoding C:\temp\ to NeroAAC with 0.35 quality
22:08:45 Encoded 1' Audio Track: 1608633 bytes
22:08:45 Starting X264 AutoResize with WIDTH of Automatic and wanted size of 15728640 bytes
22:08:45 CRF encoding X264: c:\Program Files\AutoMKV\exe\encoder\x264.exe --pass 1 --crf 18 --stats "C:\temp\.stats" --progress --keyint 250 --bframes 3 --qpmin 10 --qpmax 51 --no-psnr --mixed-refs --trellis 1 --ref 3 --filter 0,0 --direct auto --vbv-maxrate 25000 --me hex --no-ssim --weightb --b-pyramid --b-rdo --bime --analyse p8x8,b8x8,i4x4,p4x4 --threads 2 --output "C:\temp\resmovie.mp4" "C:\temp\resmovie.avs"
22:09:49 Tested total movie: 5%
22:09:49 AutoResize movie size: 2385328 bytes
22:09:49 Movie Width suggested: 448 value based on sample size (46.67% of original width)
22:09:49 Starting X264
22:09:49 Command Line 1' Pass X264: c:\Program Files\AutoMKV\exe\encoder\x264.exe --pass 1 --bitrate 794 --stats "C:\temp\.stats" --ref 0 --no-b-adapt --progress --keyint 250 --bframes 3 --qpmin 10 --qpmax 51 --no-psnr --mixed-refs --trellis 1 --ref 3 --filter 0,0 --direct auto --vbv-maxrate 25000 --me hex --no-ssim --weightb --b-pyramid --b-rdo --bime --analyse p8x8,b8x8,i4x4,p4x4 --threads 2 --output NUL "C:\temp\movie.avs"
22:09:49 Command Line 2' Pass X264: c:\Program Files\AutoMKV\exe\encoder\x264.exe --pass 2 --bitrate 794 --stats "C:\temp\.stats" --progress --keyint 250 --bframes 3 --qpmin 10 --qpmax 51 --no-psnr --mixed-refs --trellis 1 --ref 3 --filter 0,0 --direct auto --vbv-maxrate 25000 --me hex --no-ssim --weightb --b-pyramid --b-rdo --bime --analyse p8x8,b8x8,i4x4,p4x4 --threads 2 --output "C:\temp\movie.mp4" "C:\temp\movie.avs"
22:16:34 "c:\Program Files\AutoMKV\exe\matroska\mkvmerge.exe" -o "C:\temp\test.mkv" --track-name -1:"test" --aspect-ratio 1:1.000000 "C:\temp\movie.mp4" --language -1:und "C:\temp\audio.mp4" --title "Done with AutoMKV 0.72b http://forum.doom9.org/showthread.php?p=854221 "
22:16:35 Final Muxed size: 15730987 bytes
22:16:35 Encoding finished: 00:10:35 elapsed time
22:16:35 -----------------------------------------------------------------------
22:16:35 Script AutoCrop.log
22:16:35
22:16:35 Crop(6,0,948,528)
22:16:35 -----------------------------------------------------------------------
22:16:35 Script Resmovie.avs
22:16:35
22:16:35 LoadPlugin("c:\Program Files\AutoMKV\exe\filter\autocrop.dll")
22:16:35 LoadPlugin("c:\Program Files\AutoMKV\exe\filter\blockbuster.dll")
22:16:35 LoadPlugin("c:\Program Files\AutoMKV\exe\filter\cnr2.dll")
22:16:35 LoadPlugin("c:\Program Files\AutoMKV\exe\filter\ColorMatrix.dll")
22:16:35 LoadPlugin("c:\Program Files\AutoMKV\exe\filter\Convolution3D.dll")
22:16:35 LoadPlugin("c:\Program Files\AutoMKV\exe\filter\corrector.dll")
22:16:35 LoadPlugin("c:\Program Files\AutoMKV\exe\filter\DctFilter.dll")
22:16:35 LoadPlugin("c:\Program Files\AutoMKV\exe\filter\Decomb.dll")
22:16:35 LoadPlugin("c:\Program Files\AutoMKV\exe\filter\Deen.dll")
22:16:35 LoadPlugin("c:\Program Files\AutoMKV\exe\filter\degrainmedian.dll")
22:16:35 LoadPlugin("c:\Program Files\AutoMKV\exe\filter\DGDecode.dll")
22:16:35 LoadPlugin("c:\Program Files\AutoMKV\exe\filter\EEDI2.dll")
22:16:35 LoadPlugin("c:\Program Files\AutoMKV\exe\filter\fft3dfilter.dll")
22:16:35 LoadPlugin("c:\Program Files\AutoMKV\exe\filter\FluxSmooth.dll")
22:16:35 LoadPlugin("c:\Program Files\AutoMKV\exe\filter\frfun7.dll")
22:16:35 LoadPlugin("c:\Program Files\AutoMKV\exe\filter\hqdn3d.dll")
22:16:35 LoadPlugin("c:\Program Files\AutoMKV\exe\filter\LeakKernelDeint.dll")
22:16:35 LoadPlugin("c:\Program Files\AutoMKV\exe\filter\MaskTools.dll")
22:16:35 LoadPlugin("c:\Program Files\AutoMKV\exe\filter\medianblur.dll")
22:16:35 LoadPlugin("c:\Program Files\AutoMKV\exe\filter\MipSmooth.dll")
22:16:35 LoadPlugin("c:\Program Files\AutoMKV\exe\filter\mt_masktools.dll")
22:16:35 LoadPlugin("c:\Program Files\AutoMKV\exe\filter\mvtools.dll")
22:16:35 LoadPlugin("c:\Program Files\AutoMKV\exe\filter\NicAudio.dll")
22:16:35 LoadPlugin("c:\Program Files\AutoMKV\exe\filter\RemoveGrain.dll")
22:16:35 LoadPlugin("c:\Program Files\AutoMKV\exe\filter\Repair.dll")
22:16:35 LoadPlugin("c:\Program Files\AutoMKV\exe\filter\SangNom.dll")
22:16:35 LoadPlugin("c:\Program Files\AutoMKV\exe\filter\SimpleResize.dll")
22:16:35 LoadPlugin("c:\Program Files\AutoMKV\exe\filter\TBilateral.dll")
22:16:35 LoadPlugin("c:\Program Files\AutoMKV\exe\filter\TDeint.dll")
22:16:35 LoadPlugin("c:\Program Files\AutoMKV\exe\filter\TIVTC.dll")
22:16:35 LoadPlugin("c:\Program Files\AutoMKV\exe\filter\TomsMoComp.dll")
22:16:35 LoadPlugin("c:\Program Files\AutoMKV\exe\filter\TTempSmooth.dll")
22:16:35 LoadPlugin("c:\Program Files\AutoMKV\exe\filter\UnDot.dll")
22:16:35 LoadPlugin("c:\Program Files\AutoMKV\exe\filter\UnFilter.dll")
22:16:35 LoadPlugin("c:\Program Files\AutoMKV\exe\filter\VSFilter.dll")
22:16:35 #loadpluginstart
22:16:35
22:16:35 #test1
22:16:35
22:16:35 Import("c:\Program Files\AutoMKV\exe\filter\MCBob_v03c.avsi")
22:16:35 Import("c:\Program Files\AutoMKV\exe\filter\mvbob.avsi")
22:16:35 Import("c:\Program Files\AutoMKV\exe\filter\QMF.avsi")
22:16:35 Import("c:\Program Files\AutoMKV\exe\filter\seesaw.avsi")
22:16:35 Import("c:\Program Files\AutoMKV\exe\filter\spresso.avsi")
22:16:35 #importstart
22:16:35
22:16:35 #test2
22:16:35
22:16:35 movie = directshowsource("C:\test.avi",audio=false)
22:16:35 movie = isRGB(movie) ? ConvertToYV12(movie,interlaced=true) : movie
22:16:35 movie = isYUY2(movie) ? ConvertToYV12(movie,interlaced=true) : movie
22:16:35 function getOrder(clip c) {
22:16:35 order = GetParity(c) ? 1 : 0
22:16:35 Return order }
22:16:35 #filter1start
22:16:35
22:16:35 #test3
22:16:35
22:16:35 #cropstart
22:16:35
22:16:35 cropclip = autocrop(movie,mode=0,wmultof=4,hmultof=4,samples=40,aspect=0,threshold=34,samplestartframe=0)
22:16:35 fixed_aspect = 1
22:16:35 c_width = width(cropclip)
22:16:35 c_height = Round(height(cropclip) / fixed_aspect)
22:16:35 input_par = float(float(c_width)/float(c_height))
22:16:35 input_par = input_par > 1.4 ? input_par : (4.0/3.0)
22:16:35 out_width = 944
22:16:35 out_height = Round(float(out_width) / input_par)
22:16:35 hmod = out_height - (floor(out_height / 16 ) * 16)
22:16:35 out_height = (hmod > 4) ? (out_height + (16 - hmod)) : (out_height - hmod)
22:16:35 new_aspect = (float(out_width) / float(out_height)) / fixed_aspect
22:16:35 autocrop(movie,mode=0,wmultof=4,hmultof=4,samples=40,aspect=new_aspect,threshold=34,samplestartframe=0)
22:16:35
22:16:35 #resizestart
22:16:35
22:16:35 #test4
22:16:35
22:16:35 SimpleResize(out_width,out_height)
22:16:35 #filter2start
22:16:35
22:16:35 #test5
22:16:35
22:16:35 RemoveGrain(mode=2)
22:16:35 function Comptest(clip c, float percent)
22:16:35 {
22:16:35 frange=floor(14./(percent/100.))
22:16:35 Return SelectRangeEvery(c, frange, 14)
22:16:35 }
22:16:35 Comptest(5)
22:16:35 -----------------------------------------------------------------------
22:16:35 Script movie.avs
22:16:35
22:16:35 LoadPlugin("c:\Program Files\AutoMKV\exe\filter\autocrop.dll")
22:16:35 LoadPlugin("c:\Program Files\AutoMKV\exe\filter\blockbuster.dll")
22:16:35 LoadPlugin("c:\Program Files\AutoMKV\exe\filter\cnr2.dll")
22:16:35 LoadPlugin("c:\Program Files\AutoMKV\exe\filter\ColorMatrix.dll")
22:16:35 LoadPlugin("c:\Program Files\AutoMKV\exe\filter\Convolution3D.dll")
22:16:35 LoadPlugin("c:\Program Files\AutoMKV\exe\filter\corrector.dll")
22:16:35 LoadPlugin("c:\Program Files\AutoMKV\exe\filter\DctFilter.dll")
22:16:35 LoadPlugin("c:\Program Files\AutoMKV\exe\filter\Decomb.dll")
22:16:35 LoadPlugin("c:\Program Files\AutoMKV\exe\filter\Deen.dll")
22:16:35 LoadPlugin("c:\Program Files\AutoMKV\exe\filter\degrainmedian.dll")
22:16:35 LoadPlugin("c:\Program Files\AutoMKV\exe\filter\DGDecode.dll")
22:16:35 LoadPlugin("c:\Program Files\AutoMKV\exe\filter\EEDI2.dll")
22:16:35 LoadPlugin("c:\Program Files\AutoMKV\exe\filter\fft3dfilter.dll")
22:16:35 LoadPlugin("c:\Program Files\AutoMKV\exe\filter\FluxSmooth.dll")
22:16:35 LoadPlugin("c:\Program Files\AutoMKV\exe\filter\frfun7.dll")
22:16:35 LoadPlugin("c:\Program Files\AutoMKV\exe\filter\hqdn3d.dll")
22:16:35 LoadPlugin("c:\Program Files\AutoMKV\exe\filter\LeakKernelDeint.dll")
22:16:35 LoadPlugin("c:\Program Files\AutoMKV\exe\filter\MaskTools.dll")
22:16:35 LoadPlugin("c:\Program Files\AutoMKV\exe\filter\medianblur.dll")
22:16:35 LoadPlugin("c:\Program Files\AutoMKV\exe\filter\MipSmooth.dll")
22:16:35 LoadPlugin("c:\Program Files\AutoMKV\exe\filter\mt_masktools.dll")
22:16:35 LoadPlugin("c:\Program Files\AutoMKV\exe\filter\mvtools.dll")
22:16:35 LoadPlugin("c:\Program Files\AutoMKV\exe\filter\NicAudio.dll")
22:16:35 LoadPlugin("c:\Program Files\AutoMKV\exe\filter\RemoveGrain.dll")
22:16:35 LoadPlugin("c:\Program Files\AutoMKV\exe\filter\Repair.dll")
22:16:35 LoadPlugin("c:\Program Files\AutoMKV\exe\filter\SangNom.dll")
22:16:35 LoadPlugin("c:\Program Files\AutoMKV\exe\filter\SimpleResize.dll")
22:16:35 LoadPlugin("c:\Program Files\AutoMKV\exe\filter\TBilateral.dll")
22:16:35 LoadPlugin("c:\Program Files\AutoMKV\exe\filter\TDeint.dll")
22:16:35 LoadPlugin("c:\Program Files\AutoMKV\exe\filter\TIVTC.dll")
22:16:35 LoadPlugin("c:\Program Files\AutoMKV\exe\filter\TomsMoComp.dll")
22:16:35 LoadPlugin("c:\Program Files\AutoMKV\exe\filter\TTempSmooth.dll")
22:16:35 LoadPlugin("c:\Program Files\AutoMKV\exe\filter\UnDot.dll")
22:16:35 LoadPlugin("c:\Program Files\AutoMKV\exe\filter\UnFilter.dll")
22:16:35 LoadPlugin("c:\Program Files\AutoMKV\exe\filter\VSFilter.dll")
22:16:35 #loadpluginstart
22:16:35
22:16:35 #test1
22:16:35
22:16:35 Import("c:\Program Files\AutoMKV\exe\filter\MCBob_v03c.avsi")
22:16:35 Import("c:\Program Files\AutoMKV\exe\filter\mvbob.avsi")
22:16:35 Import("c:\Program Files\AutoMKV\exe\filter\QMF.avsi")
22:16:35 Import("c:\Program Files\AutoMKV\exe\filter\seesaw.avsi")
22:16:35 Import("c:\Program Files\AutoMKV\exe\filter\spresso.avsi")
22:16:35 #importstart
22:16:35
22:16:35 #test2
22:16:35
22:16:35 movie = directshowsource("C:\test.avi",audio=false)
22:16:35 movie = isRGB(movie) ? ConvertToYV12(movie,interlaced=true) : movie
22:16:35 movie = isYUY2(movie) ? ConvertToYV12(movie,interlaced=true) : movie
22:16:35 function getOrder(clip c) {
22:16:35 order = GetParity(c) ? 1 : 0
22:16:35 Return order }
22:16:35 #filter1start
22:16:35
22:16:35 #test3
22:16:35
22:16:35 #cropstart
22:16:35
22:16:35 cropclip = autocrop(movie,mode=0,wmultof=4,hmultof=4,samples=40,aspect=0,threshold=34,samplestartframe=0)
22:16:35 fixed_aspect = 1
22:16:35 c_width = width(cropclip)
22:16:35 c_height = Round(height(cropclip) / fixed_aspect)
22:16:35 input_par = float(float(c_width)/float(c_height))
22:16:35 input_par = input_par > 1.4 ? input_par : (4.0/3.0)
22:16:35 out_width = 448
22:16:35 out_height = Round(float(out_width) / input_par)
22:16:35 hmod = out_height - (floor(out_height / 16 ) * 16)
22:16:35 out_height = (hmod > 4) ? (out_height + (16 - hmod)) : (out_height - hmod)
22:16:35 new_aspect = (float(out_width) / float(out_height)) / fixed_aspect
22:16:35 autocrop(movie,mode=0,wmultof=4,hmultof=4,samples=40,aspect=new_aspect,threshold=34,samplestartframe=0)
22:16:35
22:16:35 #resizestart
22:16:35
22:16:35 #test4
22:16:35
22:16:35 SimpleResize(out_width,out_height)
22:16:35 #filter2start
22:16:35
22:16:35 #test5
22:16:35
22:16:35 RemoveGrain(mode=2)
22:16:35 -----------------------------------------------------------------------
22:16:35 Script mkvmaudio.avs
22:16:35
22:16:35 video=DirectShowSource("C:\test.avi",audio=false)
22:16:35 audio=DirectShowSource("C:\test.avi",video=false)
22:16:35 last=audiodub(video,audio)
22:16:35 EnsureVBRMP3Sync()
22:16:35 ConvertAudioToFloat()
22:16:35 #Applyed STEREO downmixing routines
22:16:35 function stereo(clip a)
22:16:35 {
22:16:35 fl = GetChannel(a, 1)
22:16:35 fr = GetChannel(a, 2)
22:16:35 c = GetChannel(a, 3)
22:16:35 lfe = GetChannel(a, 4)
22:16:35 sl = GetChannel(a, 5)
22:16:35 sr = GetChannel(a, 6)
22:16:36 l_sl = MixAudio(fl, sl, 0.2929, 0.2929)
22:16:36 c_lfe = MixAudio(lfe, c, 0.2071, 0.2071)
22:16:36 r_sr = MixAudio(fr, sr, 0.2929, 0.2929)
22:16:36 l = MixAudio(l_sl, c_lfe, 1.0, 1.0)
22:16:36 r = MixAudio(r_sr, c_lfe, 1.0, 1.0)
22:16:36 Return MergeChannels(l, r).Normalize()
22:16:36 }
22:16:36 #
22:16:36 function original(clip a)
22:16:36 {
22:16:36 Normalize(a)
22:16:36 Return last
22:16:36 }
22:16:36 6==Audiochannels() ? stereo() : original()
22:16:36 -----------------------------------------------------------------------
22:16:36 Script mkvmaudio.bat
22:16:36
22:16:36 "c:\Program Files\AutoMKV\exe\besweet\bepipe.exe" --script "Import(^C:\temp\mkvmaudio.avs^)" | "c:\Program Files\AutoMKV\exe\besweet\neroaacenc.exe" -ignorelength -q 0.35 -if - -of "C:\temp\audio.mp4"
22:16:36 -----------------------------------------------------------------------
22:16:36 Script mkvmaudio2.avs
22:16:36
22:16:36 Script mkvmaudio2.bat
22:16:36 FINISHED

Ah OK! Thanks for the quick answer :)

buzzqw
31st January 2007, 22:43
on avi input (or any mpeg4 input files) i don't know the original aspect ration.

While on mpeg2 this value is valorized on avi no, so you will see that in muxing string there is this "--aspect-ratio 1:1.000000"

That's the whole point. In advanced setting select "Force muxing AR" to 4:3 or 16:9 or to any correct value :)

about muxing in mp4... well ... mp4box seems to ignore the par value... so is like mkv string without --aspect-ratio

BHH

dlflannery
1st February 2007, 06:04
@dlflannery
this is now a problem of either tdecimate or wmv, please post a sample that is able to replicate the problem. Also try encoding this movie with xvid or x264 and please report if got the error again :thanks:

BHH
I encoded it to xvid (avi) using normal profile and same bitrate and width as for Zune. No problem. Good result.

I started cutting clips of different sizes and positions from the mpeg2 to test. The shortest clip I have that failed with interlace set to AUTO is the last 11.5 minutes of the video, which is 171 MB. I might be willing to upload that (where?) but it would take me about 1.5 hour.

I generated about 8 different clips. The problem is associated with the last few minutes of the video. However I could not find a cut less than the 11.5 minutes that had the problem. Some of the clips greater than 11.5 minutes failed. For every clip that failed, if I changed interlace setting to "film", they encoded fine. I also tried film setting on some of the clips that were OK with AUTO. They all encoded fine.

I suspect the problem occurs where the movie ends and the credits begin to roll.

One two-minute clip was typed as progressive by AutoMKV and dgIndex but was rated 3:2 "player telecine" (i.e., film) by gspot. The other clips were rated either film or partly film by AutoMKV. The ones that failed to encode were 99.4% film and were rated partly film. One that was 97.5% film and was rated partly film was encoded OK.

Is it possible you have a threshold of 99.5% film for when you decide to use the hybrid=3 in tdecimate? Based on my results I think if this threshold were lowered to perhaps 97%, it would give better overall results (perhaps for WMV only?). But I don't claim to understand what's going on......

Can you give a link for an explanation of what hybrid=3 does in tdecimate? I've searched and found descriptions of tdecimate but they don't explain hybrid=3.:thanks:

buzzqw
1st February 2007, 08:29
the main problem is that i live in PAL land... so most of this source files are simply missing, and i cannot do test :(

I encoded it to xvid (avi) using normal profile and same bitrate and width as for Zune. No problem. Good result.

that's mean it is a problem of wmv

I suspect the problem occurs where the movie ends and the credits begin to roll.

while xvid/x264 are able to process the stream seems that wmv isn't capable...

please open your movie.avs, and change hybrid=3 to hybrid=1 and reecond both with xvid and wmv (simply relaunch the bat encoding), and tell me if the encoding crash and most important if the quality is good, also please don't use a resolution under 640 :thanks: !!

BHH

dlflannery
1st February 2007, 18:56
.....

please open your movie.avs, and change hybrid=3 to hybrid=1 and reecond both with xvid and wmv (simply relaunch the bat encoding), and tell me if the encoding crash and most important if the quality is good, also please don't use a resolution under 640 :thanks: !!

BHH
So to do this, I check "Prepare phase only" on the Advanced tab, then when it stops I edit the movie.avs file, then launch the encoding batch file , correct ?

Does it matter whether I shut down AutoMKV before running the encoding batch?

Thanks. BTW I found the thread on tritical's TDeint and TIVTC so I know what hybrid=1 and hybrid=3 mean now (I think:) )

buzzqw
1st February 2007, 19:26
you can also edit an already present movie.avs, changing from hybrid=3 to hybrid=1, and then launch encoding batch files like movie_wmv.bat

BHH

papsi
2nd February 2007, 00:29
Hi!
I've just registered to tell you, that AutoMKV is a really great program! :)

I have also a few questions, maybe some suggestions. I'm not that experienced with the encoding/ripping terminology, so maybe I will ask some things which may sound primitive to the experienced user. I'm sorry about that.

I used Dr. DivX and then AutoGK for ripping, and a month ago I decided to switch to Matroska and AutoMKV. At first I experimented with X264 but realized that the encoding is way to slow on my comp (I need to finish the ripping during one night which is not enough with X264 on my Barton 2600+ 1GB RAM). So I stayed with XviD.

So my questions/suggestions are:
- better interaction with the user, tooltips which are visible not only 1x

- I had pretty serious problems with one film (The 13th Warrior). First the encoding proccess always failed with AutoMKV versions 0.68-0.71, and always at 51-52% (XviD_encraw.exe). It was caused probably by the splitting bug (fixed in 0.71). The encoding finished successfully with AutoMKV 0.72, but there was no movie at the end, just a couple of temp files in the TEMP folder. It took me 2 days to realize the cause of the problem: VSRip.exe created no subtitle file (.IDX/.SUB pair) in the TEMP folder, and in the final stage (muxing with MKVMerge) the program just exited without doing anything because of the missing .IDX/.SUB files. So it would be great if AutoMKV would find these kind of problems (missing files) at time and report it to the user (or just stop the job).

- better visual representation of audio/subtitle choosing and options. We can include 1, 2 or all subtitle/audio streams, but not 3 (for example). I came across several DVDs with at least 5 languages + director's comments, and I wished to include 3 streams but not all 6.

- I miss one option from AutoGK, and that's the percentage-style ripping, when we lose control of size and we give a quality percentage instead (80% gave near-DVD quality). In AutoMKV this is the CQ XviD profile, when we hit "Unlimited size". But that's it, there are no other options (at least I think :) ). I tested this option with 2 films. The 1st film gave a 900 MB final movie size, and the 2nd a 1 GB size movie. The 2nd movie was pretty good in quality, but the 1st wasn't, especially when I compared with a 2 CD version of the same film. With the 2nd film I tried to play with the "Specify Bitrate" option a bit (and entered 2000 :) ), but it produced a 1 GB film (weird), and XviD_encraw.exe always showed a much smaller average bitrate. Does the "Specify Bitrate" option works with XviD or only with other codecs (like WMV)? What if I wish to manually apply a very high bitrate in case I wish to use Sharktooth's V3UHS custom matrix? Is it possible?

Once again, AutoMKV is a great program, I'm looking forward for the next releases! :)

whiskey
2nd February 2007, 02:21
Well pretty much this is the first time as I'm trying this software (right now) looks friendly besides two things !

Profiles CQ,CE,AE not sure yet what those mean, but I'll seek around the forum, also the quality of audio is represented way that I'm not used to it since I always saw kbps measuring.It looks solid, grabbed Nero encoder, Avisynth as far it goes no errors.Thanks and hope it will crawl up to the perfection same as AutoGK.

dlflannery
2nd February 2007, 04:49
please open your movie.avs, and change hybrid=3 to hybrid=1 and reecond both with xvid and wmv (simply relaunch the bat encoding), and tell me if the encoding crash and most important if the quality is good, also please don't use a resolution under 640
........
you can also edit an already present movie.avs, changing from hybrid=3 to hybrid=1, and then launch encoding batch files like movie_wmv.bat
.......
BHH
I used the 11.5 min Mpeg2 clip that failed before (with interlace=AUTO, hybrid=3, width=320, Bitrate=500k, to Zune WMV).

I changed width to 640 and bitrate to 900 for all tests.

Results:
WMV, hybrid=3 or hybrid=1, identical results: encoder crashed at end. Video and audio were OK but no navigation (seeking) was possible.
NOTE: In other tests done before with different clips, the encoder would not always crash but would quit early creating a very small output file.

WMV, tdecimate(), i.e., no hybrid: Everything OK. Looks good.

AVI(XVID), Fastest 1-pass, Interlace=AUTO, hybrid=3: All OK, looks good.

AVI(XVID), Fastest 1-pass, hybrid=1, Encoding finished OK and Video and Audio are good, but playing at different rates. In sync at start then audio lag increases as you go. Media info says the video is 9.2 min, which is 24/30 of the true length. (I suspect this is just wrong audio processing or muxing for the hybrid=1 ? I used fullbatch.bat)

I hope this tells you something useful !

whiskey
2nd February 2007, 07:54
So I'm done with my rip, quality kinda ok but I get those smooth waves/lines in video especially when lots of movement is present.No idea why, deinterlace was set to auto...

buzzqw
2nd February 2007, 08:29
@papsi

thanks for your suggestion... maybe i will add some more sanity check :)

better interaction with the user, tooltips which are visible not only 1x

that's no possible... it's a bug of WINDOWS ! (if you want i can demostrate it... go with mouse over the date in system tray and wait till it fade away, then retry to view the tooltip.... nope!)

better visual representation of audio/subtitle choosing and options. We can include 1, 2 or all subtitle/audio streams, but not 3 (for example). I came across several DVDs with at least 5 languages + director's comments, and I wished to include 3 streams but not all 6.
well that's no easy... but hints: select all audio tracks then when all is finished "manual mux" the tracks you want...

With the 2nd film I tried to play with the "Specify Bitrate" option a bit (and entered 2000 ), but it produced a 1 GB film (weird), and XviD_encraw.exe always showed a much smaller average bitrate. Does the "Specify Bitrate" option works with XviD or only with other codecs (like WMV)?

two answer: yes, bitrate is used for all codecs, xvid or x264 or wmv, just check use specified bitrate. Second... is probably that with 2000 bitrate you have saturate (saturated: aka no more quality possible due to other constraints) so the movie cannot growth more...

What if I wish to manually apply a very high bitrate in case I wish to use Sharktooth's V3UHS custom matrix? Is it possible?
for sure ! just try! :)

So I'm done with my rip, quality kinda ok but I get those smooth waves/lines in video especially when lots of movement is present.No idea why, deinterlace was set to auto...

as always :logfile: thanks!

i wish to thanks all. i will study how to do automkv a better program!

BHH

mael
2nd February 2007, 15:19
i think AutoMKV just deleted the whole content of a 400GB NTFS partition

AutoMKV was enconding a video file and a warning popped up, saying that some x264cmdq bat-file couldn't be found. i clicked it away. at that time i was making adjustments for another video in the mainscreen and suddenly all the options changed again to the standard settings (not my saved settings, also in the advanced settings tab) and then the AutoMKV process used quite some CPU power but has not spawned any child processes with cmd.exe which it usually does.
the first video was on another partition as the 2nd one, which was on this 400 GB partition, which is now entirely empty. not even RECYCLER or System Volume Information is there.

i don't have any viruses/spyware but i'm doing a full virus scan of my system now. i even did a rootkit scan this week which didn't find anything.
there was not anything else running what could've caused this.

for now the drive is disconnected because next week (or tomorrow if i'm lucky) i'm getting new hard disks, then i can clone the drive and see if i can recover any data

edit: there is nothing useful in the event log
edit2: AutoMKV version 0.72b

buzzqw, do you think that is possible, that AutoMKV did this?

dlflannery
2nd February 2007, 15:59
@buzzqw:
I'm willing to upload my 11.5 min mpeg2 clip (171 MB) if you know a site that would accept it.

buzzqw
2nd February 2007, 16:28
Automkv cannot delete system files ! like recycler bin or system restore !
also "Delete temporary files" is not checked by default and even more i delete only the \temp directory i created ! :scared:

i am sorry but automkv will not delete any other files

anyway in next build i will check if \temp directory is the root of driver (and this is impossible since i create it, and i cannot create a d:\ !!!! ) (like c:\ or d:\ e:\.... i will check till i:\ ) and if so i will not delete it

BHH

mael
2nd February 2007, 16:34
damn, then i have to figure out what else could've caused this.
the virus scan didn't find anything

the drive is just a couple of month old and had the letter i:
i DID check the option to delete the temp files...

mael
2nd February 2007, 16:37
before i had this problem i wanted to post this:

a few things which would be nice:
(sorry if they were already mentioned, i'm too lazy to read the whole thread. i used the version 0.72b as reference)

+ no windows popping up

+ multichannel AAC. it seems pretty hard to do it as far as i've googled. at least i didn't find any (free) program to do it. even with besweet i couldn't do it (AC3 source).

+ autosaving of the settings when exiting

+ better queue management:
- cancel the current running progress
- an option not to clear the job if it finished successfully
- display the duration time and avg. FPS (1st+2nd pass) of a finished job
- IMHO the queue itself as an extra tab is not userfriendly. maybe at the bottom of the window, visible all the time, regardless which tab is selected
- maybe put every job in the queue ("start" button equals "put it in the queue and start it")
- status display in the main screen (sth is running, job xxx finished etc)
- no popup message if a job was added to the queue, i find it annoying. better just write it somewhere (status display :)
- option for less columns
(- ETA of the whole job. probably not possible? or maybe just after the 2nd pass startet, that ETA of x264.exe should be reliable)

+ less verbosive log file

+ display the estimated bitrate for the selected options for audio and video, if possible. maybe a button which calculates that (fast)

buzzqw
2nd February 2007, 17:04
i DID check the option to delete the temp files...

feel free to retry on usb pen drive, i cannot delete the root files!

+ no windows popping up
i had already removed lot's of pop-up... but i will try (as always to remove some more)

+ multichannel AAC. it seems pretty hard to do it as far as i've googled.
Already avaiable. just select Codinc Tech. AAC (already present) or nero digital if you download it!

+ autosaving of the settings when exiting
already present....in some way... just hit save setting, will be automatically loaded on next restart

queue: ouch.. i will look at it :)

+ less verbosive log file
is all needed, for debugging

display the estimated bitrate for the selected options for audio and video, if possible. maybe a button which calculates that (fast)
not so easy since its based on quality preset... but i will search

thanks for your support!

BHH

audioman
2nd February 2007, 20:23
Hi Buzz

Congratulations for your program

Just a question , where can I find the manual of automkv ?

I have just some questions about the different matrices

Which one do you advise me to choose ? HVS or 6o9

Thanks

Greeneemer
2nd February 2007, 22:47
Hi.
Really nice program. Here is some input:

First of all, the window looks quite messed up for me using 120 DPI. Here is a screenshot showing what I mean: screenshot (http://www.dtek.chalmers.se/~stolpep/automkv.jpg)

Second: I would like the option to add srt subtitles instead of the bitmap based subtitles from the disc. Its not much of a problem to add them later, but it would be neat if they could be imported directly into AutoMKV.

Third: I would like to see a small text describing each of the Profiles. Especially the x264 profiles arent exactly self-explainatory to me. Like, what is AE, CE and HQ? I guess that HQ means High Quality, but is that the quality of my input or how i want my output? (based on how much time i want to spend)