View Single Post
Old 16th April 2009, 02:05   #397  |  Link
Crono141
Registered User
 
Join Date: Jun 2007
Posts: 150
I'd like to ask a stupid question.

What is the difference between HDC h264 at crf 0 (for lossless encode) and the lossless h264 profile in autoMKV? I ask because the AutoMKV profile produced nice high quality encodes at only slightly higher filesize than crf 18, and was about twice as fast at doing it. I'd like to be able to replicate that behavior in HDC.

Everyone says CRF 18 is transparent, but it really isn't, especially in scenes with lots of fog or smoke. And CRF 16 increases the file size exponentially, as well as the encode times, and doesn't produce much better of a picture. Lossless encodes (from AutoMKV) looked great, and were a great filesize to boot.

Any possibility of getting that profile, or something close to it, in HDC for h264 encodes?

Edit: I think I figured it out. I just took the command line from AutoMKV and copied it into the HDC profiles file. Encoding now. Got a few warnings:

Code:
E:\Programs\HDConvertToX\temp>"E:\Programs\HDConvertToX\applications\x264.exe" -
-crf 16 --threads auto --thread-input --no-psnr --progress --qp 0 --keyint 250 -
-bframes 0 --qpmin 0 --qpmax 51 --no-psnr --ref 1 --filter 0,0 --subme 2 --direc
t temporal --vbv-maxrate 25000 --me hex --no-ssim --level 4.1 --merange 12 --nf
--b-adapt 1 --partitions p8x8,b8x8,i4x4,p4x4 --threads auto --thread-input  --sa
r 1:1  --output "E:\Programs\HDConvertToX\temp\hdconverttox_vts_01_1.h264" "E:\P
rograms\HDConvertToX\temp\hdconverttox_vts_01_1.avs" --level 4.0
avis [info]: 720x336 @ 23.98 fps (157140 frames)
x264 [info]: using SAR=1/1
x264 [warning]: VBV bitrate (25000) > level limit (20000)
x264 [info]: using cpu capabilities: MMX2 SSE2Fast FastShuffle SSEMisalign LZCNT

x264 [warning]: VBV maxrate specified, but no bufsize.
x264 [info]: profile High 4:4:4 Predictive, level 4.0
[4.6%] 7190/157140 frames, 50.18 fps, 16863.21 kb/s, eta 0:49:48
Mayhaps someone with better knowledge of x264 can help me sort out these warning. And filesize too, because it seems obvious from that bitrate that I'm going to get a huge file. At least the encoding is quick.

It seems there shouldn't be a CRF value if we're using x264 lossless encoding.

Edit 2: On a new issue. I fixed my problem with WMP12 crashing when trying to open an M2ts file. Also fixed the annoying com surrogate crash that MS blames on Haali media splitter. I had this software called AVSYOU that had crappy conflicting codecs that were messing me up, but I digress.

Anyway, since I had m2ts playback fixed (included BR content decrypted with AnyDVD) i decided to give BR conversion a go again, and here's what happenned:

Code:
E:\Programs\HDConvertToX\temp>"E:\Programs\HDConvertToX\applications\x264.exe" -
-pass 1 --bitrate 84123344 --threads auto --thread-input --no-psnr --progress --
keyint 250 --bframes 3 --mixed-refs --trellis 0 --ref 1 --filter -1,-1 --subme 2
 --direct auto --vbv-bufsize 14000 --vbv-maxrate 25000 --me dia --no-ssim --weig
htb --b-adapt 1 --no-chroma-me  --aud --nal-hrd --aq-mode 1 --aq-strength 1 --ps
y-rd 1.1:0.0 --output "E:\Programs\HDConvertToX\temp\hdconverttox_00007.h264" "E
:\Programs\HDConvertToX\temp\hdconverttox_00007.avs" --level 4.0
avis [error]: unsupported input format (DIB )
x264 [error]: could not open input file 'E:\Programs\HDConvertToX\temp\hdconvert
tox_00007.avs'

E:\Programs\HDConvertToX\temp>"E:\Programs\HDConvertToX\applications\x264.exe" -
-pass 2 --bitrate 84123344 --threads auto --thread-input --no-psnr --progress --
keyint 250 --bframes 3 --mixed-refs --trellis 0 --ref 3 --filter -1,-1 --subme 9
 --direct auto --vbv-bufsize 14000 --vbv-maxrate 25000 --me umh --no-ssim --weig
htb --b-adapt 1 --no-chroma-me --8x8dct --aud --nal-hrd --aq-mode 1 --aq-strengt
h 1 --psy-rd 1.1:0.0 --output "E:\Programs\HDConvertToX\temp\hdconverttox_00007.
h264" "E:\Programs\HDConvertToX\temp\hdconverttox_00007.avs" --level 4.0
avis [error]: unsupported input format (DIB )
x264 [error]: could not open input file 'E:\Programs\HDConvertToX\temp\hdconvert
tox_00007.avs'
Both passes only took about 2 minutes each due to error message.

Here's the report

Code:
HDConvertToX v.1.0.216.1679 report

Input File: g:\bdmv\stream\00007.m2ts
Codec Video: vc-1
Width: 0
Heigh: 0
Framerate: 0.000
Framecount: 0
Duration(hh:mm:ss): 0:0:1
Aspect Ratio: 1.7778
Resized resolution: 0 / 0
Crop Left: 0
Crop Top: 0
Crop Right: 0
Crop Bottom: 0

Start Hidden Options ->
Activate Hidden Option: NMT
Activate Hidden Option: Mod16
-> End Hidden Options

Start Video Configuration ->
Encoding Settings: X264 in M2TS
NMT Compatibility: On
Encoding Preset: 7
Final Size: 10000
Priority: idle
Denoise Level: None
Set Manual Bitrate: 
Force DirectShowSource: Off
Deinterlace: none
-> End Video Configuration

Start Audio Configuration ->
Audio Codec: Copy Audio
Audio Bitrate/Quality: 128
Audio Channels: 2
MP3 Mode: abr
SpeedUP: Off
SlowDonw: Off
Normalize: On
-> End Audio Configuration

Start Audio Tracks Selected ->
3: ac3, english, 5.1 channels, 640kbps, 48khz
-> End Audio Tracks Selected

Start Subtitles Tracks Selected ->
-> End Subtitles Tracks Selected
Mux Subtitle in MP4/MKV file: On
Encrust Subtitle in Video file: Off

Start Advanced AviSynth ->
Basic Filter: NONE
QMF Filter: NONE
MVDegrain: NONE
FreeAVS String: 
ColorMatrix: On
GreyScale: Off
-> End Advanced AviSynth

Start Queue ->
"E:\Programs\HDConvertToX\applications\x264.exe" --pass 2 --bitrate 84123344 --threads auto --thread-input --no-psnr --progress --keyint 250 --bframes 3 --mixed-refs --trellis 0 --ref 3 --filter -1,-1 --subme 9 --direct auto --vbv-bufsize 14000 --vbv-maxrate 25000 --me umh --no-ssim --weightb --b-adapt 1 --no-chroma-me --8x8dct --aud --nal-hrd --aq-mode 1 --aq-strength 1 --psy-rd 1.1:0.0 --output "E:\Programs\HDConvertToX\temp\hdconverttox_00007.h264" "E:\Programs\HDConvertToX\temp\hdconverttox_00007.avs" --level 4.0 
"E:\Programs\HDConvertToX\applications\tsMuxeR.exe" "E:\Media\Movies\DVD\Action\The Dark Knight BR.meta" "E:\Media\Movies\DVD\Action\The Dark Knight BR.M2TS"
-> End Queue

AviSynth Script ->
Working with files: E:\Programs\HDConvertToX\temp\hdconverttox_00007.avs
#HDConvertToX Avisynth Script
#
#Input File = g:\bdmv\stream\00007.m2ts
#Original Resolution = 0x0
#Aspect Ratio = 1.7778
#Frame rate =0.000
#Number of Frames = 0
#Lenght (hour:minutes:seconds) = 0:0:1
#Display Aspect Ratio = -1.#IND
#Aspect Error = -1.#IND
#
#Resized resolution = 0 / 0
#Crop Left = 0
#Crop Top = 0
#Crop Right = 0
#Crop Bottom = 0
#

#Source File
directshowsource("g:\bdmv\stream\00007.m2ts",audio=false)
last = isRGB(last) ? ConvertToYV12(last) : last
last = isYUY2(last) ? ConvertToYV12(last) : last


#Applying Resizing
LanczosResize(0,0,0,0,-0,-0)

#Insert Filters As Requested
ColorMatrix(mode="Rec.709->Rec.601")

-> End AviSynth Script
Virtual Dub error on AVS script reports Timeout waiting for graph to start (line 61). I know my directshow filters will display this file. VC1 with ac3. Not sure what the deal is. Thanks for all your help.

Last edited by Crono141; 16th April 2009 at 05:35.
Crono141 is offline   Reply With Quote