Thanks buzzqw
Nice with the tips
Unfortunately I seem to have found a bug when using ChangeFPS.
I'm using a 50 fps HDTV source (720 x 576 PAL) demuxed into m2v & ac3. With 0.93a I select "ChangeFPS" and "25,1" on the Advanced Profiles Editing tab, and all it good - 25fps output.
With 0.95 I get an autoMKV with video running at 50fps and audio playing at equivalent of 25fps.
Checking the logs and it seems to be related to the muxing command generated:
Code:
AutoMKV 0.93a
20:34:54 "E:\AutoMKV\exe\matroska\mkvmerge.exe" -o "D:\Capture\temp\test93a.mkv" --track-name -1:"test93a" --aspect-ratio 1:1.805437 "D:\Capture\temp\movie.mp4" --language -1:und --default-track -1:yes "D:\Capture\temp\audio.mp4" --title "Done with AutoMKV 0.93a http://forum.doom9.org/showthread.php?p=854221 "
Code:
AutoMKV 0.95
21:51:06 "E:\AutoMKV\exe\matroska\mkvmerge.exe" -o "D:\Capture\temp\test95.mkv" --default-duration 0:50000/1000fps --engage keep_bitstream_ar_info --track-name -1:"test95" --aspect-ratio -1:1.792801 "D:\Capture\temp\movie.264" --language -1:und --default-track -1:yes "D:\Capture\temp\SBS HD 2008-02-04_193050.mp4" --title "Done with AutoMKV 0.95 http://forum.doom9.org/showthread.php?p=854221 "
When i changed
--default-duration 0:50000/1000fps to
--default-duration 0:25000/1000fps the audio and video were back in sync at 25fps.
Code:
21:40:19 0.95 - - - - - - - - - - - - - START JOBS - - - - - - - - - - - - - -
21:40:19 OS Version: Windows XP
21:40:19 Selected Input file: D:\Capture\SBS HD 2008-02-04_193050.m2v
21:40:19 Selected Output dir: D:\Capture\temp\
21:40:19 Selected Final Name: test95
21:40:19 Selected Container type: MKV
21:40:19 Selected Encoder: X264
21:40:19 Selected Size: Unlimited File Size
21:40:19 Selected Profile: Constant_Quality.xml
21:40:19 Selected Resizer: SimpleResize (neutral soft) / AutoCrop Only
21:40:19 Selected Filters: NONE
21:40:19 Selected Deinterlacer: AUTO
21:40:19 Selected Field Order: AUTO
21:40:19 Enabled Constant Quality With Unlimited Size (Q 22)
21:40:19 Track Language 1: D:\Capture\SBS HD 2008-02-04_193050.mp2
21:40:19 Audio Codec 1: Nero AAC
21:40:19 Audio Quality 1: 0.35
21:40:19 Audio Channel 1: Stereo
21:40:19 Track Language 2: NONE
21:40:19 Audio Codec 2: Nero AAC
21:40:19 Advanced Audio Settings DUMP Track 1
21:40:19 Nero Option Profiles: AUTO --- Encoding Mode: Quality
21:40:19 CCT Option Profiles: AUTO --- Channel Options: AUTO
21:40:19 Lame Settings: ABR
21:40:19 Audio Normalization: 1
21:40:19 Frequency: AUTO --- Tempo: NONE --- Pitch: NONE --- Other Add:
21:40:19 Activate Anamorphic Encoding
21:40:19 Activate Last line AVS Script: trim(0,5000)
21:40:19 Selected Unlimited media size
21:40:19 Dgindex CMD: E:\AutoMKV\exe\dgindex\dgindex.exe -FO=0 -OM=1 -YR=2 -AIF=[D:\Capture\SBS HD 2008-02-04_193050.m2v] -OF=[D:\Capture\temp\movie] -exit -minimize
21:40:47 Encoding D:\Capture\temp\SBS HD 2008-02-04_193050.mp2 to NeroAAC with 0.35 quality
21:42:24 Encoded 1' Audio Track: SBS HD 2008-02-04_193050.mp4 16951136 bytes
21:42:27 Number of Frames: 61953
21:42:27 Framerate: 50.000000
21:42:27 Movie length in Seconds: 1240
21:42:27 Movie Width/Height: 720/576
21:42:27 DgIndex AR: 16:9
21:43:58 Source is declared bff by a margin of 19/6.
21:43:58 Advanced Deinterlace Routines Log
21:43:58 Analyzed 169 sections of five frames
21:43:58 Found Interlace Sections: 0 0.00%
21:43:58 Found Progressive Sections:169 100.00%
21:43:58 Found Telecined Sections: 0 0.00%
21:43:58 Found Zero Mov: 100.00% 169
21:43:58 Found One Mov: 0.00% 0
21:43:58 Found Two Mov: 0.00% 0
21:43:58 Found Three Mov: 0.00% 0
21:43:58 Found Four Mov: 0.00% 0
21:43:58 Found Five Mov: 0.00% 0
21:43:58 The Movie is declared to progressive
21:43:58 Starting X264
21:43:58 CRF encoding X264: E:\AutoMKV\exe\encoder\x264.exe --pass 1 --crf 22 --stats "D:\Capture\temp\.stats" --progress --keyint 250 --bframes 3 --qpmin 10 --qpmax 51 --no-psnr --mixed-refs --trellis 1 --ref 3 --filter -2,-1 --direct auto --vbv-maxrate 25000 --me umh --no-ssim --level 4.1 --weightb --b-pyramid --b-rdo --bime --analyse p8x8,b8x8,i4x4,i8x8,p4x4 --8x8dct --threads auto --thread-input --sar 14422535:10000000 --output "D:\Capture\temp\movie.264" "D:\Capture\temp\movie.avs"
21:51:05 X264 Final CRF Encoding Stats:
x264 [info]: using SAR=45070/31250
x264 [info]: using cpu capabilities: MMX MMXEXT SSE SSE2 SSE3 SSSE3 Cache64
x264 [info]: slice I:76 Avg QP:18.68 size: 38869
x264 [info]: slice P:2397 Avg QP:20.60 size: 14717
x264 [info]: slice B:2528 Avg QP:22.34 size: 4251
x264 [info]: mb I I16..4: 15.4% 28.1% 56.5%
x264 [info]: mb P I16..4: 9.0% 17.7% 6.5% P16..4: 31.5% 16.3% 6.7% 1.3% 0.8% skip:10.2%
21:51:05 Accepted values are between 697303040 and 741343232 bytes (movie+audio)
21:51:05 Got a file of size: 48980252 bytes + audio size 16951136 bytes (65931388)
21:51:05 Only Movie Size: 48980252 bytes
21:51:06 "E:\AutoMKV\exe\matroska\mkvmerge.exe" -o "D:\Capture\temp\test95.mkv" --default-duration 0:50000/1000fps --engage keep_bitstream_ar_info --track-name -1:"test95" --aspect-ratio -1:1.792801 "D:\Capture\temp\movie.264" --language -1:und --default-track -1:yes "D:\Capture\temp\SBS HD 2008-02-04_193050.mp4" --title "Done with AutoMKV 0.95 http://forum.doom9.org/showthread.php?p=854221 "
21:51:09 Final Muxed size: 65924172 bytes
21:51:09 Encoding finished: 00:07:11 elapsed time
21:51:09 -----------------------------------------------------------------------
21:51:09 Script AutoCrop.log
21:51:09
21:51:09 Crop(2,2,716,568)
21:51:09 -----------------------------------------------------------------------
21:51:09 Script movie.avs
21:51:09
21:51:09 LoadPlugin("E:\AutoMKV\exe\filter\AddGrain.dll")
21:51:09 LoadPlugin("E:\AutoMKV\exe\filter\autocrop.dll")
21:51:09 LoadPlugin("E:\AutoMKV\exe\filter\aWarpSharp(Pruned).dll")
21:51:09 LoadPlugin("E:\AutoMKV\exe\filter\blockbuster.dll")
21:51:09 LoadPlugin("E:\AutoMKV\exe\filter\cnr2.dll")
21:51:09 LoadPlugin("E:\AutoMKV\exe\filter\ColorMatrix.dll")
21:51:09 LoadPlugin("E:\AutoMKV\exe\filter\Convolution3D.dll")
21:51:09 LoadPlugin("E:\AutoMKV\exe\filter\corrector.dll")
21:51:09 LoadPlugin("E:\AutoMKV\exe\filter\DctFilter.dll")
21:51:09 LoadPlugin("E:\AutoMKV\exe\filter\Decomb.dll")
21:51:09 LoadPlugin("E:\AutoMKV\exe\filter\Deen.dll")
21:51:09 LoadPlugin("E:\AutoMKV\exe\filter\degrainmedian.dll")
21:51:09 LoadPlugin("E:\AutoMKV\exe\filter\DGDecode.dll")
21:51:09 LoadPlugin("E:\AutoMKV\exe\filter\EEDI2.dll")
21:51:09 LoadPlugin("E:\AutoMKV\exe\filter\FFMpegSource.dll")
21:51:09 LoadPlugin("E:\AutoMKV\exe\filter\FFT3DFilter.dll")
21:51:09 LoadPlugin("E:\AutoMKV\exe\filter\FluxSmooth.dll")
21:51:09 LoadPlugin("E:\AutoMKV\exe\filter\frfun7.dll")
21:51:09 LoadPlugin("E:\AutoMKV\exe\filter\hqdn3d.dll")
21:51:09 LoadPlugin("E:\AutoMKV\exe\filter\LeakKernelDeint.dll")
21:51:09 LoadPlugin("E:\AutoMKV\exe\filter\MaskTools.dll")
21:51:09 LoadPlugin("E:\AutoMKV\exe\filter\medianblur.dll")
21:51:09 LoadPlugin("E:\AutoMKV\exe\filter\MipSmooth.dll")
21:51:09 LoadPlugin("E:\AutoMKV\exe\filter\MSharpen.dll")
21:51:09 LoadPlugin("E:\AutoMKV\exe\filter\mt_masktools.dll")
21:51:09 LoadPlugin("E:\AutoMKV\exe\filter\mvtools.dll")
21:51:09 LoadPlugin("E:\AutoMKV\exe\filter\NicAudio.dll")
21:51:09 LoadPlugin("E:\AutoMKV\exe\filter\RemoveGrainS.dll")
21:51:09 LoadPlugin("E:\AutoMKV\exe\filter\RepairS.dll")
21:51:09 LoadPlugin("E:\AutoMKV\exe\filter\SangNom.dll")
21:51:09 LoadPlugin("E:\AutoMKV\exe\filter\SimpleResize.dll")
21:51:09 LoadPlugin("E:\AutoMKV\exe\filter\SoundOut.dll")
21:51:09 LoadPlugin("E:\AutoMKV\exe\filter\TBilateral.dll")
21:51:09 LoadPlugin("E:\AutoMKV\exe\filter\TDeint.dll")
21:51:09 LoadPlugin("E:\AutoMKV\exe\filter\TIVTC.dll")
21:51:09 LoadPlugin("E:\AutoMKV\exe\filter\TomsMoComp.dll")
21:51:09 LoadPlugin("E:\AutoMKV\exe\filter\TTempSmooth.dll")
21:51:09 LoadPlugin("E:\AutoMKV\exe\filter\UnDot.dll")
21:51:09 LoadPlugin("E:\AutoMKV\exe\filter\UnFilter.dll")
21:51:09 LoadPlugin("E:\AutoMKV\exe\filter\VSFilter.dll")
21:51:09 LoadPlugin("E:\AutoMKV\exe\filter\warpsharp.dll")
21:51:09 #loadpluginstart
21:51:09
21:51:09 #test1
21:51:09
21:51:09 Import("E:\AutoMKV\exe\filter\BlindDeHalo3_mt2.avsi")
21:51:09 Import("E:\AutoMKV\exe\filter\Deblock_QED_MT2.avsi")
21:51:09 Import("E:\AutoMKV\exe\filter\FastLineDarken 1.3 MT MOD.avsi")
21:51:09 Import("E:\AutoMKV\exe\filter\HybridFuPP.avsi")
21:51:09 Import("E:\AutoMKV\exe\filter\LanczosPlus.avsi")
21:51:09 Import("E:\AutoMKV\exe\filter\Lem.avsi")
21:51:09 Import("E:\AutoMKV\exe\filter\LimitedSharpenFaster.avsi")
21:51:09 Import("E:\AutoMKV\exe\filter\MCBob_v03c.avsi")
21:51:09 Import("E:\AutoMKV\exe\filter\mvbob.avsi")
21:51:09 Import("E:\AutoMKV\exe\filter\QMlib.avsi")
21:51:09 Import("E:\AutoMKV\exe\filter\seesaw.avsi")
21:51:09 Import("E:\AutoMKV\exe\filter\spresso.avsi")
21:51:09 #importstart
21:51:09
21:51:09 #test2
21:51:09
21:51:09 movie = mpeg2source("D:\Capture\temp\movie.d2v")
21:51:09 function getOrder(clip c) {
21:51:09 order = GetParity(c) ? 1 : 0
21:51:09 Return order }
21:51:09 #filter1start
21:51:09
21:51:09 #test3
21:51:09
21:51:09 last=movie.Crop(2,2,716,568)
21:51:09 fixed_aspect = 1.260563
21:51:09 out_width = 716
21:51:09 out_height = 576
21:51:09 #resizestart
21:51:09
21:51:09 #test4
21:51:09
21:51:09 SimpleResize(out_width,out_height)
21:51:09 #filter2start
21:51:09
21:51:09 #test5
21:51:09
21:51:09 ChangeFPS(25,1)
21:51:09 trim(0,5000)
21:51:09 -----------------------------------------------------------------------
21:51:09 Script mkvmaudio.avs
21:51:09
21:51:09 LoadPlugin("E:\AutoMKV\exe\filter\NicAudio.dll")
21:51:09 LoadPlugin("E:\AutoMKV\exe\filter\SoundOut.dll")
21:51:09 LoadPlugin("E:\AutoMKV\exe\filter\FFmpegSource.dll")
21:51:09 NicMPG123Source("D:\Capture\temp\SBS HD 2008-02-04_193050.mp2")
21:51:09 #Applying STEREO downmixing routines
21:51:09 function stereo(clip a)
21:51:09 {
21:51:09 flr = GetChannel(a, 1, 2)
21:51:09 fcc = GetChannel(a, 3)
21:51:09 lfe = GetChannel(a, 4)
21:51:09 lfc = MixAudio(fcc, lfe, 0.2071, 0.2071)
21:51:09 mix = MergeChannels(lfc, lfc)
21:51:09 lrc = MixAudio(flr, mix, 0.2929, 1.0)
21:51:09 blr = GetChannel(a, 5, 6)
21:51:09 Return MixAudio(lrc, blr, 1.0, 0.2929)
21:51:09 }
21:51:09 #
21:51:09 6==Audiochannels() ? stereo() : last
21:51:09 function addvideo(clip c) {
21:51:09 blankclip(length = Int(100 * AudioLengthF(c) / float(audiorate(c))), fps=100)
21:51:09 Return audiodub(last,c)
21:51:09 }
21:51:09 Normalize()
21:51:09
21:51:09 Soundout(output="cmd",type=1,format=3,autoclose=true,executable="E:\AutoMKV\exe\besweet\neroaacenc.exe",prefilename=" -ignorelength -q 0.35 -if - -of audio.mp4",postfilename="",nofilename=true,showoutput=false)
21:51:09
21:51:09 - - - - - - - - - - - - FINISHED JOBS - - - - - - - - - - - - - - - - -