Log in

View Full Version : AutoMKV 0.95c - (DVD/TS/AVI/AVS to X264/XviD/WVC1 into MKV/MP4/WMV) update 12/02/2008


Pages : 1 2 3 [4] 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19

buzzqw
12th February 2008, 12:02
@morgankane

check "force muxing dar"

@Honeyko

i will check

@Amed
first pass is always in "turbo" mode... you should check "HQ first pass" to have both running at "insanely slow" speed

@buzzqw
go to sleep!

BHH


BHH

Don_Genaro
12th February 2008, 13:37
Hi,

I tested the new version but the audio bug is still present in v0.95b, automkv does not recognize the output made with neroaac:

Nero aac outputs: audio.mp4
Automkv espects: movie_title.mp4

So the audio ends encoded by ffmpeg to a file named: audio1.aac wich does get recognized by automkv :confused:

When using "Copy Original Audio" everythings runs normally...

The problem seems to be related only to neroaac output.

Suggestion: An option to choose the target size in terms of a percentage of the source's size.



09:10:28 0.95b - - - - - - - - - - - - - START JOBS - - - - - - - - - - - - - -
09:10:28 OS Version: Windows XP
09:10:28 Selected Input file: F:\Case\some_movie.avi
09:10:28 Selected Output dir: F:\Case\temp\
09:10:28 Selected Final Name: some_movie
09:10:28 Selected Container type: MKV
09:10:28 Selected Encoder: X264
09:10:28 Selected Size: 1150 / 1
09:10:28 Selected Profile: Constant_Quality.xml
09:10:28 Selected Resizer: NONE / Original
09:10:28 Selected Filters: RemoveGrain(mode=2)
09:10:28 Selected Deinterlacer: Progressive
09:10:28 Selected Field Order: AUTO
09:10:28 Enabled Constant Quality With Fixed Size (Q 21)
09:10:28 Track Language 1: some_movie.avi
09:10:28 Audio Codec 1: Nero AAC
09:10:28 Audio Quality 1: 0.40
09:10:28 Audio Channel 1: Stereo
09:10:28 Track Language 2: NONE
09:10:28 Audio Codec 2: Nero AAC
09:10:28 Advanced Audio Settings DUMP Track 1
09:10:28 Audio Track Language: und
09:10:28 Nero Option Profiles: AUTO --- Encoding Mode: Quality
09:10:28 CCT Option Profiles: AUTO --- Channel Options: AUTO
09:10:28 Lame Settings: ABR
09:10:28 Audio Normalization: 1
09:10:28 Frequency: 48000 --- Tempo: NONE --- Pitch: NONE --- Other Add:
09:10:28 Selected Hit Media Size
09:11:08 Number of Frames: 152862
09:11:08 Framerate: 29.969999
09:11:08 Movie length in Seconds: 5101
09:11:08 Movie Width/Height: 720/480
09:11:08 Encoding F:\Case\temp\some_movie.avi to NeroAAC with 0.40 quality
09:22:10 Encoded 1' Audio Track: some_movie.mp4 -1 bytes
09:22:10 Unable to encode Audio, try piping with FFmpeg!
09:22:10 NeroAACEnc doesn't accept piping from ffmpeg, switching to LibFaac at 128 kbps
09:22:10 "C:\X264GUIS\AutoMKV095_NORIP\exe\BeSweet\ffmpeg.exe" -i "F:\Case\some_movie.avi" -vn -acodec libfaac -ab 128000 -vol 256 -f aac audio1.aac
09:22:10 "C:\X264GUIS\AutoMKV095_NORIP\exe\matroska\MP4Box.exe" -new "F:\Case\temp\audio1.mp4" -add "F:\Case\temp\audio1.aac"
09:32:39 Encoded 1' Audio Track: audio1.mp4 74526264 bytes
09:32:39 Starting X264 AutoResize with WIDTH of Original and wanted size of 1205862400 bytes
09:32:39 Testing ABR of: 1767


:thanks:

buzzqw
12th February 2008, 13:54
please post the FULL log (since here is ok...)

BHH

Don_Genaro
12th February 2008, 15:45
please post the FULL log (since here is ok...)

BHH


09:10:28 0.95b - - - - - - - - - - - - - START JOBS - - - - - - - - - - - - - -
09:10:28 OS Version: Windows XP
09:10:28 Selected Input file: F:\Case\some_movie.avi
09:10:28 Selected Output dir: F:\Case\temp\
09:10:28 Selected Final Name: some_movie
09:10:28 Selected Container type: MKV
09:10:28 Selected Encoder: X264
09:10:28 Selected Size: 1150 / 1
09:10:28 Selected Profile: Constant_Quality.xml
09:10:28 Selected Resizer: NONE / Original
09:10:28 Selected Filters: RemoveGrain(mode=2)
09:10:28 Selected Deinterlacer: Progressive
09:10:28 Selected Field Order: AUTO
09:10:28 Enabled Constant Quality With Fixed Size (Q 21)
09:10:28 Track Language 1: some_movie.avi
09:10:28 Audio Codec 1: Nero AAC
09:10:28 Audio Quality 1: 0.40
09:10:28 Audio Channel 1: Stereo
09:10:28 Track Language 2: NONE
09:10:28 Audio Codec 2: Nero AAC
09:10:28 Advanced Audio Settings DUMP Track 1
09:10:28 Audio Track Language: und
09:10:28 Nero Option Profiles: AUTO --- Encoding Mode: Quality
09:10:28 CCT Option Profiles: AUTO --- Channel Options: AUTO
09:10:28 Lame Settings: ABR
09:10:28 Audio Normalization: 1
09:10:28 Frequency: 48000 --- Tempo: NONE --- Pitch: NONE --- Other Add:
09:10:28 Selected Hit Media Size
09:11:08 Number of Frames: 152862
09:11:08 Framerate: 29.969999
09:11:08 Movie length in Seconds: 5101
09:11:08 Movie Width/Height: 720/480
09:11:08 Encoding F:\Case\temp\some_movie.avi to NeroAAC with 0.40 quality
09:22:10 Encoded 1' Audio Track: some_movie.mp4 -1 bytes
09:22:10 Unable to encode Audio, try piping with FFmpeg!
09:22:10 NeroAACEnc doesn't accept piping from ffmpeg, switching to LibFaac at 128 kbps
09:22:10 "C:\X264GUIS\AutoMKV095_NORIP\exe\BeSweet\ffmpeg.exe" -i "F:\Case\some_movie.avi" -vn -acodec libfaac -ab 128000 -vol 256 -f aac audio1.aac
09:22:10 "C:\X264GUIS\AutoMKV095_NORIP\exe\matroska\MP4Box.exe" -new "F:\Case\temp\audio1.mp4" -add "F:\Case\temp\audio1.aac"
09:32:39 Encoded 1' Audio Track: audio1.mp4 74526264 bytes
09:32:39 Starting X264 AutoResize with WIDTH of Original and wanted size of 1205862400 bytes
09:32:39 Testing ABR of: 1767
09:32:39 CRF encoding X264: C:\X264GUIS\AutoMKV095_NORIP\exe\encoder\x264.exe --bitrate 1767 --ratetol inf --progress --keyint 250 --bframes 3 --qpmin 10 --qpmax 51 --no-psnr --mixed-refs --trellis 1 --ref 3 --filter -2,-1 --subme 7 --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 --aq-strength 0 --aq-sensitivity 0 --sar 1:1 --output "F:\Case\temp\resmovie.mp4" "F:\Case\temp\resmovie.avs"
09:38:39 CRF Iterate LOG
09:38:40 avis [info]: 720x480 @ 29.97 fps (3066 frames)
09:38:40 x264 [info]: using SAR=1/1
09:38:40 x264 [info]: using cpu capabilities: MMX MMXEXT SSE SSE2 SSE3 SSSE3 Cache64
09:38:40 mp4 [info]: initial delay 200 (scale 2997)
09:38:40 x264 [info]: final ratefactor: 18.93
09:38:40 x264 [info]: kb/s:1869.0
09:38:40 x264 [info]: kb/s:1869.0
09:38:40 encoded 3066 frames, 8.69 fps, 1869.32 kb/s
09:38:40 End of first Sample LOG
09:38:40 Finished Autosize procedure
09:38:40 Tested total movie: 2%
09:38:40 AutoResize movie size: 23938616 bytes
09:38:40 Movie Width suggested: 1072 value based on sample size (148.89% of original width)
09:38:40 Starting X264
09:38:40 CRF encoding X264: C:\X264GUIS\AutoMKV095_NORIP\exe\encoder\x264.exe --pass 1 --crf 18.93 --stats "F:\Case\temp\.stats" --progress --keyint 250 --bframes 3 --qpmin 10 --qpmax 51 --no-psnr --mixed-refs --trellis 1 --ref 3 --filter -2,-1 --subme 7 --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 --aq-strength 0 --aq-sensitivity 0 --sar 1:1 --output "F:\Case\temp\movie.264" "F:\Case\temp\movie.avs"
11:22:18 X264 Final CRF Encoding Stats:
x264 [info]: using SAR=1/1
x264 [info]: using cpu capabilities: MMX MMXEXT SSE SSE2 SSE3 SSSE3 Cache64
x264 [info]: slice I:655 Avg QP:17.83 size: 23259
x264 [info]: slice P:61845 Avg QP:19.77 size: 11112
x264 [info]: slice B:90362 Avg QP:21.62 size: 4156
x264 [info]: mb I I16..4: 26.5% 61.6% 12.0%
11:22:18 Accepted values are between 1121452032 and 1217921024 bytes (movie+audio)
11:22:18 Got a file of size: 1078045056 bytes + audio size 74526264 bytes (1152571264)
11:22:18 Only Movie Size: 1078045056 bytes
11:22:19 "C:\X264GUIS\AutoMKV095_NORIP\exe\matroska\mkvmerge.exe" -o "F:\Case\temp\some_movie.mkv" --default-duration 0:29969/1000fps --engage keep_bitstream_ar_info --track-name -1:"some_movie" --aspect-ratio -1:1.500000 "F:\Case\temp\movie.264" --language -1:und --default-track -1:yes "F:\Case\temp\audio1.mp4" --title "Done with AutoMKV 0.95b http://forum.doom9.org/showthread.php?t=134478 "
11:28:27 Final Muxed size: 1164967296 bytes
11:28:27 Encoding finished: 01:49:47 elapsed time
11:28:27 -----------------------------------------------------------------------
11:28:27 Script AutoCrop.log
11:28:27
11:28:27 Crop(4,0,704,476)
11:28:27 -----------------------------------------------------------------------
11:28:27 Script Resmovie.avs
11:28:27
11:28:27 LoadPlugin("C:\X264GUIS\AutoMKV095_NORIP\exe\filter\AddGrain.dll")
11:28:27 LoadPlugin("C:\X264GUIS\AutoMKV095_NORIP\exe\filter\autocrop.dll")
11:28:27 LoadPlugin("C:\X264GUIS\AutoMKV095_NORIP\exe\filter\aWarpSharp(Pruned).dll")
11:28:27 LoadPlugin("C:\X264GUIS\AutoMKV095_NORIP\exe\filter\blockbuster.dll")
11:28:27 LoadPlugin("C:\X264GUIS\AutoMKV095_NORIP\exe\filter\cnr2.dll")
11:28:27 LoadPlugin("C:\X264GUIS\AutoMKV095_NORIP\exe\filter\ColorMatrix.dll")
11:28:27 LoadPlugin("C:\X264GUIS\AutoMKV095_NORIP\exe\filter\Convolution3D.dll")
11:28:27 LoadPlugin("C:\X264GUIS\AutoMKV095_NORIP\exe\filter\corrector.dll")
11:28:27 LoadPlugin("C:\X264GUIS\AutoMKV095_NORIP\exe\filter\DctFilter.dll")
11:28:27 LoadPlugin("C:\X264GUIS\AutoMKV095_NORIP\exe\filter\Decomb.dll")
11:28:27 LoadPlugin("C:\X264GUIS\AutoMKV095_NORIP\exe\filter\Deen.dll")
11:28:27 LoadPlugin("C:\X264GUIS\AutoMKV095_NORIP\exe\filter\degrainmedian.dll")
11:28:27 LoadPlugin("C:\X264GUIS\AutoMKV095_NORIP\exe\filter\DGDecode.dll")
11:28:27 LoadPlugin("C:\X264GUIS\AutoMKV095_NORIP\exe\filter\EEDI2.dll")
11:28:27 LoadPlugin("C:\X264GUIS\AutoMKV095_NORIP\exe\filter\FFMpegSource.dll")
11:28:27 LoadPlugin("C:\X264GUIS\AutoMKV095_NORIP\exe\filter\FFT3DFilter.dll")
11:28:27 LoadPlugin("C:\X264GUIS\AutoMKV095_NORIP\exe\filter\FluxSmooth.dll")
11:28:27 LoadPlugin("C:\X264GUIS\AutoMKV095_NORIP\exe\filter\frfun7.dll")
11:28:27 LoadPlugin("C:\X264GUIS\AutoMKV095_NORIP\exe\filter\hqdn3d.dll")
11:28:27 LoadPlugin("C:\X264GUIS\AutoMKV095_NORIP\exe\filter\LeakKernelDeint.dll")
11:28:27 LoadPlugin("C:\X264GUIS\AutoMKV095_NORIP\exe\filter\MaskTools.dll")
11:28:27 LoadPlugin("C:\X264GUIS\AutoMKV095_NORIP\exe\filter\medianblur.dll")
11:28:27 LoadPlugin("C:\X264GUIS\AutoMKV095_NORIP\exe\filter\MipSmooth.dll")
11:28:27 LoadPlugin("C:\X264GUIS\AutoMKV095_NORIP\exe\filter\MSharpen.dll")
11:28:27 LoadPlugin("C:\X264GUIS\AutoMKV095_NORIP\exe\filter\mt_masktools.dll")
11:28:27 LoadPlugin("C:\X264GUIS\AutoMKV095_NORIP\exe\filter\mvtools.dll")
11:28:27 LoadPlugin("C:\X264GUIS\AutoMKV095_NORIP\exe\filter\NicAudio.dll")
11:28:27 LoadPlugin("C:\X264GUIS\AutoMKV095_NORIP\exe\filter\RemoveGrainS.dll")
11:28:27 LoadPlugin("C:\X264GUIS\AutoMKV095_NORIP\exe\filter\RepairS.dll")
11:28:27 LoadPlugin("C:\X264GUIS\AutoMKV095_NORIP\exe\filter\SangNom.dll")
11:28:27 LoadPlugin("C:\X264GUIS\AutoMKV095_NORIP\exe\filter\SimpleResize.dll")
11:28:27 LoadPlugin("C:\X264GUIS\AutoMKV095_NORIP\exe\filter\SoundOut.dll")
11:28:27 LoadPlugin("C:\X264GUIS\AutoMKV095_NORIP\exe\filter\TBilateral.dll")
11:28:27 LoadPlugin("C:\X264GUIS\AutoMKV095_NORIP\exe\filter\TDeint.dll")
11:28:27 LoadPlugin("C:\X264GUIS\AutoMKV095_NORIP\exe\filter\TIVTC.dll")
11:28:27 LoadPlugin("C:\X264GUIS\AutoMKV095_NORIP\exe\filter\TomsMoComp.dll")
11:28:27 LoadPlugin("C:\X264GUIS\AutoMKV095_NORIP\exe\filter\TTempSmooth.dll")
11:28:27 LoadPlugin("C:\X264GUIS\AutoMKV095_NORIP\exe\filter\UnDot.dll")
11:28:27 LoadPlugin("C:\X264GUIS\AutoMKV095_NORIP\exe\filter\UnFilter.dll")
11:28:27 LoadPlugin("C:\X264GUIS\AutoMKV095_NORIP\exe\filter\VSFilter.dll")
11:28:27 LoadPlugin("C:\X264GUIS\AutoMKV095_NORIP\exe\filter\warpsharp.dll")
11:28:27 #loadpluginstart
11:28:27
11:28:27 #test1
11:28:27
11:28:27 Import("C:\X264GUIS\AutoMKV095_NORIP\exe\filter\BlindDeHalo3_mt2.avsi")
11:28:27 Import("C:\X264GUIS\AutoMKV095_NORIP\exe\filter\Deblock_QED_MT2.avsi")
11:28:27 Import("C:\X264GUIS\AutoMKV095_NORIP\exe\filter\FastLineDarken 1.3 MT MOD.avsi")
11:28:27 Import("C:\X264GUIS\AutoMKV095_NORIP\exe\filter\HybridFuPP.avsi")
11:28:27 Import("C:\X264GUIS\AutoMKV095_NORIP\exe\filter\LanczosPlus.avsi")
11:28:27 Import("C:\X264GUIS\AutoMKV095_NORIP\exe\filter\Lem.avsi")
11:28:27 Import("C:\X264GUIS\AutoMKV095_NORIP\exe\filter\LimitedSharpenFaster.avsi")
11:28:27 Import("C:\X264GUIS\AutoMKV095_NORIP\exe\filter\MCBob_v03c.avsi")
11:28:27 Import("C:\X264GUIS\AutoMKV095_NORIP\exe\filter\mvbob.avsi")
11:28:27 Import("C:\X264GUIS\AutoMKV095_NORIP\exe\filter\QMlib.avsi")
11:28:27 Import("C:\X264GUIS\AutoMKV095_NORIP\exe\filter\seesaw.avsi")
11:28:27 Import("C:\X264GUIS\AutoMKV095_NORIP\exe\filter\spresso.avsi")
11:28:27 #importstart
11:28:27
11:28:27 #test2
11:28:27
11:28:27 movie = avisource("F:\Case\some_movie.avi",audio=false)
11:28:27 movie = isRGB(movie) ? ConvertToYV12(movie,interlaced=true) : movie
11:28:27 movie = isYUY2(movie) ? ConvertToYV12(movie,interlaced=true) : movie
11:28:27 function getOrder(clip c) {
11:28:27 order = GetParity(c) ? 1 : 0
11:28:27 Return order }
11:28:27 #filter1start
11:28:27
11:28:27 #test3
11:28:27
11:28:27 last = movie
11:28:27 fixed_aspect = 0.985994
11:28:27 out_width = 720
11:28:27 out_height = 480
11:28:27 #resizestart
11:28:27
11:28:27 #test4
11:28:27
11:28:27 #filter2start
11:28:27
11:28:27 #test5
11:28:27
11:28:27 RemoveGrain(mode=2)
11:28:27 function Comptest(clip c, float percent)
11:28:27 {
11:28:27 frange=floor(14./(percent/100.))
11:28:27 Return SelectRangeEvery(c, frange, 14)
11:28:27 }
11:28:27 Comptest(last,2)
11:28:27 -----------------------------------------------------------------------
11:28:27 Script movie.avs
11:28:27 LoadPlugin("C:\X264GUIS\AutoMKV095_NORIP\exe\filter\warpsharp.dll")
11:28:27 #loadpluginstart
11:28:27
11:28:27 #test1
11:28:27
11:28:27 Import("C:\X264GUIS\AutoMKV095_NORIP\exe\filter\BlindDeHalo3_mt2.avsi")
11:28:27 Import("C:\X264GUIS\AutoMKV095_NORIP\exe\filter\Deblock_QED_MT2.avsi")
11:28:27 Import("C:\X264GUIS\AutoMKV095_NORIP\exe\filter\FastLineDarken 1.3 MT MOD.avsi")
11:28:27 Import("C:\X264GUIS\AutoMKV095_NORIP\exe\filter\HybridFuPP.avsi")
11:28:27 Import("C:\X264GUIS\AutoMKV095_NORIP\exe\filter\LanczosPlus.avsi")
11:28:27 Import("C:\X264GUIS\AutoMKV095_NORIP\exe\filter\Lem.avsi")
11:28:27 Import("C:\X264GUIS\AutoMKV095_NORIP\exe\filter\LimitedSharpenFaster.avsi")
11:28:27 Import("C:\X264GUIS\AutoMKV095_NORIP\exe\filter\MCBob_v03c.avsi")
11:28:27 Import("C:\X264GUIS\AutoMKV095_NORIP\exe\filter\mvbob.avsi")
11:28:27 Import("C:\X264GUIS\AutoMKV095_NORIP\exe\filter\QMlib.avsi")
11:28:27 Import("C:\X264GUIS\AutoMKV095_NORIP\exe\filter\seesaw.avsi")
11:28:27 Import("C:\X264GUIS\AutoMKV095_NORIP\exe\filter\spresso.avsi")
11:28:27 #importstart
11:28:27
11:28:27 #test2
11:28:27
11:28:27 movie = avisource("F:\Case\some_movie.avi",audio=false)
11:28:27 movie = isRGB(movie) ? ConvertToYV12(movie,interlaced=true) : movie
11:28:27 movie = isYUY2(movie) ? ConvertToYV12(movie,interlaced=true) : movie
11:28:27 function getOrder(clip c) {
11:28:27 order = GetParity(c) ? 1 : 0
11:28:27 Return order }
11:28:27 #filter1start
11:28:27
11:28:27 #test3
11:28:27
11:28:27 last = movie
11:28:27 fixed_aspect = 0.985994
11:28:27 out_width = 720
11:28:27 out_height = 480
11:28:27 #resizestart
11:28:27
11:28:27 #test4
11:28:27
11:28:27 #filter2start
11:28:27
11:28:27 #test5
11:28:27
11:28:27 RemoveGrain(mode=2)
11:28:27 -----------------------------------------------------------------------
11:28:27 Script mkvmaudio.avs
11:28:27
11:28:28 LoadPlugin("C:\X264GUIS\AutoMKV095_NORIP\exe\filter\NicAudio.dll")
11:28:28 LoadPlugin("C:\X264GUIS\AutoMKV095_NORIP\exe\filter\SoundOut.dll")
11:28:28 LoadPlugin("C:\X264GUIS\AutoMKV095_NORIP\exe\filter\FFmpegSource.dll")
11:28:28 DirectShowSource("F:\Case\some_movie.avi",fps=29.969999,convertfps=true,video=false)
11:28:28 #Applying STEREO downmixing routines
11:28:28 function stereo(clip a)
11:28:28 {
11:28:28 flr = GetChannel(a, 1, 2)
11:28:28 fcc = GetChannel(a, 3)
11:28:28 lfe = GetChannel(a, 4)
11:28:28 lfc = MixAudio(fcc, lfe, 0.2071, 0.2071)
11:28:28 mix = MergeChannels(lfc, lfc)
11:28:28 lrc = MixAudio(flr, mix, 0.2929, 1.0)
11:28:28 blr = GetChannel(a, 5, 6)
11:28:28 Return MixAudio(lrc, blr, 1.0, 0.2929)
11:28:28 }
11:28:28 #
11:28:28 6==Audiochannels() ? stereo() : last
11:28:28 function addvideo(clip c) {
11:28:28 blankclip(length = Int(100 * AudioLengthF(c) / float(audiorate(c))), fps=100)
11:28:28 Return audiodub(last,c)
11:28:28 }
11:28:28 Normalize()
11:28:28 SSRC(48000)
11:28:28
11:28:28 Soundout(output="cmd",type=1,format=3,autoclose=true,executable="C:\X264GUIS\AutoMKV095_NORIP\exe\besweet\neroaacenc.exe",prefilename=" -ignorelength -q 0.40 -if - -of audio.mp4",postfilename="",nofilename=true,showoutput=false)
11:28:28
11:28:28 - - - - - - - - - - - - FINISHED JOBS - - - - - - - - - - - - - - - - -



I cutted some of the log x264 info because the forum asked to: shorten to 16000 chars.

The only modifications to the audio were:

-Changing from default 0.35 to 0.4 Quality.
-Changing Frequency from Auto to 48000.

:thanks:

buzzqw
12th February 2008, 15:53
sorry pal.. where is the error ?

the file is correctly muxed ... :confused:

09:22:10 Encoded 1' Audio Track: some_movie.mp4 -1 bytes
09:22:10 Unable to encode Audio, try piping with FFmpeg!

you "error" is due to inability of your directshowfilters to correctly decode audio part (aka.. install all required software)

BHH

Don_Genaro
12th February 2008, 16:05
sorry pal.. where is the error ?

the file is correctly muxed ... :confused:



you "error" is due to inability of your directshowfilters to correctly decode audio part (aka.. install all required software)

BHH

Automkv muxed the audio coded by ffmpeg and not the one coded by nero...

Nero produced a track called audio.mp4 that was not "seen" by automkv. Automkv looked for a file with another name and did not see the one produced by nero "audio.mp4".

So at the end in the temp folder there are two audio files... both of about the same size... but to automkv thereīs only one file (the one produced by ffmpeg). I donīt know if it is clearly explained??

So the audio produced by nero does not have any errors... it has correct size and play well in winamp, the error is that automkv doesnīt "see" it and ingores it.

The final mux is with the second audio, not the neroaac audio.

:thanks:

buzzqw
12th February 2008, 16:33
Nero produced a track called audio.mp4 that was not "seen" by automkv. Automkv looked for a file with another name and did not see the one produced by nero "audio.mp4".

what is the audio size ?

automkv will reject any size <100000 bytes, since it's considered "broken"

BHH

Don_Genaro
12th February 2008, 16:54
what is the audio size ?

automkv will reject any size <100000 bytes, since it's considered "broken"

BHH

The audio file size produced by neroaac is: 84.639.949 bytes.

This time I tried the option "Use ffmpegsource" in advanced settings and it happens just the same...

1.- Audio gets coded by nero.
2.- Audio gets ignored by automkv... because it looks for a file with another name.
3.- Audio gets coded by ffmpeg.

:script:

12:28:36 Encoding F:\Case\temp\some_movie.avi to NeroAAC with 0.40 quality
12:40:34 Encoded 1' Audio Track: some_movie.mp4 -1 bytes
12:40:34 Unable to encode Audio, try piping with FFmpeg!


The error seems clear, Automkv says that nero audio should have a file name: "some_movie.mp4" but the real file name (produced and placed in temp folder) is "audio.mp4".

So since automkv doenīt find the file "some_movie.mp4", it ignores the existing "audio.mp4" and proced to code it again with ffmpeg.

Posible solution: Make the mkvmaudio.avs script produce a file named "some_movie.mp4" instead of "audio.mp4" or make automkv to spect a file name of "some_movie.mp4" instead of "audio.mp4".

:thanks:

buzzqw
12th February 2008, 16:59
thanks Don_Genaro , i will try to replicate!

BHH

Don_Genaro
12th February 2008, 17:36
Thanks Buzzqw!

Youīre right, I tested again with a "healthy" source and everything went fine...


13:18:07 0.95b - - - - - - - - - - - - - START JOBS - - - - - - - - - - - - - -
13:18:07 OS Version: Windows XP
13:18:07 Selected Input file: F:\Case_2\Movie_source.avi
13:18:07 Selected Output dir: F:\Case_2\temp\
13:18:07 Selected Final Name: Movie_source
13:18:07 Selected Container type: MKV
13:18:07 Selected Encoder: X264
13:18:07 Selected Size: 15 / 1
13:18:07 Selected Profile: Constant_Quality.xml
13:18:07 Selected Resizer: NONE / Original
13:18:07 Selected Filters: NONE
13:18:07 Selected Deinterlacer: Progressive
13:18:07 Selected Field Order: AUTO
13:18:07 Enabled Constant Quality With Fixed Size (Q 21)
13:18:07 Using Queue: queue0.ini of 1 works
13:18:07 Track Language 1: Movie_source.avi
13:18:07 Audio Codec 1: Nero AAC
13:18:07 Audio Quality 1: 0.40
13:18:07 Audio Channel 1: Stereo
13:18:07 Track Language 2: NONE
13:18:07 Audio Codec 2: Nero AAC
13:18:07 Advanced Audio Settings DUMP Track 1
13:18:07 Nero Option Profiles: AUTO --- Encoding Mode: Quality
13:18:07 CCT Option Profiles: AUTO --- Channel Options: AUTO
13:18:07 Lame Settings: ABR
13:18:07 Audio Normalization: 1
13:18:07 Frequency: AUTO --- Tempo: NONE --- Pitch: NONE --- Other Add:
13:18:07 Selected Hit Media Size
13:18:29 Number of Frames: 3000
13:18:29 Framerate: 25.000000
13:18:29 Movie length in Seconds: 121
13:18:29 Movie Width/Height: 720/304
13:18:29 Encoding F:\Case_2\temp\Movie_source.avi to NeroAAC with 0.40 quality
13:18:52 Encoded 1' Audio Track: Movie_source.mp4 1528927 bytes
13:18:52 Starting X264 AutoResize with WIDTH of Original and wanted size of 15728640 bytes
13:18:52 Testing ABR of: 933
13:18:52 CRF encoding X264: C:\X264GUIS\AutoMKV095_NORIP\exe\encoder\x264.exe --bitrate 933 --ratetol inf --progress --keyint 250 --bframes 3 --qpmin 10 --qpmax 51 --no-psnr --mixed-refs --trellis 1 --ref 3 --filter -2,-1 --subme 7 --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 --aq-strength 0 --aq-sensitivity 0 --sar 1:1 --output "F:\Case_2\temp\resmovie.mp4" "F:\Case_2\temp\resmovie.avs"
13:18:59 CRF Iterate LOG
13:18:59 avis [info]: 720x304 @ 25.00 fps (70 frames)
13:18:59 x264 [info]: using SAR=1/1
13:18:59 x264 [info]: using cpu capabilities: MMX MMXEXT SSE SSE2 SSE3 SSSE3 Cache64
13:18:59 mp4 [info]: initial delay 2 (scale 25)
13:18:59 x264 [info]: slice I:5 Avg QP:15.40 size: 28515
13:18:59 x264 [info]: slice P:43 Avg QP:21.16 size: 10425
13:18:59 x264 [info]: slice B:22 Avg QP:21.41 size: 3501
13:18:59 x264 [info]: mb I I16..4: 35.3% 60.7% 4.0%
13:18:59 x264 [info]: mb P I16..4: 11.1% 24.0% 2.4% P16..4: 26.1% 10.4% 3.8% 0.2% 0.1% skip:21.9%
13:18:59 x264 [info]: mb B I16..4: 1.0% 2.5% 0.9% B16..8: 31.1% 2.0% 2.3% direct: 4.1% skip:56.0%
13:18:59 x264 [info]: final ratefactor: 22.83
13:18:59 x264 [info]: 8x8 transform intra:63.0% inter:77.4%
13:18:59 x264 [info]: direct mvs spatial:59.1% temporal:40.9%
13:18:59 x264 [info]: ref P 72.2% 19.3% 8.4%
13:18:59 x264 [info]: ref B 87.8% 12.2%
13:18:59 x264 [info]: kb/s:1908.2
13:18:59 x264 [info]: kb/s:1908.2
13:18:59 encoded 70 frames, 13.10 fps, 1910.47 kb/s
13:18:59 End of first Sample LOG
13:18:59 Finished Autosize procedure
13:18:59 Tested total movie: 2%
13:18:59 AutoResize movie size: 670046 bytes
13:18:59 Movie Width suggested: 480 value based on sample size (66.67% of original width)
13:18:59 Starting X264
13:18:59 CRF encoding X264: C:\X264GUIS\AutoMKV095_NORIP\exe\encoder\x264.exe --pass 1 --crf 22.83 --stats "F:\Case_2\temp\.stats" --progress --keyint 250 --bframes 3 --qpmin 10 --qpmax 51 --no-psnr --mixed-refs --trellis 1 --ref 3 --filter -2,-1 --subme 7 --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 --aq-strength 0 --aq-sensitivity 0 --sar 1:1 --output "F:\Case_2\temp\movie.264" "F:\Case_2\temp\movie.avs"
13:19:57 X264 Final CRF Encoding Stats:
x264 [info]: using SAR=1/1
x264 [info]: using cpu capabilities: MMX MMXEXT SSE SSE2 SSE3 SSSE3 Cache64
x264 [info]: slice I:23 Avg QP:19.61 size: 12543
x264 [info]: slice P:1243 Avg QP:22.55 size: 5178
13:19:57 Accepted values are between 14627635 and 15885926 bytes (movie+audio)
13:19:57 Got a file of size: 9762922 bytes + audio size 1528927 bytes (11291849)
13:19:57 Switching to 2 pass mode
13:19:57 CRF encoding X264: C:\X264GUIS\AutoMKV095_NORIP\exe\encoder\x264.exe --pass 2 --bitrate 933 --stats "F:\Case_2\temp\.stats" --progress --keyint 250 --bframes 3 --qpmin 10 --qpmax 51 --no-psnr --mixed-refs --trellis 1 --ref 3 --filter -2,-1 --subme 7 --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 --aq-strength 0 --aq-sensitivity 0 --sar 1:1 --output "F:\Case_2\temp\movie.264" "F:\Case_2\temp\movie.avs"
13:21:05 X264 Final CRF(managed) Stats:
x264 [info]: using SAR=1/1
x264 [info]: using cpu capabilities: MMX MMXEXT SSE SSE2 SSE3 SSSE3 Cache64
x264 [info]: slice I:23 Avg QP:18.48 size: 14247
13:21:05 Only Movie Size: 14053642 bytes
13:21:05 "C:\X264GUIS\AutoMKV095_NORIP\exe\matroska\mkvmerge.exe" -o "F:\Case_2\temp\Movie_source.mkv" --default-duration 0:25000/1000fps --track-name -1:"Movie_source" --aspect-ratio -1:2.368421 "F:\Case_2\temp\movie.264" --language -1:und --default-track -1:yes "F:\Case_2\temp\Movie_source.mp4" --title "Done with AutoMKV 0.95b http://forum.doom9.org/showthread.php?t=134478 "
13:21:06 Final Muxed size: 15617485 bytes
13:21:06 Encoding finished: 00:01:09 elapsed time
13:21:06 -----------------------------------------------------------------------
13:21:06 Script AutoCrop.log
13:21:06
13:21:06 Crop(0,0,720,304)
13:21:06 -----------------------------------------------------------------------
13:21:06 Script Resmovie.avs
13:21:06
13:21:06 LoadPlugin("C:\X264GUIS\AutoMKV095_NORIP\exe\filter\warpsharp.dll")
13:21:06 #loadpluginstart
13:21:06
13:21:06 #test1
13:21:06
13:21:06 Import("C:\X264GUIS\AutoMKV095_NORIP\exe\filter\BlindDeHalo3_mt2.avsi")
13:21:06 Import("C:\X264GUIS\AutoMKV095_NORIP\exe\filter\Deblock_QED_MT2.avsi")
13:21:06 Import("C:\X264GUIS\AutoMKV095_NORIP\exe\filter\FastLineDarken 1.3 MT MOD.avsi")
13:21:06 Import("C:\X264GUIS\AutoMKV095_NORIP\exe\filter\HybridFuPP.avsi")
13:21:06 Import("C:\X264GUIS\AutoMKV095_NORIP\exe\filter\LanczosPlus.avsi")
13:21:06 Import("C:\X264GUIS\AutoMKV095_NORIP\exe\filter\Lem.avsi")
13:21:06 Import("C:\X264GUIS\AutoMKV095_NORIP\exe\filter\LimitedSharpenFaster.avsi")
13:21:06 Import("C:\X264GUIS\AutoMKV095_NORIP\exe\filter\MCBob_v03c.avsi")
13:21:06 Import("C:\X264GUIS\AutoMKV095_NORIP\exe\filter\mvbob.avsi")
13:21:06 Import("C:\X264GUIS\AutoMKV095_NORIP\exe\filter\QMlib.avsi")
13:21:06 Import("C:\X264GUIS\AutoMKV095_NORIP\exe\filter\seesaw.avsi")
13:21:06 Import("C:\X264GUIS\AutoMKV095_NORIP\exe\filter\spresso.avsi")
13:21:06 #importstart
13:21:06
13:21:06 #test2
13:21:06
13:21:06 movie = avisource("F:\Case_2\Movie_source.avi",audio=false)
13:21:06 movie = isRGB(movie) ? ConvertToYV12(movie,interlaced=true) : movie
13:21:06 movie = isYUY2(movie) ? ConvertToYV12(movie,interlaced=true) : movie
13:21:06 function getOrder(clip c) {
13:21:06 order = GetParity(c) ? 1 : 0
13:21:06 Return order }
13:21:06 #filter1start
13:21:06
13:21:06 #test3
13:21:06
13:21:06 last = movie
13:21:06 fixed_aspect = 1.777700
13:21:06 out_width = 720
13:21:06 out_height = 304
13:21:06 #resizestart
13:21:06
13:21:06 #test4
13:21:06
13:21:06 #filter2start
13:21:06
13:21:06 #test5
13:21:06
13:21:06 function Comptest(clip c, float percent)
13:21:06 {
13:21:06 frange=floor(14./(percent/100.))
13:21:06 Return SelectRangeEvery(c, frange, 14)
13:21:06 }
13:21:06 Comptest(last,2)
13:21:06 -----------------------------------------------------------------------
13:21:06 Script movie.avs
13:21:06
13:21:06 LoadPlugin("C:\X264GUIS\AutoMKV095_NORIP\exe\filter\AddGrain.dll")
13:21:06 LoadPlugin("C:\X264GUIS\AutoMKV095_NORIP\exe\filter\autocrop.dll")
13:21:06 LoadPlugin("C:\X264GUIS\AutoMKV095_NORIP\exe\filter\aWarpSharp(Pruned).dll")
13:21:06 LoadPlugin("C:\X264GUIS\AutoMKV095_NORIP\exe\filter\blockbuster.dll")
13:21:06 LoadPlugin("C:\X264GUIS\AutoMKV095_NORIP\exe\filter\cnr2.dll")
13:21:06 LoadPlugin("C:\X264GUIS\AutoMKV095_NORIP\exe\filter\ColorMatrix.dll")
13:21:06 LoadPlugin("C:\X264GUIS\AutoMKV095_NORIP\exe\filter\Convolution3D.dll")
13:21:06 LoadPlugin("C:\X264GUIS\AutoMKV095_NORIP\exe\filter\corrector.dll")
13:21:06 LoadPlugin("C:\X264GUIS\AutoMKV095_NORIP\exe\filter\DctFilter.dll")
13:21:06 LoadPlugin("C:\X264GUIS\AutoMKV095_NORIP\exe\filter\Decomb.dll")
13:21:06 LoadPlugin("C:\X264GUIS\AutoMKV095_NORIP\exe\filter\Deen.dll")
13:21:06 LoadPlugin("C:\X264GUIS\AutoMKV095_NORIP\exe\filter\degrainmedian.dll")
13:21:06 LoadPlugin("C:\X264GUIS\AutoMKV095_NORIP\exe\filter\DGDecode.dll")
13:21:06 LoadPlugin("C:\X264GUIS\AutoMKV095_NORIP\exe\filter\EEDI2.dll")
13:21:06 LoadPlugin("C:\X264GUIS\AutoMKV095_NORIP\exe\filter\FFMpegSource.dll")
13:21:06 LoadPlugin("C:\X264GUIS\AutoMKV095_NORIP\exe\filter\FFT3DFilter.dll")
13:21:06 LoadPlugin("C:\X264GUIS\AutoMKV095_NORIP\exe\filter\FluxSmooth.dll")
13:21:06 LoadPlugin("C:\X264GUIS\AutoMKV095_NORIP\exe\filter\frfun7.dll")
13:21:06 LoadPlugin("C:\X264GUIS\AutoMKV095_NORIP\exe\filter\hqdn3d.dll")
13:21:06 LoadPlugin("C:\X264GUIS\AutoMKV095_NORIP\exe\filter\LeakKernelDeint.dll")
13:21:06 LoadPlugin("C:\X264GUIS\AutoMKV095_NORIP\exe\filter\MaskTools.dll")
13:21:06 LoadPlugin("C:\X264GUIS\AutoMKV095_NORIP\exe\filter\medianblur.dll")
13:21:06 LoadPlugin("C:\X264GUIS\AutoMKV095_NORIP\exe\filter\MipSmooth.dll")
13:21:06 LoadPlugin("C:\X264GUIS\AutoMKV095_NORIP\exe\filter\MSharpen.dll")
13:21:06 LoadPlugin("C:\X264GUIS\AutoMKV095_NORIP\exe\filter\mt_masktools.dll")
13:21:06 LoadPlugin("C:\X264GUIS\AutoMKV095_NORIP\exe\filter\mvtools.dll")
13:21:06 LoadPlugin("C:\X264GUIS\AutoMKV095_NORIP\exe\filter\NicAudio.dll")
13:21:06 LoadPlugin("C:\X264GUIS\AutoMKV095_NORIP\exe\filter\RemoveGrainS.dll")
13:21:06 LoadPlugin("C:\X264GUIS\AutoMKV095_NORIP\exe\filter\RepairS.dll")
13:21:06 LoadPlugin("C:\X264GUIS\AutoMKV095_NORIP\exe\filter\SangNom.dll")
13:21:06 LoadPlugin("C:\X264GUIS\AutoMKV095_NORIP\exe\filter\SimpleResize.dll")
13:21:06 LoadPlugin("C:\X264GUIS\AutoMKV095_NORIP\exe\filter\SoundOut.dll")
13:21:06 LoadPlugin("C:\X264GUIS\AutoMKV095_NORIP\exe\filter\TBilateral.dll")
13:21:06 LoadPlugin("C:\X264GUIS\AutoMKV095_NORIP\exe\filter\TDeint.dll")
13:21:06 LoadPlugin("C:\X264GUIS\AutoMKV095_NORIP\exe\filter\TIVTC.dll")
13:21:06 LoadPlugin("C:\X264GUIS\AutoMKV095_NORIP\exe\filter\TomsMoComp.dll")
13:21:06 LoadPlugin("C:\X264GUIS\AutoMKV095_NORIP\exe\filter\TTempSmooth.dll")
13:21:06 LoadPlugin("C:\X264GUIS\AutoMKV095_NORIP\exe\filter\UnDot.dll")
13:21:06 LoadPlugin("C:\X264GUIS\AutoMKV095_NORIP\exe\filter\UnFilter.dll")
13:21:06 LoadPlugin("C:\X264GUIS\AutoMKV095_NORIP\exe\filter\VSFilter.dll")
13:21:06 LoadPlugin("C:\X264GUIS\AutoMKV095_NORIP\exe\filter\warpsharp.dll")
13:21:06 #loadpluginstart
13:21:06
13:21:06 #test1
13:21:06
13:21:06 Import("C:\X264GUIS\AutoMKV095_NORIP\exe\filter\BlindDeHalo3_mt2.avsi")
13:21:06 Import("C:\X264GUIS\AutoMKV095_NORIP\exe\filter\Deblock_QED_MT2.avsi")
13:21:06 Import("C:\X264GUIS\AutoMKV095_NORIP\exe\filter\FastLineDarken 1.3 MT MOD.avsi")
13:21:06 Import("C:\X264GUIS\AutoMKV095_NORIP\exe\filter\HybridFuPP.avsi")
13:21:06 Import("C:\X264GUIS\AutoMKV095_NORIP\exe\filter\LanczosPlus.avsi")
13:21:06 Import("C:\X264GUIS\AutoMKV095_NORIP\exe\filter\Lem.avsi")
13:21:06 Import("C:\X264GUIS\AutoMKV095_NORIP\exe\filter\LimitedSharpenFaster.avsi")
13:21:06 Import("C:\X264GUIS\AutoMKV095_NORIP\exe\filter\MCBob_v03c.avsi")
13:21:06 Import("C:\X264GUIS\AutoMKV095_NORIP\exe\filter\mvbob.avsi")
13:21:06 Import("C:\X264GUIS\AutoMKV095_NORIP\exe\filter\QMlib.avsi")
13:21:06 Import("C:\X264GUIS\AutoMKV095_NORIP\exe\filter\seesaw.avsi")
13:21:06 Import("C:\X264GUIS\AutoMKV095_NORIP\exe\filter\spresso.avsi")
13:21:06 #importstart
13:21:06
13:21:06 #test2
13:21:06
13:21:06 movie = avisource("F:\Case_2\Movie_source.avi",audio=false)
13:21:06 movie = isRGB(movie) ? ConvertToYV12(movie,interlaced=true) : movie
13:21:06 movie = isYUY2(movie) ? ConvertToYV12(movie,interlaced=true) : movie
13:21:06 function getOrder(clip c) {
13:21:06 order = GetParity(c) ? 1 : 0
13:21:06 Return order }
13:21:06 #filter1start
13:21:06
13:21:06 #test3
13:21:06
13:21:06 last = movie
13:21:06 fixed_aspect = 1.777700
13:21:06 out_width = 720
13:21:06 out_height = 304
13:21:06 #resizestart
13:21:06
13:21:06 #test4
13:21:06
13:21:06 #filter2start
13:21:06
13:21:06 #test5
13:21:06
13:21:06 return last
13:21:06 -----------------------------------------------------------------------
13:21:06 Script mkvmaudio.avs
13:21:06
13:21:06 LoadPlugin("C:\X264GUIS\AutoMKV095_NORIP\exe\filter\NicAudio.dll")
13:21:06 LoadPlugin("C:\X264GUIS\AutoMKV095_NORIP\exe\filter\SoundOut.dll")
13:21:06 LoadPlugin("C:\X264GUIS\AutoMKV095_NORIP\exe\filter\FFmpegSource.dll")
13:21:06 DirectShowSource("F:\Case_2\Movie_source.avi",fps=25.000000,convertfps=true,video=false)
13:21:06 #Applying STEREO downmixing routines
13:21:06 function stereo(clip a)
13:21:06 {
13:21:06 flr = GetChannel(a, 1, 2)
13:21:06 fcc = GetChannel(a, 3)
13:21:06 lfe = GetChannel(a, 4)
13:21:06 lfc = MixAudio(fcc, lfe, 0.2071, 0.2071)
13:21:06 mix = MergeChannels(lfc, lfc)
13:21:06 lrc = MixAudio(flr, mix, 0.2929, 1.0)
13:21:06 blr = GetChannel(a, 5, 6)
13:21:06 Return MixAudio(lrc, blr, 1.0, 0.2929)
13:21:06 }
13:21:06 #
13:21:06 6==Audiochannels() ? stereo() : last
13:21:06 function addvideo(clip c) {
13:21:06 blankclip(length = Int(100 * AudioLengthF(c) / float(audiorate(c))), fps=100)
13:21:06 Return audiodub(last,c)
13:21:06 }
13:21:06 Normalize()
13:21:06
13:21:06 Soundout(output="cmd",type=1,format=3,autoclose=true,executable="C:\X264GUIS\AutoMKV095_NORIP\exe\besweet\neroaacenc.exe",prefilename=" -ignorelength -q 0.40 -if - -of audio.mp4",postfilename="",nofilename=true,showoutput=false)
13:21:06
13:21:06 - - - - - - - - - - - - FINISHED JOBS - - - - - - - - - - - - - - - - -


The problem was the source... In the player MPC it played OK, but when transcoding there is a part where the audio simply goes blank till the end of the movie and since that part was near the end of the movie I didnīt noticed earlier. I donīt know what kind of error is this (because to virtual dub and avidemux the avi has no errors) but it really has some kind of error.

So in conclusion automkv works flawlessly with a healthy source and has that audio behaviour only when the source has errors.

Still I insist on adding an option to compute the target file size based on a percentage of the source's video bitrate... since itīs kind of annoying to calculate it manually, this is useful to transcode between video codecs. Ex: I want to transcode an xvid movie to x264 but keeping only 70% of itīs original video bitrate... etc.

Thank you very much for this excelent tool! :devil:

buzzqw
12th February 2008, 17:43
@Don_Genaro
glad you resolved :)

@ALL
Still I insist on adding an option to compute the target file size based on a percentage of the source's video bitrate... since itīs kind of annoying to calculate it manually, this is useful to transcode between video codecs. Ex: I want to transcode an xvid movie to x264 but keeping only 70% of itīs original video bitrate... etc.

could be of any interest ?
Don_Genaro, i don't want to be rude, but ... i haven't found a good reason to add this option

Remember that bitrate =~ video size
so.. 4000MB of video could 2800MB at 70% of video bitrate

BHH

morgankane
12th February 2008, 22:22
@morgankane

check "force muxing dar"

BHH

Thanks Buzzw !!:thanks:

survivant001
13th February 2008, 00:40
@buzzqw

again.. new features suggested

#1 - in the Advanced Profiles.. can be great if we can save the setting in a new profiles instead of just the option (use this profile)

#2 - add a parameter in the parameters list for the Thread number : the default is AUTO.. but I think the problem with the VBV bufferunderflows is releated to Thread. If I use --thread 1 I don't get the error.

Tirade
13th February 2008, 02:12
Odd problem...

Transcoding DVD to h.264 - If I choose my audio as Nero AAC-HE 160k only about 30% of my movie has audio. Ive tried 4 times with DVD source and DVD rip source. If I choose Nero ACC default with quality, the audio is fine. When I click the advanced audio tab to select AAC-HE and 2pass, is AutoMKV making other audio changes?

14:51:36 Dgindex CMD: C:\Program Files\AutoMKV\exe\dgindex\dgindex.exe -FO=0 -OM=1 -TN=80 -YR=2 -AIF=[C:\Movies\Fantastic 4\FANTASTIC FOUR 169\temp\DVD\VIDEO_TS\VTS_08_1.vob] -OF=[C:\Movies\Fantastic 4\FANTASTIC FOUR 169\temp\movie] -exit -minimize
14:53:41 D2V file size: 833062
14:53:41 Audio 1: movie t80 3_2ch 448kbps delay 0ms.ac3
14:53:41 Pre Audio 1' Size: 355826688 bytes
14:53:41 Applying DelayAudio of 0 to audio file: movie t80 3_2ch 448kbps delay 0ms.ac3
14:53:41 Encoding C:\Movies\Fantastic 4\FANTASTIC FOUR 169\temp\movie t80 3_2ch 448kbps delay 0ms.ac3 to NeroAAC with custom command line
14:59:59 2 Pass encoding Audio 1 track: C:\Program Files\AutoMKV\exe\BeSweet\neroaacenc.exe -br 160 -2pass -if audio.wav -of movie t80 3_2ch 448kbps delay 0ms.mp4
15:08:43 Encoded 1' Audio Track: movie t80 3_2ch 448kbps delay 0ms.mp4 18109838 bytes
15:08:43 D2V Film Detected: 100.000000% FILM found
15:08:47 Number of Frames: 190431
15:08:47 Framerate: 29.970030
15:08:47 Movie length in Seconds: 6355
15:08:47 Movie Width/Height: 720/480
15:08:47 DgIndex AR: 16:9
15:13:10 Source is declared tff by a margin of 160/2.
15:13:10 Advanced Deinterlace Routines Log
15:13:10 Analyzed 552 sections of five frames
15:13:10 Found Interlace Sections: 16 2.90%
15:13:10 Found Progressive Sections:23 4.17%
15:13:10 Found Telecined Sections: 513 92.93%
15:13:10 Found Zero Mov: 4.17% 23
15:13:10 Found One Mov: 2.90% 16
15:13:10 Found Two Mov: 92.93% 513
15:13:10 Found Three Mov: 0.00% 0
15:13:10 Found Four Mov: 0.00% 0
15:13:10 Found Five Mov: 0.00% 0
15:13:10 The Movie is declared to telecined
15:13:10 Starting X264
15:13:10 CRF encoding X264: C:\Program Files\AutoMKV\exe\encoder\x264.exe --pass 1 --crf 18 --stats "C:\Movies\Fantastic 4\FANTASTIC FOUR 169\temp\.stats" --progress --keyint 250 --bframes 3 --qpmin 10 --qpmax 51 --no-psnr --mixed-refs --trellis 1 --ref 3 --filter -2,-1 --subme 6 --direct auto --vbv-maxrate 14000 --me umh --level 3.1 --weightb --b-rdo --bime --analyse p8x8,b8x8,i4x4,i8x8 --8x8dct --threads auto --thread-input --aq-strength 0.50 --aq-sensitivity 13 --sar 11982092:10000000 --output "C:\Movies\Fantastic 4\FANTASTIC FOUR 169\temp\movie.264" "C:\Movies\Fantastic 4\FANTASTIC FOUR 169\temp\movie.avs"
18:25:33 X264 Final CRF Encoding Stats:
x264 [info]: using SAR=46805/39062
x264 [info]: using cpu capabilities: MMX MMXEXT SSE SSE2 SSE3 SSSE3 Cache64
x264 [info]: slice I:2399 Avg QP:15.16 size: 35952
x264 [info]: slice P:65995 Avg QP:17.28 size: 14173
x264 [info]: slice B:83950 Avg QP:19.53 size: 3335
x264 [info]: mb I I16..4: 23.7% 52.0% 24.2%
18:25:33 Accepted values are between 697303040 and 741343232 bytes (movie+audio)
18:25:33 Got a file of size: 1301674624 bytes + audio size 18109838 bytes (1319784448)
18:25:33 Only Movie Size: 1301674624 bytes
18:25:33 "C:\Program Files\AutoMKV\exe\matroska\MP4Box.exe" -add "C:\Movies\Fantastic 4\FANTASTIC FOUR 169\temp\movie.264":par=2.344322 -chap "C:\Program Files\AutoMKV\exe\chapters.txt" -add "C:\Movies\Fantastic 4\FANTASTIC FOUR 169\temp\movie t80 3_2ch 448kbps delay 0ms.mp4:lang=und" -fps 23.976 -new "C:\Movies\Fantastic 4\FANTASTIC FOUR 169\temp\Fantastic_Four_Default_full.mp4"
18:28:16 Final Muxed size: 1321183104 bytes
18:28:16 Encoding finished: 03:15:06 elapsed time
18:28:16 -----------------------------------------------------------------------
18:28:16 Script AutoCrop.log
18:28:16
18:28:16 Crop(0,56,720,364)
18:28:16 -----------------------------------------------------------------------
18:28:16 Script movie.avs
18:28:16
18:28:16 LoadPlugin("C:\Program Files\AutoMKV\exe\filter\AddGrain.dll")
18:28:16 LoadPlugin("C:\Program Files\AutoMKV\exe\filter\autocrop.dll")
18:28:16 LoadPlugin("C:\Program Files\AutoMKV\exe\filter\aWarpSharp(Pruned).dll")
18:28:16 LoadPlugin("C:\Program Files\AutoMKV\exe\filter\blockbuster.dll")
18:28:16 LoadPlugin("C:\Program Files\AutoMKV\exe\filter\cnr2.dll")
18:28:16 LoadPlugin("C:\Program Files\AutoMKV\exe\filter\ColorMatrix.dll")
18:28:16 LoadPlugin("C:\Program Files\AutoMKV\exe\filter\Convolution3D.dll")
18:28:16 LoadPlugin("C:\Program Files\AutoMKV\exe\filter\corrector.dll")
18:28:16 LoadPlugin("C:\Program Files\AutoMKV\exe\filter\DctFilter.dll")
18:28:16 LoadPlugin("C:\Program Files\AutoMKV\exe\filter\Decomb.dll")
18:28:16 LoadPlugin("C:\Program Files\AutoMKV\exe\filter\Deen.dll")
18:28:16 LoadPlugin("C:\Program Files\AutoMKV\exe\filter\degrainmedian.dll")
18:28:16 LoadPlugin("C:\Program Files\AutoMKV\exe\filter\DGDecode.dll")
18:28:16 LoadPlugin("C:\Program Files\AutoMKV\exe\filter\EEDI2.dll")
18:28:16 LoadPlugin("C:\Program Files\AutoMKV\exe\filter\FFMpegSource.dll")
18:28:16 LoadPlugin("C:\Program Files\AutoMKV\exe\filter\FFT3DFilter.dll")
18:28:16 LoadPlugin("C:\Program Files\AutoMKV\exe\filter\FluxSmooth.dll")
18:28:16 LoadPlugin("C:\Program Files\AutoMKV\exe\filter\frfun7.dll")
18:28:16 LoadPlugin("C:\Program Files\AutoMKV\exe\filter\hqdn3d.dll")
18:28:16 LoadPlugin("C:\Program Files\AutoMKV\exe\filter\LeakKernelDeint.dll")
18:28:16 LoadPlugin("C:\Program Files\AutoMKV\exe\filter\MaskTools.dll")
18:28:16 LoadPlugin("C:\Program Files\AutoMKV\exe\filter\medianblur.dll")
18:28:16 LoadPlugin("C:\Program Files\AutoMKV\exe\filter\MipSmooth.dll")
18:28:16 LoadPlugin("C:\Program Files\AutoMKV\exe\filter\MSharpen.dll")
18:28:16 LoadPlugin("C:\Program Files\AutoMKV\exe\filter\mt_masktools.dll")
18:28:16 LoadPlugin("C:\Program Files\AutoMKV\exe\filter\mvtools.dll")
18:28:16 LoadPlugin("C:\Program Files\AutoMKV\exe\filter\NicAudio.dll")
18:28:16 LoadPlugin("C:\Program Files\AutoMKV\exe\filter\RemoveGrainS.dll")
18:28:16 LoadPlugin("C:\Program Files\AutoMKV\exe\filter\RepairS.dll")
18:28:16 LoadPlugin("C:\Program Files\AutoMKV\exe\filter\SangNom.dll")
18:28:16 LoadPlugin("C:\Program Files\AutoMKV\exe\filter\SimpleResize.dll")
18:28:16 LoadPlugin("C:\Program Files\AutoMKV\exe\filter\SoundOut.dll")
18:28:16 LoadPlugin("C:\Program Files\AutoMKV\exe\filter\TBilateral.dll")
18:28:16 LoadPlugin("C:\Program Files\AutoMKV\exe\filter\TDeint.dll")
18:28:16 LoadPlugin("C:\Program Files\AutoMKV\exe\filter\TIVTC.dll")
18:28:16 LoadPlugin("C:\Program Files\AutoMKV\exe\filter\TomsMoComp.dll")
18:28:16 LoadPlugin("C:\Program Files\AutoMKV\exe\filter\TTempSmooth.dll")
18:28:16 LoadPlugin("C:\Program Files\AutoMKV\exe\filter\UnDot.dll")
18:28:16 LoadPlugin("C:\Program Files\AutoMKV\exe\filter\UnFilter.dll")
18:28:16 LoadPlugin("C:\Program Files\AutoMKV\exe\filter\VSFilter.dll")
18:28:16 LoadPlugin("C:\Program Files\AutoMKV\exe\filter\warpsharp.dll")
18:28:16 #loadpluginstart
18:28:16
18:28:16 #test1
18:28:16
18:28:16 Import("C:\Program Files\AutoMKV\exe\filter\BlindDeHalo3_mt2.avsi")
18:28:16 Import("C:\Program Files\AutoMKV\exe\filter\Deblock_QED_MT2.avsi")
18:28:16 Import("C:\Program Files\AutoMKV\exe\filter\FastLineDarken 1.3 MT MOD.avsi")
18:28:16 Import("C:\Program Files\AutoMKV\exe\filter\HybridFuPP.avsi")
18:28:16 Import("C:\Program Files\AutoMKV\exe\filter\LanczosPlus.avsi")
18:28:16 Import("C:\Program Files\AutoMKV\exe\filter\Lem.avsi")
18:28:16 Import("C:\Program Files\AutoMKV\exe\filter\LimitedSharpenFaster.avsi")
18:28:16 Import("C:\Program Files\AutoMKV\exe\filter\MCBob_v03c.avsi")
18:28:16 Import("C:\Program Files\AutoMKV\exe\filter\mvbob.avsi")
18:28:16 Import("C:\Program Files\AutoMKV\exe\filter\QMlib.avsi")
18:28:16 Import("C:\Program Files\AutoMKV\exe\filter\seesaw.avsi")
18:28:16 Import("C:\Program Files\AutoMKV\exe\filter\spresso.avsi")
18:28:16 #importstart
18:28:16
18:28:16 #test2
18:28:16
18:28:16 movie = mpeg2source("C:\Movies\Fantastic 4\FANTASTIC FOUR 169\temp\movie.d2v")
18:28:16 function getOrder(clip c) {
18:28:16 order = GetParity(c) ? 1 : 0
18:28:16 Return order }
18:28:16 #filter1start
18:28:16
18:28:16 #test3
18:28:16
18:28:16 movie = tfm(movie,d2v="C:\Movies\Fantastic 4\FANTASTIC FOUR 169\temp\movie.d2v").tdecimate()
18:28:16 last=movie.Crop(0,56,720,364)
18:28:16 fixed_aspect = 1.978022
18:28:16 out_width = 720
18:28:16 out_height = 368
18:28:16 #resizestart
18:28:16
18:28:16 #test4
18:28:16
18:28:16 LanczosResize(out_width,out_height)
18:28:16 #filter2start
18:28:16
18:28:16 #test5
18:28:16
18:28:16 RemoveGrain(mode=2)
18:28:16 -----------------------------------------------------------------------
18:28:16 Script mkvmaudio.avs
18:28:16
18:28:16 LoadPlugin("C:\Program Files\AutoMKV\exe\filter\NicAudio.dll")
18:28:16 LoadPlugin("C:\Program Files\AutoMKV\exe\filter\SoundOut.dll")
18:28:16 LoadPlugin("C:\Program Files\AutoMKV\exe\filter\FFmpegSource.dll")
18:28:16 NicAC3Source("C:\Movies\Fantastic 4\FANTASTIC FOUR 169\temp\movie t80 3_2ch 448kbps delay 0ms.ac3")
18:28:16 DelayAudio(0.0000)
18:28:16 #Applying ORIGINAL downmixing routines
18:28:16
18:28:16 function addvideo(clip c) {
18:28:16 blankclip(length = Int(100 * AudioLengthF(c) / float(audiorate(c))), fps=100)
18:28:16 Return audiodub(last,c)
18:28:16 }
18:28:16 Normalize()
18:28:16
18:28:16 Soundout(output="wav",type=1,autoclose=true,filename="audio.wav",showoutput=false)
18:28:16
18:28:16 - - - - - - - - - - - - FINISHED JOBS - - - - - - - - - - - - - - - - -

thomaspf
13th February 2008, 07:30
I don't know exactly what the cause of the problem is but it appears to be an access right issue with Vista.

I tried a few more re-installs in "Program Files" and gave up. I now run it from my temp directory without problems.

Converting a movie right now...

Thanks

Thomas

buzzqw
13th February 2008, 08:14
@survivant001

#1 - in the Advanced Profiles.. can be great if we can save the setting in a new profiles instead of just the option (use this profile)

:confused: what do you mean "instead of just the option" ?
do you mean using load/save confuguration ?

#2 - add a parameter in the parameters list for the Thread number : the default is AUTO.. but I think the problem with the VBV bufferunderflows is releated to Thread. If I use --thread 1 I don't get the error.

already present on advanced profile editing

@Tirade
for encoding on 2 pass automkv first decode audio to wav, then feed nero with wav file

... you keep original as channel.. maybe a bug of 4gb wav.. , i will look at this ! thanks

EDIT: download this build an tell me if ok http://www.64k.it/andres/data/a/AutoMKV095c.exe

@thomaspf

most probably was a problem of privileges/read only folder

BHH

Ajax_Undone
13th February 2008, 08:41
Hey bro the installer links are Updated...

230 DDLs of the AutoMKV0.95a and 6 of the NoRip version... Do to that I will only be making the Rip version from now on it speeds things up Anyway..

buzzqw
13th February 2008, 09:03
@Ajax_Undone

thanks! link update too!

BHH

nanorch
13th February 2008, 10:08
a small but annoying bug: if a automkv.ini file exists, the Audio Codec (both tracks) reverts to "Lame", even if I had saved (and automkv.ini contains) "Ogg Vorbis"
I tried to delete the specific lines Audio Codec N = from the file, no change...

buzzqw
13th February 2008, 10:11
thanks nanorch, i will check!

BHH

Poopoo
13th February 2008, 11:37
buzz, it would be helpfull to add some whatsnew to the first post. :stupid:

delacroixp
13th February 2008, 11:58
Still I insist on adding an option to compute the target file size based on a percentage of the source's video bitrate... since
itīs kind of annoying to calculate it manually, this is useful to transcode between video codecs.
Eg: I want to transcode an xvid movie to x264 but keeping only 70% of itīs original video bitrate... etc.


Perhaps, the issue is not so much of encoding at 70% of orginal filesize even if you can't always gauge the original audio/video makeup (eg, multiple audio tracks, huge DTS file, etc)... but the advantage thereof !

There has been a huge swing in encoding philosophy in favour of Constant_Quality-CRF.
It's preferable to maintain a constant quality... rather than aim at an arbitrary filesize which would result in a huge swing in quality over time (see post (http://forum.doom9.org/showthread.php?p=1091248#post1091248)).
There is no harm in aiming at an average percentage reduction in filesize but it far less clear how it would be attainable.

Try 1-pass CQ and you'll soon get a feel as to where you want to be.


:):devil::D
Pascal

Don_Genaro
13th February 2008, 16:10
There has been a huge swing in encoding philosophy in favour of Constant_Quality-CRF.
It's preferable to maintain a constant quality... rather than aim at an arbitrary filesize which would result in a huge swing in quality over time.

There is no harm in aiming at an average percentage reduction in filesize but it far less clear how it would be attainable.



The problem with the CRF aproach to transcode divx/xvid movies, is that there is no easy way on knowing how much CRF does the file really needs. Sometimes a transcoded file with CRF 21 ends with a bigger size than the source, so it is evident that one is throwing into it more CRF than the necesary.

Another problem is that some divx/xvids have enough CRF with no less than 24, so a given CRF number isnīt optimal for every case. And since the goal is gaining some file size reduction keeping the quality as much as possible close to the source, the bitrate solution seems better.

I been testing with percentage of bitrate reduction and until now and I have had excelent results transcodes using 70% to 75% of the original bitrate, whether using two pass or "hit media size" CRF, but with CRF is quicker.

Also, do you agree that CRF or CQ 18 is equal in quality to divx/xvid CQ 2??? And what happens when a sample encoded with CQ 18 in x264 has the same size of one encoded with Xvid cq 2?, does this mean x264 has no compresability advantage over xvid in that particular movie??

:thanks:

Tirade
13th February 2008, 23:07
@Tirade
for encoding on 2 pass automkv first decode audio to wav, then feed nero with wav file

... you keep original as channel.. maybe a bug of 4gb wav.. , i will look at this ! thanks

EDIT: download this build an tell me if ok http://www.64k.it/andres/data/a/AutoMKV095c.exe



Fixed :)

survivant001
14th February 2008, 02:38
@survivant001
:confused: what do you mean "instead of just the option" ?
do you mean using load/save confuguration ?


in the advanced profile editing. You cna personnalized settings.. but I want the option.. Export theses setting into a new Profile (xxx) and I can use later for other encoding..

I mean create a new profile in automkv\profiles\x264\xxx.xml



already present on advanced profile editing


oups.. yah.. saw it.. I tough it will be in the textarea not a listbox.

Ajax_Undone
14th February 2008, 03:12
It came to my attention earlier that I did not upload the updated installer for this program. So I fixed it...


Happy Days LOL... BTW Might want to update your link on the fron page...

Tirade
14th February 2008, 03:29
Ok, once again I call on the guidance of the video gurus :)

I am actually in the process of writing a very clear "best practices" guide focused on DVD to h.264 converting and I have come a long way in my quest for knowledge.

I am good on the video and audio settings but I am definately having a problem grasping something and I need some clarification.

My questions are about aspect ratio, anamorphic and auto-crop.

Ok, I think I understand it as follows.

1. I have 300+ DVD's and all of them are widescreen. Most are 2.35:1 or 1.85:1. Neither of those aspect ratios are 16X9 (1.78:1). My TV is 16X9 so the DVD plays at 16X9 and because of the difference between 16X9 and the aspect ratio of the movie, that is why I have the black bars (called letterboxing). Am I correct on this?

2. Assuming the above is correct, I go to my next question. Some of my DVD's say "Anamoprhic Widescreen" on the back of them. The way I understand it is that anamorphic widescreen movies are "squished" horizontally and then "stretched" back out on the TV to fill the entire screen and correct the image size which results in a 16X9 image or 853X480 resolution? Is this correct?

3. Assuming that is correct, when I put a 2.35:1 or 1.85:1 DVD into AutoMKV why does it tell me to select anamorphic in the advanced menu? Is this so AutoMKV can stretch the squished image during the transcoding so that the TV does not have to?

4. If that is the case, then choosing to auto-crop and choosing anamorphic is defeating the purpose (if your goal is to remove black lines)? If I choose auto-crop and also choose anamorphic I end up with a resolution of 720X368 and even if my TV stretches the image to 16X9 I end up with black bars. So if I will only be viewing these transcodes on 16X9 TV then I should not auto-crop anamorphic widescreen DVD's correct?

5. So then the only reason why someone only watching on a 16X9 TV would auto-crop a 1.85 or 2.35 DVD usually is because it is non-anamorphic (so you will get letterboxing anyway) and you wish to save bits (or wish to clean up the letterbox edges)?

6. Does auto-cropping result in a resize of the entire image or does it just "cut off" the letterboxed areas? I read that resizing will always result in a loss of quality so if it resizes the entire image then I will not auto-crop non-anamorphic DVD's.


This is so much to take in over a 1-2 week period that it all starts to run together. If I am way off, please tell me as I wish to start batch transcoding all of my DVD's this weekend.

buzzqw
14th February 2008, 08:32
@Tirade

thanks, i will upload the fixed build

@survivant001

i have understud. thanks for this suggestion

@Ajax_Undone

thanks, link update

@Tirade

humble hint: Try all settings with a very small vob.
you should get what you want

BHH

nanorch
14th February 2008, 09:27
@Tirade:

I am actually in the process of writing a very clear "best practices" guide focused on DVD to h.264 converting and I have come a long way in my quest for knowledge.


I would be very interested in such a guide (provided it's not too arcane), as I also have a bunch of DVD => H.264 conversions planned for the next weeks.

nanorch
14th February 2008, 09:42
A question (and possibly suggestion) about Autocrop:

while encoding with "Autocrop only", I got the following message from x264: width or height not divisible by 16 (716x544), compression will suffer (the original movie size is 720x576.)

How bad is that? If there is any serious impact, should the Autocrop function not ensure that the resulting dimensions are mod16 compliant ? (even if that means increasing dimensions instead of cropping)

Aylwin
14th February 2008, 10:30
Ok, once again I call on the guidance of the video gurus :)I'm barely a newbie myself so I hope you don't mind my comments and additional questions.

1. I have 300+ DVD's and all of them are widescreen. Most are 2.35:1 or 1.85:1. Neither of those aspect ratios are 16X9 (1.78:1). My TV is 16X9 so the DVD plays at 16X9 and because of the difference between 16X9 and the aspect ratio of the movie, that is why I have the black bars (called letterboxing). Am I correct on this?As I understand it, "letterboxing" is generally used to refer to the black bars added to standard (4:3, non-anamorphic) video when the movie is wider (1.66, 1.78, 1.85, 2.35 or whatever). Anamorphic video has a display aspect ratio of 1.78:1. So if the movie is wider than that, black bars will also have to be added which technically is probably also "letterboxing".

The way I understand it is that anamorphic widescreen movies are "squished" horizontally and then "stretched" back out on the TV to fill the entire screen and correct the image size which results in a 16X9 image or 853X480 resolution? Is this correct?I've always been curious about this one so hopefully someone else can clarify. What's the resolution of a widescreen (NTSC) TV? Is it 853x480 with square pixels, or is it 720x480 with rectangular pixels?

3. Assuming that is correct, when I put a 2.35:1 or 1.85:1 DVD into AutoMKV why does it tell me to select anamorphic in the advanced menu? Is this so AutoMKV can stretch the squished image during the transcoding so that the TV does not have to?I don't know why AutoMKV tells you to select anamorphic but anamorphic encoding doesn't stretch the squished image. It actually maintains it.

4. If that is the case, then choosing to auto-crop and choosing anamorphic is defeating the purpose (if your goal is to remove black lines)?Auto-crop can always be used to remove the black bars from the source video. It doesn't matter if you choose anamorphic or not. Anamorphic simply defines where or not the image is "squished".

If I choose auto-crop and also choose anamorphic I end up with a resolution of 720X368 and even if my TV stretches the image to 16X9 I end up with black bars. So if I will only be viewing these transcodes on 16X9 TV then I should not auto-crop anamorphic widescreen DVD's correct?
If the movie is wider than your TV (e.g. 2.35:1 on a widescreen TV) then there will always be black bars. The question is: where do the black bars come from? If you don't auto-crop then the black bars are encoded. If you auto-crop, then the black bars are not encoded but are anyway generated by your media player before sending to the TV. So how I see it, auto-crop is always better since I see no point in encoding black bars. Anamorphic encoding only affects the width of the encoded video. Not the black bars.

6. Does auto-cropping result in a resize of the entire image or does it just "cut off" the letterboxed areas? I read that resizing will always result in a loss of quality so if it resizes the entire image then I will not auto-crop non-anamorphic DVD's.Yes, auto-cropping cuts off the black bars but I believe in many cases this also involves resizing because the number horizontal pixels vs the number of vertical pixels need to be a certain way. I guess it's something to do with MOD16 but I don't understand any of that stuff.

Anyway, I believe you're right. Any resizing will result in a loss of quality so you might not want to auto-crop. However, if the original video is anamorphic then you'd want to maintain that if you don't want any resizing. Anamorphic NTSC is 720x480 which is squished. Anamorphic encoding will maintain that. If you don't use anamorphic encoding then the picture will be resized to somewhere around 853x480.

This is so much to take in...Tell me about it! I'm still trying to figure out the best settings and dimensions for my encodes.

Aylwin
14th February 2008, 10:44
I been testing with percentage of bitrate reduction and until now and I have had excelent results transcodes using 70% to 75% of the original bitrate,Interesting. Does this mean that for the same level of quality, X264 files can be 25-30% smaller than XviD/DivX?

JuanCC
14th February 2008, 11:08
Microsoft (R) Windows Media Encoder Command Line Script Utility
Copyright (C) Microsoft Corporation. All rights reserved.

Title: Example
Year: 2008
Copyright: Done with AutoMKV! 0.95

Warning: Encoder failed to retrieve duration attribute from source plug-in.
Trying alternate method now....
Source duration retrieved: 10 seconds.

======== Begin Pass1 ========
Read: 25,5s (255%) Elapsed: 00:00:00 Left: 00:00:00 [25500x]


I try to encode an wmv vc-1 video from an mpeg video source.

Output Codec Settings
-------------------------------------------------------------

-v_codec WVC1 -v_mode 3 -v_bitrate 1 -s_config "C:\Example\wmv_crb" -v_preset best -v_buffer 10000 -v_performance 80 -a_input "C:\Example\" -a_codec WMAPRO -a_mode 1 -title "Example" -log wmv.log -year 2008 -copyright "Done with AutoMKV! 0.95"


Input Codec Settings
-------------------------------------------------------------
Video: MPEG1 Video 640x480 (73:60) 29.97fps 104857Kbps [Video]
Audio: MPEG Audio 48000Hz stereo 96Kbps [Audio]

My O.S is Windows Vista Home Basic

zacoz
14th February 2008, 11:22
My questions are about aspect ratio, anamorphic and auto-crop.

Ok, I think I understand it as follows.

1. I have 300+ DVD's and all of them are widescreen. Most are 2.35:1 or 1.85:1. Neither of those aspect ratios are 16X9 (1.78:1). My TV is 16X9 so the DVD plays at 16X9 and because of the difference between 16X9 and the aspect ratio of the movie, that is why I have the black bars (called letterboxing). Am I correct on this?
Yes, this is letterboxing, as it is also letterboxing when a 16:9 movie is played on a 4:3 TV. On my TV I also have the option of NOT letterboxing - it instead fills the height of the screen but consequently chops off the right and left of the picture (yuk).
2. Assuming the above is correct, I go to my next question. Some of my DVD's say "Anamoprhic Widescreen" on the back of them. The way I understand it is that anamorphic widescreen movies are "squished" horizontally and then "stretched" back out on the TV to fill the entire screen and correct the image size which results in a 16X9 image or 853X480 resolution? Is this correct?
You will likely find all your widescreen movies are "Anamorphic Widescreen" whether they specifically say that or not. Your obviously from NTSC land considering your reference to 480 height. Your DVD movies therefore all have a resolution of 720 x 480 which obviously isn't 16:9, so they all must be either being stretched horizontally or squashed vertically (i.e. Anamorphic).
3. Assuming that is correct, when I put a 2.35:1 or 1.85:1 DVD into AutoMKV why does it tell me to select anamorphic in the advanced menu? Is this so AutoMKV can stretch the squished image during the transcoding so that the TV does not have to?
You must have width selected as "Original" in that case - that's the only time that message is displayed, and only relevant when you both select "Original" and have a widescreen source. When "Original" is selected, that actually means original width and original height (i.e. no cropping whatsoever). Therefore if you are encoding a widescreen movie using the original 720 x 480 then it MUST be stretched to display as a widescreen (whether 16:9, 2.35:1, 1.85:1, etc).
EDIT: It's not AutoMKV stretching the image, rather setting the Display Aspect Ratio (DAR) or similar to tell the player to stretch it on playback.
4. If that is the case, then choosing to auto-crop and choosing anamorphic is defeating the purpose (if your goal is to remove black lines)? If I choose auto-crop and also choose anamorphic I end up with a resolution of 720X368 and even if my TV stretches the image to 16X9 I end up with black bars. So if I will only be viewing these transcodes on 16X9 TV then I should not auto-crop anamorphic widescreen DVD's correct?
If you choose autocrop and select anamorphic then your original picture height is retained (less the cropping) and your picture is stretched horizontally to make it widescreen. If you choose autocrop but NOT selecting anamorphic then your original width (less cropping) will be retained (normally 716 - 720) but your height will be squashed to get to the right widescreen aspect ratio (i.e. you loose pixels).
You seem to be thinking you HAVE to remove black bars - that's WRONG. With a 16:9 TV you can only ever not have black bars if the picture area of your movie is exactly 16:9 aspect ratio as well. You've stated that most of your movies are NOT 16:9, their width is actually proportionately larger than their height compared to a 16:9 therefore to retain the correct visual aspect ratio your TV either needs to:

fill the width which leaves the height not filling the screen (i.e. black bars top and bottom - this is good)
fill the height which means the left and right of the picture is cut off (not good)
or visually squash the picture back to 16:9 and fill both height and width (everything subsequently looks squashed horizontally - not good)

5. So then the only reason why someone only watching on a 16X9 TV would auto-crop a 1.85 or 2.35 DVD usually is because it is non-anamorphic (so you will get letterboxing anyway) and you wish to save bits (or wish to clean up the letterbox edges)?
Question seems flawed to me as 16:9, 1.85, 2.35 DVD movies are all anamorphic to start with. When encoding them you can choose to make the resulting encode anamorphic or not - your choice. If you retain the same visual aspect ratio of the picture however, then making it anamorphic or not has very little (actually read "nothing") to do with it being letterboxed when played.
6. Does auto-cropping result in a resize of the entire image or does it just "cut off" the letterboxed areas? I read that resizing will always result in a loss of quality so if it resizes the entire image then I will not auto-crop non-anamorphic DVD's.
My experience is that with a widescreen movie in AutoMKV, autocrop set on the basic settings tab in the width field doesn't resize, only crops, when you have anamorphic selected on advanced setting tab.
If you don't select anamorphic then it has to squash the height to retain the aspect ratio - you haven't given it a choice.
This is so much to take in over a 1-2 week period that it all starts to run together. If I am way off, please tell me as I wish to start batch transcoding all of my DVD's this weekend.
DON'T.......until you've tried some short test encodes with and without autocrop and with and without anamorphic to see what the output is. This is the best way to be confident in yourself that you know what is happening and what your output will be like.
Also you may want to use something like Mediainfo or Avinaptic to see what the output pixel size, the display aspect ratio etc is, and play the output in a software player that isn't set to override the display aspect ratio.

My apologies to the true experts who may pick up some not quite 100% *technically* accurate comments I've made. I've come from a similar level of confusion as Tirade so hopefully my explanation may gel. :helpful:

EDIT: Aylwin beat me, and has some nice concise comments on several of the questions to. Good Job.

Aylwin
14th February 2008, 12:12
If you choose autocrop and select anamorphic then your original picture height is retained (less the cropping) and your picture is stretched horizontally to make it widescreen.It might be useful to clarify that the "picture is stretched horizontally to make it widescreen" during playback. If you select anamorphic encoding then the encoded file remains "squished". Here's a test I made with an anamorphic PAL (720x576) movie with an aspect ratio of 2.35:1:

Auto-crop + Anamorphic Encoding = 716x432 (DAR = 2.35)
Auto-crop only = 716x304 (DAR = 2.35)

You'll see that with auto-crop only, the aspect ratio is already 2.35 (716/304). However, with anamorphic encoding the image needs to be stretch horizontally (about 1016x432 on the PC) during playback to get the right aspect ratio.

By comparison, here's what I get if I select Original instead of Auto-Crop:

Original + Anamorphic Encoding = 720x576 (DAR = 16/9)
Original only = 720x576 (DAR = 5/4)

We can see that Original keeps the same image dimensions as the source. The anamorphic file is again stretched during playback to get the right display aspect ratio (letterboxed 1024x576). However, the non-anamorphic file is just plain wrong. I don't know if this is by design or a bug.

valnar
14th February 2008, 12:51
If you choose autocrop and select anamorphic then your original picture height is retained (less the cropping) and your picture is stretched horizontally to make it widescreen. If you choose autocrop but NOT selecting anamorphic then your original width (less cropping) will be retained (normally 716 - 720) but your height will be squashed to get to the right widescreen aspect ratio (i.e. you lose pixels).


Best single sentence answer of how anamorphic works with AutoMKV. QFT.

Robert

buzzqw
14th February 2008, 13:13
If you choose autocrop and select anamorphic then your original picture height is retained (less the cropping) and your picture is stretched horizontally to make it widescreen. If you choose autocrop but NOT selecting anamorphic then your original width (less cropping) will be retained (normally 716 - 720) but your height will be squashed to get to the right widescreen aspect ratio (i.e. you lose pixels).

added to TIPS!

thanks!

BHH

valnar
14th February 2008, 14:19
added to TIPS!

thanks!

BHH

Aylwin is correct that anamorphic is stretched back during playback. Make sure that gets in there.

Robert

buzzqw
14th February 2008, 14:35
If you choose autocrop and select anamorphic then your original picture height is retained (less the cropping) and your picture is stretched horizontally during playback to make it widescreen.//If you choose autocrop but NOT selecting anamorphic then your original width (less cropping) will be retained (normally 716 - 720) but your height will be squashed to get to the right widescreen aspect ratio (i.e. you lose pixels).

yes, done. thanks to ALL!

and post more TIPs!

BHH

Tirade
14th February 2008, 14:47
I've always been curious about this one so hopefully someone else can clarify. What's the resolution of a widescreen (NTSC) TV? Is it 853x480 with square pixels, or is it 720x480 with rectangular pixels?

I am pretty sure its 853X480 w/ square pixel. My TV runs at 1920X1080 and my other TV is 1280X720 both are 16X9. I can only assume its stored at 720X480 on the DVD because of some sort of resolution restriction?


Yes, auto-cropping cuts off the black bars but I believe in many cases this also involves resizing because the number horizontal pixels vs the number of vertical pixels need to be a certain way. I guess it's something to do with MOD16 but I don't understand any of that stuff.

I dont fully understand it either. I do know MOD16 means that the width and height are dividable by 16 and that’s important because the video is divided up into 16X16 blocks for encoding. So if its not dividable by 16 you are losing data as it will down to to the nearest 16th. I'm sure there is more to it than that though.

Anyway, I believe you're right. Any resizing will result in a loss of quality so you might not want to auto-crop. However, if the original video is anamorphic then you'd want to maintain that if you don't want any resizing. Anamorphic NTSC is 720x480 which is squished. Anamorphic encoding will maintain that. If you don't use anamorphic encoding then the picture will be resized to somewhere around 853x480.

Hmmm then would it be better to retain the anamorphic source and let my player stretch it out or not choose anamorphic and let AutoMKV stretch it out? The end result of 853X480 would be fine on a 16X9 TV.
In Zacos reply he states that selecting anamorphic will set the correct DAR so that the player properly stretches it out but not selecting anamorphic will result in the original size of 720X480 (squished). So I do not think your end result will be 853X480. I think you will still get 720X480 and you will have to manually select the DAR? Is this right Zacos? (and yes I am from NTSC land hehe)

If you choose autocrop and select anamorphic then your original picture height is retained (less the cropping) and your picture is stretched horizontally to make it widescreen. If you choose autocrop but NOT selecting anamorphic then your original width (less cropping) will be retained (normally 716 - 720) but your height will be squashed to get to the right widescreen aspect ratio (i.e. you loose pixels). You seem to be thinking you HAVE to remove black bars - that's WRONG. With a 16:9 TV you can only ever not have black bars if the picture area of your movie is exactly 16:9 aspect ratio as well.
Damn you are right I should have thought about that. The only way to fill the screen vertically is to also stretch it (off the screen) horizontally; otherwise I will lose the films native aspect ratio. That makes perfect sense.

My experience is that with a widescreen movie in AutoMKV, autocrop set on the basic settings tab in the width field doesn't resize, only crops, when you have anamorphic selected on advanced setting tab.
I am hoping to get clarification on this. If I choose Auto-Crop it forces me to choose a resize option (even if Anamorphic is selected). Is this because it does resize but it only resizes the black areas? Can anyone confirm if cropping affects the entire image or not? I am hoping the answer is no so that I can finish this guide and start my testing w/o worrying about resize filters.

THANKS A TON GUYS! I hope when I get this all squared away today I can contribute back with a decent guide.

Aylwin
14th February 2008, 15:15
I am pretty sure its 853X480 w/ square pixel. My TV runs at 1920X1080 and my other TV is 1280X720 both are 16X9.I was referring to conventional CRT widescreen TVs. These new HDTVs, I think of them like computer monitors (square pixels).

I can only assume its stored at 720X480 on the DVD because of some sort of resolution restriction?720x480 is the standard for NTSC. And this is what the "old" CRT TVs need.

If you don't use anamorphic encoding then the picture will be resized to somewhere around 853x480.Hmmm then would it be better to retain the anamorphic source and let my player stretch it out or not choose anamorphic and let AutoMKV stretch it out? The end result of 853X480 would be fine on a 16X9 TV.Sorry. Very poor statement on my part. I was trying to imply that you would have to manually set the dimensions in AutoMKV if you want a similar resolution to anamorphic encoding. If you simply use Auto-crop with no anamorphic encoding, then it's 720 x [whatever height needed to get the rigth aspect ratio] as explained by zacoz.

If I choose Auto-Crop it forces me to choose a resize option (even if Anamorphic is selected). Is this because it does resize but it only resizes the black areas? Can anyone confirm if cropping affects the entire image or not? I am hoping the answer is no so that I can finish this guide and start my testing w/o worrying about resize filters.I'm not sure I fully understand your questions. Auto-Crop removes the black areas, it doesn't resize them. You also mention resize filters. I don't think that has any direct relation to cropping.

By the way, what media player are you using and how is it connected to your TV?

valnar
14th February 2008, 15:42
I'm not sure I fully understand your questions. Auto-Crop removes the black areas, it doesn't resize them. You also mention resize filters. I don't think that has any direct relation to cropping.


I think what he was saying is that by removing *any* lines from the original source at all, even black bars, it will force a minor resize/scale from the original DVD because of MOD16. Most of us think it's best to remove the black bars and not encode them, but the price we pay is a little bit of fudging.

If you are a total stickler for the original quality, the best option is Original sizing + anamorphic. In the case of a 2.35:1 movie for instance, that would mean wasting some bits encoding black bars.

Robert

Tirade
14th February 2008, 16:05
I think what he was saying is that by removing *any* lines from the original source at all, even black bars, it will force a minor resize/scale from the original DVD because of MOD16. Most of us think it's best to remove the black bars and not encode them, but the price we pay is a little bit of fudging.

If you are a total stickler for the original quality, the best option is Original sizing + anamorphic. In the case of a 2.35:1 movie for instance, that would mean wasting some bits encoding black bars.

Robert

Yes, I was wondering if cropping works like say... using scissors to cut off the top and bottom of a photo or does cropping the black bars out actually require processing/resizing the entire source?

I plan to compare some size differences tonight between cropping and original and seeing how much of a size difference there is and if there is an quality difference. If the wasted bits are a negligible size difference (1-3%) I might just use the original. I cant think there would be a lot of information in those black areas :)

I do like the solid black look of the cropped areas compared to the somewhat gray/black default letterbox bars.

Taddeusz
14th February 2008, 16:19
I think it's always been the common-man consensus that cropping the black bars reduces the size by a lot. But then compression techniques now are very efficient. And you're talking about two large bands of black which should compress down to nearly nothing because nothing is there. I've never seen any actual proof that cropping actually reduces size or increases quality by a noticeable amount.

buzzqw
14th February 2008, 16:44
update 0.95c

ADDED: Better tooltip layout
ADDED: Aspect error in log file
ADDED: Save personalized profile (suggestion by survivant001)
FIXED: 2 pass encoding with Nero AAC Audio and movie longer than 2 hours
FIXED: Reduced log (trimming all load plugin/import section)

BHH

zacoz
14th February 2008, 16:51
It might be useful to clarify that the "picture is stretched horizontally to make it widescreen" during playback.
Thanks Aylwin. I should have been clearer in my post.

Hmmm then would it be better to retain the anamorphic source and let my player stretch it out or not choose anamorphic and let AutoMKV stretch it out? The end result of 853X480 would be fine on a 16X9 TV.
In Zacos reply he states that selecting anamorphic will set the correct DAR so that the player properly stretches it out but not selecting anamorphic will result in the original size of 720X480 (squished). So I do not think your end result will be 853X480. I think you will still get 720X480 and you will have to manually select the DAR? Is this right Zacos? (and yes I am from NTSC land hehe)
Not quite true, I may not have been clear.
If you use Autocrop + Anamorphic you would end up with approx 720 x 480 that is stretched to 853 x 480 on playback.
If you use Autocrop only you get approx 720 x 404 with no stretching on playback.
AutoMKV sets DAR correctly in both cases.
(these are approximates as I've never encoded NTSC so don't know what it normally mods/resizes W & H to exactly)

My experience is that with a widescreen movie in AutoMKV, autocrop set on the basic settings tab in the width field doesn't resize, only crops, when you have anamorphic selected on advanced setting tab.I am hoping to get clarification on this. If I choose Auto-Crop it forces me to choose a resize option (even if Anamorphic is selected). Is this because it does resize but it only resizes the black areas? Can anyone confirm if cropping affects the entire image or not?
You have me thinking about this a little more now too. I might have to look a bit deeper. When I "autocrop with anamorphic" my 720 x 576 16:9 anamorphic PAL TV captures (no black bars evident), I end up with 716 x 576 (anamorphic) output - I'd assumed no resizing was done but I should probably double check it isn't doing a tiny bit.

zacoz
14th February 2008, 17:00
By comparison, here's what I get if I select Original instead of Auto-Crop:

Original + Anamorphic Encoding = 720x576 (DAR = 16/9)
Original only = 720x576 (DAR = 5/4)

We can see that Original keeps the same image dimensions as the source. The anamorphic file is again stretched during playback to get the right display aspect ratio (letterboxed 1024x576). However, the non-anamorphic file is just plain wrong. I don't know if this is by design or a bug.
Your second test, selecting "Original only" is why the message comes up about recommending Anamorphic be selected - because if your source is anamorphic in this case and you don't your output DAR will be wrong and it won't play right.

It was discussed in the 0.95beta thread, but it was unclear if forcing this could cause an issue in the case an unusual anamorphic source. From memory someone mentioned having seen vertically anamorphic videos not only the common horizontally anamorphic. Buzzqw therefore added the "recommendation to tick anamorphic" in the status bar as a solution.

zacoz
14th February 2008, 17:04
update 0.95c

ADDED: Better tooltip layout
ADDED: Aspect error in log file
ADDED: Save personalized profile (suggestion by survivant001)
FIXED: 2 pass encoding with Nero AAC Audio and movie longer than 2 hours
FIXED: Reduced log (trimming all load plugin/import section)

BHH

Nice :thanks: Might even get us closer to being on topic :p ;)

Reduced log should help a bit when people are posting them here too :cool:

2am - bed time zzzzzzzzzz

Honeyko
14th February 2008, 17:39
REQUEST: Multiple encodes of the same file will create different date-stamped logs appended with DATE/TIME rather than sequentially appending them all together (which makes it annoying to locate the beginning of one in the middle).

ALSO: The first post in this thread now reads: "
UPDATE 0.95b: http://www.64k.it/andres/data/a/AutoMKV095c.exe" ....suggest changing "UPDATE 0.95b:" to just "LASTEST UPDATE:" so as to not need to edit so much with every change.

buzzqw
14th February 2008, 17:46
REQUEST: Multiple encodes of the same file will create different date-stamped logs appended with DATE/TIME rather than sequentially appending them all together (which makes it annoying to locate the beginning of one in the middle).

... the log of my preferred vob test is over 25mb... :p

and.. fixed the 0.95B , thanks

BHH