Log in

View Full Version : MeGUI: General Questions and Troubleshooting Thread


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 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 [163] 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186

Xor
14th September 2016, 20:03
please help me,
i have old untouched video source presenting much grain/noise at video.

See image http://prnt.sc/ci14sj

I use default profile X264 SCRATCHPAD How ti setting megui if reduce this annoying noise on encode???

dc0yy
15th September 2016, 06:54
None.

what do you mean by none? all audio encoder will have same result if the source have mp3 audio?

LigH
15th September 2016, 07:37
kuchikirukia means: If possible, avoid converting audio streams, rather copy them unchanged ... at least as long as the target container / media structure supports MP3 audio streams (e.g. DVD Video does not; but MP4 or MKV do). Every conversion into a lossy format reduces the quality further.

For MeGUI, this may mean to extract the stream from the source to a separate MP3 file, convert the video only, and multiplex the original MP3 stream to the converted video afterwards.

dc0yy
15th September 2016, 08:03
kuchikirukia means: If possible, avoid converting audio streams, rather copy them unchanged ... at least as long as the target container / media structure supports MP3 audio streams (e.g. DVD Video does not; but MP4 or MKV do). Every conversion into a lossy format reduces the quality further.

For MeGUI, this may mean to extract the stream from the source to a separate MP3 file, convert the video only, and multiplex the original MP3 stream to the converted video afterwards.

Thanks for a detailed explanation, was also thinking the same thing but haven't tried it yet. Encode the video on megui, extract the audio on mkvmerge then merge both audio and video on mkvmerge

Thanks for the help LigH

LigH
15th September 2016, 10:19
MeGUI contains a "HD stream extractor" and some multiplexers in the "Tools" menu, as user interfaces for the mentioned CLI tools.

tebasuna51
15th September 2016, 10:39
Encode the video on megui, extract the audio on mkvmerge then merge both audio and video on mkvmerge

Of course extract the mp3 is better than recode it.
But probably that don't solve the async problem.

If the recoded audio don't match with the recoded audio you obtain the same with the extracted mp3.
The problem can be:

1) The original audio have a initial delay
Extracting the audio with mkvextract lose the delay, and you get a constant async along the recoded output.
That can be solved extracting the mp3 with Tools -> HD Stream Extractor, now eac3to apply the delay to mp3 extracted.
EDIT: like LigH say

2) The original video or audio have irregular timecodes.
To solve the problem you must apply the original timecodes to the mkv output

dc0yy
15th September 2016, 12:13
Of course extract the mp3 is better than recode it.
But probably that don't solve the async problem.

If the recoded audio don't match with the recoded audio you obtain the same with the extracted mp3.
The problem can be:

1) The original audio have a initial delay
Extracting the audio with mkvextract lose the delay, and you get a constant async along the recoded output.
That can be solved extracting the mp3 with Tools -> HD Stream Extractor, now eac3to apply the delay to mp3 extracted.
EDIT: like LigH say

2) The original video or audio have irregular timecodes.
To solve the problem you must apply the original timecodes to the mkv output

It didn't solve indeed, just tried HD Stream Extractor but it didn't recognize the avi file. also tried the yr_eac3to_more_gui.1.10.01 but don't know how can i make it work :(

hello_hello
15th September 2016, 17:06
dc0yy,
MeGUI's file indexer (or pretty much any other tool that extracts audio) will extract it as a contiguous file. Mostly that's fine, but eac3to (which the HD Streams Extractor uses to do the work) will try to fill/fix any gaps. You can open many file types with MKVToolNixGUI and mux them as an MKV if need be, then you can open the MKV with the HD Streams Extractor and extract the audio. It'll save a text file when it's done which will tell you if there were any problems and if they were fixed.

Thanks for a detailed explanation, was also thinking the same thing but haven't tried it yet. Encode the video on megui, extract the audio on mkvmerge then merge both audio and video on mkvmerge

Don't do that if there's sync issues. Encode the video, open the output file with MKVToolNixGUI but instead of extracting the audio from the source file first, add the original AVI to the muxing job. De-select the original video stream and remux. The audio sync relative to the video shouldn't change, so if it goes out of sync it's probably a variable frame rate issue. Someone will be able to help there if you need instructions, but check the frame rate of the encoded video using an accurate method to make sure it matches the source. Opening it with MPC-HC and checking with the File/Properties menu should do.

tebasuna51
16th September 2016, 02:48
It didn't solve indeed, just tried HD Stream Extractor but it didn't recognize the avi file. also tried the yr_eac3to_more_gui.1.10.01 but don't know how can i make it work :(

I was thinking than your source is mkv because:
... extract the audio on mkvmerge...

To extract a mp3 from a avi you can't use eac3to (HD Stream Extractor, yr_eac3to_more_gui, UsEac3to or other eac3to GUI).

You can use ...\megui\tools\avimux_gui\AVIMux_GUI.exe

1) Drag & drop your avi in upper window or right-clik -> Add
2) Select the avi
3) "generate data source from files"
4) Select the audio track
5) At right must appear the 'delay (ms)', if show something distinct of 0 that can be the problem, remember the delay.
6) Right click over the selected audio track and 'extract binary'

Now you can go to MeGUI -> Tools -> Muxer -> Mkv Muxer to mux your video with the mp3 obtained, don't forget the delay.

If that not solve the problem please put the full log of your MeGUI video conversion.

dc0yy
16th September 2016, 10:53
dc0yy,
MeGUI's file indexer (or pretty much any other tool that extracts audio) will extract it as a contiguous file. Mostly that's fine, but eac3to (which the HD Streams Extractor uses to do the work) will try to fill/fix any gaps. You can open many file types with MKVToolNixGUI and mux them as an MKV if need be, then you can open the MKV with the HD Streams Extractor and extract the audio. It'll save a text file when it's done which will tell you if there were any problems and if they were fixed.

Don't do that if there's sync issues. Encode the video, open the output file with MKVToolNixGUI but instead of extracting the audio from the source file first, add the original AVI to the muxing job. De-select the original video stream and remux. The audio sync relative to the video shouldn't change, so if it goes out of sync it's probably a variable frame rate issue. Someone will be able to help there if you need instructions, but check the frame rate of the encoded video using an accurate method to make sure it matches the source. Opening it with MPC-HC and checking with the File/Properties menu should do.

I was thinking than your source is mkv because:


To extract a mp3 from a avi you can't use eac3to (HD Stream Extractor, yr_eac3to_more_gui, UsEac3to or other eac3to GUI).

You can use ...\megui\tools\avimux_gui\AVIMux_GUI.exe

1) Drag & drop your avi in upper window or right-clik -> Add
2) Select the avi
3) "generate data source from files"
4) Select the audio track
5) At right must appear the 'delay (ms)', if show something distinct of 0 that can be the problem, remember the delay.
6) Right click over the selected audio track and 'extract binary'

Now you can go to MeGUI -> Tools -> Muxer -> Mkv Muxer to mux your video with the mp3 obtained, don't forget the delay.

If that not solve the problem please put the full log of your MeGUI video conversion.

sadly both option didn't work :( here's the Megui log


[Information] Log for job3 (video, IENE-640.avi.avs -> )
-[Information] [9/16/2016 1:30:15 AM] Started handling job
-[Information] [9/16/2016 1:30:15 AM] Preprocessing
--[Information] Bitrate calculation for video
---[Information] [9/16/2016 1:30:19 AM] Desired size after subtracting audio: 495259 KBs
---[Information] [9/16/2016 1:30:19 AM] Calculated desired bitrate: 500 kbit/s
-[Information] [9/16/2016 1:30:19 AM] Avisynth input script
--[NoImage] LoadPlugin("E:\MeGUI_2028_x86\tools\lsmash\LSMASHSource.dll")
--[NoImage] LWLibavVideoSource("F:\Encode\MP3\IENE-640.avi")
--[NoImage] #deinterlace
--[NoImage] #crop
--[NoImage] LanczosResize(656,368) # Lanczos (Sharp)
--[NoImage] #denoise
-[Information] [9/16/2016 1:30:23 AM] resolution: 656x368
-[Information] [9/16/2016 1:30:23 AM] frame rate: 209800/7007
-[Information] [9/16/2016 1:30:23 AM] aspect ratio: 41:23 (1.783)
-[Information] [9/16/2016 1:30:23 AM] Job command line: "E:\MeGUI_2028_x86\tools\x264\x264.exe" --pass 1 --bitrate 500 --stats "F:\Encode\MP3\IENE-640.avi.stats" --deblock -1:-1 --keyint 299 --b-adapt 2 --ref 5 --qpmin 10 --qpmax 51 --me umh --direct auto --subme 6 --partitions all --trellis 2 --sar 1:1 --output NUL "F:\Encode\MP3\IENE-640.avi.avs"
-[Information] [9/16/2016 1:30:23 AM] Process started
-[Information] [9/16/2016 1:30:23 AM] Standard output stream
-[Information] [9/16/2016 1:30:23 AM] Standard error stream
--[Information] [9/16/2016 1:30:27 AM] avs [info]: 656x368p 1:1 @ 209800/7007 fps (cfr)
--[Information] [9/16/2016 1:30:27 AM] x264 [info]: using SAR=1/1
--[Information] [9/16/2016 1:30:27 AM] x264 [info]: using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 AVX
--[Information] [9/16/2016 1:30:27 AM] x264 [info]: profile Main, level 3.0
--[Information] [9/16/2016 1:51:31 AM] x264 [info]: frame I:887 Avg QP:20.91 size: 18683
--[Information] [9/16/2016 1:51:31 AM] x264 [info]: frame P:66635 Avg QP:24.16 size: 4849
--[Information] [9/16/2016 1:51:31 AM] x264 [info]: frame B:175433 Avg QP:28.37 size: 948
--[Information] [9/16/2016 1:51:31 AM] x264 [info]: consecutive B-frames: 1.6% 2.2% 12.3% 83.9%
--[Information] [9/16/2016 1:51:31 AM] x264 [info]: mb I I16..4: 30.9% 0.0% 69.1%
--[Information] [9/16/2016 1:51:31 AM] x264 [info]: mb P I16..4: 14.2% 0.0% 0.0% P16..4: 63.1% 0.0% 0.0% 0.0% 0.0% skip:22.7%
--[Information] [9/16/2016 1:51:31 AM] x264 [info]: mb B I16..4: 1.5% 0.0% 0.0% B16..8: 20.7% 0.0% 0.0% direct: 5.0% skip:72.8% L0:32.9% L1:47.4% BI:19.7%
--[Information] [9/16/2016 1:51:31 AM] x264 [info]: final ratefactor: 23.36
--[Information] [9/16/2016 1:51:31 AM] x264 [info]: direct mvs spatial:99.8% temporal:0.2%
--[Information] [9/16/2016 1:51:31 AM] x264 [info]: coded y,uvDC,uvAC intra: 33.5% 39.7% 9.1% inter: 10.0% 6.0% 0.2%
--[Information] [9/16/2016 1:51:31 AM] x264 [info]: i16 v,h,dc,p: 37% 26% 23% 14%
--[Information] [9/16/2016 1:51:31 AM] x264 [info]: i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 28% 20% 12% 7% 7% 7% 7% 7% 6%
--[Information] [9/16/2016 1:51:31 AM] x264 [info]: i8c dc,h,v,p: 59% 17% 21% 4%
--[Information] [9/16/2016 1:51:31 AM] x264 [info]: Weighted P-Frames: Y:1.6% UV:0.6%
--[Information] [9/16/2016 1:51:31 AM] x264 [info]: kb/s:498.95
--[Information] [9/16/2016 1:51:31 AM] encoded 242955 frames, 192.22 fps, 498.95 kb/s
-[Information] [9/16/2016 1:51:31 AM] Postprocessing
--[Information] [9/16/2016 1:51:31 AM] Deleting intermediate files
-[Information] [9/16/2016 1:51:31 AM] Job completed

[Information] Log for job4 (video, IENE-640.avi.avs -> IENE-640.avi.mkv)
-[Information] [9/16/2016 1:51:31 AM] Started handling job
-[Information] [9/16/2016 1:51:32 AM] Preprocessing
-[Information] [9/16/2016 1:51:32 AM] Avisynth input script
--[NoImage] LoadPlugin("E:\MeGUI_2028_x86\tools\lsmash\LSMASHSource.dll")
--[NoImage] LWLibavVideoSource("F:\Encode\MP3\IENE-640.avi")
--[NoImage] #deinterlace
--[NoImage] #crop
--[NoImage] LanczosResize(656,368) # Lanczos (Sharp)
--[NoImage] #denoise
-[Information] [9/16/2016 1:51:36 AM] resolution: 656x368
-[Information] [9/16/2016 1:51:36 AM] frame rate: 209800/7007
-[Information] [9/16/2016 1:51:36 AM] aspect ratio: 41:23 (1.783)
-[Information] [9/16/2016 1:51:36 AM] Job command line: "E:\MeGUI_2028_x86\tools\x264\x264.exe" --pass 2 --bitrate 500 --stats "F:\Encode\MP3\IENE-640.avi.stats" --deblock -1:-1 --keyint 299 --b-adapt 2 --ref 5 --qpmin 10 --qpmax 51 --me umh --direct auto --subme 6 --partitions all --trellis 2 --sar 1:1 --output "F:\Encode\MP3\IENE-640.avi.mkv" "F:\Encode\MP3\IENE-640.avi.avs"
-[Information] [9/16/2016 1:51:36 AM] Process started
-[Information] [9/16/2016 1:51:36 AM] Standard output stream
-[Information] [9/16/2016 1:51:36 AM] Standard error stream
--[Information] [9/16/2016 1:51:48 AM] avs [info]: 656x368p 1:1 @ 209800/7007 fps (cfr)
--[Information] [9/16/2016 1:51:48 AM] x264 [info]: using SAR=1/1
--[Information] [9/16/2016 1:51:48 AM] x264 [info]: using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 AVX
--[Information] [9/16/2016 1:51:48 AM] x264 [info]: profile High, level 3.0
--[Information] [9/16/2016 2:14:43 AM] x264 [info]: frame I:887 Avg QP:21.73 size: 16637
--[Information] [9/16/2016 2:14:43 AM] x264 [info]: frame P:66635 Avg QP:24.90 size: 4175
--[Information] [9/16/2016 2:14:43 AM] x264 [info]: frame B:175433 Avg QP:28.15 size: 1221
--[Information] [9/16/2016 2:14:43 AM] x264 [info]: consecutive B-frames: 1.6% 2.2% 12.3% 83.9%
--[Information] [9/16/2016 2:14:43 AM] x264 [info]: mb I I16..4: 11.6% 69.4% 19.0%
--[Information] [9/16/2016 2:14:43 AM] x264 [info]: mb P I16..4: 1.9% 4.9% 0.5% P16..4: 48.2% 13.0% 9.3% 0.2% 0.0% skip:21.9%
--[Information] [9/16/2016 2:14:43 AM] x264 [info]: mb B I16..4: 1.6% 1.9% 0.2% B16..8: 26.0% 5.8% 0.4% direct: 8.4% skip:55.6% L0:39.8% L1:50.6% BI: 9.5%
--[Information] [9/16/2016 2:14:43 AM] x264 [info]: 8x8 transform intra:59.0% inter:69.2%
--[Information] [9/16/2016 2:14:43 AM] x264 [info]: direct mvs spatial:90.6% temporal:9.4%
--[Information] [9/16/2016 2:14:43 AM] x264 [info]: coded y,uvDC,uvAC intra: 41.9% 49.2% 10.3% inter: 10.6% 10.2% 0.3%
--[Information] [9/16/2016 2:14:43 AM] x264 [info]: i16 v,h,dc,p: 32% 20% 15% 33%
--[Information] [9/16/2016 2:14:44 AM] x264 [info]: i8 v,h,dc,ddl,ddr,vr,hd,vl,hu: 23% 17% 23% 4% 8% 8% 7% 6% 5%
--[Information] [9/16/2016 2:14:44 AM] x264 [info]: i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 30% 20% 15% 4% 7% 8% 6% 5% 4%
--[Information] [9/16/2016 2:14:44 AM] x264 [info]: i8c dc,h,v,p: 62% 16% 18% 4%
--[Information] [9/16/2016 2:14:44 AM] x264 [info]: Weighted P-Frames: Y:1.6% UV:0.6%
--[Information] [9/16/2016 2:14:44 AM] x264 [info]: ref P L0: 50.7% 14.7% 20.0% 6.1% 7.4% 1.1% 0.0%
--[Information] [9/16/2016 2:14:44 AM] x264 [info]: ref B L0: 80.6% 12.9% 4.2% 2.4%
--[Information] [9/16/2016 2:14:44 AM] x264 [info]: ref B L1: 96.1% 3.9%
--[Information] [9/16/2016 2:14:44 AM] x264 [info]: kb/s:500.01
--[Information] [9/16/2016 2:14:44 AM] encoded 242955 frames, 176.64 fps, 500.01 kb/s
-[Information] [9/16/2016 2:14:48 AM] Final statistics
--[Information] [9/16/2016 2:14:48 AM] Video Bitrate Desired: 500 kbit/s
--[Information] [9/16/2016 2:14:48 AM] Video Bitrate Obtained (approximate): 501 kbit/s
-[Information] [9/16/2016 2:14:48 AM] MediaInfo
--[Information] [9/16/2016 2:14:48 AM] File: F:\Encode\MP3\IENE-640.avi.mkv
--[Information] General
---[Information] Format: Matroska
---[Information] FormatString: Matroska
---[Information] FileSize: 508910943
---[Information] PlayTime: 02:15:14.326
--[Information] Video
---[Information] ID: 1
---[Information] StreamOrder: 0
---[Information] Width: 656
---[Information] Height: 368
---[Information] FrameCount: 243186
---[Information] FrameRate: 29.970
---[Information] FrameRateOriginal:
---[Information] FrameRateMode: CFR
---[Information] ScanType: Progressive
---[Information] Codec: V_MPEG4/ISO/AVC
---[Information] CodecString: AVC
---[Information] Bits Depth: 8
---[Information] Format: AVC
---[Information] AspectRatio: 1.783
---[Information] AspectRatioString: 16:9
---[Information] Delay: 0
---[Information] Title:
---[Information] Language: en
---[Information] LanguageString: English
---[Information] Default: Yes
---[Information] DefaultString: Yes
---[Information] Forced: No
---[Information] ForcedString: No
-[Information] [9/16/2016 2:14:48 AM] Postprocessing
--[Information] [9/16/2016 2:14:48 AM] Deleting intermediate files
---[Information] [9/16/2016 2:14:48 AM] Successfully deleted F:\Encode\MP3\IENE-640.avi.stats
---[Information] [9/16/2016 2:14:48 AM] Successfully deleted F:\Encode\MP3\IENE-640.avi.stats.mbtree
-[Information] [9/16/2016 2:14:48 AM] Job completed



Really really hope I can solve this issue :( as i have lots of vids with mp3 audio that needs to be encoded :(

Thanks in advance guys

LigH
16th September 2016, 11:59
Reading your MeGUI log, apparently you converted the video and created an MKV which contains only the video stream, but no audio stream. So far, so good ... and when did you multiplex any audio stream into this video-only MKV?

dc0yy
16th September 2016, 12:09
Reading your MeGUI log, apparently you converted the video and created an MKV which contains only the video stream, but no audio stream. So far, so good ... and when did you multiplex any audio stream into this video-only MKV?

after the encoding of the video I then proceed to mux the audio using what hello_hello and tebasuna51 told on the previous page, but both output have same result. already tried this with 2 videos with mp3 audio and both have the out of sync result :(

LigH
16th September 2016, 12:15
Did AviMux-GUI report a delay for the audio stream in the original video (after clicking "generate data source from files")?

Can you post a MediaInfo report of your copy, including the MP3 audio stream with the same delay applied while multiplexing?

dc0yy
16th September 2016, 12:22
Did AviMux-GUI report a delay for the audio stream in the original video (after clicking "generate data source from files")?

Can you post a MediaInfo report of your copy, including the MP3 audio stream with the same delay applied while multiplexing?

nope no delay was reported after clicking "generate data source from file"

here's the mediainfo


General
Unique ID : 234273560805996611129047592416800702547 (0xB03F7253F2C340AFA3915B98A6AC8053)
Complete name : F:\Encode\MP3\IENE-640.mkv
Format : Matroska
Format version : Version 2
File size : 609 MiB
Duration : 2 h 15 min
Overall bit rate : 630 kb/s
Encoded date : UTC 2016-09-16 09:35:04
Writing application : mkvmerge v8.5.2 ('Crosses') 32bit
Writing library : libebml v1.3.3 + libmatroska v1.4.4

Video
ID : 1
Format : AVC
Format/Info : Advanced Video Codec
Format profile : High@L3
Format settings, CABAC : Yes
Format settings, ReFrames : 5 frames
Codec ID : V_MPEG4/ISO/AVC
Duration : 2 h 15 min
Bit rate : 500 kb/s
Width : 656 pixels
Height : 368 pixels
Display aspect ratio : 16:9
Frame rate mode : Constant
Frame rate : 29.970 (30000/1001) FPS
Color space : YUV
Chroma subsampling : 4:2:0
Bit depth : 8 bits
Scan type : Progressive
Bits/(Pixel*Frame) : 0.069
Stream size : 484 MiB (79%)
Writing library : x264 core 148 r2638 7599210
Encoding settings : cabac=1 / ref=5 / deblock=1:-1:-1 / analyse=0x3:0x133 / me=umh / subme=6 / psy=1 / psy_rd=1.00:0.00 / mixed_ref=1 / me_range=16 / chroma_me=1 / trellis=2 / 8x8dct=1 / cqm=0 / deadzone=21,11 / fast_pskip=1 / chroma_qp_offset=-2 / threads=11 / lookahead_threads=1 / sliced_threads=0 / nr=0 / decimate=1 / interlaced=0 / bluray_compat=0 / constrained_intra=0 / bframes=3 / b_pyramid=2 / b_adapt=2 / b_bias=0 / direct=3 / weightb=1 / open_gop=0 / weightp=2 / keyint=299 / keyint_min=29 / scenecut=40 / intra_refresh=0 / rc_lookahead=40 / rc=2pass / mbtree=1 / bitrate=500 / ratetol=1.0 / qcomp=0.60 / qpmin=10 / qpmax=51 / qpstep=4 / cplxblur=20.0 / qblur=0.5 / ip_ratio=1.40 / aq=1:1.00
Language : English
Default : Yes
Forced : No

Audio
ID : 2
Format : MPEG Audio
Format version : Version 1
Format profile : Layer 3
Codec ID : A_MPEG/L3
Codec ID/Hint : MP3
Duration : 2 h 15 min
Bit rate mode : Constant
Bit rate : 128 kb/s
Channel(s) : 2 channels
Sampling rate : 48.0 kHz
Frame rate : 41.667 FPS (1152 spf)
Compression mode : Lossy
Stream size : 124 MiB (20%)
Default : Yes
Forced : No

hello_hello
16th September 2016, 12:29
It appears to be a frame rate issue, probably due to null (missing) frames. AVI doesn't support variable frame rate but if there's null (missing) frames that's how L-Smash and ffmsindex decode it by default, so if (for example) the frame rate was 25fps, each frame should display for 40ms. When there's a null frame, the frame before or after needs to display for 80ms. Instead, L-Smash and ffmsindex output the average frame rate for every frame, which might be 41ms or something similar. It only takes a few null frames to cause a noticeable sync problem.

-[Information] [9/16/2016 1:30:23 AM] frame rate: 209800/7007

Which is something like 29.94fps. I assume it should be 29.970fps?

Try modifying the line for opening the video in your script. Add the bits in blue below. If that's the problem it should fix it. Instead of averaging out the frame rate while decoding, any null frames will be replaced with duplicates. If you check the total number of frames in the preview, add the frame rate conversion and check again, the total frame count should change.

LWLibavVideoSource("F:\Encode\MP3\IENE-640.avi", fpsnum=30000, fpsden=1001)

When you index with ffmsindex MeGUI adds frame rate conversion automatically. You need to check it's correct, but unfortunately it was causing problems with AVI decoding and so ffmsindex was disabled for AVIs. If you remux as MKV first, you can index with ffmsindex, but check the script to make sure MeGUI is getting it right.

Sometimes, with frame rate conversion in the script, ffmsindex and L-Smash will drop and duplicate frames when they shouldn't (if the video is already constant frame rate and you convert to the same constant frame rate, it shouldn't change anything). If you notice jerky motion where it should be smooth, that's probably why. Fortunately (I use frame rate conversion a lot) if ffmsindex is producing jittery output, switching to L-Smash will solve the problem, and if it's L-Smash not getting it right, switching to ffmsindex is the solution. I don't think I've worked with any video where neither could convert the frame rate correctly.

If you have a codec installed for decoding, you can open the video with AviSource. Open the script creator, select an AVI as the input video and MeGUI should ask how you want to open it. AVISource is one of the options. AviSource replaces null frames automatically and outputs the correct constant frame rate. Just check the script to make sure the frame rate MeGUI adds to the script is correct.

Alternatively.... (although I think converting to constant frame rate in your case is a better idea)....
Open the source AVI with MKVToolNix and remux as MKV. Open the MKV with gMKVExtractGUI and extract the video timecodes (they extract as a text file). Encode the video without any frame rate conversion so the output has the same number of frames as the source. Open the output video with MKVToolNix and add the video timecodes file under the "timecodes and default duration" tab. When you remux, the extracted timecodes will be used and should give you the same "variable" frame rate as the source.

All the above assumes the source should be 29.970 and the "odd" output frame rate of 29.940 is the problem. If the source is really supposed to be 29.940 then I guess I typed all that for no reason.... :)

PS Don't use MediaInfo to check frame rates. It's reporting 29.970 but it seems to do a bit of rounding. Even your log file clearly shows the avs output as 209800/7007, but later on the MediaInfo section shows 29.970 for the encoded video. If you want to check it, opening the output video with MPC-HC as I suggested is pretty easy.

Also, the gMKVExtractGUI program I mentioned earlier will show you any delay for the video stream as well as the audio. I don't think that's your problem, but aside from gMKVExtractGUI and MKVCleaver most programs assume there's no video delay when extracting audio (including MeGUI). The programs I mentioned adjust the audio delay written to the extracted file accordingly if there is a video delay (ie if the audio delay is 100ms and there's also a 50ms video delay, they'll consider the audio delay to be only 50ms when extracting). Video delays aren't very common, and for AVI might even be impossible (I'm not sure) but I've seen quit a few MKVs where a delay has been applied to the video. There's no such thing as negative delays for MKVs, so if ever you see MediaInfo report a negative audio delay for an MKV it's no doubt because there's really a positive video delay, but MediaInfo shows it as a negative audio delay instead.

One last thought.... MKVToolNix won't mux non audio data in an MP3 stream and drops it instead. I don't understand the logic, but if there's non audio data at the beginning of the MP3 stream it drops it and compensates with a delay, but from then on it doesn't. If there's non-audio data here and there, which isn't particularly uncommon for MP3 in an AVI if it's been edited, dropping it can put the audio out of sync. MKVToolNix will display a warning though so you know it's happened, at least when muxing raw MP3 streams (I'm not sure about MP3 streams in an AVI or MP4). No warnings in the MKVToolnix log after muxing?

olif
2nd October 2016, 11:34
Hi. How can I create a "streamable" video, a web optimized video? In Handbrake it is a simple checkbox. In MeGui and StaxRip I am not able to find an equal option.
So YouTube could start to process a video while it is uploading.

Best regards

LigH
2nd October 2016, 11:49
MeGUI uses MP4Box to multiplex to MP4. MP4Box automatically uses "fast start" arrangement of chunks (index before data).

olif
2nd October 2016, 18:02
Thanks for your answer!
I heard this before. But - sorry - it does not match for me (!). YouTube is not able to process the video while uploading. When I use Handbrake, it is! So I know the difference.
A little bit weird because I really believe you, MP4Box does it for default.

sneaker_ger
2nd October 2016, 19:04
YouTube is not able to process the video while uploading.
How are you determining this?

dbtayag
4th October 2016, 06:31
How do you encode in 10-bit x265?

LigH
4th October 2016, 08:08
You may have to add the custom command line option "-D 10" to your x265 encoder configuration. MeGUI supports only few CLI options by dialog controls.

Abdelhachim
5th October 2016, 00:02
Hello,

I noticed a possible regression in development build (2634)...

When One-Click encoding a whole folder using L-SMASH indexer and two job workers, the second occurrence of the indexer abort (see log15574, Job7)...
It sound like a Reentrancy issue.

Workaround : I restart the aborted job (indexer) while the first worker is encoding video (x264)... and then, all the folder can be processed if there is not indexer concurrency.

NB : I installed the latest L-SMASH version on the Megui stable build (2624), but I can't reproduce the issue... So I think it is related to Megui 2634.

Kindly.
Abdel.

Thanks guys... Fixed in build 2641.

olif
5th October 2016, 14:12
How are you determining this?

Uploading the same video with the same settings (overall) show it. A video rendered with Handbrake is processed while uploading, so it is finished after the upload most of its part.
When I upload the "same video" created with Megui, YouTube starts processing only when the upload itself is complete. And this happened so often, I am sure it wasn't only a temporary delay cause of the utilization of YT.

j8ee
12th October 2016, 17:50
Anybody else having problems with l-smash and indexing large (>1 GB) wmv files?

Before update to latest l-smash a few days ago (r910, for the development megui branch) an index file was created but the avs script creator and megui crashed when trying to open it. I experienced this with all large wmv-files I came across, from different sources. Now the latest l-smash refuses to index those files, saying "Failed to avformat_open_input." ffmsindex seems to work just fine, but using it gives a warning about it not being recommended.

vinnytx
24th October 2016, 09:01
Hi,
Sometimes I encounter this error
https://i.imgsafe.org/2f8181fed6.jpg
I use AVS script creator and after I select a video I choose One Click Encoder. Then I set encoding preferences but when I click Ok it appears that error message.
It appears only with some videos. Here an example https://www.mediafire.com/?y74iw880h67iods

I'm not an expert MeGui user, so I do not know what are the important things to say.
Please, ask me

DatOneAnimeFan
25th October 2016, 21:48
Is anyone having problems with files encoded at hi444PP? I updated FFMS2 but not subtitles won't show up. Any fixes? Latest version of FFMS2 is 2.2.3. It came out 7 days ago but now subtitles won't show up.

Sent from my 5054N using Tapatalk

Zathor
30th October 2016, 20:05
Hi,
Sometimes I encounter this error
https://i.imgsafe.org/2f8181fed6.jpg
I use AVS script creator and after I select a video I choose One Click Encoder. Then I set encoding preferences but when I click Ok it appears that error message.
It appears only with some videos. Here an example https://www.mediafire.com/?y74iw880h67iods

I'm not an expert MeGui user, so I do not know what are the important things to say.
Please, ask me

Do you know how to reproduce it? I tried it with your steps but it did not happen.

vinnytx
1st November 2016, 05:05
Do you know how to reproduce it? I tried it with your steps but it did not happen.

I don't know why but that error message doesn't appear anymore, however MeGui doesn't complete the task. There is an error and the file isn't processed.
To reproduce the problem simply choose OneClick and select the video I posted. Then choose for both audio and video the settings you want. (I prefer for video x264 lossless mode and for audio I choose to not encode). Then start the job and MeGui doesn't process the video. In the log, I have this: "[Error] [01/11/2016 04:54:36] Process exits with error: 1"

LigH
1st November 2016, 09:20
I guess Zathor would like to see a complete log of one of such failed jobs.

Taurus
1st November 2016, 10:41
@vinnytx:
I've just tried your sample and it works flawless with the steps you mentioned.
And yes, without a complete logfile nobody can help you out...
And why lossless mode? The source file is of bad quality for a 1280x720 resolution. You cant get better like this with lossless mode.
Just my opinion...

vinnytx
1st November 2016, 11:18
What MeGui version do you use?

Here the log

[Error] Log
-[Information] Versions
--[Information] [01/11/2016 11:09:53] MeGUI: 2624
--[Information] [01/11/2016 11:09:53] Operating System: Windows 10 Professional x64 (10.0.0.14393)
--[Information] [01/11/2016 11:09:53] .NET Framework: 4.0 (4.0.0.0)
--[Information] [01/11/2016 11:09:53] .NET Framework: 4.6.x (4.6.01586)
--[Information] [01/11/2016 11:09:53] AviSynth+: 0.1 (26-04-2015)
--[Information] [01/11/2016 11:09:53] AvisynthWrapper: (02-01-2009)
--[Information] [01/11/2016 11:09:53] Haali Matroska Splitter: 1.13.138.14 (14-04-2013)
--[Information] [01/11/2016 11:09:53] Haali DSS2: (14-04-2013)
--[Information] [01/11/2016 11:09:53] ICSharpCode.SharpZipLib: 0.85.5.452 (07-08-2008)
--[Information] [01/11/2016 11:09:53] MediaInfo: 0.7.79.0 (02-11-2015)
--[Information] [01/11/2016 11:09:53] MediaInfoWrapper: 0.7.61.0 (06-01-2013)
--[Information] [01/11/2016 11:09:53] MessageBoxExLib: 1.0.2218.28317 (19-12-2008)
--[Information] [01/11/2016 11:09:53] SevenZipSharp: 0.64.3890.29348 (02-01-2011)
--[Information] [01/11/2016 11:09:53] 7z: 9.20 (18-11-2010)
-[Information] Update detection
--[Information] [01/11/2016 11:09:53] Using cached update config and server: http://megui.tmebi.de/stable/
--[Information] [01/11/2016 11:09:53] No package requires an update
-[Information] OneClick
--[Information] [01/11/2016 11:10:19] MediaInfo
---[Information] [01/11/2016 11:10:19] File: F:\Documenti\Video\Ace Ventura - L'acchiappanimali_0002.mp4
---[Information] General
----[Information] Format: MPEG-4
----[Information] FormatString: MPEG-4
----[Information] FileSize: 8848392
----[Information] PlayTime: 00:00:39.587
---[Information] Video
----[Information] ID: 1
----[Information] StreamOrder: 0
----[Information] Width: 1280
----[Information] Height: 720
----[Information] FrameCount: 949
----[Information] FrameRate: 23.976
----[Information] FrameRateOriginal:
----[Information] FrameRateMode: CFR
----[Information] ScanType: Progressive
----[Information] Codec: AVC
----[Information] CodecString: AVC
----[Information] Bits Depth: 8
----[Information] Format: AVC
----[Information] AspectRatio: 1.778
----[Information] AspectRatioString: 16:9
----[Information] Delay:
----[Information] Title:
----[Information] Language: en
----[Information] LanguageString: English
----[Information] Default:
----[Information] DefaultString:
----[Information] Forced:
----[Information] ForcedString:
---[Information] Audio
----[Information] ID: 2
----[Information] StreamOrder: 1
----[Information] Format: AAC
----[Information] FormatProfile: LC
----[Information] FormatSettingsSBR:
----[Information] FormatSettingsPS:
----[Information] SamplingRate: 44100
----[Information] SamplingRateString: 44.1 KHz
----[Information] Channels: 2
----[Information] ChannelsString: 2 channels
----[Information] ChannelPositionsString2: 2/0/0
----[Information] BitRateMode: VBR
----[Information] Delay:
----[Information] Title:
----[Information] Language: en
----[Information] LanguageString: English
----[Information] Default:
----[Information] DefaultString:
----[Information] Forced:
----[Information] ForcedString:
--[Information] [01/11/2016 11:11:58] MkvInfo
---[NoImage] File 'F:\Documenti\Video\Ace Ventura - L'acchiappanimali_0002.mp4': container: QuickTime/MP4 [container_type:25 is_providing_timecodes:1]
---[NoImage] Track ID 0: video (MPEG-4p10/AVC/h.264) [language:eng packetizer:mpeg4_p10_video pixel_dimensions:1280x720]
---[NoImage] Track ID 1: audio (AAC) [audio_bits_per_sample:16 audio_channels:2 audio_sampling_frequency:44100 language:eng]
--[Information] [01/11/2016 11:11:58] Video: F:\Documenti\Video\Ace Ventura - L'acchiappanimali_0002.mp4
--[Information] [01/11/2016 11:11:58] Audio: F:\Documenti\Video\Ace Ventura - L'acchiappanimali_0002.mp4 ([2] - AAC - 2 channels / 44.1 KHz / English)
-[Error] Log for job376 (mux, Ace Ventura - L'acchiappanimali_0002.mp4 -> Ace Ventura - L'acchiappanimali_0002.mkv)
--[Information] [01/11/2016 11:11:58] Started handling job
--[Information] [01/11/2016 11:11:58] Preprocessing
--[Information] [01/11/2016 11:11:58] MediaInfo
---[Information] [01/11/2016 11:11:58] File: F:\Documenti\Video\Ace Ventura - L'acchiappanimali_0002.mp4
---[Information] General
----[Information] Format: MPEG-4
----[Information] FormatString: MPEG-4
----[Information] FileSize: 8848392
----[Information] PlayTime: 00:00:39.587
---[Information] Video
----[Information] ID: 1
----[Information] StreamOrder: 0
----[Information] Width: 1280
----[Information] Height: 720
----[Information] FrameCount: 949
----[Information] FrameRate: 23.976
----[Information] FrameRateOriginal:
----[Information] FrameRateMode: CFR
----[Information] ScanType: Progressive
----[Information] Codec: AVC
----[Information] CodecString: AVC
----[Information] Bits Depth: 8
----[Information] Format: AVC
----[Information] AspectRatio: 1.778
----[Information] AspectRatioString: 16:9
----[Information] Delay:
----[Information] Title:
----[Information] Language: en
----[Information] LanguageString: English
----[Information] Default:
----[Information] DefaultString:
----[Information] Forced:
----[Information] ForcedString:
---[Information] Audio
----[Information] ID: 2
----[Information] StreamOrder: 1
----[Information] Format: AAC
----[Information] FormatProfile: LC
----[Information] FormatSettingsSBR:
----[Information] FormatSettingsPS:
----[Information] SamplingRate: 44100
----[Information] SamplingRateString: 44.1 KHz
----[Information] Channels: 2
----[Information] ChannelsString: 2 channels
----[Information] ChannelPositionsString2: 2/0/0
----[Information] BitRateMode: VBR
----[Information] Delay:
----[Information] Title:
----[Information] Language: en
----[Information] LanguageString: English
----[Information] Default:
----[Information] DefaultString:
----[Information] Forced:
----[Information] ForcedString:
--[Information] [01/11/2016 11:11:58] Job command line: "F:\Documenti\Download\Y - Video - Audio Editing\MeGUI_2624_x86\tools\mkvmerge\mkvmerge.exe" -o "F:\Documenti\Video\jjkycouw.42s\Ace Ventura - L'acchiappanimali_0002.mkv" "F:\Documenti\Video\Ace Ventura - L'acchiappanimali_0002.mp4" "--compression" "0:none" --ui-language en
--[Information] [01/11/2016 11:11:58] Process started
--[Warning] [01/11/2016 11:11:58] Standard output stream
---[Information] [01/11/2016 11:11:58] mkvmerge v8.5.2 ('Crosses') 32bit
---[Information] [01/11/2016 11:11:58] 'F:\Documenti\Video\Ace Ventura - L'acchiappanimali_0002.mp4': Using the demultiplexer for the format 'QuickTime/MP4'.
---[Warning] [01/11/2016 11:11:58] Warning: 'F:\Documenti\Video\Ace Ventura - L'acchiappanimali_0002.mp4' track 0: The AVC video track is missing the 'CTTS' atom for frame timecode offsets. However, AVC/h.264 allows frames to have more than the traditional one (for P frames) or two (for B frames) references to other frames. The timecodes for such frames will be out-of-order, and the 'CTTS' atom is needed for getting the timecodes right. As it is missing the timecodes for this track might be wrong. You should watch the resulting file and make sure that it looks like you expected it to.
---[Information] [01/11/2016 11:11:58] 'F:\Documenti\Video\Ace Ventura - L'acchiappanimali_0002.mp4' track 0: Using the output module for the format 'AVC/h.264'.
---[Information] [01/11/2016 11:11:58] 'F:\Documenti\Video\Ace Ventura - L'acchiappanimali_0002.mp4' track 1: Using the output module for the format 'AAC'.
---[Information] [01/11/2016 11:11:58] The file 'F:\Documenti\Video\jjkycouw.42s\Ace Ventura - L'acchiappanimali_0002.mkv' has been opened for writing.
---[Information] [01/11/2016 11:11:58] 'F:\Documenti\Video\Ace Ventura - L'acchiappanimali_0002.mp4' track 0: Extracted the aspect ratio information from the MPEG-4 layer 10 (AVC) video data and set the display dimensions to 1280/720.
---[Information] [01/11/2016 11:11:58] The cue entries (the index) are being written...
---[Information] [01/11/2016 11:11:58] Muxing took 0 seconds.
--[Information] [01/11/2016 11:11:58] Standard error stream
--[Error] [01/11/2016 11:11:58] Process exits with error: 1
--[Information] [01/11/2016 11:11:58] Job completed

Taurus
1st November 2016, 15:13
vinnytx;1784479]What MeGui version do you use?
Latest MeGui 2652 from development server with all available updates.

vinnytx
1st November 2016, 17:23
Please, can you send me the download link?
Have you checked my log?

vinnytx
1st November 2016, 18:50
Ok, I updated MeGui from development server and now everything works well.
Thank you very much for your support

Rat Killer
8th November 2016, 00:19
Would like some suggestions.

I often find myself converting mkv files to mp4 for my Tivo. Usually the h.264 video is fine in the original file, only the audio needing changed to ac3.

I can do this with a oneclick profile and get the desired result, or mostly. Often the resulting file the audio and video are no longer in sync.

Is there a better way to do this so the audio and video are indexed and stay in sync as the original file was?

Thunderbolt8
10th November 2016, 00:34
Im on Windows 8.1 64-bit, how can I find out whether MeGUI uses the 32-bit or 64-bit version of ffms2?

LigH
10th November 2016, 08:08
A 64 bit version of FFMS2 could only be used on a 64 bit version of AviSynth+ (note the plus), but MeGUI is based on 32 bit versions of AviSynth, relying on some plugins only available in 32 bit. Some 64 bit encoders are called via pipe bridges to be able to read from the output of 32 bit AviSynth.

In contrast to MeGUI, StaxRip x64 moved to AviSynth+ 64 bit base support.

VoodooFX
10th November 2016, 18:01
Noticed that MEGUI doing anamorphic encoding doesn't write in DAR to x265 video encode, is this bug or normal behaviour?

LigH
10th November 2016, 18:48
Both x264 and x265 use an SAR parameter (Sample Aspect Ratio = skewing factor), not DAR (resulting Display Aspect Ratio). If the used x265 version has no bug in this area, it should have both an SAR header flag which MediaInfo should be able to report, and an SAR parameter in the auxiliary encoder parameters string.

MeGUI would use DAR values in the AviSynth script only as internal "reminder", they don't affect the filtering.

VoodooFX
10th November 2016, 21:40
Both x264 and x265 use an SAR parameter (Sample Aspect Ratio = skewing factor), not DAR (resulting Display Aspect Ratio).

DAR is written to mkv header. So MEGUI writes DAR to x264 encodes, but not to x265.

LigH
10th November 2016, 21:53
No ... as you said, to MKV, not x265. So it's a matter of the container, not the video content.

To conclude: You say that MeGUI forgets a DAR when multiplexing HEVC into MKV? Do you have a full log of such a session?

VoodooFX
10th November 2016, 22:12
To conclude: You say that MeGUI forgets a DAR when multiplexing HEVC into MKV? Do you have a full log of such a session?

Yes

Log:

-[Information] Versions
--[Information] [10/11/2016 21:09:03] MeGUI: 2663
--[Information] [10/11/2016 21:09:03] Operating System: Windows 7 Ultimate Edition x64 SP1 (6.1.65536.7601)
--[Information] [10/11/2016 21:09:03] .NET Framework: 4.0 (4.0.0.0)
--[Information] [10/11/2016 21:09:03] .NET Framework: 4.5.x (4.5.51209)
-[Information] Update detection
--[Information] [10/11/2016 21:09:03] Using cached update config and server: http://megui.tmebi.de/test/
--[Information] [10/11/2016 21:09:03] There is 1 package which can be updated: x265
--[Information] [10/11/2016 21:09:03] AviSynth: 2.5.8.5 (21-12-2008)
--[Information] [10/11/2016 21:09:03] AviSynth portable: 2.6.0.6 (21-09-2015) (active)
--[Information] [10/11/2016 21:09:03] AvisynthWrapper: (02-01-2009)
--[Information] [10/11/2016 21:09:03] Haali Matroska Splitter: 1.13.138.14 (14-04-2013)
--[Information] [10/11/2016 21:09:03] Haali DSS2: (14-04-2013)
--[Information] [10/11/2016 21:09:03] ICSharpCode.SharpZipLib: 0.85.5.452 (07-08-2008)
--[Information] [10/11/2016 21:09:03] MediaInfo: 0.7.90.0 (31-10-2016)
--[Information] [10/11/2016 21:09:03] MediaInfoWrapper: 0.7.61.0 (06-01-2013)
--[Information] [10/11/2016 21:09:03] MessageBoxExLib: 1.0.2218.28317 (19-12-2008)
--[Information] [10/11/2016 21:09:03] SevenZipSharp: 0.64.3890.29348 (02-01-2011)
--[Information] [10/11/2016 21:09:03] 7z: 9.20 (18-11-2010)
-[Information] Log for job1 (video, zzzz.avs -> zzzz.hevc)
--[Information] [10/11/2016 21:09:31] Started handling job
--[Information] [10/11/2016 21:09:31] Preprocessing
-[NoImage] # Set DAR in encoder to 160 : 117. The following line is for automatic signalling
-[NoImage] global MeGUI_darx = 160
-[NoImage] global MeGUI_dary = 117
-[NoImage] LoadPlugin("C:\Program Files (x86)\MeGUI\tools\dgindex\DGDecode.dll")
-[NoImage] DGDecode_mpeg2source("E:\Downloads\predators\zzzz.d2v", info=3)
-[NoImage] LoadPlugin("C:\Program Files (x86)\MeGUI\tools\avisynth_plugin\ColorMatrix.dll")
-[NoImage] ColorMatrix(hints=true, threads=0)
-[NoImage] #deinterlace
-[NoImage] #crop
-[NoImage] #resize
-[NoImage] #denoise
--[Information] [10/11/2016 21:09:31] Avisynth input script
--[Information] [10/11/2016 21:09:31] resolution: 720x576
--[Information] [10/11/2016 21:09:31] frame rate: 25/1
--[Information] [10/11/2016 21:09:31] aspect ratio: 160:117 (1.368)
--[Information] [10/11/2016 21:09:31] custom command line: --no-sao --no-amp --b-intra --ctu 32 --max-tu-size 16 --merange 44 --deblock=0:0
--[Information] [10/11/2016 21:09:31] Job command line: "C:\Program Files (x86)\MeGUI\tools\x265\avs4x265.exe" --x265-binary "C:\Program Files (x86)\MeGUI\tools\x265\x64\x265.exe" --crf 23.0 --no-sao --no-amp --b-intra --ctu 32 --max-tu-size 16 --merange 44 --deblock=0:0 --output "E:\Downloads\predators\zzzz.hevc" "E:\Downloads\predators\zzzz.avs"
--[Information] [10/11/2016 21:09:31] Process started
--[Information] [10/11/2016 21:09:31] Standard output stream
--[Information] [10/11/2016 21:09:31] Standard error stream
---[Information] [10/11/2016 21:09:32] yuv [info]: 720x576 fps 25/1 i420p8 unknown frame count
---[Information] [10/11/2016 21:09:32] raw [info]: output file: E:\Downloads\predators\zzzz.hevc
---[Information] [10/11/2016 21:09:32] x265 [info]: HEVC encoder version 2.1+9-a2d5144476be3aa6
---[Information] [10/11/2016 21:09:32] x265 [info]: build info [Windows][GCC 6.2.0][64 bit] 8bit
---[Information] [10/11/2016 21:09:32] x265 [info]: Compiling by KG7x [x265.ru]
---[Information] [10/11/2016 21:09:32] x265 [info]: using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 AVX
---[Information] [10/11/2016 21:09:32] x265 [info]: Main profile, Level-3 (Main tier)
---[Information] [10/11/2016 21:09:32] x265 [info]: Thread pool created using 4 threads
---[Information] [10/11/2016 21:09:32] x265 [info]: Slices : 1
---[Information] [10/11/2016 21:09:32] x265 [info]: frame threads / pool features : 2 / wpp(18 rows)
---[Warning] [10/11/2016 21:09:32] x265 [warning]: Source height < 720p; disabling lookahead-slices
---[Information] [10/11/2016 21:09:32] x265 [info]: Coding QT: max CU size, min CU size : 32 / 8
---[Information] [10/11/2016 21:09:32] x265 [info]: Residual QT: max TU size, max depth : 16 / 1 inter / 1 intra
---[Information] [10/11/2016 21:09:32] x265 [info]: ME / range / subpel / merge : hex / 44 / 2 / 2
---[Information] [10/11/2016 21:09:32] x265 [info]: Keyframe min / max / scenecut : 25 / 250 / 40
---[Information] [10/11/2016 21:09:32] x265 [info]: Lookahead / bframes / badapt : 20 / 4 / 2
---[Information] [10/11/2016 21:09:32] x265 [info]: b-pyramid / weightp / weightb : 1 / 1 / 0
---[Information] [10/11/2016 21:09:32] x265 [info]: References / ref-limit cu / depth : 3 / on / on
---[Information] [10/11/2016 21:09:32] x265 [info]: AQ: mode / str / qg-size / cu-tree : 1 / 1.0 / 32 / 1
---[Information] [10/11/2016 21:09:32] x265 [info]: Rate Control / qCompress : CRF-23.0 / 0.60
---[Information] [10/11/2016 21:09:32] x265 [info]: tools: rd=3 psy-rd=2.00 rskip signhide tmvp b-intra
---[Information] [10/11/2016 21:09:32] x265 [info]: tools: strong-intra-smoothing deblock
---[Information] [10/11/2016 21:09:56] x265 [info]: frame I: 10, Avg QP:23.19 kb/s: 2378.66
---[Information] [10/11/2016 21:09:56] x265 [info]: frame P: 110, Avg QP:25.30 kb/s: 1307.83
---[Information] [10/11/2016 21:09:56] x265 [info]: frame B: 303, Avg QP:29.82 kb/s: 394.28
---[Information] [10/11/2016 21:09:56] x265 [info]: Weighted P-Frames: Y:1.8% UV:1.8%
---[Information] [10/11/2016 21:09:56] x265 [info]: consecutive B-frames: 15.8% 7.5% 23.3% 15.0% 38.3%
---[Information] [10/11/2016 21:09:56] encoded 423 frames in 24.52s (17.25 fps), 678.76 kb/s, Avg QP:28.49
---[Information] [10/11/2016 21:09:56] avs [info]: AviSynth 2.58, build:Dec 22 2008 [08:46:51]
---[Information] [10/11/2016 21:09:56] avs [info]: Video colorspace: YV12
---[Information] [10/11/2016 21:09:56] avs [info]: Video resolution: 720x576
---[Information] [10/11/2016 21:09:56] avs [info]: Video framerate: 25/1
---[Information] [10/11/2016 21:09:56] avs [info]: Video framecount: 423
---[Information] [10/11/2016 21:09:56] avs4x265 [info]: "C:\Program Files (x86)\MeGUI\tools\x265\x64\x265.exe" - --frames 423 --fps 25/1 --input-res 720x576 --input-csp i420 --crf 23.0 --no-sao --no-amp --b-intra --ctu 32 --max-tu-size 16 --merange 44 --deblock=0:0 --output E:\Downloads\predators\zzzz.hevc
--[Information] [10/11/2016 21:09:57] Final statistics
---[Information] [10/11/2016 21:09:57] Constant Quality Mode: Quality 23 computed...
---[Information] [10/11/2016 21:09:57] Video Bitrate Obtained (approximate): 680 kbit/s
--[Information] [10/11/2016 21:09:57] MediaInfo
---[Information] [10/11/2016 21:09:57] File: E:\Downloads\predators\zzzz.hevc
-[Information] Format: HEVC
-[Information] FormatString: HEVC
-[Information] FileSize: 1438365
-[Information] PlayTime:
---[Information] General
-[Information] ID:
-[Information] StreamOrder:
-[Information] Width: 720
-[Information] Height: 576
-[Information] FrameCount:
-[Information] FrameRate: 25.000
-[Information] FrameRateOriginal:
-[Information] FrameRateMode:
-[Information] ScanType:
-[Information] Codec: HEVC
-[Information] CodecString: HEVC
-[Information] Bits Depth: 8
-[Information] Format: HEVC
-[Information] AspectRatio: 1.250
-[Information] AspectRatioString: 5:4
-[Information] Delay:
-[Information] Title:
-[Information] Language:
-[Information] LanguageString:
-[Information] Default:
-[Information] DefaultString:
-[Information] Forced:
-[Information] ForcedString:
---[Information] Video
--[Information] [10/11/2016 21:09:57] Postprocessing
---[Information] [10/11/2016 21:09:57] Deleting intermediate files
--[Information] [10/11/2016 21:09:57] Job completed
-[Information] Log for job2 (mux, zzzz.hevc -> zzzz.mkv)
--[Information] [10/11/2016 21:09:57] Started handling job
--[Information] [10/11/2016 21:09:57] Preprocessing
--[Information] [10/11/2016 21:09:57] MediaInfo
---[Information] [10/11/2016 21:09:57] File: E:\Downloads\predators\zzzz.hevc
-[Information] Format: HEVC
-[Information] FormatString: HEVC
-[Information] FileSize: 1438365
-[Information] PlayTime:
---[Information] General
-[Information] ID:
-[Information] StreamOrder:
-[Information] Width: 720
-[Information] Height: 576
-[Information] FrameCount:
-[Information] FrameRate: 25.000
-[Information] FrameRateOriginal:
-[Information] FrameRateMode:
-[Information] ScanType:
-[Information] Codec: HEVC
-[Information] CodecString: HEVC
-[Information] Bits Depth: 8
-[Information] Format: HEVC
-[Information] AspectRatio: 1.250
-[Information] AspectRatioString: 5:4
-[Information] Delay:
-[Information] Title:
-[Information] Language:
-[Information] LanguageString:
-[Information] Default:
-[Information] DefaultString:
-[Information] Forced:
-[Information] ForcedString:
---[Information] Video
--[Information] [10/11/2016 21:09:57] Job command line: "C:\Program Files (x86)\MeGUI\tools\mkvmerge\mkvmerge.exe" -o "E:\Downloads\predators\zzzz.mkv" "E:\Downloads\predators\zzzz.hevc" "--compression" "0:none" --ui-language en
--[Information] [10/11/2016 21:09:57] Process started
--[Information] [10/11/2016 21:09:57] Standard output stream
--[Information] [10/11/2016 21:09:57] Standard error stream
---[Information] [10/11/2016 21:09:57] mkvmerge v9.5.0 ('Quiet Fire') 32bit
---[Information] [10/11/2016 21:09:57] 'E:\Downloads\predators\zzzz.hevc': Using the demultiplexer for the format 'HEVC/h.265'.
---[Information] [10/11/2016 21:09:57] 'E:\Downloads\predators\zzzz.hevc' track 0: Using the output module for the format 'HEVC/h.265 (unframed)'.
---[Information] [10/11/2016 21:09:57] The file 'E:\Downloads\predators\zzzz.mkv' has been opened for writing.
---[Information] [10/11/2016 21:09:57] The cue entries (the index) are being written...
---[Information] [10/11/2016 21:09:57] Muxing took 0 seconds.
--[Information] [10/11/2016 21:09:57] MediaInfo
---[Information] [10/11/2016 21:09:57] File: E:\Downloads\predators\zzzz.mkv
-[Information] Format: Matroska
-[Information] FormatString: Matroska
-[Information] FileSize: 1448444
-[Information] PlayTime: 00:00:16.920
---[Information] General
-[Information] ID: 1
-[Information] StreamOrder: 0
-[Information] Width: 720
-[Information] Height: 576
-[Information] FrameCount: 423
-[Information] FrameRate: 25.000
-[Information] FrameRateOriginal:
-[Information] FrameRateMode: CFR
-[Information] ScanType:
-[Information] Codec: V_MPEGH/ISO/HEVC
-[Information] CodecString: V_MPEGH/ISO/HEVC
-[Information] Bits Depth: 8
-[Information] Format: HEVC
-[Information] AspectRatio: 1.250
-[Information] AspectRatioString: 5:4
-[Information] Delay: 0
-[Information] Title:
-[Information] Language:
-[Information] LanguageString:
-[Information] Default: Yes
-[Information] DefaultString: Yes
-[Information] Forced: No
-[Information] ForcedString: No
---[Information] Video
--[Information] [10/11/2016 21:09:57] Postprocessing
-[Information] [10/11/2016 21:09:57] Successfully deleted E:\Downloads\predators\zzzz.hevc
---[Information] [10/11/2016 21:09:57] Deleting intermediate files
--[Information] [10/11/2016 21:09:57] Job completed

hello_hello
11th November 2016, 04:22
If I remember correctly, MeGUI specifies the aspect ratio when muxing to MKV but it shouldn't need to. As long as the correct --sar is set when encoding, MeGUI/MKVToolNix will automatically use that aspect ratio when muxing.

MeGUI doesn't seem to be setting the correct aspect ratio for anamorphic x265 encoding. I assume it's not been implemented yet, but you can set it yourself in the x265 encoder configuration.

You can set the sample aspect ratio (pixel aspect ratio) for the x265 encoder in two ways. As a number from the preset list of SARs here:
http://x265.readthedocs.io/en/default/cli.html#vui-video-usability-information-options
so
--sar 2
or
--sar 12:11
would be the same.

Both will give you the correct aspect ratio in the above example (4:3 PAL). I used the mpeg4 PARs (SARs) from this list as a reference:
http://forum.doom9.org/showthread.php?p=1058927#post1058927

or you can set any custom ratio. ie
--sar 4025:3501

You can keep using the PARs if you crop, but not if you resize with the anamorphic resizing option. Resizing changes the PAR.

PAL 4:3, --sar 2, or --sar 12:11
NTSC 4:3, --sar 3, or --sar 10:11
PAL 16:9 --sar 4, or --sar 16:11
NTSC 16:9 --sar 5, or --sar 40:33

If you want to use the same PARs/SARs as MeGUI's script creator would use (it doesn't use the mpeg4 PARs, but the old ITU PARs), they're the "almost exact ITU" PARs, or the second list of PARs in the doom9 post I linked to, so you'd specify:

PAL 4:3, --sar 128:117
NTSC 4:3, --sar 4320:4739
PAL 16:9 --sar 512:351
NTSC 16:9 --sar 5760:4739

They're very similar to the mpeg4 PARs/SARs, so it's no big deal which you use, although if --sar 128:117 was used for the x264 encoder and Bluray was selected as the target playback device, it'd be "corrected" to --sar 12:11 for Bluray compliance. I'd go with the mpeg4 PARs myself, and hopefully one day MeGUI's script creator will do the same.

Until x265 anamorphic encoding is implemented, open the x265 encoder configuration and add the appropriate --sar to the custom command line section under the Misc tab.

For the record, the following in an Avisynth script is the display aspect ratio, not the SAR/PAR. MeGUI uses it to work out the correct SAR/PAR... well for x264 it does.

global MeGUI_darx = 160
global MeGUI_dary = 117

VoodooFX
11th November 2016, 17:55
Thx for explanation. I checked log for x264 anamorphic encode and looks like MEGui automatically adds proper "--sar" command to x264 job command line. Now I use MKVToolNix's header editor to set correct DAR in mkv for x265 encoded files.

btw I submitted feature request:
https://sourceforge.net/p/megui/feature-requests/601/

hello_hello
11th November 2016, 18:09
Now I use MKVToolNix's header editor to set correct DAR in mkv for x265 encoded files.

If you're not setting the --sar for the x265 encoder, I would.
There's two places the SAR can be written. The video stream and the container. Players have to pick one to use if they're not the same or it's only specified on one place.
If you set the correct SAR when encoding, MKVToolNix should automatically use the same SAR when muxing, so both SARs will be the same and there shouldn't be any issues.

By default the LAV video decoder used by MPC-HC uses the container aspect ratio if there is one, and the stream aspect ratio if there's not, which is probably fairly standard but it can't hurt to be sure.

btw I submitted feature request:
https://sourceforge.net/p/megui/feature-requests/601/

I submitted a feature request for MeGUI to use the mpeg4 SARs instead of the ITU SARs a while back, given we're using MeGUI for mpeg4 encoding and they're Bluray compliant. Maybe that'll happen when anamorphic x265 encoding is implemented. ;) Chances are if a DVD isn't created using the generic SARs these days, it'd be created using the mpeg4 SARs.
In the mean time if you want to use them in the script creator you can create a couple of custom Input Display aspect ratios as per the screenshot below. There's only one required for 4:3 and one for 16:9. They result in the correct mpeg4 SARs for both PAL and NTSC. Of course they'll only work for x264 encoding at the moment.

http://i67.tinypic.com/2cql54m.gif

The x265 encoder seems to have settled down, feature wise, so hopefully Zathor will have time to implement a full x265 encoder configuration in the GUI sometime soon.

Edit One more thought, I'm not sure if there's a huge advantage to using x265 for standard definition encoding. I ran some test encodes a little while back, CRF18 for both encoders (although I used tune film and preset slow for x264) and while x265 resulted in nearly half the bitrate, it looked like I'd used a noise filter compared to x264. Lots of fine detail was blurred away. Chances are at similar bitrates they'll be similar (I haven't done any testing there yet) but if that's the case there'd be no huge advantage to x265 for standard definition, except.....
It doesn't look like 10 bit h264 decoding is ever going to become mainstream for standalone players, whereas for h265 it probably will. Intel's next round of CPUs will support 8 bit h264 and h265 hardware decoding, and 10 bit h265 hardware decoding. Therefore if I was going to encode standard definition with x265, I'd probably use 10 bit encoding. You might still need to use similar bitrates to x264 to retain a similar amount of detail, but 10 bit should prevent a lot of colour banding when encoding.

There's no option in MeGUI's encoder configuration for 10 bit x265 encoding yet, but you can add it to the custom command line section yourself.
--profile main10
will get x265 to switch to 10 bit encoding.

Just a thought.....

VoodooFX
11th November 2016, 18:24
Will do that in future, I just didn't want to encode again videos done without --sar.

Zathor
20th November 2016, 16:51
Please try out the recent version. --sar support is now included for x265

VoodooFX
21st November 2016, 00:22
Please try out the recent version. --sar support is now included for x265

Tried it, everything good. Thanx.

Glarioo
21st November 2016, 19:37
How can i use DGIndexNV? I have a license.text file copied in "tools\dgindexnv" directory of MeGUI.
Can i use DGIndexNV in One-Click mode?

Glarioo
21st November 2016, 21:15
How can i use DGIndexNV? I have a license.text file copied in "tools\dgindexnv" directory of MeGUI.
Can i use DGIndexNV in One-Click mode?

Don't bother. I got DGIndexNV working.