Log in

View Full Version : MkvMagic 1.33 (DVD/AVI/IFO/D2V/AVS to DVD/Mkv/Mp4/Avi All in One, GPL)


Pages : [1] 2 3

buzzqw
24th October 2005, 14:32
Hi All !

I am glad to annunce the new release of MkvMagic ! (ver. 1.33, scroll down for changelog)

In crude way (better reading the manual or take a look at images) : 13 way do encoding (manual, semi automatic, full automatic) in XviD (and XviD Command Line) or X264(VFW and EXE) or Mpeg2 (HcEnc,QuEnc,AutoQMatEnc,Rejig), 2 audio tracks (mp3/ogg/aac-lc/aac-he,5ch), 4 container (mkv/mp4/avi/dvd), 2 subs tracks (vobsubbed and the muxed in mkv), 14 resizer (now editable), automatic quality/resize, automatic ar, dvd support (dvd to rip or already ripped), or 30 avisynth filter (and possibility to expand over and over) (now much more), possibility to deinterlace (and apply custom deinterlacer) and over and over...

Link to Manual (http://www.64k.it/andres/data/mkvmagic/MkvMagic%20Tutorial.html) (just to take a taste...) UPDATE to 1.33

Project now hosted on SourceForge (https://sourceforge.net/projects/mkvmagic/)

Please Download from sourceforge or if problem here the direct link
MkvMagic 1.33 (http://www.64k.it/andres/data/mkvmagic/MkvMagic_1.33.7z)

The file is a .rar archive. No need to install new software just unpack. Only needed avisynth 2.55+, x264 ver 504+, xvid 1.1.0

Note : i live in pal land so all my tests is done with pal source material.

Sorce code (in purebasic) is avaiable on MkvMagic Sourceforge Site !

BHH

CHANGELOG

NEW CHANGELOG ON NEXT POSTS


0.68
Is now possible to process uncompressed avi (Thanks Rickee!!!)
Resolved bugs using 1 pass with X264
0.67
Now if choosed Quality or Quantitizer (for X264.exe) the bitrate combo is populated with default values
Now MkvMagic will search application directory in its folder.
THERE MUST BE PRESENT: BeSweet / DOC / exe / filter / matroska / profiles / script / Tutorial folders
0.66
Added language tag to audio when muxing into mp4
Is now possible to choose per mp3 audio encoding ABR or CBR
Is now possible to specify at witch Quant the compression test must be done (both for XviD or X264 VFW and Command Line)
0.65
Whenever you change container the audio choice will be reset to default (mp3 128)
Is now possible to encode audio in AC3 (both 2ch, 5ch+1). Be carefull, source audio cannot be ac3! (besweet bug..)
Update Lame_Enc to 3.98b2
Added FastPSkip option (will be parsed from Sharktooth' profiles)
0.64
Update log for BeSweet
BeSweet don't correctly parse frequency settings
Returned MP4Box into Matroska folder (and btw updated to 1.6.5+subs fix)
Introduced AAC audio settings in "Credits/Calc/Audio" panel. Used for tuning AAC encoding (or for choose WinAmp CT over Nero 7)
0.63
After much thinking i have adopted BeSweet for all audio encoding pourpose.
This will let out azid.exe/oggenc.exe/lame.exe/ffmpeg.exe and more.
I will use twolame.exe for mp2 encoding, 'cause both mp2enc/toolame isn't stable.
Also i will use delay_fix.exe by JSoto for fixing delay and check correct stream
Is also now possible to encode avi to avi (and apply convertfps() if needed)
0.62
Added support for besweet (not used)
Using Enc_aacPlus for 5+1 AAC encoding (AACEnc doesn't support 4gb+ wave file)
Now if you choose encoding in 5+1 (ogg/aac) , the wav file is always deleted
Moved Mp4Box into executable directory
Tuned up the autoresize settings for x264 (target Q=19)
Now checkmedia.txt,dvdinfo.txt and other files used for parsing is deleted
0.61
Even for d2v input AR is calculated now
If X264's Shartooth Profiles doesn't exist the program wil not hang :)
Now framerate is setted for AutoQMatEnc
0.60
Is now possible to specify output framerate and to framerate conversion for avi to dvd conversion (for PAL to NTSC or viceversa)
0.59
Near perfet AR calculation on X264 ( a good job !)
Better Autosize calculation (now is calculated on exact width/height)
Better bitrate calculation for X264
0.58
Better layout on panel (i tryed at least)
0.57
Splitting on Mp4 container is now fuctional (stupid bug, as usual)
0.56
Now all passes for X264 will write a batch file for a better analyse of command line string (and catch error...)
0.55
Is now possible to write a command line file based on X264 settings. Just click on "WriteCMD", on destination directory a "x264cmd.bat" will be writed
0.54
Bug fixes,bug fixes,bug fixes (and a lot more bugs!)
0.53
Is now possible to let MkvMagic parse and set AR even for X264 encoding
0.52
Most switch on X264 gui have now a tooltip based on Mencoder manual
0.51
Full fuctional X264.exe gui
Is possible to do ABR,2 Pass (auto bitrate,manual bitrate), Constant Quality, Constant Q
If 2 Pass or ABR is choosed is possible to specify the bitrate or by leaving "AUTO" let MkvMagic calculated it
For Constant Q and Costant Quality is NECESSARY SPECIFY THE Q OR CRF
0.50
For avi input is now possible to the frequency (48000 or 44100) for audio output
0.49
Better (again) resize routines for dvd to dvd
More tooltip for crop and bitrate calculator
Now even long path is supported (for input and output file). Max 100 char BUT NO SPACE in path !!!. (So don't copy on desktop !!!)
0.48
Better resize routines for avi to dvd (for AR respect)
0.47
MkvMagic is able to parse Sharktooth profiles for MeGui.
Un7zip the file in MkvMagic directory. It will create a folder profiles/video with all xml file in it
0.46
Added a Bitrate calculator
Added X264.exe gui (not fuctioning)
0.45
Added tooltip for new Avisynth Panel
Added tooltip for extra panel
is now possible to choose as input an audio file (or video...) . If you choose ES Audio only the audio track will be converted
0.44
Added a new Panel
Is possible to specify the dll to load
Is possible to specify the avsi to import
Is possible to write a command script both before resize and after resize filter
0.43
Added Trim option. Is possible to either trim source file or encoded at fixed quant
0.42
Is now possible to specify crop parameter
Is now possible to specify resize parameter
0.41
Is now possible to manual tune autocrop parameter. Pay attention, what is writtend is used by application
0.40
Is now possible to choose how to parse avi (and now ogm/mkv) file: using AviSource or DirectShowSource.
Default is on DirectShowSource
Is now possible to convert avi input in mpeg2 file
Tuning of mpeg2 encoding profiles
0.37
Using Avisource is now possible to add as source file avi
0.36
Update Avi_Mux-Gui at 1.17.4
Update Lame to 3.97 beta 1
Is now possible after a DVD encoding with DVD mux to build an iso-dvd for later burning
If enabled Delete temp.file and Build ISO, the AUDIO_TS and VIDEO_TS previusly created are deleted.
Now if mpeg4 as container is used all option used for mpeg2 encoding are disabled
0.35
Is now possible to delete all temporary file even for mpeg2 encoding
0.34
Is now possible in mpeg2 mode to encode only audio or only video (with no muxing)
Better disabled/enable option for mpeg2 routines
0.33
Enable subs in DVD mode.
The subs/audio also get correct language tag description. Subs are converted to sup.
0.32
Is now possible to build a DVD video, with AUDIO_TS and VIDEO_TS folders
0.31
Introduced the possibility to to a Costant Quality encoding. Only with HCenc or AutoQMatEnc.
Is also possible to encode in CQ Auto mode. With HCenc or AutoQMatEnc is possible to encode at fixed quant but with a maximum bitrate. In this way a 1 Pass VBR could be processed.
Wiser routines for enable/disable options/box on varius change of encoder/container
Is now possible to specify the max bitrate (when enabled in encoder) used in encoding.
Tooltip for new options
0.30
Introduced the possibility do encode in Mpeg2 format.
Using HCenc or QuEnc or AutoQMatEnc is now possible to do dvd copy (honoring all Law on copyright).
Right now is possible only to build audio (as mp2) and video (as mpv)
The video could be encoded in 2 Pass VBR, 1 Pass CBR or 1 Pass VBR. Bitrate can be manual or automatic
0.22
Varius bux fixes
Otpimized code
Updated AAC audio encoding libs
0.21
Is now possible to let resizer be applyed by QMF(). Take a look at "QMF() Script5" . It is easy:
1') in resize filter choose EDIT but do not write anything (resize box should be blank)
2') choose a QMF filter script with a resizer (in any fuction) applyed
Is now possible to choose more the 4 qmf script. AS LONG AS the first THREE character of filter is QMF , this filter will be used as a QMF function, so with import of QMF script and fuction ! (what you write as qmf filter, as "QMF Script 6" a file with the SAME file NAME must be present in script directory)
Added support for filter DCTFilter
Added support for filter HQDN3D
0.20
Added support for LimitedSharpen
Now on resize list you will find even LimitedSharpen. Feel free to edit the parameters BUT remember that output with/height must be named out_width/out_height , otherwise , after autocrop, will be applyed the width/height specified in edited string.
To test some fun try "LimitedSharpen(1.25,1.25,out_width,out_height,edgemode=-1,3)" (enable edit and choose LimitedSharpen, then edit it by adding "edgemode=-1")
BIG NOTE: if you edit the resizer (whatever resizer is edit) THAT STRING will be applyed for resizing (so no string -> no resizer, only auto crop, take a look at 0.16 upgrade)
0.19
Now Configure codec button is enabled only when is needed to configure Codec
0.18
Solved audio bug with vob input (introduced with 0.17)
Revisited the QMF script. Please take a look at QMF.avs and the new QMF() Script
Now QMF is much more efficent. Feel free to modify QMF() Script ! (my preferred are "QMF() Script4" and "QMF() Script2")
Added the possibility to Delete temporary file. If check is validated all file but final movie (and source movie/audio) will be deleted
0.17
Solved a stupid bug that will ignore AR set by user
Is now possible to choose as input file even file D2V. After choosing this file MkvMagic will prompt two time for choosing till two audio tracks. If you want to process only one audio tracks choose the first and click on cancel on second request.
Added an About box (mainly for Legality use)
NOTE: external audio could be ac3, mpeg layer2 or layer3, wav. NO OGG - NO DTS. OGG audio is compatibly only if Copy Original is choosed as audio codec
NOTE: the d2v file must be compatible with dgdecode.dll it filter directory (as now 1.4.6, DGIndexProjectFile12)
Update fft3dfilter to 1.8.1
0.16
Resolved (after a big hunt) the bug that occasionally crash MkvMagic after encoding , before muxing !!
Added the possibility to edit the Resizer filter. NOTE : if you want to apply autocrop write something like "SimpleResize(640,480)" if DO NOT WANT to apply autocrop write "SimpleResize(movie,640,480)

scrat
24th October 2005, 15:08
Hey!

Sounds really good. I'll have a look on it in the next days.
But why just 2 audio and 2 subtitles tracks?


cu, scrat

buzzqw
24th October 2005, 15:52
usually 2 audio and 2 subs is enough... (i will consider to expand however !)

thanks

BHH

buzzqw
7th November 2005, 13:52
update to 0.22

read first post for changelog !

BHH

buzzqw
12th December 2005, 13:21
Update to 0.67

Mayor Change:

many an more:
d2v input
avi input
mpeg2 output (even dvd or dvd iso) using hcenc,quenc,autoqmatenc or rejig
x264.exe full fledged gui (ABR, 2 automatic pass, constant quantitizer,quality), parsing Sharktooth profiles
bitrate calculator
trim/rise quant
nero7 or Winamp CT audio


and a lot more

BHH

buzzqw
12th December 2005, 15:22
EDIT : latest mkvmagic.exe

EDIT: LOOK at first post

changelog : www.64k.it/andres/_Changelog.txt

BHH

buzzqw
19th December 2005, 15:13
Update to 0.75 download link on first post !

changelog from latest 0.67

0.75
Added auto deinterlace option. If you choose "AUTO" a test on 2.5% of movie will be performed and if more than 5% of frames is interlaced the interlaced choosed in Credits/Calc/Audio will be applyed.
Else if you choose a denterlacer or this interlacer will be always applyed. If you choose "NONE" neither test or interlacer will be performed/used
0.74
Quantitizer factor for autosize test can accept decimal value (for XviD)
Output directory is now parsed for space in name. If space is found Mkvmagic will ask for another path
0.73
Update parsing of Sharktooth profiles (test with 19a)
Chapter is also applyed to MP4 container
Bug fixes (mkv muxing)
Reorganized Input Panel
Changed the size of media input. Now, as in calc/bit, there are varius preset (1cd, 2cd, 3cd,1/6dvd...). Is possible to write down the size however (like 50, for 50 mb)
Added MotionProtectedFPS() for framerate conversion (http://forum.doom9.org/showthread.php?t=101859&page=1&pp=20)
Changed About text (not more mutuated from AutoGK)
0.72
Totaly rewritten and recomposed programs path. Now in exe folder all files are organized for homogeneity.
Added ChapterExtractor for a correct chapter muxing (in mkv)
Updated HcEnc to 0.16A (0.16.0.1)(Thanks Hank315 !)
Updated AutoQMatEnc to 0.32b02
Corrected avisource in no-compressed avi
0.71
Now stats file of x264.exe is automatically deleted after encoding
Update MkvMerge to 1.6.5.4 (SSE2 build, if your processor isn't sse2 capable, substitute mkvmerge.exe with all mktoolnix contents)
Parsing of Script folder. Now you can put in script folder your script. At next start of MkvMagic the script will be automatically avaiable
Added a new button for writing avisynth script. This button will write the avisynth script based on filter choosed. For writing go in "Avisynth Extra" and click "Wr", the script file is movie.avs. NOTE that AR will be wrong
0.70
Is now possible to drag&drop input file (in input string)
Resolved crash of AviMux_Gui/Mp4Box when no audio is selected
0.69
Update Besweet plugin to latest Dimzon dll for Nero7
Update LibVorbis with correct 5+1 channel mapping
Corrected --me (x264.exe) on turbo pass
Resolved hang of avs2avi when encoding very short uncopressed avi
0.68
Is now possible to process uncompressed avi (Thanks Rickee!!!)
Resolved bugs using 1 pass with X264

killerhex
29th December 2005, 23:25
can you add Wmv Encoding Capabilities

ilscuro
30th December 2005, 12:03
Many thanks for this, quick question, my version only allows you to choose a standard cd size, or variables of the standard size, and not a certain filesize, do i need an older build?

buzzqw
30th December 2005, 12:16
using latest 0.75 simply write in "Set MB Size Unit" how many mb you want like "500" and how many piece (1 or more)

about wmv ... don't know.. i will study the scripting possibility

BHH

buzzqw
9th January 2006, 14:56
Update MkvMagic to 0.80

Here the changelog for last update (0.75 -> 0.80)

0.80
Now WriteCMD in X264 panel write batch for both passes
Added support for xvid_encraw
Added support for Anamorphic encoding + SAR signaling (X264/XVID in MKV container)
Resolved bug of copy audio source when input and output directory is different
Added Shutdown option. Will force shutdown at end of encoding
0.79
Is now possible specify for compression test to do encoding in CRF or QP or Bitrate
Added the possibility to specify the maximun resolution to test for compression test. For example if you let auto the compression test is done against full width so the file resulting will be bigger. Bigger file means less final width
Denterlace test is now faster and more saver to use (aka less prone to crash)
0.78
Added --bime option
Bime is now parsed from Sharktooth profiles (tested with 20)
On choose codec setting the application is no longer blocked
0.77
Update Audio routines when mpeg2 is choosed
Now Destination path is placed on input directory (when input is choosed)
0.76
Added two small button at each side of filter choice. If you click these button the scrip selected will be opened with notepad. Useful for checking qmf script !
Temporary hc.dbs file create by HcEnc is now automatically deleted after encoding
Update manual to 0.75
Better parsing of AR from d2v

Sirber
9th January 2006, 15:22
Should this thread be moved in New A/V Codecs, AVC or Xvid?

buzzqw
9th January 2006, 16:33
i truly don't know ...

like your RealAnime (that i like very much) this is a multipurpose program that work with a wide area input file (from dvd to avi) and output an equally range of output (avi/mkv/mp4/dvd)

And in for encoding pourpose it can use xvid (vfw or xvid encraw.exe) x264 (both vfw/exe) and mpeg2 (hcenc/quenc/rejig)

so.. i don't know where is best fitted :D

thanks for your interest Siber !!

BHH

buzzqw
23rd January 2006, 15:26
Update to 0.87 (see first post for download)

CHANGELOG

0.87
Finally resolved all problem (i hope !) for ifo parsing. Even for pgc the parsing is now correct.
Attention ! Changing PGC will change audio and subs selection ! REMEMBER THAT THIS CHOICE IS USED ONLY FOR SUBRIPPING. MKVMAGIC WILL PROCESS ALWAYS MAIN PGC. PLEASE CHOOSE MAIN PGC.
0.86
Corrected the filter separator ":" not "," http://forum.doom9.org/showthread.php?t=106150
If source is mpeg the audio wasn't correctly SSRC to selected frequence
The ecl for AutoQmatEnc now specify the number of frames (no more false autodetect)
The movie lenght routines now use xvid_encraw. Much faster and less ram to swap
0.85
Update XviD Command Line for work with 20/01/2006 release !
On XviD Command Line is now working single pass, 2 pass, quality encoding.
If XviD Command Line is choose compression test is no more done 2 times ;)
0.84
Update IFO/FILE parsing. Now the temporary file will be created in MkvMagic directory (so if some newby will try to open as input a dvd drive the program will not complain)
Now on DVD (ripped or to rip) MkvMagic will ask to choose PGC. This information is used for SubRipping (for better synchronization)
0.83
Update log file
0.82
Better bitrate calculation for X264
Now X264 compression test is done against a CRF of 18
Now Auto on "Force Mux DAR" will calculate the exact (NON ITU) DAR of movie (for film with DAR between 2.33 and 2.38 the DAR is set to 2.35. I will accept suggestion)
0.81
Added Noise Reduction in X264 options. Also parsed from SharkTooth profile

buzzqw
13th February 2006, 12:32
Update to 0.92

Changelog

0.92
Varius Buxfixing of HGAvsOptimizer.
0.91
Resolved hangs on HGAvsOptimizer on long movie.
Update HG filter profiles. Feel free to change and suggest better combo
0.90
Added preliminary support for HGAvsOptimizer. Using this fuction all movie will be encoded for finding the best filter settings. Go for tuning in Avs Optimizer. For enabling check "Use HG Avs Optimizer". A big thanks to Dario Genovese for this great utility !!! ( Grazie Dario!!!)
0.89
Optimized "Clean file" option. WOW ! MkvMagic go from 365Kb to 362Kb :)
Now after encoding and muxing MkvMagic will not close, but pop-up again
Added Copyright in MkvMagic Source Code (that is emailed upon request)
Minor Fix (delete temporary parsing file)
Added to Log file what decrypter is used
Only used filters are reported in log
In Log file both dgindex and delaycut command line is reported
0.88
Added support for DVDDecrypter. Go in "Credits\Calc\Audio" and choose what decrypter to use
I am forced to remove from package DVDFab Decrypter.
Please put in exe folder\vsrip or DVDFabDecrypter or DVDDecrypter
Added a message info if both decrypter weren't found
Already present in 0.87 (but missing update log report... :( ) Now "Sample" is avaiable even for X264.exe

buzzqw
27th February 2006, 15:40
Update to 0.95

Changelog

0.95
Update profile for muxing AVI. Problems with SA should be solved
Update Sharktooth profile to v21
0.94
WOW ! Added "To Icon" for minimize all program lauched by MkvMagic !!! Please this is an initial release so be carefull and test it ! Now is used only for mkv/mp4/avi rip
Tuned bitrate calcualtion for x264
Solved problem for non 48khz for OGG 5+1

buzzqw
17th March 2006, 13:26
Update to 1.00

Changelog

1.00
Added a preliminary support of better deinterlacing rountines. The program, using a simplified version of AutoGk routines (also taken from source_detection from Berrinam, Thanks !!!), can determine if stream is interlaced or film or telecined or even hybrid. The problems awake only if hybrid film is detected :( ... I haven't much samples for testing /also a big thanks to Special kei for providing some of this)
Update (again) parsing of file (from mpeg). If time.avs fail , parsing is done directly over d2v
Better calc of resolution. "Strange" values should not more appear :)
Added possibility to specify minimum and maximum resolution (due to automatic resolution)
0.99
If parsing d2v FILM % is found over 95% and framerate is 29.97 than Forced Film is appyed on d2v creation
Many updates in mkvmagic.log (for better bug's hunting)
Correct an ugly error in defalut.avs (bug reported by "Dale")
Update to Sharktooth profile's v22
Added a sanity check for very low resolution. If autosize would led to width less than 16. Than final width will be total width/3
For sake pourpose renamed X264 encoding mode "Quality" to "Quality (crf)"
0.98
Fixed error with very big/very small clip size
Fixed "Copy Original" when using DTS audio tracks ( bug reported by "Special Kei")
Changed (more robust) detection of movie parameter (problem reported by "Dale")
Added support for Force Film. If d2v report a % of film over 95% the force film is applyed. (my big thanks to "Special Kei" for spotting the problem and sending a sample for study !!)
Added Bit/Pixel support. In "Set MB Size Unit" write "bp=0.xxx" , where xxx are bit/pixel value (like 0.18 or 0.22). This values will be used for calculating bitrate. This bitrate will be used for both single or 2 pass. Actually only applyed to x264 command line and xvid command line
I am not a fan of this formula but this is the reward for the first bug reporting (my greatings to "Special Kei" )
0.97
Update support for CT encoder
Update autosize routines. Is now possible to specify how many % of movie to analyze
Added support for "--direct auto" in B-Frames-mode (now default). Temporary disabled parsing of this values from Sharktooth profiles (will be enabled when sharktooth will updates its profiles)
Update splitting routines for mp4
Added in MP4 muxing the -fps parameter
0.96
Added choice of priority (go to Credits/Calc/Audio). Defalut setting to Idle
Corrected a (very stupid) bug that in rare case would disable indexing of capitalized files... :(
Added support for MvBob deinterlacer. NOTE: i got several problem of "Width has to dividable by 8" even if width is even divisible by 32. So i put MVBOB after resize. If you have a solution or suggestion fell free to mail

bira
17th March 2006, 13:52
Any chance of Divx support?

riggits
23rd March 2006, 21:14
Any chance of Divx support?

umm yeah. And Divx 3.11 ;) while yer at it. lolol.

berrinam
23rd March 2006, 22:25
Added a preliminary support of better deinterlacing rountines. The program, using a simplified version of AutoGk routines (also taken from source_detection from Berrinam, Thanks !!!)Heh, I was wondering how you got the automatic deinterlacing to work ;)

Added support for MvBob deinterlacer. NOTE: i got several problem of "Width has to dividable by 8" even if width is even divisible by 32. So i put MVBOB after resize. If you have a solution or suggestion fell free to mailUmmmm.... you do know that if you resize vertically before deinterlacing, your results will be terrible? Are you perhaps putting the deinterlace after the cropping, which is causing those problems?

buzzqw
24th March 2006, 08:55
@bira & @riggits

No. Only Xvid VFW, Xvid_encraw, X264 Vfw and X264.exe.
But i am working on a new build with (very alpha) support for lavc (asp) codec with mencoder.exe :)

@berrinam

First of all thanks for for your great source/programs. Is was a great source of inspiration (and a good point of copy&paste... translated in purebasic)

Since i live in pal land near all my source are pal/progressive... so with a little help of some testers i put my code over ntsc (pure film, by parsing d2v file), and some telecined source.

The algorith is basically a simplified version of your algorithm.

I analyse both log (as produced from your routines) for finding TFF/BFF and interlace pattern.

Basically, after parsing log (true/false), i count all sections (of 5 frames), all interlaced sections (with patter not in 3 progressive/2 interlaced), and all telecined (3 progressive/2 interlaced), and all progressive pattern (4+ progressive) ,then i do a simple % comparison :p
If over 95% of progressive > progressive content
if over 95% of telecined > telecined
if interlaced over 15% > interlaced

Much semplified. Not the best but is quite fuctional.


Ummmm.... you do know that if you resize vertically before deinterlacing, your results will be terrible? Are you perhaps putting the deinterlace after the cropping, which is causing those problems?

:thanks: :thanks: :thanks:

I do exactly this error !!! Now if mvbob if choosed as deint i will be put BEFORE autocrop !!!

Thanks !

BHH

berrinam
24th March 2006, 09:36
I'm very glad that someone else found my work on source detection useful.

Since i live in pal land near all my source are pal/progressive... so with a little help of some testers i put my code over ntsc (pure film, by parsing d2v file), and some telecined source.My problem EXACTLY. From what I've read, so was len0x, who wrote AutoGK. It's really hard designing an algorithm for something you've hardly seen.

I analyse both log (as produced from your routines) for finding TFF/BFF and interlace pattern.I presume you realise that you only need TFF/BFF if it's interlaced or telecined (not if it's progressive)?

all interlaced sections (with patter not in 3 progressive/2 interlaced), and all telecined (3 progressive/2 interlaced)Better would be to check if the combed frames in telecined sections are consecutive; if they're not, then declare it an interlaced section, not telecined.

and all progressive pattern (4+ progressive),At the moment I require 5 uncombed to declare it progressive, but I considered reducing it to 4+ to help avoid small discrepancies. I think that's a good idea, but I want to do some testing first.

Hey! I just realised that you aren't checking for motion. I think you'll get way too many sections declared as progressive just because there is no motion.

then i do a simple % comparison :p
If over 95% of progressive > progressive content
if over 95% of telecined > telecined
if interlaced over 15% > interlaced

Much semplified. Not the best but is quite fuctional.This is by far the hardest part. It would be simple if all sources were entirely one type, but NO NO NO. Stupid content providers have to mix telecine with interlacing, and as a result, the Source Detection gets SO MUCH harder. All of a sudden, when looking for hybrid material, Source Detection gets tricked by all kinds of false detections, and so it declares way too much stuff as hybrid. Worse results are the product of that

Sorry for the rant, but, as you said, you've taken the easy path with that;if only all sources were like that. In fact, I've often considering making my Source Detection much less sensitive to hybrids, and the fact that you ignore hybrids has also suggested to me that I should. I think the things that would fix would severely outweigh the few samples which have small hybrid %s.

From what you've said, it sounds like your source detection can't detect repition-upconverted samples. Basically, it just counts the amount of moving frames in each group of 5, and if on of these stands out from the others by more than 2 times and it isn't 0 or 5, then the source has had the framerate upconverted via duplicate frames (you can use the motion data from the first analysis pass). Not a good description, I know, but there we go. I'll give you a more detailed explanation if you are interested.

Are you using IsCombed or IsCombedTIVTC? IsCombedTIVTC is much better, from my results.

Also, I don't know if you know about this, but you might want to have a look at http://avisynth.org/mediawiki/wiki/Interlace_detection for an in-depth description of most of the elements of my source detection.

riggits
24th March 2006, 19:02
(my divx 3.11 codec comment was satire of the previous comment :) i didn't intend to confuse)

buzzqw
24th March 2006, 20:36
I presume you realise that you only need TFF/BFF if it's interlaced or telecined (not if it's progressive)?

i use it for leakkerneldeint/kerneldeint order...

Better would be to check if the combed frames in telecined sections are consecutive; if they're not, then declare it an interlaced section, not telecined.

very good point ! Thanks... i will look how to implement !

Hey! I just realised that you aren't checking for motion. I think you'll get way too many sections declared as progressive just because there is no motion.

Opss... :o ... yes, i miss it not forget but miss it.

Sorry for the rant, but, as you said, you've taken the easy path with that;

Again yes, since mkvmagic was born (initially) as a personal application (dealing with pal/progressive clip only) i have preferred to let user edit deinterlacer parameter so if user already know how to deal (or is a freak for tuning) he can specify the varius parameter...

Are you using IsCombed or IsCombedTIVTC? IsCombedTIVTC is much better, from my results.

mixed results.. i use for test a pure telecined source.
with IsCombed i got 100% telecined (that's ok) , with IsCombedTIVTC i got 73% telecined ... i must analyze more clips before change...

From what you've said, it sounds like your source detection can't detect repition-upconverted samples...

too much... too much... :scared: :scared:

while i fell very interesting (and again a big thanks even for the link on wiki) studing and learning that possibility/nightmare clips , i fell too distant from my ACTUAL interest (maybe in a couple of days i change my mind ;) )

I have all interest speaking with you ! (and sorry for my english)

BHH

berrinam
24th March 2006, 23:13
Ok, I'm not going to interfere any more, just my last few thoughts:

mixed results.. i use for test a pure telecined source.
with IsCombed i got 100% telecined (that's ok) , with IsCombedTIVTC i got 73% telecined ... i must analyze more clips before change...I think this may have to do with the fact that you aren't checking for motion.

too much... too much... :scared: :scared:

while i fell very interesting (and again a big thanks even for the link on wiki) studing and learning that possibility/nightmare clips , i fell too distant from my ACTUAL interest (maybe in a couple of days i change my mind ;) )Good news for you: I'm planning on really cleaning up my code for all of Source Detection in MeGUI, so you might be able to just directly copy code then. I am aware of how hard the code is to follow at the moment, so I'm sorry about that. I'm also considering another fallback method, specifically for anime, but I won't go into that now....

buzzqw
25th March 2006, 08:06
As usual thanks for your suggestion.

I hope avisynth will introduce some "automatic deinterlaced routines" (with all that gurus around wouldn't be so impossible !) i a near future.

I will wait for you new improved routines , and btw... can you build it as a standalone application... with command line interface :D :D (and not need for .NET , if possible)

Hoping better news !!

BHH

berrinam
25th March 2006, 08:46
I hope avisynth will introduce some "automatic deinterlaced routines" (with all that gurus around wouldn't be so impossible !) i a near future.The best all-round filter-chain for doing pretty well on most sources is probably something like this:
deintted = TDeint()
tfm(clip2=deintted)
This should end up being basically the best (non-super-slow mvbob-style) filter-chain you can get for most sources. Of course, that doesn't decimate anything, but it practically ensures that you will end up with a progressive source. You can get even better results if you are willing to manage 2-pass VFR Matroska, in which case you can add tdecimate(mode=4,output="metrics.txt") to the end of the first pass script and tdecimate(mode=5,hybrid=2,vfrDec=0,input="metrics.txt",tfmIn="matches.txt",mkvOut="mkv-timecodesfile.txt") to the end of the second pass script (all of these script excerpts copied directly from the TIVTC manual). I hope no-one kills me for recommending one filter-chain to rule all sources, though ;)

I will wait for you new improved routinesGood, just don't hold your breath :D
and btw... can you build it as a standalone application... with command line interface :D :D (and not need for .NET , if possible)Actually, it already is a standalone application, just a very old version which I wouldn't recommend using.

buzzqw
27th March 2006, 11:57
Update to 1.05

1.05
Changed WinAmp CT profiles. Now bitrate is displayed and no more Nero's profiles.
If WinAmp CT and "HE-AAC" (not "HE-AAC 5ch" ) profile are choosed then -high option is set
1.04
More robust support for Mencoder (basically bug fixing... bug fixing and more bug fixing :) )
Added support to Spresso fuction by Didee( http://forum.doom9.org/showthread.php?t=103299 ). Very good for SPatial REcompreSSiOn
Reorganized filter and resize (only internal modifier, removed 25k of redundant code)
Corrected in log the Profile choosed
1.03
Added preliminary support to Mencoder (only for LAVC codec).
For using Mencoder put mencoder.exe and mplayer.exe into \exe\encoder folder.
If you use LAVC panel Mencoder/Mplayer is used for all purpose (ripping/encoding video/encoding audio). There only one big warning, isn't possible do do an automatic resolution test... with only mencoder. Look at "AVS CC" if you enable it (is enabled by default) than avisynth is used for creating a compression test script. If "AVS CC" is disabled the you must specify the final resolution
1.02
Update log
If HGAvsOptimizer was used on interlaced source the script wasn't correct.
Now HgAvsOptimizer accept even custom resizer !!! Awesome !!!
Tuned deinterlacer routines (a bit faster now)
Added support for mt_masktools, also update LimitedSharpen script to latest version (with smode 4 support)
Thansk to Berrinam solved problem with MvBob !!! Now if MvBob is choosed this deint is putted before crop
Again thanks to Berrinam for pointing me a correct approach to deinterlace routines !
1.01
Since latest x264 build need at last 32*32 image, update varius routines to this values (mainly interlace detection)
More Tooltip
Update log to indicate subtitle tracks
Added support for --thread-input (new x264 rev 474) (for multicore cpu). Automatic added if threads >1
Update support for CT Encoder
Correct channel order for 5.1 encoding on second audio tracks
Update HGAvsOptimizer. Much better now.
Update to Sharktooth profile's v23

Xayd
3rd April 2006, 03:21
it would be nice to have HiDef output resolutions available.

widths of 1280, 1366, 1920. sources are only 1280 or 1920, however some encode 1366x768 to match their plasma/LCD display if it has such a resolution natively.

perhaps even 1440 anamorphic would be possible?

edit: 1366 might not be valid, vid cards that do this resolution are 1360x768.

buzzqw
3rd April 2006, 07:43
it would be nice to have HiDef output resolutions available.

these resolutions are already avaiable ! just type 1920 (or what you want) in "Set Width" .
Or for fixed width/height (not autocropped) go in "Credits/Calc/Audio" and in WIDTH/HEIGHT write you HiDef !

ask again for any doubt :)

BHH

buzzqw
5th April 2006, 16:14
Update to 1.10 (read first post for download link)

1.10
Added average encoding speed in log report
Added support to generic vfw codec ( like DivX 6 ). In codec list are added two new entry: "2 Pass Manual VFW Codec" and "1 Pass Manual VFW Codec".
!!! NOTE !!!
"Conf. Codec" is enabled if you choose one of these encoding mode.
IF YOU CLICK on "Conf. Codec" you MUST configure one or two pass codec AND this EXACT SETTING (bitrate...) will be used in encoding, both for autosize and final encoding. TIPS: use "Credit/Calc/Audio" for computing bitrate
IF YOU DON'T CLICK on "Conf. Codec" MkvMagic will ASK and you MUST set codec at encoding time, both for autoresize and final encoding. Before autosize and final encoding a message info is displayed for average bitrate knowledge. The only drawback is encoding will wait for your input. Es. choose input, choose 2 pass vfw -> start ! -> indexing -> audio encoding -> ask for autoresize codec config -> ask two time for codec configuration (one for both pass)
Update Tutorial
1.09
Added support for Aud-X 1.2 audio engine. Use it only if audio is AC3 5ch !!! more information at http://www.aud-x.com/
Here a little report:
STRQ - Streaming Quality - (80 kbps)
STDQ - Standard Quality - (128 kbps)
HGHQ - High Quality - (192 kbps)
SPBQ - Superb Quality - (192 kbps)
Aud-X is an awesome audio format! Is able to encode in 5.1 channel on mp3 format with quality in low bitrate ! But isn't only this ... while decoding, using is directshow filter (freeware !!!) the stream is re-expanded in original ac3 format with full 5.1 channel support (even with spdif out)
Update lame_enc.dll to 3.98 beta2
Update LAVC. Removed -noskip because it can cause broken encoding with many mencoder build
1.08
Added custom compression check. As write in ToolTip:
Specify the threshold % for accept compression test. Es. You write here 75 and check "Only Compression Test" . If Compressione Test will give 74 the encoding is stopped, Else if CT is over 75 the full encoding will start. If you write here 0 only the CT is done regardless of any CT results. If you write here 101 the CT is accepted regardless of any CT results and the encoding restart.
Added the possibility to add custom options to X264 command line encoder (useful for zones...)
1.07
Is now possible to specify crop values in "Credits/Calc/Audio" , examples (please read carefully)
1) Check "Enable manual crop", specify crop values and LEAVE "WIDTH" / "HEIGHT" to "AUTO". The movie will be cropped at specified values and automatic resize routines is used. First is applyed crop then resize.
2) Specify WIDTH and HEIGHT to your preferred values AND DO NOT CHECK "Enable manual crop". Movie will be resized to specified WIDTH and then AUTOCROP
3) Specify WIDTH and HEIGHT to your preferred values AND CHECK "Enable manual crop" AND SET ALL CROP. Movie will be cropped and THEN resized to specified WIDTH
4 If you want to use HGAvsOptimizer then you MUST specify already in resize configuration the width/height like LimitedSharpen(1.25,1.25,640,480,smode=4) ,where 640 is width and 480 is height
1.06
Added in list of subs "Rip ALL SUBS" for subripping all sub
Added a new type of filter. In list of filter you will find def-***. You can create how many preset of filter , put this preset file (take a look at def-test) into filter directory, the file MUST be named "def-" and any name of your choice like "def-fast" or "def-luma" ... This file will be paste at end of filter chain
Is now possible to NOT apply filter in HGAvSOptimizer, just select NONE
Corrected bug using Spresso fuction with HGAvsOptimizer

ermage
7th April 2006, 17:06
it's a good program,and found it more nice than others.is there a way to rip from this x frame at this x number of frame ex. the end of a movie

buzzqw
7th April 2006, 19:30
yes, is possible.

In "Credits/Calc/Audio" at bottom right, there is "Trim Parameters"

Check "Enable Trim" and at right of "Start Trim Frames" write the start number of frames to trim (you can use also the tiny "Calc!" fuction for an exact time to frames conversion)

If you check "Rise Quant", from that frames the movie will be encoded at this quant (option avaiable for x264.exe and XviD automatic)

i am glad you like my program :thanks:

fell free to post any question or suggestion !

BHH

riggits
7th April 2006, 22:08
New bug: MkvMagic always asks for DVDdecrypter now! I copied it into the correct directory, but MkvMagic does not recognize this.
The last build I tried (v1.05) worked fine and saw DVDdecrypter in the exe/vsrip directory.
Also, the 1.10 asks for Mencoder and MPlayer. 1.05 did not ask for these.

buzzqw
8th April 2006, 02:37
@riggits
thanks for bug reporting !

the program fails to check if dvddecrypter.exe is present but this is only a warning

Even message about mencoder.exe is a simple warning for use/not use LAVC options.

:goodpost: :thanks:

i will correct these warnings in next version !

BHH

buzzqw
8th April 2006, 07:00
quick update

www.64k.it/andres/MkvMagic_1.12.exe

changelog

1.12
Traced in log the presence of decrypter, mplayer and mencoder
Corrected erroneus warning message about missing decrypter eve if presente (bug reported by riggits)
If DTS audio source is choosed then only "Copy Orginal" is avaiable as audio codec
Reported in log MkvMagic version
1.11
Added support for AVS input file. No filter or resize is applyed, only HGAvsoptimizer (if choosed),audio encoding and final encoding

riggits
9th April 2006, 11:20
awesome, very swift update,
Confirming that it works as expected again :)
Many thanks buzzqw!

markrb
10th April 2006, 00:25
I am still far from being able to get this working the way I want, but that is me as I am such a noob to x264 and the other similar ones.

One suggestion. Could you have the program remember your paths. I always use the same ones and it would make it harder for me to encode to the wrong directory.

Thanks,
Mark

buzzqw
10th April 2006, 07:26
I am still far from being able to get this working the way I want, but that is me as I am such a noob to x264 and the other similar ones.

some tips (from dvd ripped to mkv-x264): click on input, browse to ripped dvd, choose vts_xx_xx.ifo, choose audio tracks and audio codec, choose subtitle track, choose "x264.exe Command Line" (also you can go to "X264 Command line" tab to choose preset)
Click start : after many hours you will have a 700 mb mkv, with x264 video codec, with chapter, with audio,with auto ar...

OR: build your custom avisynth script and feed mkvmagic with it.

fell free to post any doubt

BHH

markrb
10th April 2006, 16:15
Getting it to start encoding was actually not bad, but I keep getting errors or the encode will freeze.

The error was something like pass one is not the same as pass 2 try lowering bitrate or Q. Something like that.

The freeze happened on another try about %35 of the way through. The rest of the system remained stable and I was able to kill the process.

I am pretty sure about system stability as CCE, Memtest, Prime95 and others all have never crashed on me.

I am at work and didn't keep the logs. I will try some other things and continue to read up. Unless there is something obvious you could point out.

I am also trying Megui and having a different issue with that. Again it's most likely something I am overlooking.

Mark

buzzqw
10th April 2006, 17:19
if the freezes are in x264.exe encoding... i don't know...
because if encoding is started then avisynth is correct and the problem could be only with bitrate

are you doing 1 pass encoding or 2 pass ?

BHH

markrb
10th April 2006, 23:54
2 pass insane quality profile.
What I did is set the size to 1 @ 2200mb.
I was looking to about cut in half the size of the original
Vob's. I never forced any kind of bitrate.
I don't know the compression levels.
Basically if Mpeg-2 is 4gb, what size x264 would be lossless?
I may want to convert them back in the future.

Mark

Edit: I may have found the problem although I haven't got time to test it.
It seems I was missing a few files (for megui anyway) or didn't have them all in the
right places. I re-read over the guides VERY carefully and found the spots I missed.
I hope that does it.
I also accidently had an old version of ffdshow, if that matters.

buzzqw
11th April 2006, 07:36
2 pass insane quality profile.
What I did is set the size to 1 @ 2200mb.
Basically if Mpeg-2 is 4gb, what size x264 would be lossless?
I may want to convert them back in the future.

so... you have set in "Set MB Size Unit" 2200 and in "Number of Units" 1
"insane quality" : very very slow ! If you want a very quality encoding in a reasonable time choose:
1) in "Set Width" put 720
2) in "Set encoding mode" choose "X264.exe command line"
3) in "X264 Command line" tab choose "CE High Profile"
4) in "X264 Command line" tab, on "Mode" choose "Quality CRF" and in "Bitrate/Quantitizer" put 16
4) set all other (audio...) as you want and click start

this would be a ONE pass encoding with very good quality BUT without know the final size

BHH

donnyj
13th April 2006, 16:32
I have put DVDDecrypter.exe into exe\vsrip and I still get the error, what am I doing wrong?

Also where to I put mencoder and mplayer so that I can kill those errors as well?

Update: Running RIP does load DVD Decrypter so the error must be in detecting that it is really there.

buzzqw
13th April 2006, 16:37
thanks for bug-hunting ... but you came later ;)

here the post with link to new build

http://forum.doom9.org/showpost.php?p=810777&postcount=36

thanks anyway !!!

please report any problem you have !

BHH

donnyj
13th April 2006, 17:30
Sorry, but the bug is still present on my system.....

buzzqw
13th April 2006, 18:01
:confused:

have you put into \exe\vsrip\ either dvddecrypter.exe or dvdfabdecrypter.exe ? (named as here)

Also where to I put mencoder and mplayer so that I can kill those errors as well?

into \exe\encoder folder

BHH

donnyj
13th April 2006, 21:44
yes, DVDDecrypter is in exe/vsrip and pressing rip works... so it's named correctly and in the right place....

Thanks

Strange, I put mplayer and mencoder in exe/encoders and now ALL the errors are gone???

buzzqw
14th April 2006, 07:13
Strange, I put mplayer and mencoder in exe/encoders and now ALL the errors are gone???

ONE big note: these aren't errors ! are warning about missing components

MkvMagic do not include a mencoder/mplayer build because these softwares can be quickly become outdate... , about missing decrypters as i wrote on changelog i had to remove since it is an illegal bundling in some country.

BHH

3dsnar
14th April 2006, 09:20
Hi,
Great app!
Thanx for including our codec.
I have a question, however.

Can you change (in the codecs list)
Aud-X to MP3 5.1
(or MP3 5.1 [Aud-X] if there is enough room)
so it will be less confusing for the users, 'cause not
everybody knows what Aud-X is).

An maybe, instead of using the quality codes (e.g. STDQ, HGHQ, etc) provide bitrates?

Please let me know
:thanks: