Log in

View Full Version : HDConvertToX v. 3.0 (14/10/2010)


Pages : 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 [65] 66 67 68 69 70 71 72 73 74 75 76

buzzqw
17th May 2010, 07:34
@x_merlin_x AND @lotrmith

please post the eac3to log (in analysis folder)
on make report i don't see the forced captions...

@Brilliant

check the ffdshow audio configuration
maybe there is some "messing" about ssrc, mixing..

BHH

lotrmith
17th May 2010, 17:02
@x_merlin_x AND @lotrmith

please post the eac3to log (in analysis folder)
on make report i don't see the forced captions...

@Brilliant

check the ffdshow audio configuration
maybe there is some "messing" about ssrc, mixing..

BHH

eac3to v3.18
command line: "C:\Users\M\Documents\HDConvertToX_2.5.624.4217\applications\eac3to.exe" "c:\users\m\documents\avatar\red_bird_2d_ww\bdmv\stream\00002.m2ts" -log="C:\Users\M\Documents\HDConvertToX_2.5.624.4217\analysis\eac3toinfo.log"
------------------------------------------------------------------------------
M2TS, 1 video track, 6 audio tracks, 4 subtitle tracks, 2:41:42, 24p /1.001
1: Chapters, 35 chapters
2: h264/AVC, 1080p24 /1.001 (16:9)
3: DTS Master Audio, English, 5.1 channels, 24 bits, 48khz, -9ms
(core: DTS, 5.1 channels, 24 bits, 1509kbps, 48khz)
4: AC3 Surround, English, 2.0 channels, 224kbps, 48khz, -9ms
5: AC3, English, 5.1 channels, 448kbps, 48khz, -9ms
6: AC3, Spanish, 5.1 channels, 448kbps, 48khz, -9ms
7: AC3, French, 5.1 channels, 448kbps, 48khz, -9ms
8: AC3, Portuguese, 5.1 channels, 448kbps, 48khz, -9ms
9: Subtitle (PGS), English
10: Subtitle (PGS), Spanish
11: Subtitle (PGS), Portuguese
12: Subtitle (PGS), French



Is that what you're looking for? There are only those four subtitle options, but if you select the English subtitle and run the queue, when it goes through the subtitles it says that there are however many subtitles and also a couple odd dozen forced ones.


Additionally, if you could comment, I've tried twice now running both the previously posted report and this following report, only to have the entire process finish but with no output file actually produced!

HDConvertToX v.2.5.640.4275 report

Input File: c:\users\M\documents\avatar\red_bird_2d_ww\bdmv\stream\00002.m2ts ( C:\Users\M\Documents\Avatar\RED_BIRD_2D_WW\BDMV\STREAM\00002.m2ts )
Codec Video: avc
Width / Heigh : 1920 / 1080
Framerate / Framecount: 23.976fps / 232608 frames
Duration(hh:mm:ss): 2:41:42
Aspect Ratio: 1.7778
Resized resolution: 1916 / 1072
Crop Values : 2:6:2:2

Start Video Configuration ->
Encoding Settings: XviD Extreme Quality ; Bitrate= 8399
Final Size: 10000
Denoise Level: Super Light
Video Handling: Force DirectShowSource2 (Haali)
-> End Video Configuration

Start Audio Configuration ->
Audio Codec: MP3 Audio
Audio Bitrate/Quality: 128
Audio Channels: Original
MP3 Mode: abr
Normalize: On
Audio handling: Use Eac3to as demuxer
Keep only core: On
-> End Audio Configuration

Full Audio List-> (*** mean selected)
NONE
*** 3: dts master audio, english, 5.1 channels, 24 bits, 48khz, -9ms
4: ac3 surround, english, 2.0 channels, 224kbps, 48khz, -9ms
5: ac3, english, 5.1 channels, 448kbps, 48khz, -9ms
6: ac3, spanish, 5.1 channels, 448kbps, 48khz, -9ms
7: ac3, french, 5.1 channels, 448kbps, 48khz, -9ms
8: ac3, portuguese, 5.1 channels, 448kbps, 48khz, -9ms

-> End Full Audio List

Full Subtitle List-> (*** mean selected)
*** NONE
9: subtitle (pgs), english
10: subtitle (pgs), spanish
11: subtitle (pgs), portuguese
12: subtitle (pgs), french

-> End Full Subtitle List

Mux Subtitle in MP4/MKV file: On

Start Advanced AviSynth ->
ColorMatrix: On
-> End Advanced AviSynth
Start Muxing Options ->
<- End Muxing Options

Start Queue ->
prompt $d $t $_$P$G

echo job number: 1
"C:\Users\M\Documents\HDConvertToX_2.5.624.4217\applications\eac3to.exe" "c:\users\M\documents\avatar\red_bird_2d_ww\bdmv\stream\00002.m2ts" 9:"C:\Users\M\Documents\HDConvertToX_2.5.624.4217\job1\hdencodertox__subs_9.sup"
"C:\Users\M\Documents\HDConvertToX_2.5.624.4217\applications\eac3to.exe" "c:\users\M\documents\avatar\red_bird_2d_ww\bdmv\stream\00002.m2ts" 3: stdout.wav -down16 -down2 | "C:\Users\M\Documents\HDConvertToX_2.5.624.4217\applications\lame.exe" - -h --abr 128 "C:\Users\M\Documents\HDConvertToX_2.5.624.4217\job1\hdencodertox-pid3.mp3"
java -jar "C:\Users\M\Documents\HDConvertToX_2.5.624.4217\applications\BDSup2Sub.jar" "C:\Users\M\Documents\HDConvertToX_2.5.624.4217\job1\hdencodertox__subs_9.sup" "C:\Users\M\Documents\HDConvertToX_2.5.624.4217\job1\hdencodertox__subs_9.idx" /res:1080p
"C:\Users\M\Documents\HDConvertToX_2.5.624.4217\applications\xvid_encraw.exe" -progress 50 -i "C:\Users\M\Documents\HDConvertToX_2.5.624.4217\job1\hdconverttox_00002.avs" -avi "C:\Users\M\Documents\HDConvertToX_2.5.624.4217\job1\hdconverttox_00002.avi" -max_bframes 2 -vhqmode 1 -quality 6 -max_key_interval 125 -lumimasking -bquant_ratio 150 -framerate 23.976 -threads 6 -bitrate 8528 -single -par 1:1
"C:\Users\M\Documents\HDConvertToX_2.5.624.4217\applications\eac3to.exe" "c:\users\M\documents\avatar\red_bird_2d_ww\bdmv\stream\00002.m2ts" 1:"C:\Users\M\Documents\HDConvertToX_2.5.624.4217\job1\chapters.txt"
"C:\Users\M\Documents\HDConvertToX_2.5.624.4217\applications\mp4box.exe" -add "C:\Users\M\Documents\HDConvertToX_2.5.624.4217\job1\hdconverttox_00002.avi" -fps 23.976 -add "C:\Users\M\Documents\HDConvertToX_2.5.624.4217\job1\hdencodertox-pid3.mp3":lang=eng -chap "C:\Users\M\Documents\HDConvertToX_2.5.624.4217\job1\chapters.txt" -add "C:\Users\M\Documents\HDConvertToX_2.5.624.4217\job1\hdencodertox__subs_9.idx":lang=eng "C:\Users\M\Documents\Avatar\Avatar.MP4"
-> End Queue

-> End AviSynth Script

Oats
17th May 2010, 20:14
I found a small problem when using Double Pass IVTC. If you look at the 2nd line of the queue you will see C:\Program Files (x86)\HDConvertToX\applications\x264.exe doesn't have quotes around it and it causes the encode to fail. If I add quotes everything works fine.

HDConvertToX v.2.5.646.4284 report

Input File: e:\temp\dvds\after the sunset\video_ts\vts_01_1.vob ( E:\Temp\DVDs\After the Sunset\VIDEO_TS\VTS_01_0.IFO )
PGC : PGC 1. Length: 1:31:37:26 / chained=1
Codec Video: mpeg
Width / Heigh : 720 / 480
Framerate / Framecount: 29.970fps / 164745 frames
Duration(hh:mm:ss): 1:31:37
Aspect Ratio: 1.7778
Resized resolution: 720 / 352
Crop Values : 0:62:0:66
Activate: Crop Obey to AR
Activate: Anamorphic Resize

Start Video Configuration ->
Encoding Settings: X264 VerySlow ; Quality= 19
Final Size: 19
Denoise Level: Super Light
Video Handling: Use Best Decoder
Deinterlace: Double Pass IVTC
-> End Video Configuration

Start Audio Configuration ->
Audio Codec: Copy Audio
Audio Bitrate/Quality: 128
Audio Channels: 2
Normalize: On
Audio handling: Use Eac3to as demuxer
Keep only core: On
-> End Audio Configuration

Full Audio List-> (*** mean selected)
NONE
*** 80: English (AC3 6ch, 0xBD 0x80) [0]

-> End Full Audio List

Full Subtitle List-> (*** mean selected)
*** NONE

-> End Full Subtitle List

Mux Subtitle in MP4/MKV file: On

Start Advanced AviSynth ->
ColorMatrix: On
-> End Advanced AviSynth
Start Muxing Options ->
<- End Muxing Options

Start Queue ->
prompt $d $t $_$P$G

echo job number: 4
"C:\Program Files (x86)\HDConvertToX\applications\dgindex.exe" -FO=0 -OM=0 -YR=2 -AIF=[e:\temp\dvds\after the sunset\video_ts\vts_01_1.vob] -OF=[E:\Temp\HDC\job4\movie] -exit -minimize
C:\Program Files (x86)\HDConvertToX\applications\x264.exe --bitrate 200 --thread-input --subme 1 --partitions none --me dia --sar 1:1 --output "E:\Temp\HDC\job4\ivtcpass.h264" "E:\Temp\HDC\job4\ivtc_hdconverttox_vts_01_1.avs"
"C:\Program Files (x86)\HDConvertToX\applications\eac3to.exe" "E:\Temp\DVDs\After the Sunset\VIDEO_TS\VTS_01_1.vob"+"E:\Temp\DVDs\After the Sunset\VIDEO_TS\VTS_01_2.vob"+"E:\Temp\DVDs\After the Sunset\VIDEO_TS\VTS_01_3.vob"+"E:\Temp\DVDs\After the Sunset\VIDEO_TS\VTS_01_4.vob" 3: "E:\Temp\HDC\job4\hdencodertox-pid3.ac3" -no2ndpass
"C:\Program Files (x86)\HDConvertToX\applications\avs2yuv.exe" "E:\Temp\HDC\job4\hdconverttox_vts_01_1.avs" - | "C:\Program Files (x86)\HDConvertToX\applications\x264-64bit.exe" - --stdin y4m --crf 19 --preset veryslow --threads auto --thread-input --sar 8110080:6842880 --output "E:\Temp\HDC\job4\hdconverttox_vts_01_1.h264" 720x352
"C:\Program Files (x86)\HDConvertToX\applications\Chapter\ChapterXtractor.exe" "E:\Temp\DVDs\After the Sunset\VIDEO_TS\VTS_01_0.IFO" "E:\Temp\HDC\job4\chapters.txt" -p5
"C:\Program Files (x86)\HDConvertToX\applications\mkvmerge.exe" -o "E:\Temp\DVDs\After the Sunset.mkv" --default-duration 0:23.976fps --aspect-ratio -1:2.424242 "E:\Temp\HDC\job4\hdconverttox_vts_01_1.h264" --language -1:eng "E:\Temp\HDC\job4\hdencodertox-pid3.ac3" --chapters "E:\Temp\HDC\job4\chapters.txt"
-> End Queue

AviSynth Script ->
Working with files: E:\Temp\HDC\job4\hdconverttox_vts_01_1.avs
Load_Stdcall_plugin("C:\Program Files (x86)\HDConvertToX\filters\yadif.dll")
Mpeg2Source("E:\Temp\HDC\job4\movie.d2v")
TFM(input="E:\Temp\HDC\job4\ivtc.tfm")
TDecimate(input="E:\Temp\HDC\job4\ivtc.dec")
Spline36Resize(720,352,0,62,-0,-66)
ColorMatrix(d2v="E:\Temp\HDC\job4\movie.d2v")
hqdn3d(1)
-> End AviSynth Script

buzzqw
18th May 2010, 07:42
@lotrmith

if eac3to doesn't support these subs.. i cannot help
better to use bdsup directly

@Oats
thanks! .. and Welcome to the Forum!

fixed, please update HDC

BHH

Mrsash
18th May 2010, 10:21
I am trying to figure out what to do? You have not replied to my post. I have plenty of space. Is there something I can use other than eac3. I tried using forceDDS but it gave me completely different language but finished encoding audio without any problem on all files? Cant understand what the problem is.

thanks

lotrmith
18th May 2010, 17:45
@lotrmith

if eac3to doesn't support these subs.. i cannot help
better to use bdsup directly

Ok, thanks for the advice. I used txMuxer to demux just the main english subtitle track, then I opened that in BDSup2Sub and have created a new subtitle track that contains only the forced subtitles. It is a .sup extension. How do I load and include this in HDConverttoX after loading and analysing the main .m2ts? My goal is to convert to .mp4 and include these forced subtitles embedded in the video stream.

Also, if I want my output to be ~15000 MB (insted of 10,000MB as in previous projects), it wants the bitrate to be 12859. We ran into this problem before where values over 10,000 bitrate caused problems. Will I have to set it manually to 10,000 bitrate again? In the meantime, I've calculated the largest size it can be without automatically going over 10,000 bitrate, which is close to 12,000 MB so that's probably fine.


My report looks like this. I expect I'll have to manually insert a line in the queue? The path for the subtitle track I've created and want to use is C:\Users\M\Documents\Avatar\ForcedFinal.sup

HDConvertToX v.2.5.640.4275 report

Input File: c:\users\M\documents\avatar\red_bird_2d_ww\bdmv\stream\00002.m2ts ( C:\Users\M\Documents\Avatar\RED_BIRD_2D_WW\BDMV\STREAM\00002.m2ts )
Codec Video: avc
Width / Heigh : 1920 / 1080
Framerate / Framecount: 23.976fps / 232608 frames
Duration(hh:mm:ss): 2:41:42
Aspect Ratio: 1.7778
Resized resolution: 1916 / 1072
Crop Values : 2:6:2:2

Start Video Configuration ->
Encoding Settings: XviD Extreme Quality ; Bitrate= 10000
Final Size: 11848
Denoise Level: Super Light
Video Handling: Use Best Decoder
-> End Video Configuration

Start Audio Configuration ->
Audio Codec: MP3 Audio
Audio Bitrate/Quality: 256
Audio Channels: 2
MP3 Mode: abr
Normalize: On
Audio handling: Use Eac3to as demuxer
Keep only core: On
-> End Audio Configuration

Full Audio List-> (*** mean selected)
NONE
*** 3: dts master audio, english, 5.1 channels, 24 bits, 48khz, -9ms
4: ac3 surround, english, 2.0 channels, 224kbps, 48khz, -9ms
5: ac3, english, 5.1 channels, 448kbps, 48khz, -9ms
6: ac3, spanish, 5.1 channels, 448kbps, 48khz, -9ms
7: ac3, french, 5.1 channels, 448kbps, 48khz, -9ms
8: ac3, portuguese, 5.1 channels, 448kbps, 48khz, -9ms

-> End Full Audio List

Full Subtitle List-> (*** mean selected)
*** NONE
9: subtitle (pgs), english
10: subtitle (pgs), spanish
11: subtitle (pgs), portuguese
12: subtitle (pgs), french

-> End Full Subtitle List

Encrust Subtitle in Video file: On

Start Advanced AviSynth ->
ColorMatrix: On
-> End Advanced AviSynth
Start Muxing Options ->
<- End Muxing Options

Start Queue ->
prompt $d $t $_$P$G

echo job number: 1
"C:\Users\M\Documents\HDConvertToX_2.5.624.4217\applications\eac3to.exe" "c:\users\M\documents\avatar\red_bird_2d_ww\bdmv\stream\00002.m2ts" 2:"C:\Users\M\Documents\HDConvertToX_2.5.624.4217\job1\hdconverttox.mkv" -seekToIFrames
"C:\Users\M\Documents\HDConvertToX_2.5.624.4217\applications\eac3to.exe" "c:\users\M\documents\avatar\red_bird_2d_ww\bdmv\stream\00002.m2ts" 3: stdout.wav -down16 -down2 | "C:\Users\M\Documents\HDConvertToX_2.5.624.4217\applications\lame.exe" - -h --abr 256 "C:\Users\M\Documents\HDConvertToX_2.5.624.4217\job1\hdencodertox-pid3.mp3"
"C:\Users\M\Documents\HDConvertToX_2.5.624.4217\applications\xvid_encraw.exe" -progress 50 -i "C:\Users\M\Documents\HDConvertToX_2.5.624.4217\job1\hdconverttox_00002.avs" -avi "C:\Users\M\Documents\HDConvertToX_2.5.624.4217\job1\hdconverttox_00002.avi" -max_bframes 2 -vhqmode 1 -quality 6 -max_key_interval 125 -lumimasking -bquant_ratio 150 -framerate 23.976 -threads 6 -bitrate 10000 -pass1 -turbo -par 1:1
"C:\Users\M\Documents\HDConvertToX_2.5.624.4217\applications\xvid_encraw.exe" -progress 50 -i "C:\Users\M\Documents\HDConvertToX_2.5.624.4217\job1\hdconverttox_00002.avs" -avi "C:\Users\M\Documents\HDConvertToX_2.5.624.4217\job1\hdconverttox_00002.avi" -max_bframes 2 -vhqmode 1 -quality 6 -max_key_interval 125 -lumimasking -bquant_ratio 150 -framerate 23.976 -threads 6 -bitrate 10000 -pass2 -par 1:1
"C:\Users\M\Documents\HDConvertToX_2.5.624.4217\applications\eac3to.exe" "c:\users\M\documents\avatar\red_bird_2d_ww\bdmv\stream\00002.m2ts" 1:"C:\Users\M\Documents\HDConvertToX_2.5.624.4217\job1\chapters.txt"
"C:\Users\M\Documents\HDConvertToX_2.5.624.4217\applications\mp4box.exe" -add "C:\Users\M\Documents\HDConvertToX_2.5.624.4217\job1\hdconverttox_00002.avi" -fps 23.976 -add "C:\Users\M\Documents\HDConvertToX_2.5.624.4217\job1\hdencodertox-pid3.mp3":lang=eng -chap "C:\Users\M\Documents\HDConvertToX_2.5.624.4217\job1\chapters.txt" "C:\Users\M\Documents\HDConvertToX_2.5.624.4217\hdconverttox_full_00002.mp4"
-> End Queue

AviSynth Script ->
Working with files: C:\Users\M\Documents\HDConvertToX_2.5.624.4217\job1\hdconverttox_00002.avs
Load_Stdcall_plugin("C:\Users\M\Documents\HDConvertToX_2.5.624.4217\filters\yadif.dll")
directshowsource("C:\Users\M\Documents\HDConvertToX_2.5.624.4217\job1\hdconverttox.mkv",audio=false)
last = isRGB(last) ? ConvertToYV12(last) : last
last = isYUY2(last) ? ConvertToYV12(last) : last
LanczosResize(1916,1072,2,6,-2,-2)
hqdn3d(1)
-> End AviSynth Script

buzzqw
20th May 2010, 07:18
@Mrsash
[a02] Creating file "stdout.wav"...
[a02] Writing the destination file failed. <ERROR>
Aborted at file position 2256535552. <ERROR>

and about missing/partial audio.. again it's related to eac3to not able to extract all audio

ask on eac3to support thread, i don't know what mean this kind of error

@lotrmith

there is an avisynth filter that allow use of .sup file directly in script...

http://forum.doom9.org/showthread.php?t=148167

you can edit the script for calling it

BHH

lotrmith
20th May 2010, 18:36
http://forum.doom9.org/showthread.php?t=148167[/url]

you can edit the script for calling it

BHH

Sorry, I need just a little more help. I'm totally inexperienced at all of this, really.

My understanding is that after installing that plugin, I need to insert a line into the HDConverttoX queue?

I believe this is the script I need:
LoadPlugin("C:\SupTitle\SupTitle.dll")
clip = DirectShowSource2("C:\Users\M\Documents\Avatar\RED_BIRD_2D_WW\BDMV\STREAM\0002.m2ts
")
return clip.SupTitle("C:\Users\M\Documents\Avatar\ForcedFinal.sup", forcedOnly=false, swapCbCr=false, relocate=true, relocOffset="")

Or, do I use that on an already-converted mp4?
LoadPlugin("C:\SupTitle\SupTitle.dll")
clip = DirectShowSource2("C:\Users\M\Documents\Avatar\Avatar.mp4")
return clip.SupTitle("C:\Users\M\Documents\Avatar\ForcedFinal.sup", forcedOnly=false, swapCbCr=false, relocate=true, relocOffset="")

Do I insert that somewhere into my m2ts->mp4 script that is generated by HDConvertttoX? If so, where do I insert it? Here's my HDC queue:

prompt $d $t $_$P$G

echo job number: 1
"C:\Users\M\Documents\HDConvertToX_2.5.624.4217\applications\eac3to.exe" "c:\users\M\documents\avatar\red_bird_2d_ww\bdmv\stream\00002.m2ts" 3: stdout.wav -down16 -down2 | "C:\Users\M\Documents\HDConvertToX_2.5.624.4217\applications\lame.exe" - -h --abr 256 "C:\Users\M\Documents\HDConvertToX_2.5.624.4217\job1\hdencodertox-pid3.mp3"
"C:\Users\M\Documents\HDConvertToX_2.5.624.4217\applications\xvid_encraw.exe" -progress 50 -i "C:\Users\M\Documents\HDConvertToX_2.5.624.4217\job1\hdconverttox_00002.avs" -avi "C:\Users\M\Documents\HDConvertToX_2.5.624.4217\job1\hdconverttox_00002.avi" -max_bframes 2 -vhqmode 1 -quality 6 -max_key_interval 125 -lumimasking -bquant_ratio 150 -framerate 23.976 -threads 6 -bitrate 9871 -pass1 -turbo -par 1:1
"C:\Users\M\Documents\HDConvertToX_2.5.624.4217\applications\xvid_encraw.exe" -progress 50 -i "C:\Users\M\Documents\HDConvertToX_2.5.624.4217\job1\hdconverttox_00002.avs" -avi "C:\Users\M\Documents\HDConvertToX_2.5.624.4217\job1\hdconverttox_00002.avi" -max_bframes 2 -vhqmode 1 -quality 6 -max_key_interval 125 -lumimasking -bquant_ratio 150 -framerate 23.976 -threads 6 -bitrate 9871 -pass2 -par 1:1
"C:\Users\M\Documents\HDConvertToX_2.5.624.4217\applications\eac3to.exe" "c:\users\M\documents\avatar\red_bird_2d_ww\bdmv\stream\00002.m2ts" 1:"C:\Users\M\Documents\HDConvertToX_2.5.624.4217\job1\chapters.txt"
"C:\Users\M\Documents\HDConvertToX_2.5.624.4217\applications\mp4box.exe" -add "C:\Users\M\Documents\HDConvertToX_2.5.624.4217\job1\hdconverttox_00002.avi" -fps 23.976 -add "C:\Users\M\Documents\HDConvertToX_2.5.624.4217\job1\hdencodertox-pid3.mp3":lang=eng -chap "C:\Users\M\Documents\HDConvertToX_2.5.624.4217\job1\chapters.txt" "C:\Users\M\Documents\Avatar\RED_BIRD_2D_WW\BDMV\STREAM\Avatar.mp4"

Or do I just run that script on its own, and how?

Sorry for all the trouble, and thank you so much for all the help you've given me thus far.

buzzqw
20th May 2010, 19:17
LoadPlugin("C:\SupTitle\SupTitle.dll")
DirectShowSource2("C:\Users\M\Documents\Avatar\RED_BIRD_2D_WW\BDMV\STREAM\0002.m2ts
")
SupTitle("C:\Users\M\Documents\Avatar\ForcedFinal.sup", forcedOnly=false, swapCbCr=false, relocate=true, relocOffset="")

this should work good!

don't use it on already encoded file, you will loose more quality

after edited the avs file, run the queue :)

BHH

lotrmith
20th May 2010, 19:33
this should work good!

don't use it on already encoded file, you will loose more quality

after edited the avs file, run the queue :)

BHH

Where do I put this script though? How do I do this? lol
Sorry, I'm a noob :)

Specifically, what do you mean by "editing the avs file"?

buzzqw
20th May 2010, 19:50
add your m2ts to queue

then go in \job1 (or job0) folder
you will found a hdconverttox_00002.avs (or similar)

open with notepad

and add just after the directshowsource input

LoadPlugin("C:\SupTitle\SupTitle.dll")
SupTitle("C:\Users\M\Documents\Avatar\ForcedFinal.sup", forcedOnly=false, swapCbCr=false, relocate=true, relocOffset="")

should work

BHH

lotrmith
20th May 2010, 20:08
add your m2ts to queue

then go in \job1 (or job0) folder
you will found a hdconverttox_00002.avs (or similar)

open with notepad

and add just after the directshowsource input

LoadPlugin("C:\SupTitle\SupTitle.dll")
SupTitle("C:\Users\M\Documents\Avatar\ForcedFinal.sup", forcedOnly=false, swapCbCr=false, relocate=true, relocOffset="")

should work

BHH

Excellent. Thanks so much! I will try this out and report back when it's all done.

lotrmith
21st May 2010, 00:33
Alright, it's encoding right now, and seems to be working. I'll get back to you when it finishes.

Just to make sure I did it right, here's the insert I did to the avs file:

LoadPlugin("C:\Program Files\AviSynth 2.5\plugins\SupTitle.dll")
SupTitle("C:\Users\M\Documents\Avatar\ForcedFinal.sup", forcedOnly=false, swapCbCr=false, relocate=true, relocOffset="")
( located towards the end )

#HDConvertToX Avisynth Script
#
#Input File = c:\users\M\documents\avatar\red_bird_2d_ww\bdmv\stream\00002.m2ts
#Original Resolution = 1920x1080
#Aspect Ratio = 1.7778
#Frame rate =23.976
#Number of Frames = 232608
#Lenght (hour:minutes:seconds) = 2:41:42
#Display Aspect Ratio = 1.7873
#Aspect Error = 0.0012
#
#Resized resolution = 1916 / 1072
#Crop Left = 2
#Crop Top = 6
#Crop Right = 2
#Crop Bottom = 2
#
LoadPlugin("C:\Users\M\Documents\HDConvertToX_2.5.624.4217\filters\AddGrain.dll")
LoadPlugin("C:\Users\M\Documents\HDConvertToX_2.5.624.4217\filters\AddGrainC.dll")
LoadPlugin("C:\Users\M\Documents\HDConvertToX_2.5.624.4217\filters\asharp.dll")
LoadPlugin("C:\Users\M\Documents\HDConvertToX_2.5.624.4217\filters\autocrop.dll")
LoadPlugin("C:\Users\M\Documents\HDConvertToX_2.5.624.4217\filters\Average.dll")
LoadPlugin("C:\Users\M\Documents\HDConvertToX_2.5.624.4217\filters\avss.dll")
LoadPlugin("C:\Users\M\Documents\HDConvertToX_2.5.624.4217\filters\ColorMatrix.dll")
LoadPlugin("C:\Users\M\Documents\HDConvertToX_2.5.624.4217\filters\deblock.dll")
LoadPlugin("C:\Users\M\Documents\HDConvertToX_2.5.624.4217\filters\Decomb.dll")
LoadPlugin("C:\Users\M\Documents\HDConvertToX_2.5.624.4217\filters\deen.dll")
LoadPlugin("C:\Users\M\Documents\HDConvertToX_2.5.624.4217\filters\degrainmedian.dll")
LoadPlugin("C:\Users\M\Documents\HDConvertToX_2.5.624.4217\filters\dfttest.dll")
LoadPlugin("C:\Users\M\Documents\HDConvertToX_2.5.624.4217\filters\DGAVCDecode.dll")
LoadPlugin("C:\Users\M\Documents\HDConvertToX_2.5.624.4217\filters\DGDecode.dll")
LoadPlugin("C:\Users\M\Documents\HDConvertToX_2.5.624.4217\filters\DirectShowSource.dll")
LoadPlugin("C:\Users\M\Documents\HDConvertToX_2.5.624.4217\filters\EEDI2.dll")
LoadPlugin("C:\Users\M\Documents\HDConvertToX_2.5.624.4217\filters\ffms2.dll")
LoadPlugin("C:\Users\M\Documents\HDConvertToX_2.5.624.4217\filters\FFT3DFilter.dll")
LoadPlugin("C:\Users\M\Documents\HDConvertToX_2.5.624.4217\filters\FluxSmooth.dll")
LoadPlugin("C:\Users\M\Documents\HDConvertToX_2.5.624.4217\filters\frfun7.dll")
LoadPlugin("C:\Users\M\Documents\HDConvertToX_2.5.624.4217\filters\gradfun2db.dll")
LoadPlugin("C:\Users\M\Documents\HDConvertToX_2.5.624.4217\filters\GrainOpt.dll")
LoadPlugin("C:\Users\M\Documents\HDConvertToX_2.5.624.4217\filters\hqdn3d.dll")
LoadPlugin("C:\Users\M\Documents\HDConvertToX_2.5.624.4217\filters\MSharpen.dll")
LoadPlugin("C:\Users\M\Documents\HDConvertToX_2.5.624.4217\filters\mt_masktools-26.dll")
LoadPlugin("C:\Users\M\Documents\HDConvertToX_2.5.624.4217\filters\mvtools.dll")
LoadPlugin("C:\Users\M\Documents\HDConvertToX_2.5.624.4217\filters\mvtools2.dll")
LoadPlugin("C:\Users\M\Documents\HDConvertToX_2.5.624.4217\filters\NicAudio.dll")
LoadPlugin("C:\Users\M\Documents\HDConvertToX_2.5.624.4217\filters\nnedi.dll")
LoadPlugin("C:\Users\M\Documents\HDConvertToX_2.5.624.4217\filters\RemoveDirtS.dll")
LoadPlugin("C:\Users\M\Documents\HDConvertToX_2.5.624.4217\filters\RemoveGrainS.dll")
LoadPlugin("C:\Users\M\Documents\HDConvertToX_2.5.624.4217\filters\RepairS.dll")
LoadPlugin("C:\Users\M\Documents\HDConvertToX_2.5.624.4217\filters\SangNom.dll")
LoadPlugin("C:\Users\M\Documents\HDConvertToX_2.5.624.4217\filters\TBilateral.dll")
LoadPlugin("C:\Users\M\Documents\HDConvertToX_2.5.624.4217\filters\TDeint.dll")
LoadPlugin("C:\Users\M\Documents\HDConvertToX_2.5.624.4217\filters\TIVTC.dll")
LoadPlugin("C:\Users\M\Documents\HDConvertToX_2.5.624.4217\filters\TTempSmooth.dll")
LoadPlugin("C:\Users\M\Documents\HDConvertToX_2.5.624.4217\filters\UnDot.dll")
LoadPlugin("C:\Users\M\Documents\HDConvertToX_2.5.624.4217\filters\UnFilter.dll")
LoadPlugin("C:\Users\M\Documents\HDConvertToX_2.5.624.4217\filters\VSFilter.dll")
Load_Stdcall_plugin("C:\Users\M\Documents\HDConvertToX_2.5.624.4217\filters\yadif.dll")
LoadPlugin("C:\Users\M\Documents\HDConvertToX_2.5.624.4217\filters\yadifmod.dll")

Import("C:\Users\M\Documents\HDConvertToX_2.5.624.4217\filters\BlindDeHalo3_mt2.avsi")
Import("C:\Users\M\Documents\HDConvertToX_2.5.624.4217\filters\Deblock_QED_MT2.avsi")
Import("C:\Users\M\Documents\HDConvertToX_2.5.624.4217\filters\FastDegrain_mt.avsi")
Import("C:\Users\M\Documents\HDConvertToX_2.5.624.4217\filters\FFMS2.avsi")
Import("C:\Users\M\Documents\HDConvertToX_2.5.624.4217\filters\GradFun2DBmod.v1.5.avsi")
Import("C:\Users\M\Documents\HDConvertToX_2.5.624.4217\filters\Lem.avsi")
Import("C:\Users\M\Documents\HDConvertToX_2.5.624.4217\filters\LSFmod.v1.9.avsi")
Import("C:\Users\M\Documents\HDConvertToX_2.5.624.4217\filters\QMLF_3_motions.avsi")
Import("C:\Users\M\Documents\HDConvertToX_2.5.624.4217\filters\QMLF_5_motions.avsi")
Import("C:\Users\M\Documents\HDConvertToX_2.5.624.4217\filters\QMLF_7_motions.avsi")
Import("C:\Users\M\Documents\HDConvertToX_2.5.624.4217\filters\QMLF_9_motions.avsi")
Import("C:\Users\M\Documents\HDConvertToX_2.5.624.4217\filters\seesaw.avsi")
Import("C:\Users\M\Documents\HDConvertToX_2.5.624.4217\filters\SoftSharpen.avsi")
Import("C:\Users\M\Documents\HDConvertToX_2.5.624.4217\filters\spresso.avsi")
Import("C:\Users\M\Documents\HDConvertToX_2.5.624.4217\filters\Srestore.avsi")
Import("C:\Users\M\Documents\HDConvertToX_2.5.624.4217\filters\TemporalDegrain.avsi")
#Source File
DSS2("c:\users\M\documents\avatar\red_bird_2d_ww\bdmv\stream\00002.m2ts",fps=23.976)
LoadPlugin("C:\Program Files\AviSynth 2.5\plugins\SupTitle.dll")
SupTitle("C:\Users\M\Documents\Avatar\ForcedFinal.sup", forcedOnly=false, swapCbCr=false, relocate=true, relocOffset="")
last = isRGB(last) ? ConvertToYV12(last) : last
last = isYUY2(last) ? ConvertToYV12(last) : last


#Applying Resizing
LanczosResize(1916,1072,2,6,-2,-2)

#Insert Filters As Requested

hqdn3d(1)

And here's what it looks like so far in the encoding process:

C:\Users\M\Documents\HDConvertToX_2.5.624.4217\job1>prompt $d $t $_$P$
G

Thu 05/20/2010 16:03:26.80
C:\Users\M\Documents\HDConvertToX_2.5.624.4217\job1>echo job number: 1

job number: 1

Thu 05/20/2010 16:03:26.80
C:\Users\M\Documents\HDConvertToX_2.5.624.4217\job1>"C:\Users\M\Documents\HDConvertToX_2.5.624.4217\applications\eac3to.exe" "c:\users\m\documents\avatar\red_bird_2d_ww\bdmv\stream\00002.m2ts" 3: stdout.wav -d
own16 -down2 | "C:\Users\M\Documents\HDConvertToX_2.5.624.4217\appli
cations\lame.exe" - -h --abr 256 "C:\Users\M\Documents\HDConvertToX_2.
5.624.4217\job1\hdencodertox-pid3.mp3"
LAME 3.98.4 32bits (http://www.mp3dev.org/)
CPU features: MMX (ASM used), SSE (ASM used), SSE2
Using polyphase lowpass filter, transition band: 19548 Hz - 20129 Hz
Encoding <stdin>
to C:\Users\M\Documents\HDConvertToX_2.5.624.4217\job1\hdencoder
tox-pid3.mp3
Encoding as 48 kHz j-stereo MPEG-1 Layer III (6x) average 256 kbps qval=2

Thu 05/20/2010 16:28:31.18
C:\Users\M\Documents\HDConvertToX_2.5.624.4217\job1>"C:\Users\M\Documents\HDConvertToX_2.5.624.4217\applications\xvid_encraw.exe" -progress
50 -i "C:\Users\M\Documents\HDConvertToX_2.5.624.4217\job1\hdconvertto
x_00002.avs" -avi "C:\Users\M\Documents\HDConvertToX_2.5.624.4217\job1
\hdconverttox_00002.avi" -max_bframes 2 -vhqmode 1 -quality 6 -max_key_interval
125 -lumimasking -bquant_ratio 150 -framerate 23.976 -threads 6 -bitrate 9871
-pass1 -turbo -par 1:1
xvid_encraw - raw mpeg4 bitstream encoder written by Christoph Lampert 2002-2003


Trying to retrieve width and height from input header
xvid [info]: Avisynth detected
xvid [info]: Input colorspace is YV12
xvid [info]: Input is 1916 x 1072, 23.976fps (2997/125), starting from frame 0
xvid [info]: Number of frames to encode: 232606, Bitrate = 9871kbps
xvid [info]: xvidcore build version: xvid-1.2.2
xvid [info]: Bitstream version: 1.2.2
xvid [info]: Detected CPU flags: ASM MMX MMXEXT SSE SSE2 TSC
xvid [info]: Detected cpus = 4, threads requested = 5, threads in use = 5
xvid [info]: Threaded input reading active
451 frames( 0%) encoded, 10.53 fps, Average Bitrate = 6481kbps

lotrmith
21st May 2010, 04:11
Alrighty, it finished encoding remarkably fast (~4 hours, usually takes ~12 hours). And the reason it went so fast is that the output didn't contain any video except a black screen with an error message embedded that broadcast for the entire length of the film.

The message is:

System.AccessViolationException: Attempted to read or write protected memory. This is often an indication that other memory is corrupt.

at SupTitle.GetFrame(SupTitle* , PVideoFrame* , Int32 n, IScriptEnvironment* env)

I don't expect you to know what that means, and I'll ask over at the Sup thread, but I also noticed that the output file size was only ~1gb when I specified it to be almost ~12gb, and perhaps that might be related. The value of 11699 mb was input by me and the 10,000 bitrate was automatically estimated (not input manually). Here's a report:

HDConvertToX v.2.5.640.4275 report

Input File: c:\users\M\documents\avatar\red_bird_2d_ww\bdmv\stream\00002.m2ts ( C:\Users\M\Documents\Avatar\RED_BIRD_2D_WW\BDMV\STREAM\00002.m2ts )
Codec Video: avc
Width / Heigh : 1920 / 1080
Framerate / Framecount: 23.976fps / 232608 frames
Duration(hh:mm:ss): 2:41:42
Aspect Ratio: 1.7778
Resized resolution: 1916 / 1072
Crop Values : 2:6:2:2

Start Video Configuration ->
Encoding Settings: XviD Extreme Quality ; Bitrate= 10000
Final Size: 11699
Denoise Level: Super Light
Video Handling: Force DirectShowSource2 (Haali)
-> End Video Configuration

Start Audio Configuration ->
Audio Codec: MP3 Audio
Audio Bitrate/Quality: 256
Audio Channels: Original
MP3 Mode: abr
Normalize: On
Audio handling: Use Eac3to as demuxer
Keep only core: On
-> End Audio Configuration

Full Audio List-> (*** mean selected)
NONE
*** 3: dts master audio, english, 5.1 channels, 24 bits, 48khz, -9ms
4: ac3 surround, english, 2.0 channels, 224kbps, 48khz, -9ms
5: ac3, english, 5.1 channels, 448kbps, 48khz, -9ms
6: ac3, spanish, 5.1 channels, 448kbps, 48khz, -9ms
7: ac3, french, 5.1 channels, 448kbps, 48khz, -9ms
8: ac3, portuguese, 5.1 channels, 448kbps, 48khz, -9ms

-> End Full Audio List

Full Subtitle List-> (*** mean selected)
*** NONE
9: subtitle (pgs), english
10: subtitle (pgs), spanish
11: subtitle (pgs), portuguese
12: subtitle (pgs), french

-> End Full Subtitle List

Mux Subtitle in MP4/MKV file: On

Start Advanced AviSynth ->
ColorMatrix: On
-> End Advanced AviSynth
Start Muxing Options ->
<- End Muxing Options

Start Queue ->
prompt $d $t $_$P$G

echo job number: 1
"C:\Users\M\Documents\HDConvertToX_2.5.624.4217\applications\eac3to.exe" "c:\users\M\documents\avatar\red_bird_2d_ww\bdmv\stream\00002.m2ts" 3: stdout.wav -down16 -down2 | "C:\Users\M\Documents\HDConvertToX_2.5.624.4217\applications\lame.exe" - -h --abr 256 "C:\Users\M\Documents\HDConvertToX_2.5.624.4217\job1\hdencodertox-pid3.mp3"
"C:\Users\M\Documents\HDConvertToX_2.5.624.4217\applications\xvid_encraw.exe" -progress 50 -i "C:\Users\M\Documents\HDConvertToX_2.5.624.4217\job1\hdconverttox_00002.avs" -avi "C:\Users\M\Documents\HDConvertToX_2.5.624.4217\job1\hdconverttox_00002.avi" -max_bframes 2 -vhqmode 1 -quality 6 -max_key_interval 125 -lumimasking -bquant_ratio 150 -framerate 23.976 -threads 6 -bitrate 9871 -pass1 -turbo -par 1:1
"C:\Users\M\Documents\HDConvertToX_2.5.624.4217\applications\xvid_encraw.exe" -progress 50 -i "C:\Users\M\Documents\HDConvertToX_2.5.624.4217\job1\hdconverttox_00002.avs" -avi "C:\Users\M\Documents\HDConvertToX_2.5.624.4217\job1\hdconverttox_00002.avi" -max_bframes 2 -vhqmode 1 -quality 6 -max_key_interval 125 -lumimasking -bquant_ratio 150 -framerate 23.976 -threads 6 -bitrate 9871 -pass2 -par 1:1
"C:\Users\M\Documents\HDConvertToX_2.5.624.4217\applications\eac3to.exe" "c:\users\M\documents\avatar\red_bird_2d_ww\bdmv\stream\00002.m2ts" 1:"C:\Users\M\Documents\HDConvertToX_2.5.624.4217\job1\chapters.txt"
"C:\Users\M\Documents\HDConvertToX_2.5.624.4217\applications\mp4box.exe" -add "C:\Users\M\Documents\HDConvertToX_2.5.624.4217\job1\hdconverttox_00002.avi" -fps 23.976 -add "C:\Users\M\Documents\HDConvertToX_2.5.624.4217\job1\hdencodertox-pid3.mp3":lang=eng -chap "C:\Users\M\Documents\HDConvertToX_2.5.624.4217\job1\chapters.txt" "C:\Users\M\Documents\Avatar\RED_BIRD_2D_WW\BDMV\STREAM\Avatar.mp4"
-> End Queue

AviSynth Script ->
Working with files: C:\Users\M\Documents\HDConvertToX_2.5.624.4217\job1\hdconverttox_00002.avs
Load_Stdcall_plugin("C:\Users\M\Documents\HDConvertToX_2.5.624.4217\filters\yadif.dll")
DSS2("c:\users\M\documents\avatar\red_bird_2d_ww\bdmv\stream\00002.m2ts",fps=23.976)
SupTitle("C:\Users\M\Documents\Avatar\ForcedFinal.sup", forcedOnly=false, swapCbCr=false, relocate=true, relocOffset="")
last = isRGB(last) ? ConvertToYV12(last) : last
last = isYUY2(last) ? ConvertToYV12(last) : last
LanczosResize(1916,1072,2,6,-2,-2)
hqdn3d(1)
-> End AviSynth Script


Update: SupTitle author note an error specifically with Avatar, and recommends using an updated beta version. I'm trying that now.

buzzqw
21st May 2010, 07:03
the problem size is due to these errors, a thick line can be easily compressed ;)

BHH

gibbyman
22nd May 2010, 16:55
Hi All!

I've come across a few questions that I'm not sure if you guys can help me with... I'm not sure they've been up before, so pardon me if I'm repeating something here:

1. I'm encoding quite a few of my movies to xvid with the help of HDC to get files that are a bit more "light" and versatile (Not all of my computers can run x264 in HD). The video settings I make is width 720, xvid in avi, 2 pass insane quality, and I usually try to set an output size that gives me a bitrate just above 1200. And here's my question:
- Many of the times I do the above I get a filesize that is way lover than projected, with a bitrate that sometimes is 20-50% lower than intended. The output still looks great, but I'm not sure why this happens. Is this somehow xvid encoder that decides that - with these settings you reach the desired quality with less? Is the codec that intelligent? I mean - in the end I don't mind, because I get files that are smaller but it is a bit curious for me.

2. I recently downloaded the lates package (plus the latest update) since it's been a very long time since I did any types of update. And I discovered (don't know if this happens in previous versions) that when I select "use best encoder" I get an output where the video jerks and stutters a lot. But when I use "Force FFmpegsource" everything is fine. Has anyone else encountered this type of behaviour?

I'm on a i7 860 with 4GB of RAM, running Windows 7 64bit version. Could it be that I have to do something with regards to Windows 7 to solve question 2?

Thanks in advance

Wizecat
22nd May 2010, 17:30
Many of the times I do the above I get a filesize that is way lover than projected, with a bitrate that sometimes is 20-50% lower than intended.

I don't know why the default decoder setting doesn't work for you. It works for me. Maybe removing everything then reinstalling would help. Also remove all codec packs and install both versions of ffdshow (32 and 64 bit) and reinstall avisynth.

For the file size issue do two pass encode with "Final MB Size" setting using this:

-max_bframes 1 -vhqmode 1 -quality 6 -max_key_interval 250 -bquant_ratio 150 -bquant_offset 100 -kboost 10 -kthresh 1 -kreduction 20 -ostrength 5 -oimprove 5 -odegrade 5 -chigh 0 -clow 0 -bvhq -imin 1 -imax 16 -pmin 1 -pmax 16 -bmin 1 -bmax 16 -lumimasking -closed_gop -nopacked

Mrsash
23rd May 2010, 09:07
@Mrsash

and about missing/partial audio.. again it's related to eac3to not able to extract all audio

ask on eac3to support thread, i don't know what mean this kind of error


Are you sure mate? The reason I ask is I encoded using Blu-Ray Stream Extractor and it used the same files and finished doing so.
I have finished with these files anyway. I thought I should let you know. This will help you find a problem if its eac3to then should'nt Blu-Ray Stream Extractor stuff up as well?
thanks

TraumaDoc
23rd May 2010, 10:20
Current version (2.5.647.4289) is working great for me at this point.

However, I have a very small and stupid issue - every time the program is updated, using the update check in the program, it is resetting the AVIMux_GUI.exe compatibility settings. Every time the program is updated we must go back and manually change the compatibility settings to Windows XP settings so the program will work properly in Windows 7. Can this be changed so it will keep the settings or will there be a new version of AVIMux_GUI.exe that works properly on Windows 7?

Just thought I'd ask :)

I love the program for my BR conversions. It would also be great if the program could handle some other video type conversions as well - such as MP4 to AVI, etc. If so, this would be a great all-in-one conversion tool.

gibbyman
23rd May 2010, 13:04
For the file size issue do two pass encode with "Final MB Size" setting using this:

-max_bframes 1 -vhqmode 1 -quality 6 -max_key_interval 250 -bquant_ratio 150 -bquant_offset 100 -kboost 10 -kthresh 1 \
-kreduction 20 -ostrength 5 -oimprove 5 -odegrade 5 -chigh 0 -clow 0 -bvhq -imin 1 -imax 16 -pmin 1 -pmax 16 -bmin 1 \
-bmax 16 -lumimasking -closed_gop -nopacked

Sorry for asking stupid questions here, but since I'm not familiar with the language used in these command line interface-thingies (that's why I use point and click solutions like HDC):

So, what do the above line do for my encode? Does it give me better quality with the right filesize or am I just wasting space?

Is there a good explanation - for the above person who don't really understand the code - for why this happens?

Oh... and finally - the line you provided - do I just save my queue and paste it into every job? (Both passes?)

Thanks in advance...

Wizecat
23rd May 2010, 19:41
Sorry for asking stupid questions here, but since I'm not familiar with the language used in these command line interface-thingies (that's why I use point and click solutions like HDC):

So, what do the above line do for my encode? Does it give me better quality with the right filesize or am I just wasting space?

Is there a good explanation - for the above person who don't really understand the code - for why this happens?

Oh... and finally - the line you provided - do I just save my queue and paste it into every job? (Both passes?)

Thanks in advance...

The line I provided above uses xvid encraw defaults except for the min/max quantizers which the defaults are 1 - 31 and max B frame setting which the default is 2. By reducing the max quantizer settings to 16 with the encraw defaults you might get a larger file size with better quality and still hit the target size. Keep in mind that your audio bitrate and number of audio channels you use will play a role in the final file size. Try it :)

The line can be copy/pasted in the "HDConvertToX_profile" text file located in the HDConvertToX folder. It can then be selected by using the slider in the video tab. You would name it something like this: XVID;10;gibbymans profile;-max_bframes 1 -vhqmode 1 -quality 6 -max_key_interval 250 -bquant_ratio 150 -bquant_offset 100 -kboost 10 -kthresh 1 \
-kreduction 20 -ostrength 5 -oimprove 5 -odegrade 5 -chigh 0 -clow 0 -bvhq -imin 1 -imax 16 -pmin 1 -pmax 16 -bmin 1 \
-bmax 16 -lumimasking -closed_gop -nopacked

lotrmith
24th May 2010, 01:08
I have a successful procedure to report about how to embed forced subtitles only with BluRays, and if you're using HDC well enough there shouldn't be anything tricky, and it's actually really, really simple!

This works if you want to embed (or just include in the container) any and all forced-flagged subtitles that don't have their own subtitle tracks separate from the main feature-length subtitle track. (You could also include any subtitle track you want or your own creation or editing). My example here will be Avatar and how to include alien-only subtitles.

Steps:

Step 1) Use tsMuxer and open the m2ts file you wish to encode with HDC. This also works with BluRays that don't have one main movie m2ts but instead have a playlist... Angels & Demons, for example (You'll be using tsMuxer to mux the playlist into one m2ts file anyways, and then you will load that m2ts with txMuxer again). Once the single, main movie m2ts is loaded into tsMuxer, deselect all the tracks except for the full-length subtitle track. This is usually the first subtitle track on the list, most likely denoted as a "PSG" codec, and it will denote the language. Then, in the output section, select "Demux" and pick a save destination. Congratulations! A few minutes later, you will have a file with a .sup extension that is a file containing only the full-length subtitle track.

In the case of Avatar, it will be called "00002.track_4608.sup".

Step 2) Open the application called BDSup2Sub. Go File->Load and find your newly created .sup file. There may be some warnings within the application (300+ in Avatar's case) , which you can safely ignore. In the conversion options, I set my FPS target to match the FPS of the input, but I'm totally unsure if this was necessary or what it even did (but it worked!). Hit "OK". Now, you can browse through all of the subtitles and see that they are, in fact, your Avatar subtitles. Now, for the super easy part, hit File->Save/Export, select a file name and destination, and be sure to check "Export Forced Only". Congratulations! You now have *another* .sup file extension, this one containing only the Forced subtitles (in this case, only the alien-language subtitles).

You can Load this new file with BDSup2Sub and look at what subtitles is contains to confirm that it is, indeed, just the forced subtitles now. It's a good idea to check anyways, since you might find a subtitle in the mix that you dont' want (in Avatar's case, there's a weird one at the very end of the list, that I excluded and then resaved. It is subtitle #83, click on the editing frame in the lower right, check "Exclude from Export" and select Save Changes or OK).

My final file was called ForcedFinal.sup.

Step 3) Load your m2ts with HDConverttoX as normal. Analyze as normal, select all your preferred settings as normal. However, make sure you select the main movie subtitle track, and select "Embed Subtitle in Video Stream". Select your output save file as normal, and then Add to Queue.

Step 4) Look through your queue. Somewhere in there you will notice a few incidences of .sup files being called upon. In Avatar's case, having selected the main movie subtitle track, it will be in the filepath "\HDConvertToX_2.5.624.4217\job1\hdencodertox__subs_9.sup". On the second occurence of this filepath, manually replace the entire filepath in the queue with the filepath of the forced-only .sup you created. Voila! Start your queue, and watch the magic.



Here's what my queue ended up looking like. Note where I have replaced HDC's own created .sup with my own ForcedFinal.sup:
prompt $d $t $_$P$G

echo job number: 1
"C:\Users\M\Documents\HDConvertToX_2.5.624.4217\applications\eac3to.exe" "c:\users\M\documents\avatar\red_bird_2d_ww\bdmv\stream\00002.m2ts" 9:"C:\Users\M\Documents\HDConvertToX_2.5.624.4217\job1\hdencodertox__subs_9.sup"
"C:\Users\M\Documents\HDConvertToX_2.5.624.4217\applications\eac3to.exe" "c:\users\M\documents\avatar\red_bird_2d_ww\bdmv\stream\00002.m2ts" 3: stdout.wav -down16 -down2 | "C:\Users\M\Documents\HDConvertToX_2.5.624.4217\applications\lame.exe" - -h --abr 256 "C:\Users\M\Documents\HDConvertToX_2.5.624.4217\job1\hdencodertox-pid3.mp3"
java -jar "C:\Users\M\Documents\HDConvertToX_2.5.624.4217\applications\BDSup2Sub.jar" "C:\Users\M\Documents\Avatar\ForcedFinal.sup" "C:\Users\M\Documents\HDConvertToX_2.5.624.4217\job1\hdencodertox__subs_9.idx" /res:1080p
"C:\Users\M\Documents\HDConvertToX_2.5.624.4217\applications\xvid_encraw.exe" -progress 50 -i "C:\Users\M\Documents\HDConvertToX_2.5.624.4217\job1\hdconverttox_00002.avs" -avi "C:\Users\M\Documents\HDConvertToX_2.5.624.4217\job1\hdconverttox_00002.avi" -max_bframes 2 -vhqmode 1 -quality 6 -max_key_interval 125 -lumimasking -bquant_ratio 150 -framerate 23.976 -threads 6 -bitrate 10000 -pass1 -turbo -par 1:1
"C:\Users\M\Documents\HDConvertToX_2.5.624.4217\applications\xvid_encraw.exe" -progress 50 -i "C:\Users\M\Documents\HDConvertToX_2.5.624.4217\job1\hdconverttox_00002.avs" -avi "C:\Users\M\Documents\HDConvertToX_2.5.624.4217\job1\hdconverttox_00002.avi" -max_bframes 2 -vhqmode 1 -quality 6 -max_key_interval 125 -lumimasking -bquant_ratio 150 -framerate 23.976 -threads 6 -bitrate 10000 -pass2 -par 1:1
"C:\Users\M\Documents\HDConvertToX_2.5.624.4217\applications\eac3to.exe" "c:\users\M\documents\avatar\red_bird_2d_ww\bdmv\stream\00002.m2ts" 1:"C:\Users\M\Documents\HDConvertToX_2.5.624.4217\job1\chapters.txt"
"C:\Users\M\Documents\HDConvertToX_2.5.624.4217\applications\mp4box.exe" -add "C:\Users\M\Documents\HDConvertToX_2.5.624.4217\job1\hdconverttox_00002.avi" -fps 23.976 -add "C:\Users\M\Documents\HDConvertToX_2.5.624.4217\job1\hdencodertox-pid3.mp3":lang=eng -chap "C:\Users\M\Documents\HDConvertToX_2.5.624.4217\job1\chapters.txt" "C:\Users\M\Documents\Avatar\RED_BIRD_2D_WW\BDMV\STREAM\Avatar.MP4"

As your command window churns, you can watch and confirm the effectiveness of this procedure. First it will analyze the main english subtitle track that you selected and create it's own .sup file. It will report that it found X many subtitles (~2000 as I recall) as well as 83 forced ones. Then it will likely do the audio. When the audio finishes, it will procede to run through the .sup it created to make a new file extension type .idx, which I imagine it will call upon at the very end when it creates the ISO. However, by replacing that second occurence with your own .sup, it will load *your* .sup and create the .idx which contains what it analyzed off of *your* .sup. You will notice as the command window churns that, in Avatar's case, it will only churn out 82 lines of subtitles (83 if you left in the weird one at the end), because this is how many are in your forced-only .sup, as opposed to the couple thousand that would normally be in the full-length film.

This worked perfectly for me, so it should work for you!

lotrmith
24th May 2010, 01:20
For good measure, here's my Make Report:
HDConvertToX v.2.5.647.4289 report

Input File: c:\users\M\documents\avatar\red_bird_2d_ww\bdmv\stream\00002.m2ts ( C:\Users\M\Documents\Avatar\RED_BIRD_2D_WW\BDMV\STREAM\00002.m2ts )
Codec Video: avc
Width / Heigh : 1920 / 1080
Framerate / Framecount: 23.976fps / 232608 frames
Duration(hh:mm:ss): 2:41:42
Aspect Ratio: 1.7778
Resized resolution: 1916 / 1072
Crop Values : 2:6:2:2

Start Video Configuration ->
Encoding Settings: XviD Extreme Quality ; Bitrate= 10000
Final Size: 11848
Denoise Level: Super Light
Video Handling: Force DirectShowSource2 (Haali)
-> End Video Configuration

Start Audio Configuration ->
Audio Codec: MP3 Audio
Audio Bitrate/Quality: 256
Audio Channels: Original
MP3 Mode: abr
Normalize: On
Audio handling: Use Eac3to as demuxer
Keep only core: On
-> End Audio Configuration

Full Audio List-> (*** mean selected)
NONE
*** 3: dts master audio, english, 5.1 channels, 24 bits, 48khz, -9ms
4: ac3 surround, english, 2.0 channels, 224kbps, 48khz, -9ms
5: ac3, english, 5.1 channels, 448kbps, 48khz, -9ms
6: ac3, spanish, 5.1 channels, 448kbps, 48khz, -9ms
7: ac3, french, 5.1 channels, 448kbps, 48khz, -9ms
8: ac3, portuguese, 5.1 channels, 448kbps, 48khz, -9ms

-> End Full Audio List

Full Subtitle List-> (*** mean selected)
NONE
*** 9: subtitle (pgs), english
10: subtitle (pgs), spanish
11: subtitle (pgs), portuguese
12: subtitle (pgs), french

-> End Full Subtitle List

Encrust Subtitle in Video file: On

Start Advanced AviSynth ->
ColorMatrix: On
-> End Advanced AviSynth
Start Muxing Options ->
<- End Muxing Options

Start Queue ->
prompt $d $t $_$P$G

echo job number: 1
"C:\Users\M\Documents\HDConvertToX_2.5.624.4217\applications\eac3to.exe" "c:\users\M\documents\avatar\red_bird_2d_ww\bdmv\stream\00002.m2ts" 9:"C:\Users\M\Documents\HDConvertToX_2.5.624.4217\job1\hdencodertox__subs_9.sup"
"C:\Users\M\Documents\HDConvertToX_2.5.624.4217\applications\eac3to.exe" "c:\users\M\documents\avatar\red_bird_2d_ww\bdmv\stream\00002.m2ts" 3: stdout.wav -down16 -down2 | "C:\Users\M\Documents\HDConvertToX_2.5.624.4217\applications\lame.exe" - -h --abr 256 "C:\Users\M\Documents\HDConvertToX_2.5.624.4217\job1\hdencodertox-pid3.mp3"
java -jar "C:\Users\M\Documents\HDConvertToX_2.5.624.4217\applications\BDSup2Sub.jar" "C:\Users\M\Documents\Avatar\ForcedFinal.sup" "C:\Users\M\Documents\HDConvertToX_2.5.624.4217\job1\hdencodertox__subs_9.idx" /res:1080p
"C:\Users\M\Documents\HDConvertToX_2.5.624.4217\applications\xvid_encraw.exe" -progress 50 -i "C:\Users\M\Documents\HDConvertToX_2.5.624.4217\job1\hdconverttox_00002.avs" -avi "C:\Users\M\Documents\HDConvertToX_2.5.624.4217\job1\hdconverttox_00002.avi" -max_bframes 2 -vhqmode 1 -quality 6 -max_key_interval 125 -lumimasking -bquant_ratio 150 -framerate 23.976 -threads 6 -bitrate 10000 -pass1 -turbo -par 1:1
"C:\Users\M\Documents\HDConvertToX_2.5.624.4217\applications\xvid_encraw.exe" -progress 50 -i "C:\Users\M\Documents\HDConvertToX_2.5.624.4217\job1\hdconverttox_00002.avs" -avi "C:\Users\M\Documents\HDConvertToX_2.5.624.4217\job1\hdconverttox_00002.avi" -max_bframes 2 -vhqmode 1 -quality 6 -max_key_interval 125 -lumimasking -bquant_ratio 150 -framerate 23.976 -threads 6 -bitrate 10000 -pass2 -par 1:1
"C:\Users\M\Documents\HDConvertToX_2.5.624.4217\applications\eac3to.exe" "c:\users\M\documents\avatar\red_bird_2d_ww\bdmv\stream\00002.m2ts" 1:"C:\Users\M\Documents\HDConvertToX_2.5.624.4217\job1\chapters.txt"
"C:\Users\M\Documents\HDConvertToX_2.5.624.4217\applications\mp4box.exe" -add "C:\Users\M\Documents\HDConvertToX_2.5.624.4217\job1\hdconverttox_00002.avi" -fps 23.976 -add "C:\Users\M\Documents\HDConvertToX_2.5.624.4217\job1\hdencodertox-pid3.mp3":lang=eng -chap "C:\Users\M\Documents\HDConvertToX_2.5.624.4217\job1\chapters.txt" "C:\Users\M\Documents\Avatar\RED_BIRD_2D_WW\BDMV\STREAM\Avatar.MP4"
-> End Queue

AviSynth Script ->
Working with files: C:\Users\M\Documents\HDConvertToX_2.5.624.4217\job1\hdconverttox_00002.avs
Load_Stdcall_plugin("C:\Users\M\Documents\HDConvertToX_2.5.624.4217\filters\yadif.dll")
DSS2("c:\users\M\documents\avatar\red_bird_2d_ww\bdmv\stream\00002.m2ts",fps=23.976)
last = isRGB(last) ? ConvertToYV12(last) : last
last = isYUY2(last) ? ConvertToYV12(last) : last
LanczosResize(1916,1072,2,6,-2,-2)
hqdn3d(1)
VobSub("C:\Users\M\Documents\HDConvertToX_2.5.624.4217\job1\hdencodertox__subs_9.idx")
-> End AviSynth Script



And for further measure, here's a copy/pase of the command window in action during the second pass of encoding:


C:\Users\M\Documents\HDConvertToX_2.5.624.4217\job1>prompt $d $t $_$P$
G

Sat 05/22/2010 0:10:09.26
C:\Users\M\Documents\HDConvertToX_2.5.624.4217\job1>echo job number: 1

job number: 1

Sat 05/22/2010 0:10:09.26
C:\Users\M\Documents\HDConvertToX_2.5.624.4217\job1>"C:\Users\M\Documents\HDConvertToX_2.5.624.4217\applications\eac3to.exe" "c:\users\m\documents\avatar\red_bird_2d_ww\bdmv\stream\00002.m2ts" 9:"C:\Users\M\Documents\HDConvertToX_2.5.624.4217\job1\hdencodertox__subs_9.sup"
M2TS, 1 video track, 6 audio tracks, 4 subtitle tracks, 2:41:42, 24p /1.001
1: Chapters, 35 chapters
2: h264/AVC, 1080p24 /1.001 (16:9)
3: DTS Master Audio, English, 5.1 channels, 24 bits, 48khz, -9ms
(core: DTS, 5.1 channels, 24 bits, 1509kbps, 48khz)
4: AC3 Surround, English, 2.0 channels, 224kbps, 48khz, -9ms
5: AC3, English, 5.1 channels, 448kbps, 48khz, -9ms
6: AC3, Spanish, 5.1 channels, 448kbps, 48khz, -9ms
7: AC3, French, 5.1 channels, 448kbps, 48khz, -9ms
8: AC3, Portuguese, 5.1 channels, 448kbps, 48khz, -9ms
9: Subtitle (PGS), English
10: Subtitle (PGS), Spanish
11: Subtitle (PGS), Portuguese
12: Subtitle (PGS), French
s09 Extracting subtitle track number 9...
s09 Creating file "C:\Users\M\Documents\HDConvertToX_2.5.624.4217\job1
\hdencodertox__subs_9.sup"...
Video track 2 contains 232607 frames.
Subtitle track 9 contains 1952 normal and 83 forced captions.
eac3to processing took 9 minutes, 6 seconds.
Done.

Sat 05/22/2010 0:19:23.74
C:\Users\M\Documents\HDConvertToX_2.5.624.4217\job1>"C:\Users\M\Documents\HDConvertToX_2.5.624.4217\applications\eac3to.exe" "c:\users\m\documents\avatar\red_bird_2d_ww\bdmv\stream\00002.m2ts" 3: stdout.wav -d
own16 -down2 | "C:\Users\M\Documents\HDConvertToX_2.5.624.4217\appli
cations\lame.exe" - -h --abr 256 "C:\Users\M\Documents\HDConvertToX_2.
5.624.4217\job1\hdencodertox-pid3.mp3"
LAME 3.98.4 32bits (http://www.mp3dev.org/)
CPU features: MMX (ASM used), SSE (ASM used), SSE2
Using polyphase lowpass filter, transition band: 19548 Hz - 20129 Hz
Encoding <stdin>
to C:\Users\M\Documents\HDConvertToX_2.5.624.4217\job1\hdencoder
tox-pid3.mp3
Encoding as 48 kHz j-stereo MPEG-1 Layer III (6x) average 256 kbps qval=2

Sat 05/22/2010 0:43:16.93
C:\Users\M\Documents\HDConvertToX_2.5.624.4217\job1>java -jar "C:\User
s\M\Documents\HDConvertToX_2.5.624.4217\applications\BDSup2Sub.jar" "C
:\Users\M\Documents\Avatar\ForcedFinal.sup" "C:\Users\M\Docu
ments\HDConvertToX_2.5.624.4217\job1\hdencodertox__subs_9.idx" /res:1080p

Command line:
C:\Users\M\Documents\HDConvertToX_2.5.624.4217\applications\BDSup2Sub.
jar C:\Users\M\Documents\Avatar\ForcedFinal.sup C:\Users\M\D
ocuments\HDConvertToX_2.5.624.4217\job1\hdencodertox__subs_9.idx /res:1080p

OPTION: set resolution to 1080p (1920x1080)
Target frame rate set to 23.976fps

Converting SUB/IDX

Loading C:\Users\M\Documents\Avatar\ForcedFinal.sup
#> 1 (00:11:08.585)
#> 2 (00:11:10.753)
#> 3 (00:11:13.965)
#> 4 (00:11:17.302)
#> 5 (00:11:19.596)
#> 6 (00:42:50.485)
#> 7 (00:42:59.035)
#> 8 (00:43:04.373)
#> 9 (00:43:08.086)
#> 10 (00:43:10.421)
#> 11 (00:43:17.595)
#> 12 (00:44:41.804)
#> 13 (00:44:43.973)
#> 14 (00:44:57.486)
#> 15 (00:44:59.197)
#> 16 (00:45:03.743)
#> 17 (00:45:05.453)
#> 18 (00:45:07.455)
#> 19 (00:45:09.498)
#> 20 (00:45:13.628)
#> 21 (00:45:28.142)
#> 22 (00:45:31.729)
#> 23 (00:46:33.082)
#> 24 (00:46:34.166)
#> 25 (00:46:35.710)
#> 26 (00:46:38.254)
#> 27 (00:46:41.716)
#> 28 (00:46:43.676)
#> 29 (00:46:48.931)
#> 30 (00:46:50.891)
#> 31 (00:46:55.271)
#> 32 (00:46:58.774)
#> 33 (00:53:45.556)
#> 34 (00:53:48.142)
#> 35 (00:53:50.144)
#> 36 (01:02:54.104)
#> 37 (01:02:57.649)
#> 38 (01:04:43.463)
#> 39 (01:04:44.631)
#> 40 (01:04:46.299)
#> 41 (01:04:52.639)
#> 42 (01:04:55.100)
#> 43 (01:04:57.143)
#> 44 (01:09:52.188)
#> 45 (01:10:17.964)
#> 46 (01:20:53.599)
#> 47 (01:20:59.271)
#> 48 (01:28:25.634)
#> 49 (01:28:34.434)
#> 50 (01:28:37.229)
#> 51 (01:28:42.275)
#> 52 (01:30:01.479)
#> 53 (01:30:05.817)
#> 54 (01:30:43.021)
#> 55 (01:30:44.356)
#> 56 (01:36:07.220)
#> 57 (01:36:08.346)
#> 58 (01:36:10.515)
#> 59 (01:36:13.101)
#> 60 (01:36:15.520)
#> 61 (01:36:18.356)
#> 62 (01:36:21.693)
#> 63 (01:36:23.820)
#> 64 (01:37:41.606)
#> 65 (01:37:44.442)
#> 66 (01:38:43.584)
#> 67 (01:39:07.608)
#> 68 (01:39:08.734)
#> 69 (01:40:44.455)
#> 70 (01:45:32.910)
#> 71 (01:45:49.844)
#> 72 (01:45:52.263)
#> 73 (01:45:59.478)
#> 74 (01:57:48.186)
#> 75 (01:57:51.147)
#> 76 (01:57:54.150)
#> 77 (01:59:53.311)
#> 78 (01:59:56.481)
#> 79 (01:59:59.484)
#> 80 (02:00:05.281)
#> 81 (02:00:11.287)
#> 82 (02:00:15.458)

Detected 82 forced captions.

Writing C:\Users\M\Documents\HDConvertToX_2.5.624.4217\job1\hdencodert
ox__subs_9.sub
Decoding frame 1/82 at offset 0x0000054f
Decoding frame 2/82 at offset 0x00005f47
Decoding frame 3/82 at offset 0x0000cc8a
Decoding frame 4/82 at offset 0x00014929
Decoding frame 5/82 at offset 0x0001a760
Decoding frame 6/82 at offset 0x00020a88
Decoding frame 7/82 at offset 0x00025b39
Decoding frame 8/82 at offset 0x0002cbbd
Decoding frame 9/82 at offset 0x000344a2
Decoding frame 10/82 at offset 0x00039b50
Decoding frame 11/82 at offset 0x00040ab8
Decoding frame 12/82 at offset 0x000444e0
Decoding frame 13/82 at offset 0x0004753a
Decoding frame 14/82 at offset 0x0004aa35
Decoding frame 15/82 at offset 0x0004ea74
Decoding frame 16/82 at offset 0x000559d4
Decoding frame 17/82 at offset 0x0005b8c0
Decoding frame 18/82 at offset 0x00062e69
Decoding frame 19/82 at offset 0x0006695e
Decoding frame 20/82 at offset 0x0006dc2c
Decoding frame 21/82 at offset 0x000748c0
Decoding frame 22/82 at offset 0x0007854c
Decoding frame 23/82 at offset 0x0007e27c
Decoding frame 24/82 at offset 0x00081850
Decoding frame 25/82 at offset 0x00087785
Decoding frame 26/82 at offset 0x0008e223
Decoding frame 27/82 at offset 0x000960ca
Decoding frame 28/82 at offset 0x00099f78
Decoding frame 29/82 at offset 0x000a13f5
Decoding frame 30/82 at offset 0x000a5c26
Decoding frame 31/82 at offset 0x000ac847
Decoding frame 32/82 at offset 0x000b31c2
Decoding frame 33/82 at offset 0x000b92c3
Decoding frame 34/82 at offset 0x000c01fd
Decoding frame 35/82 at offset 0x000c49ff
Decoding frame 36/82 at offset 0x000c8908
Decoding frame 37/82 at offset 0x000ce23a
Decoding frame 38/82 at offset 0x000d2c80
Decoding frame 39/82 at offset 0x000d60d0
Decoding frame 40/82 at offset 0x000d94fc
Decoding frame 41/82 at offset 0x000dde66
Decoding frame 42/82 at offset 0x000e47fe
Decoding frame 43/82 at offset 0x000eaecf
Decoding frame 44/82 at offset 0x000f1dab
Decoding frame 45/82 at offset 0x000f826f
Decoding frame 46/82 at offset 0x000fdf8f
Decoding frame 47/82 at offset 0x00105b7f
Decoding frame 48/82 at offset 0x0010bf68
Decoding frame 49/82 at offset 0x0011349d
Decoding frame 50/82 at offset 0x001175c8
Decoding frame 51/82 at offset 0x0011e102
Decoding frame 52/82 at offset 0x00125599
Decoding frame 53/82 at offset 0x0012b74d
Decoding frame 54/82 at offset 0x0012f970
Decoding frame 55/82 at offset 0x00132a94
Decoding frame 56/82 at offset 0x0013954e
Decoding frame 57/82 at offset 0x0013c656
Decoding frame 58/82 at offset 0x0013fafe
Decoding frame 59/82 at offset 0x001478ec
Decoding frame 60/82 at offset 0x0014a7a8
Decoding frame 61/82 at offset 0x0014f9af
Decoding frame 62/82 at offset 0x0015524e
Decoding frame 63/82 at offset 0x0015bcdb
Decoding frame 64/82 at offset 0x001614fe
Decoding frame 65/82 at offset 0x00164fa9
Decoding frame 66/82 at offset 0x00168728
Decoding frame 67/82 at offset 0x0016c3de
Decoding frame 68/82 at offset 0x001709bc
Decoding frame 69/82 at offset 0x00175b8f
Decoding frame 70/82 at offset 0x0017bfbd
Decoding frame 71/82 at offset 0x0017f0c5
Decoding frame 72/82 at offset 0x00182c73
Decoding frame 73/82 at offset 0x001871b3
Decoding frame 74/82 at offset 0x0018c24e
Decoding frame 75/82 at offset 0x00191b64
Decoding frame 76/82 at offset 0x00196ed4
Decoding frame 77/82 at offset 0x0019f76d
Decoding frame 78/82 at offset 0x001a5e71
Decoding frame 79/82 at offset 0x001aa6e2
Decoding frame 80/82 at offset 0x001b09d6
Decoding frame 81/82 at offset 0x001b7268
Decoding frame 82/82 at offset 0x001bcd87

Writing C:\Users\M\Documents\HDConvertToX_2.5.624.4217\job1\hdencodert
ox__subs_9.idx

Conversion of 1 file(s) finished

Sat 05/22/2010 0:43:27.93
C:\Users\M\Documents\HDConvertToX_2.5.624.4217\job1>"C:\Users\M\Documents\HDConvertToX_2.5.624.4217\applications\xvid_encraw.exe" -progress
50 -i "C:\Users\M\Documents\HDConvertToX_2.5.624.4217\job1\hdconvertto
x_00002.avs" -avi "C:\Users\M\Documents\HDConvertToX_2.5.624.4217\job1
\hdconverttox_00002.avi" -max_bframes 2 -vhqmode 1 -quality 6 -max_key_interval
125 -lumimasking -bquant_ratio 150 -framerate 23.976 -threads 6 -bitrate 10000
-pass1 -turbo -par 1:1
xvid_encraw - raw mpeg4 bitstream encoder written by Christoph Lampert 2002-2003


Trying to retrieve width and height from input header
xvid [info]: Avisynth detected
xvid [info]: Input colorspace is YV12
xvid [info]: Input is 1916 x 1072, 23.976fps (2997/125), starting from frame 0
xvid [info]: Number of frames to encode: 232606, Bitrate = 10000kbps
xvid [info]: xvidcore build version: xvid-1.2.2
xvid [info]: Bitstream version: 1.2.2
xvid [info]: Detected CPU flags: ASM MMX MMXEXT SSE SSE2 TSC
xvid [info]: Detected cpus = 4, threads requested = 5, threads in use = 5
xvid [info]: Threaded input reading active
232601 frames( 99%) encoded, 10.95 fps, Average Bitrate = 15334kbps
Tot: enctime(ms) =21241371.00, length(bytes) = 18595172895
Avg: enctime(ms) = 91.32, fps = 10.95, length(bytes) = 79942
I frames: 3695 frames, size = 196753/ 727005511, quants = 2 / 2.00 / 2
P frames: 111607 frames, size = 132975/14841044565, quants = 2 / 2.00 / 2
B frames: 117304 frames, size = 25805/ 3027122819, quants = 4 / 4.00 / 4

Sat 05/22/2010 6:41:58.57
C:\Users\M\Documents\HDConvertToX_2.5.624.4217\job1>"C:\Users\M\Documents\HDConvertToX_2.5.624.4217\applications\xvid_encraw.exe" -progress
50 -i "C:\Users\M\Documents\HDConvertToX_2.5.624.4217\job1\hdconvertto
x_00002.avs" -avi "C:\Users\M\Documents\HDConvertToX_2.5.624.4217\job1
\hdconverttox_00002.avi" -max_bframes 2 -vhqmode 1 -quality 6 -max_key_interval
125 -lumimasking -bquant_ratio 150 -framerate 23.976 -threads 6 -bitrate 10000
-pass2 -par 1:1
xvid_encraw - raw mpeg4 bitstream encoder written by Christoph Lampert 2002-2003


Trying to retrieve width and height from input header
xvid [info]: Avisynth detected
xvid [info]: Input colorspace is YV12
xvid [info]: Input is 1916 x 1072, 23.976fps (2997/125), starting from frame 0
xvid [info]: Number of frames to encode: 232606, Bitrate = 10000kbps
xvid [info]: xvidcore build version: xvid-1.2.2
xvid [info]: Bitstream version: 1.2.2
xvid [info]: Detected CPU flags: ASM MMX MMXEXT SSE SSE2 TSC
xvid [info]: Detected cpus = 4, threads requested = 5, threads in use = 5
xvid [info]: Threaded input reading active
151851 frames( 65%) encoded, 6.31 fps, Average Bitrate = 9677kbps

buzzqw
24th May 2010, 07:21
Are you sure mate? The reason I ask is I encoded using Blu-Ray Stream Extractor and it used the same files and finished doing so.
I have finished with these files anyway. I thought I should let you know. This will help you find a problem if its eac3to then should'nt Blu-Ray Stream Extractor stuff up as well?
thanks

if " Blu-Ray Stream Extractor " estract correctly the stream, would be very usefull to know the command line used!
so i can spot difference on my eac3to command line

Current version (2.5.647.4289) is working great for me at this point.

However, I have a very small and stupid issue - every time the program is updated, using the update check in the program, it is resetting the AVIMux_GUI.exe compatibility settings. Every time the program is updated we must go back and manually change the compatibility settings to Windows XP settings so the program will work properly in Windows 7. Can this be changed so it will keep the settings or will there be a new version of AVIMux_GUI.exe that works properly on Windows 7?

Just thought I'd ask :)

I love the program for my BR conversions. It would also be great if the program could handle some other video type conversions as well - such as MP4 to AVI, etc. If so, this would be a great all-in-one conversion tool.

i don't change the avimux propierties! do i don't know.. what happen. BUT in last full package i have added the avimux-gui compatible with win7...

.. and mp4 CAN be converted to avi, what's the problem ?

@lotrmith

thanks a lot for your effort and guide!
your experience would be useful for other users too :)

BHH

Mrsash
24th May 2010, 11:31
if " Blu-Ray Stream Extractor " estract correctly the stream, would be very usefull to know the command line used!
so i can spot difference on my eac3to command line


I did not use the command line mate. Used the gui here
http://forum.doom9.org/showthread.php?t=141829

In fact I dropped the gui in the application folder for HDC and it worked with this setting and more. -quality=0.20. However found out it encodes in VBR but did the job.

thanks

gibbyman
24th May 2010, 17:41
The line I provided above uses xvid encraw defaults except for the min/max quantizers which the defaults are 1 - 31 and max B frame setting which the default is 2. By reducing the max quantizer settings to 16 with the encraw defaults you might get a larger file size with better quality and still hit the target size. Keep in mind that your audio bitrate and number of audio channels you use will play a role in the final file size. Try it :)


Ok, thank for clarifying (although I didn't understand much.
Anyway - I created a new profile and tried it.

And well.. the file that previously ended up being 650mb big (target 1200mb) now got 1500mb big instead... same target bitrate (more or less).
I realize I have to take the audio into account but the difference is quite big, don't you think?

Either way - since these encodes are intended to be a bit for when I'm "on the move" using a 10" screen I'm tempted to continue with the "insane quality" setting instead and just be happy with what I get. The reason for asking was more out of curiosity than anything else...

Thanks again for your help!

robinsj
25th May 2010, 15:46
Just wanted to know if anyone else is having troubles with the autochapters. I keep getting this line inside of the autochapters.txt file -

CHAPTER001=00:06:36.000
CHAPTER001NAME=Chapter 1
CHAPTER002=00:12:36.000
CHAPTER002NAME=Chapter 2
CHAPTER003=00:18:36.000
CHAPTER003NAME=Chapter 3
CHAPTER004=00:24:36.000
CHAPTER004NAME=Chapter 4
CHAPTER005=00:30:36.000
CHAPTER005NAME=Chapter 5
CHAPTER006=00:36:36.000
CHAPTER006NAME=Chapter 6
CHAPTER007=00:42:36.000
CHAPTER007NAME=Chapter 7
CHAPTER008=00:48:36.000
CHAPTER008NAME=Chapter 8
CHAPTER009=00:54:36.000
CHAPTER009NAME=Chapter 9
CHAPTER010=01:00:-3.000
CHAPTER010NAME=Chapter 10
CHAPTER011=01:06:36.000
CHAPTER011NAME=Chapter 11
CHAPTER012=01:12:36.000
CHAPTER012NAME=Chapter 12
CHAPTER013=01:18:36.000
CHAPTER013NAME=Chapter 13
CHAPTER014=01:24:36.000
CHAPTER014NAME=Chapter 14
CHAPTER015=01:30:36.000
CHAPTER015NAME=Chapter 15
CHAPTER016=01:36:36.000
CHAPTER016NAME=Chapter 16
CHAPTER017=01:42:36.000
CHAPTER017NAME=Chapter 17
CHAPTER018=01:48:36.000
CHAPTER018NAME=Chapter 18
CHAPTER019=01:54:36.000
CHAPTER019NAME=Chapter 19
CHAPTER020=02:00:-3.000
CHAPTER020NAME=Chapter 20

I don't know why it keeps putting in that -, I have tried several different files, but everytime i run the queue it kills it once it gets to the point of adding the chapters. Any help?

buzzqw
25th May 2010, 16:17
@robinsj

fixed

use live update


BHH

robinsj
25th May 2010, 16:22
Awesome... Thanks!!

buzzqw
25th May 2010, 16:37
my pleasure :)

thanks for your bug!

BHH

OLP
26th May 2010, 18:57
is there any known issue with vobsubs (from DVD in *.sub/+.idx format) doesnt show up in the "Audio & Sub Selection"-Tab after analyzing, when i use a *.mkv as source?
Is the errormessage in the eac3to-log a hint?

eac3to v3.18
command line: "C:\HDConvertToX_2.5.647.4289\applications\eac3to.exe"
"Y:\Serien\Stargate Atlantis\Staffel 1\S01E11_Das Auge.mkv" -log="C:\HDConvertToX_2.5.647.4289\analysis\eac3toinfo.log"
------------------------------------------------------------------------------
MKV, 1 video track, 3 audio tracks, 1 subtitle track, 0:41:33, 25p
1: h264/AVC, 576p25 (16:9)
2: AC3, German, 5.1 channels, 448kbps, 48khz
3: AC3, English, 5.1 channels, 448kbps, 48khz
4: AC3 Surround, English, 2.0 channels, 224kbps, 48khz
5: Subtitle (VobSub), German
Bitstream parsing for track 5 failed. <WARNING>
Demuxing this track may still produce correct results - or not. <WARNING>


The mkv comes from my Original-DVD, so i can exclude that the subtitel-track is modified an any way.
Its playing fine with and without subs.
I can demuxx with mkvextract without problems

If i test this with the original DVD the subtitel-streams show up as everytime.

I thought it worked in the past with older versions of your package, but not 100% sure.

Any Ideas?

buzzqw
27th May 2010, 07:14
eac3to doesn't support idx/sub in mkv file

in early version HDC allow "try" to extract it, but since numerous failure i removed that possibility.

and.. afaik eac3to doesn't support already vobsub...

BHH

OLP
27th May 2010, 08:27
ok, i understand that eac3 doesnt support extracting vobsubs from mkv-file.
But why its necessary to extract this with eac3to?
Its an Audio-tool....?!

Why not using mkvextract to do this work?

buzzqw
27th May 2010, 11:10
because hdc don't use mkvextract (till)

BHH

Atak_Snajpera
27th May 2010, 12:26
This is your mistake. Every container should be demuxed by proper tool. mp4 - mp4box , mkv - mkvextract and so on... eac3to has not been designed for mkv. This is just an extra feature.

buzzqw
27th May 2010, 14:39
This is your mistake. Every container should be demuxed by proper tool. mp4 - mp4box , mkv - mkvextract and so on... eac3to has not been designed for mkv. This is just an extra feature.

i agree Atak.

eac3to is even too much powerful ;)

but.. i had thought about it from several time.

and here the first muck up http://www.64k.it/andres/data/hdconverttox/HDConvertToX-beta.exe

put in \applications folder mkvinfo.exe and mkvextract.exe

for now it will be used only for subtitle extraction when dealing with mkv
i had already prepared for audio, but extracting audio and encoding with eac3to is a loss in time.. better feed eac3to with mkv and let it deal with audio...

BHH

OLP
27th May 2010, 15:30
downloaded the beta and copy the mkvinfo.exe + mkvextract.exe from mkvtoolnix into the HDC-App-Folder.

Starting the beta, loading a mkv and analyzing this gives NOTHING in the "Audio & Sub Selection"-Tab.
No Subtitels to check, and no "None"-Checkbox.....the field is empty...

seems not working as intended :)

buzzqw
27th May 2010, 16:21
please post a sample of your file (post on mediafire, use dgplit by neuron2 to cut)
only "vobsub" media type are recognized

also.. try to lauch from dos mkvinfo.exe myfile.mkv , from \applications folder

make sure you don't get errors...

BHH

OLP
27th May 2010, 16:52
also.. try to lauch from dos mkvinfo.exe myfile.mkv , from \applications folder

make sure you don't get errors...

BHH

worked so far withou errors, but mkvinfo seems to very sensitive with file-names. had to rename my file to a simple one to get it to work.

did also a 2nd test with hdc-beta with the renamed file.
Result: no subs, no "none"-checkbox

OLP
27th May 2010, 17:11
please post a sample of your file (post on mediafire, use dgplit by neuron2 to cut)

BHH

http://www.mediafire.com/file/ngtftzrzizd/test-split.mkv

buzzqw
28th May 2010, 07:03
thanks

for me is ok
i got only 1 sub , a vob/idx tagged as german language

please try this.. copy all file from your mkvtoolnix installation (3.4.0 version) to \applications folder of hdc
maybe some dlls was missing..
then launch hdc and reload your file

BHH

EDIT: P.S. just uploaded a new beta version, better layout and support for ssa extraction

OLP
28th May 2010, 07:31
hmm...

please try this.. copy all file from your mkvtoolnix installation (3.4.0 version) to \applications folder of hdc
maybe some dlls was missing..
then launch hdc and reload your file

BHH

EDIT: P.S. just uploaded a new beta version, better layout and support for ssa extraction

done.

"none"-checkbox is now there :)

but no subs....
(using the same testfile that i send you)

dont understand whats the problem.

Maybe something with the difference in our OS
Using Vista 64bit here atm....

buzzqw
28th May 2010, 09:24
uploaded a new beta
in \analysis folder will be created a mkvinfo.bat and mkvinfo.txt

then hdc will parse mkvinfo.txt..
should be more "secure proof"

thanks!

BHH

OLP
28th May 2010, 09:32
downloaded the new beta.
same result: no subs, but none-checkbox.

mkvinfo.txt shows:

+ EBML-Kopf

|+ EBML-Version: 1

|+ EBML Leseversion: 1

|+ Maximale EBML-ID-Länge: 4

|+ Maximale Länge des EBML-Längenattributes: 8

|+ Dokumententyp: matroska

|+ Dokumententyp Version: 2

|+ Dokumententyp Leseversion: 2

+ Segment, Größe 685448960

|+ Seek-Kopf (Untereinträge werden ausgelassen)

|+ EbmlVoid (Größe: 4012)

|+ Segment-Information

| + Zeitstempelskalierungsfaktor: 1000000

| + Muxeranwendung: libebml v0.8.0 + libmatroska v0.9.0

| + Schreibende Anwendung: mkvmerge v3.4.0 ('Rapunzel') gebaut am May 15 2010 09:38:20

| + Dauer: 2493.160s (00:41:33.160)

| + Datum: Thu May 27 10:45:13 2010 UTC

| + Segment-UID: 0x84 0xe7 0x73 0x86 0x8d 0x79 0x7a 0x88 0xa7 0x3a 0x6d 0x38 0x10 0x22 0x02 0x32

|+ Segment-Tracks

| + Ein Track

| + Tracknummer: 1

| + Track UID: 3292879272

| + Tracktyp: video

| + Aktiv: 1

| + Standardtrack-Flag: 1

| + Flag für erzwungene Anzeige: 0

| + Flag für Paketbündelung: 0

| + MinCache: 1

| + Zeitstempelskalierungsfaktor: 1

| + Maximale BlockAddition ID: 0

| + Codec-ID: V_MPEG4/ISO/AVC

| + Codec alle frames decodieren: 1

| + private Codecdaten, Länge 47

| + Standarddauer: 40.000ms (25.000 Bilder pro Sekunde im Falle eines Videotracks)

| + Sprache: und

| + Video-Track

| + Pixelbreite: 720

| + Pixelhöhe: 576

| + Interlaced: 0

| + Anzeigebreite: 1024

| + Anzeigehöhe: 576

| + Ein Track

| + Tracknummer: 2

| + Track UID: 4160173702

| + Tracktyp: audio

| + Aktiv: 1

| + Standardtrack-Flag: 1

| + Flag für erzwungene Anzeige: 0

| + Flag für Paketbündelung: 1

| + MinCache: 0

| + Zeitstempelskalierungsfaktor: 1

| + Maximale BlockAddition ID: 0

| + Codec-ID: A_AC3

| + Codec alle frames decodieren: 1

| + Standarddauer: 32.000ms (31.250 Bilder pro Sekunde im Falle eines Videotracks)

| + Sprache: ger

| + Audio track

| + Abtastrate: 48000

| + Kanäle: 6

| + Ein Track

| + Tracknummer: 3

| + Track UID: 2352389040

| + Tracktyp: audio

| + Aktiv: 1

| + Standardtrack-Flag: 0

| + Flag für erzwungene Anzeige: 0

| + Flag für Paketbündelung: 1

| + MinCache: 0

| + Zeitstempelskalierungsfaktor: 1

| + Maximale BlockAddition ID: 0

| + Codec-ID: A_AC3

| + Codec alle frames decodieren: 1

| + Standarddauer: 32.000ms (31.250 Bilder pro Sekunde im Falle eines Videotracks)

| + Sprache: eng

| + Audio track

| + Abtastrate: 48000

| + Kanäle: 6

| + Ein Track

| + Tracknummer: 4

| + Track UID: 2402912643

| + Tracktyp: audio

| + Aktiv: 1

| + Standardtrack-Flag: 0

| + Flag für erzwungene Anzeige: 0

| + Flag für Paketbündelung: 1

| + MinCache: 0

| + Zeitstempelskalierungsfaktor: 1

| + Maximale BlockAddition ID: 0

| + Codec-ID: A_AC3

| + Codec alle frames decodieren: 1

| + Standarddauer: 32.000ms (31.250 Bilder pro Sekunde im Falle eines Videotracks)

| + Sprache: eng

| + Audio track

| + Abtastrate: 48000

| + Kanäle: 2

| + Ein Track

| + Tracknummer: 5

| + Track UID: 3524067716

| + Tracktyp: subtitles

| + Aktiv: 1

| + Standardtrack-Flag: 1

| + Flag für erzwungene Anzeige: 1

| + Flag für Paketbündelung: 0

| + MinCache: 0

| + Zeitstempelskalierungsfaktor: 1

| + Maximale BlockAddition ID: 0

| + Codec-ID: S_VOBSUB

| + Codec alle frames decodieren: 1

| + private Codecdaten, Länge 348

| + Sprache: ger

| + Inhaltskodierungen

| + Inhaltskodierung

| + Reihenfolge: 0

| + Bereich: 1 (1: alle Frames)

| + Typ: 0 (Komprimierung)

| + Inhaltskomprimierung

| + Algorithmus: 0 (ZLIB)

|+ EbmlVoid (Größe: 1024)

|+ Kapitel

| + EditionEntry

| + EditionFlagHidden: 0

| + EditionFlagDefault: 0

| + EditionUID: 2623673751

| + ChapterAtom

| + ChapterUID: 3785500073

| + ChapterTimeStart: 00:00:00.000000000

| + ChapterFlagHidden: 0

| + ChapterFlagEnabled: 1

| + ChapterDisplay

| + ChapterString: Chapter 1

| + ChapterLanguage: eng

| + ChapterAtom

| + ChapterUID: 1571579808

| + ChapterTimeStart: 00:10:42.080000000

| + ChapterFlagHidden: 0

| + ChapterFlagEnabled: 1

| + ChapterDisplay

| + ChapterString: Chapter 2

| + ChapterLanguage: eng

| + ChapterAtom

| + ChapterUID: 3604043934

| + ChapterTimeStart: 00:20:48.960000000

| + ChapterFlagHidden: 0

| + ChapterFlagEnabled: 1

| + ChapterDisplay

| + ChapterString: Chapter 3

| + ChapterLanguage: eng

| + ChapterAtom

| + ChapterUID: 97865110

| + ChapterTimeStart: 00:30:07.800000000

| + ChapterFlagHidden: 0

| + ChapterFlagEnabled: 1

| + ChapterDisplay

| + ChapterString: Chapter 4

| + ChapterLanguage: eng

|+ EbmlVoid (Größe: 101)

|+ Cluster

buzzqw
28th May 2010, 10:35
the problem is in localized versione of mkvtoolnix

i parse the file and search for "language" not sprache , "Codec ID" and here is "Codec-ID"

please try http://www.64k.it/andres/data/Varie/mkvinfo.rar

download , unrar and put into \application folder

... finger crossed... and retry!

BHH

OLP
28th May 2010, 11:09
nothing changed, mkvinfo.txt is still in german


but i will try to reinstall mkvtoolnix in english and retry

OLP
28th May 2010, 11:22
after only deinstalling mkvtoolnix the mkvinfo.txt is now in english but still no subs, but "none"-checkbox.

btw it seems that the system is ignoring the path that you write in your mkvinfo.bat.
it seems to me that if mkvtoolnix is installed the system load the mkvinfo.exe from the installation-path and not from the path that is written in the *.bat.

buzzqw
28th May 2010, 11:44
repost your mkvinfo.txt

thanks

AND redowload hdc beta!

BHH

gibbyman
28th May 2010, 12:28
Hi All!

Maybe this is not exactly the right thread for this kind of questions, but since it is the HDC I'm using I thought I'd start with you guys first...

The last couple of days I've been experimenting with the 1-pass quality crf mode (mkv) encoding 4 different movies with crf 18, crf 19, crf 20 with preset "slow" to look for differences in quality/size and all that...

Now I realize that everything is relative and depending on the clip that I encode, but is it in any way possible to get an idea on when for example crf 19 in a slower mode (more to the right on the preset scale) becomes equal to crf 18 on a preset that's a bit faster, e.g. more to the left on the slider? Or the other way around?

I'm kinda of trying to find a good balance between speed/quality (aren't we all?) and well... recent testing tells me that it ain't that easy to settle in for a good choice of settings...

Any input on that?

OLP
28th May 2010, 12:31
1. IT WORKED now under strange circumstances
2. i have to copy wxbase28u_gcc_custom.dll and wxmsw28u_core_gcc_custom.dll from mkvtoolnix to hdc/app
(mkvinfo.exe and mkvextract.exe also)

3. with the newest beta there is no mkvinfo.txt anymore :)

4. With Installer-Version of mkvtoolnix it doesnt work. nothing matter if english or german version.

5. it only worked for me after if i have mkvtoolnix without installroutine in a path that is not the normal installpath
(VERY STRANGE)


btw...what you are doing with BDSup2Sub after extracting with mkvextract??