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

jlw_4049
1st February 2021, 16:14
Hello, I used to encode videos to x264 with One Click Encoder, Constant Quality, in x264 config page, of around 22.0, and this 30 minute tv recording used to come out to around 900+ kbps and 200-250 MB. I encode the same exact show and now the end result is 600 kbps video and 70-80 MB and the video looks super bad.



Was there a recent change to the profiles or something? I ask because I recently upgraded MeGUI from 2828 to 2913. First time I upgraded it in like 2+ years I think. I am wondering if this related.Probably the x264 version change

Sent from my SM-G986U1 using Tapatalk

hello_hello
1st February 2021, 16:42
Hello, I used to encode videos to x264 with One Click Encoder, Constant Quality, in x264 config page, of around 22.0, and this 30 minute tv recording used to come out to around 900+ kbps and 200-250 MB. I encode the same exact show and now the end result is 600 kbps video and 70-80 MB and the video looks super bad.

Was there a recent change to the profiles or something? I ask because I recently upgraded MeGUI from 2828 to 2913. First time I upgraded it in like 2+ years I think. I am wondering if this related.

Last year someone at VideoHelp upgraded to 2913 and complained about inconsistent file sizes when encoding the same video more than once.
https://forum.videohelp.com/threads/399221-MeGUI-x264-Avisynth-encodings-keep-coming-out-at-different-filesizes

Maybe the bundled x264 is broken, or whatever MeGUI uses to pipe the script output to the encoder these days (ffmpeg?).
I'm still on XP and for 32 bit windows there's no middle man. The script output is piped directly to the encoder. I'm using MeGUI 2913 though, and the file sizes are fine (although I think I rolled x264 back to the previous version as the bundled one no longer runs on XP).

I'd suggest rolling x264 back to the previous version and if that doesn't fix it, try rolling back ffmpeg or whatever MeGUI uses these days, assuming you're running a 64 bit version of Windows. 32 bit MeGUI encodes with 64 bit x264 on 64 bit Windows, and I think it uses ffmpeg to pipe the video to the encoder. I've no idea if the same applies to the 64 bit version of MeGUI.

Go
3rd February 2021, 07:56
Hi,

1) I want to re-encode a lot of video files (FROM mpeg2-mkv TO avc-mkv). The only requirement is: output bitrate should be half of original (i.e. twice smaller).
All original files has different bitrate, so output bitrate should be calculated somehow. But how?

2) How to preserve tags (Movie name, Released date, Comment, DIRECTOR, Url, WRITTEN_BY) from original mkv-files? New encoded files doesn't contain these tags.

Thank you in advance!

StainlessS
8th February 2021, 17:40
Go,
This don't comply with your requirements, but as no-one else replied I thought might be something to play with.
Maybe you can make some use of it.

Go.Bat [see REM's ie REMarks]

REM We DO NOT LIKE SPACES IN FILE NAMES (REM == REMark ie comment)
REM We DO NOT LIKE ACCENTS IN FILE NAMES.

setlocal

REM Where to Find ffmpeg
set FFMPEG="C:\BIN\ffmpeg.exe"

REM Where to get INPUT files, No terminating Backslash, "." = current directory (ie same as dir .bat file)
set INDIR="."


REM Where to place OUTPUT files, No terminating Backslash. "." would be same as .bat file, ".\OUTPUT" = OUTPUT folder in same directory as bat file.
set OUTDIR=".\OUTPUT"


REM OUTPUT:- Video: codec=x264, Preset=Slow, CRF=23, Audio: aac 96Kb/s, Output in mkv container
SET VCODEC=libx264
SET PRESET=slow
SET CRF=23
SET ABITRATE=96K
SET CONTAINER=MKV

REM Below, can add INPUT extensions as eg *.avi (SPACE separated, Batch Processes all INPUT type files in INDIR)

FOR %%A IN (*.mpg *.mpeg *.mkv *.mp4) DO (
%FFMPEG% -i "%INDIR%\%%A" -vcodec %VCODEC% -preset %PRESET% -crf %CRF% -acodec aac -b:a %ABITRATE% "%OUTDIR%\%%~nxA.%CONTAINER%"
)

Pause


Try changing SET CRF=23 line, lower for higher quality and bitrate.

LouieChuckyMerry
9th February 2021, 04:49
Update the update.xml file in update_cache subfolder as
<ffms type="file" requiredbuild="2624" build="64">
<filepath date="2021-01-17" version="20201123">ffms2-20201123-64.7z</filepath>
</ffms>


Thanks for that. :)

AOmundson
14th March 2021, 17:23
I keep getting a Process exits with error: 0xC0000005 STATUS_ACCESS_VIOLATION(-1073741819) message around two hours through rendering. This started happening after I installed FFmpeg into my C-drive in order to properly encode using VapourSynth, but I have its package disabled on MeGUI. In addition, this error only occurs with these two files I'm attempting to render (it successfully renders DVD files and smaller BD files), but I've succeeded in being able to render them previously, but in that case, I was rendering them into 10bit and here I'm rendering them into 8bit. I'm unsure if this is an issue where MeGUI will simply fail rendering if left running too long or what.

MediaInfo:
Video
ID : 1
Format : AVC
Format/Info : Advanced Video Codec
Format profile : High@L4.1
Format settings : CABAC / 4 Ref Frames
Format settings, CABAC : Yes
Format settings, Reference frames : 4 frames
Codec ID : V_MPEG4/ISO/AVC
Duration : 30 min 1 s
Bit rate mode : Variable
Bit rate : 14.1 Mb/s
Maximum bit rate : 30.0 Mb/s
Width : 1 920 pixels
Height : 1 080 pixels
Display aspect ratio : 16:9
Frame rate mode : Variable
Frame rate : 59.940 (60000/1001) FPS
Original frame rate : 29.970 (30000/1001) FPS
Standard : NTSC
Color space : YUV
Chroma subsampling : 4:2:0
Bit depth : 8 bits
Scan type : Interlaced
Scan type, store method : Separated fields
Scan order : Top Field First
Bits/(Pixel*Frame) : 0.114
Stream size : 2.96 GiB (100%)
Default : Yes
Forced : No
Color range : Limited
Color primaries : BT.709
Transfer characteristics : BT.709
Matrix coefficients : BT.709

AVS File:
LoadPlugin("E:\MeGUI-2913-64\TDeint.dll")
LoadPlugin("E:\MeGUI-2913-64\RgTools.dll")
LoadPlugin("E:\MeGUI-2913-64\nnedi3.dll")
LoadPlugin("E:\MeGUI-2913-64\DePanEstimate.dll")
LoadPlugin("E:\MeGUI-2913-64\DePan.dll")
LoadPlugin("E:\MeGUI-2913-64\mvtools2.dll")
LoadPlugin("E:\MeGUI-2913-64\masktools2.dll")
LoadPlugin("E:\MeGUI-2913-64\tools\lsmash\LSMASHSource.dll")
LWLibavVideoSource("D:\Video\1 (1).mkv")
#deinterlace
crop(236, 4, -236, 0)
#resize
#denoise
import("E:\MeGUI-2913-64\SMDegrain.avsi")
import("E:\MeGUI-2913-64\QTGMC.avsi")
QTGMC( Preset="Slow", SourceMatch=3, Lossless=2, TR2=2 )
SelectEven()

x264 Config:
https://i.imgur.com/a8GaF3A.png

stax76
14th March 2021, 18:37
Maybe memory access violation, I would take a look in Windows Event Viewer, maybe it has a log telling in which module it happened. It can be an avs or filter or hardware or source file issue.

AOmundson
14th March 2021, 22:30
Event Viewer didn't record anything, but it was able to finish rendering when I had deinterlacing turned off. This is fine except the whole reason I'm using the current script is that I'm trying to deinterlace the footage.

New Script:
LoadPlugin("E:\MeGUI-2913-64\TDeint.dll")
LoadPlugin("E:\MeGUI-2913-64\RgTools.dll")
LoadPlugin("E:\MeGUI-2913-64\nnedi3.dll")
LoadPlugin("E:\MeGUI-2913-64\DePanEstimate.dll")
LoadPlugin("E:\MeGUI-2913-64\DePan.dll")
LoadPlugin("E:\MeGUI-2913-64\mvtools2.dll")
LoadPlugin("E:\MeGUI-2913-64\masktools2.dll")
LoadPlugin("E:\MeGUI-2913-64\tools\lsmash\LSMASHSource.dll")
LWLibavVideoSource("D:\Video\1.mkv")
#deinterlace
crop(238, 6, -238, -2)
#resize
#denoise
import("E:\MeGUI-2913-64\SMDegrain.avsi")
import("E:\MeGUI-2913-64\QTGMC.avsi")
QTGMC( Preset="Slow", SourceMatch=3, InputType=1, Lossless=0, TR2=2 )

Should I just run it through the new script then re-render it through the deinterlacing script?

LeXXuz
17th March 2021, 22:37
Just a wild guess, but some filters still don't like resolutions not divisible by 16 or at least by 8.

Try to crop(240,6,-240,-2) from your 1080p source and see if that may help.

chronis
27th March 2021, 04:28
Hi,
My source audio is AAC 128kbps VBR and I'd like to slow it down from 25 to 24 in MeGUI, but I want to preserve the original bitrate with VBR and MeGUI only offers "quality" adjuster for VBR. Is there no way to set the target bitrate?

I could just set it to 128 CBR, but I don't know if it's appropriate to re-encode VBR to CBR (not sure if there are drawbacks).

https://i.imgur.com/3fL1E0u.jpg

jlw_4049
27th March 2021, 05:20
Hi,

My source audio is AAC 128kbps VBR and I'd like to slow it down from 25 to 24 in MeGUI, but I want to preserve the original bitrate with VBR and MeGUI only offers "quality" adjuster for VBR. Is there no way to set the target bitrate?



I could just set it to 128 CBR, but I don't know if it's appropriate to re-encode VBR to CBR (not sure if there are drawbacks).



https://i.imgur.com/3fL1E0u.jpgEncoding anything from 128k to anything else will have major draw backs. Slowing the audio down or speeding it up is impossible without re encoding.

Sent from my SM-G986U1 using Tapatalk

chronis
27th March 2021, 18:11
Encoding anything from 128k to anything else will have major draw backs. Slowing the audio down or speeding it up is impossible without re encoding.

Sent from my SM-G986U1 using Tapatalk

Yes, I'm aware that 128 is low quality to begin with, but let's say then that I have 384kbps audio instead. My question is can I set the target bitrate in MeGUI for VBR? If not, which other program can I use?

And my secondary question was, when converting from VBR, is it always best to convert to VBR, as opposed to CBR?

I'm doing these conversions because I care more about preserving the cinematic FPS (24) than dealing with a small loss in audio quality, which most people couldn't even hear.

jlw_4049
27th March 2021, 23:17
Yes, I'm aware that 128 is low quality to begin with, but let's say then that I have 384kbps audio instead. My question is can I set the target bitrate in MeGUI for VBR? If not, which other program can I use?

And my secondary question was, when converting from VBR, is it always best to convert to VBR, as opposed to CBR?

I'm doing these conversions because I care more about preserving the cinematic FPS (24) than dealing with a small loss in audio quality, which most people couldn't even hear.You can do this with the program in my signature.

Sent from my SM-G986U1 using Tapatalk

tebasuna51
28th March 2021, 00:33
The way recommended to encode aac at a fixed average bitrate is use the Constrained mode (CVBR) of qaac.

You need install the package in MeGUI, and Options -> External Programs -> Enable QAAC

chronis
28th March 2021, 03:17
The way recommended to encode aac at a fixed average bitrate is use the Constrained mode (CVBR) of qaac.

You need install the package in MeGUI, and Options -> External Programs -> Enable QAAC

Thank you for the recommendation. Are you sure I don't also need another program like iTunes? I installed the QAAC package and enabled QAAC, but it didn't appear the next time I opened MeGUI.

tebasuna51
28th March 2021, 11:00
... Are you sure I don't also need another program like iTunes?...

This is my MeGui64 qaac folder:

Directorio de C:\Portable\MeGUI64\tools\qaac
27/09/2019 15:00 <DIR> QTfiles64
11/12/2016 21:37 507 install.txt
14/10/2013 17:20 68.096 libsoxconvolver.dll
20/03/2018 15:45 268.288 libsoxr.dll
27/07/2020 13:58 4.372 makeportable.cmd
02/10/2020 12:50 2.017.280 qaac.exe
02/10/2020 12:50 1.908.736 refalac.exe

You can install the full iTunes or follow the 2º option in install.txt to obtain the portable folder QTfiles64 needed.

I recommend use this old version (https://forum.doom9.org/showthread.php?p=1924798#post1924798):
iTunes 12.9.3 (64-bit) (https://www.filehorse.com/download-itunes-64/43993/)

chronis
28th March 2021, 14:59
You can install the full iTunes or follow the 2º option in install.txt to obtain the portable folder QTfiles64 needed.

I recommend use this old version (https://forum.doom9.org/showthread.php?p=1924798#post1924798):
iTunes 12.9.3 (64-bit) (https://www.filehorse.com/download-itunes-64/43993/)

Thanks again, I managed to get it installed. However, I'm finding that the CVBR option does not produce a file with the targeted bitrate. When setting 128kbps as the target, the output is 104kbps. To get 128kbps, I have to set the target to 160kbps. Is this normal?

tebasuna51
28th March 2021, 22:33
Is this normal?

No, maybe is a very compressible audio (without high frequencies) and use less bitrate than preview.

Hotpocketdeath
8th April 2021, 21:47
Hello all,

Sorry in advance if this was answered already.

I've started dabbling with some 4K HDR10 movies and found MeGUI doesn't seem to be handling them properly. The color output looked dull and washed out.

Did some quick research and found some info that makes it seem as though the source isn't be treated as a full 10-bit source.

Is MeGUI even capable of handling these movies? I'm trying out another encoder, Fastflix, that seems to have been written primarily to deal with this issue.

jlw_4049
9th April 2021, 00:41
Hello all,



Sorry in advance if this was answered already.



I've started dabbling with some 4K HDR10 movies and found MeGUI doesn't seem to be handling them properly. The color output looked dull and washed out.



Did some quick research and found some info that makes it seem as though the source isn't be treated as a full 10-bit source.



Is MeGUI even capable of handling these movies? I'm trying out another encoder, Fastflix, that seems to have been written primarily to deal with this issue.Yes but you have to input everything manually on the custom command. Use staxrip

Sent from my SM-G986U1 using Tapatalk

DotJun
12th April 2021, 09:02
When using the adaptive muxer you are able to set a name for the video stream, but when the adaptive muxer is brought up using the autoencode function the video portion is grayed out. Is there an option that allows me to add a name to the video stream using the adaptive muxer via autoencode?

TsUNaMy WaVe
4th May 2021, 11:52
I have a problem with the chapters part of the MP4 muxer that I never had before.
I used to add the chapters files before auto-encoding my video. It all worked well. My chapters are in UTF-8 because they use Hebrew letters.
Not too long ago I got a new PC. Unfortunately when I use the same method as before, the Hebrew letters get messed up and become jibberish. When I mux in an external program (like MKVToolNix GUI), I have to specify UTF-8 for the chapters to show properly.
Is there any way to force the muxer in Megui to encode the letters in utf-8? I prefer to do everything in one program as before, and not have this extra step.

jlw_4049
4th May 2021, 15:39
I have a problem with the chapters part of the MP4 muxer that I never had before.
I used to add the chapters files before auto-encoding my video. It all worked well. My chapters are in UTF-8 because they use Hebrew letters.
Not too long ago I got a new PC. Unfortunately when I use the same method as before, the Hebrew letters get messed up and become jibberish. When I mux in an external program (like MKVToolNix GUI), I have to specify UTF-8 for the chapters to show properly.
Is there any way to force the muxer in Megui to encode the letters in utf-8? I prefer to do everything in one program as before, and not have this extra step.Maybe use the CLI

Sent from my SM-G986U1 using Tapatalk

TsUNaMy WaVe
8th May 2021, 20:39
Maybe use the CLI

Sent from my SM-G986U1 using Tapatalk

Thanks but I really prefer using the GUI... I guess there is no option?

jlw_4049
8th May 2021, 21:49
Thanks but I really prefer using the GUI... I guess there is no option?I plan to program a nice mp4box gui but I just haven't had the time

Sent from my SM-G986U1 using Tapatalk

dREV
22nd May 2021, 00:56
Hello.
I'm having an issue when using the HD Stream Extractor in MeGUI when it comes to audio files of 24 bit.

It adds distortion to the audio regardless which format I use with the exception flac (thankfully) from wav, wavs, W64, RF64 all no good. This isn't the only program either as Audio Cutter also gives the same result.

As I have multiple episodes bunched together into one m2ts file making a back up copy annoying.

Is there a work around to this? :eek:

tebasuna51
22nd May 2021, 19:46
... audio files of 24 bit.

It adds distortion to the audio regardless which format I use...

Please put the log file.

The MeGUI HD Stream Extractor tool is a GUI for the eac3to.exe program, and AFAIK eac3to don't have problems extracting and recoding audio files of 24 bits.

Maybe if we know the sources and the output format desired (the log file) we can help you.

dREV
23rd May 2021, 09:13
Please put the log file.

The MeGUI HD Stream Extractor tool is a GUI for the eac3to.exe program, and AFAIK eac3to don't have problems extracting and recoding audio files of 24 bits.

Maybe if we know the sources and the output format desired (the log file) we can help you.

log file

eac3to v3.34
command line: "C:\Program Files\MeGUI\tools\eac3to\eac3to.exe" "Z:\# # DL\backup\STREAM\00002.m2ts" 2:"Z:\# # DL\backup\STREAM\T2_Audio -
English.wav" 3:"Z:\# # DL\backup\STREAM\T3_Audio - English.wav" 4:"Z:\# # DL\backup\STREAM\T4_Audio - English.wav" -progressnumbers
------------------------------------------------------------------------------
M2TS, 1 video track, 3 audio tracks, 0:23:41, 24p /1.001
1: h264/AVC, 1080p24 /1.001 (16:9)
2: RAW/PCM, English, 2.0 channels, 16 bits, 48kHz
3: RAW/PCM, English, 2.0 channels, 24 bits, 48kHz
4: RAW/PCM, English, 2.0 channels, 16 bits, 48kHz
[a03] Extracting audio track number 3...
[a03] Reading RAW/PCM...
[a03] Swapping endian...
[a03] Writing WAV...
[a04] Extracting audio track number 4...
[a02] Extracting audio track number 2...
[a02] Reading RAW/PCM...
[a02] Swapping endian...
[a02] Writing WAV...
[a04] Reading RAW/PCM...
[a04] Swapping endian...
[a04] Writing WAV...
[a03] Creating file "Z:\# # DL\backup\STREAM\T3_Audio - English.wav"...
[a02] Creating file "Z:\# # DL\backup\STREAM\T2_Audio - English.wav"...
[a04] Creating file "Z:\# # DL\backup\STREAM\T4_Audio - English.wav"...
[a02] The original audio track has a constant bit depth of 16 bits.
[a03] The original audio track has a constant bit depth of 24 bits.
[a04] The original audio track has a constant bit depth of 16 bits.
Video track 1 contains 34072 frames.
eac3to processing took 5 minutes, 46 seconds.
Done.

Does it matter which MeGUI version its using? I'm still using version 2525 simply because it's the very last version that supports .h264 files to encode. I've tried on MeGUI 64 bit version 2896 with eacto ver 3.34 which only allows W64 nothing else and still adds distortion to the audio.

I'm not sure if it's needed but I also updated RawSource (http://avisynth.nl/index.php/RawSource26) version v0.0.1 but no improvement. :thanks:

Oh, DTS audio I know has no issues with 24 bit either. Same with TrueHD audio. It's just with PCM / WAV there's an issue. The issue persists in non-MeGUI programs such as Audacity when encoding into .wav higher than 16 bit.

Maybe MeGUI just can't do 24 bit for some reason even tho https://en.wikibooks.org/wiki/Eac3to/How_to_Use#Command_Line_Syntax says it can do it.

tebasuna51
23rd May 2021, 17:28
log file
The MeGUI log file (like the attached) supply more info (program versions, mediainfo of source, etc.) than the eac3to log.

Does it matter which MeGUI version its using?
Nope, the eac3to version is the same.

I'm still using version 2525 simply because it's the very last version that supports .h264 files to encode. I've tried on MeGUI 64 bit version 2896 with eacto ver 3.34 which only allows W64
The last MeGUI version is 2924, and all versions admit all outputs (see Settings in HD Stream Extractor window)
"supports .h264 files to encode"?

I can't reproduce the problem (see log), the output file is bit-identical to the source. No problem with 16 or 24 bits PCM tracks.

I'm not sure if it's needed but I also updated RawSource version v0.0.1 but no improvement.
This is a plugin for raw video not needed here.

The issue persists in non-MeGUI programs such as Audacity when encoding into .wav higher than 16 bit.
Then you have a problem with the source or your player.
If you can upload a sample of your source we can test it.
I think than MeGUI, eac3to and Audacity works fine.

dREV
24th May 2021, 22:42
The MeGUI log file (like the attached) supply more info (program versions, mediainfo of source, etc.) than the eac3to log.

Oh, right forgot MeGUI also has a log file.

Preliminary log file only. During closing of MeGUI the well formed log file will be written.

-[Information] Versions
--[Information] [5/24/2021 8:34:43 AM] MeGUI: 2525
--[Information] [5/24/2021 8:34:43 AM] Operating System: Windows 7 Ultimate Edition x64 SP1 (6.1.65536.7601)
--[Information] [5/24/2021 8:34:43 AM] .Net Framework: 2.0.50727.5420
--[Information] [5/24/2021 8:34:43 AM] .Net Framework: 4.0.0.0
-[Information] Update detection
--[Information] [5/24/2021 8:34:44 AM] Automatic update is disabled
--[Information] [5/24/2021 8:34:44 AM] There are 15 packages which can be updated: core, libs, mediainfo, AviSynth plugins,
AviSynth portable, DGIndex, L-SMASH Works, mkvmerge, PgcDemux, x264, x265, updatecopier, x264 10bit, Audio presets,
Xvid presets
--[Information] [5/24/2021 8:34:45 AM] AviSynth+: 3.6.1 (20-06-2020) (inactive)
--[Information] [5/24/2021 8:34:45 AM] AviSynth+ portable: 3.6.1 (20-06-2020) (active)
--[Information] [5/24/2021 8:34:45 AM] AvisynthWrapper: 1.0.2717.2 (22-05-2020)
--[Warning] [5/24/2021 8:34:45 AM] Haali Matroska Splitter not installed properly.
--[Warning] [5/24/2021 8:34:45 AM] Therefore DSS2() and certain functions of FFVideoSource() and the HD Streams Extractor
may also not work.
--[Warning] [5/24/2021 8:34:45 AM] Please download and install it from http://haali.su/mkv/
--[Information] [5/24/2021 8:34:45 AM] Haali DSS2: not installed
--[Information] [5/24/2021 8:34:45 AM] ICSharpCode.SharpZipLib: 0.85.5.452 (07-08-2008)
--[Information] [5/24/2021 8:34:45 AM] LinqBridge: 1.0.0.0 (28-05-2009)
--[Information] [5/24/2021 8:34:45 AM] MediaInfo: 18.05.0.0 (08-05-2018)
--[Information] [5/24/2021 8:34:45 AM] MediaInfoWrapper: 0.7.61.0 (06-01-2013)
--[Information] [5/24/2021 8:34:45 AM] MessageBoxExLib: 1.0.2218.28317 (19-12-2008)
--[Information] [5/24/2021 8:34:45 AM] SevenZipSharp: 0.64.3890.29348 (02-01-2011)
--[Information] [5/24/2021 8:34:45 AM] 7z: 9.20 (18-11-2010)
-[Information] HD Streams Extractor
--[Information] [5/24/2021 2:03:58 PM] Input: Z:\# # DL\backup\STREAM\00002.m2ts
--[Information] [5/24/2021 2:03:59 PM] Arguments: "Z:\# # DL\backup\STREAM\00002.m2ts"
--[Information] [5/24/2021 2:04:05 PM] Feature Retrieval Completed
-[Information] Log for job1 (ext, 00002.m2ts -> STREAM)
--[Information] [5/24/2021 2:04:33 PM] Started handling job
--[Information] [5/24/2021 2:04:33 PM] Preprocessing
--[Information] [5/24/2021 2:04:33 PM] Job commandline: "C:\Program Files\MeGUI\tools\eac3to\eac3to.exe" "Z:\# # DL\backup\
STREAM\00002.m2ts" 2:"Z:\# # DL\backup\STREAM\T2_Audio - English.wav" 3:"Z:\# # DL\backup\STREAM\T3_Audio -
English.wav" 4:"Z:\# # DL\backup\STREAM\T4_Audio - English.wav" -progressnumbers
--[Information] [5/24/2021 2:04:33 PM] Process started
--[Information] [5/24/2021 2:04:33 PM] Standard output stream
--[Information] [5/24/2021 2:04:33 PM] Standard error stream
---[Information] [5/24/2021 2:04:36 PM] M2TS, 1 video track, 3 audio tracks, 0:23:41, 24p /1.001
---[Information] [5/24/2021 2:04:36 PM] 1: h264/AVC, 1080p24 /1.001 (16:9)
---[Information] [5/24/2021 2:04:36 PM] 2: RAW/PCM, English, 2.0 channels, 16 bits, 48kHz
---[Information] [5/24/2021 2:04:36 PM] 3: RAW/PCM, English, 2.0 channels, 24 bits, 48kHz
---[Information] [5/24/2021 2:04:36 PM] 4: RAW/PCM, English, 2.0 channels, 16 bits, 48kHz
---[Information] [5/24/2021 2:04:36 PM] a02 Extracting audio track number 2...
---[Information] [5/24/2021 2:04:36 PM] a02 Reading RAW/PCM...
---[Information] [5/24/2021 2:04:36 PM] a02 Swapping endian...
---[Information] [5/24/2021 2:04:36 PM] a02 Writing WAV...
---[Information] [5/24/2021 2:04:36 PM] a04 Extracting audio track number 4...
---[Information] [5/24/2021 2:04:36 PM] a03 Extracting audio track number 3...
---[Information] [5/24/2021 2:04:36 PM] a04 Reading RAW/PCM...
---[Information] [5/24/2021 2:04:36 PM] a04 Swapping endian...
---[Information] [5/24/2021 2:04:36 PM] a04 Writing WAV...
---[Information] [5/24/2021 2:04:36 PM] a03 Reading RAW/PCM...
---[Information] [5/24/2021 2:04:36 PM] a03 Swapping endian...
---[Information] [5/24/2021 2:04:36 PM] a03 Writing WAV...
---[Information] [5/24/2021 2:04:36 PM] a03 Creating file "Z:\# # DL\backup\STREAM\T3_Audio - English.wav"...
---[Information] [5/24/2021 2:04:36 PM] a04 Creating file "Z:\# # DL\backup\STREAM\T4_Audio - English.wav"...
---[Information] [5/24/2021 2:04:36 PM] a02 Creating file "Z:\# # DL\backup\STREAM\T2_Audio - English.wav"...
---[Information] [5/24/2021 2:06:25 PM] a02 The original audio track has a constant bit depth of 16 bits.
---[Information] [5/24/2021 2:06:25 PM] a03 The original audio track has a constant bit depth of 24 bits.
---[Information] [5/24/2021 2:06:25 PM] a04 The original audio track has a constant bit depth of 16 bits.
---[Information] [5/24/2021 2:06:25 PM] Video track 1 contains 34072 frames.
---[Information] [5/24/2021 2:06:25 PM] eac3to processing took 1 minute, 49 seconds.
---[Information] [5/24/2021 2:06:25 PM] Done.
--[Information] [5/24/2021 2:06:25 PM] Postprocessing
---[Information] [5/24/2021 2:06:25 PM] Deleting intermediate files
--[Information] [5/24/2021 2:06:25 PM] Job completed



I like to establish where it states "There are 15 packages which can be updated" all of it has been updated long ago and everything I can possibly update that still enables MeGUI to run without problems as I attempted to update the MediaInfo but would not run after certain versions.

Also where it says "Haali Matroska Splitter is not installed" is so too installed it doesn't know where it is but it's installed via k-lite codec pack (https://codecguide.com/) and I think "Haali DSS2 is not installed" requires Haali splitter? Not sure.

The last MeGUI version is 2924, and all versions admit all outputs (see Settings in HD Stream Extractor window)
"supports .h264 files to encode"?

I know but can it encode using it? Was my issue. Is version 2924 an unreleased build? I only am seeing version 2913.

I can't reproduce the problem (see log), the output file is bit-identical to the source. No problem with 16 or 24 bits PCM tracks.

My motherboard is a MSI B350M Gaming Pro on Graphic AMD Software ver 20.11.1 with Realtek High Definition Audio Driver ver 6.0.8703.1. Under the settings I have it set to 24 bit, 96000 Hz (Studio Quality).

Then you have a problem with the source or your player.
If you can upload a sample of your source we can test it.
I think than MeGUI, eac3to and Audacity works fine.

When using foobar2000 it plays audio music files in 24 bit 48 kHz and 96.0 kHz just fine. I've been using MKVmerge to extract the 24 bit audio with no distortion. I also use MPC-HC video player (included with k-lite codec pack) to test audio quality, so I can decode just fine just not encode above 24 bit without issue.

Is there some .wav output option that I'm not aware of that I can change to "Auto" when it comes to bit depth like it has on the foobar program? Which of course the .wav gives distortion on it too when going to 24 bit.

I don't think its necessary to provide a sample but if you really want how exactly do I do that? I seem to have forgotten how to do a short clip using MeGUI from a lossless source. :scared:

tebasuna51
25th May 2021, 00:06
...
I know but can it encode using it? Was my issue. Is version 2924 an unreleased build? I only am seeing version 2913.
Megui -> Options -> Extended -> Auto Update -> Use development update server -> Save

Of course is recommended update all soft, but your issue is not a problem of versions or soft needed. Your issue only is with eac3to and it is tested to work without problems converting PCM 24 bits, from m2ts, to WAV 24 bits files.

eac3to don't need encode, only need swapp Big Endian bytes from PCM in m2ts to Little Endian bytes in WAV files, and reorder the LFE channel.

I've been using MKVmerge to extract the 24 bit audio with no distortion.
MKVmerge can't extract wav files from a m2ts. You need convert to mkv and use MKVExtract.
If you do so with the track 3 of the 00002.m2ts the output wav play without distortion?

I don't think its necessary to provide a sample but if you really want how exactly do I do that?

To cut a sample of your m2ts you can use tsMuxerGUI (https://github.com/justdan96/tsMuxer/releases/download/nightly-2021-04-30-02-13-20/w64.zip) (tab Split & Cut)

dREV
25th May 2021, 04:35
Megui -> Options -> Extended -> Auto Update -> Use development update server -> Save

Of course is recommended update all soft, but your issue is not a problem of versions or soft needed. Your issue only is with eac3to and it is tested to work without problems converting PCM 24 bits, from m2ts, to WAV 24 bits files.

eac3to don't need encode, only need swapp Big Endian bytes from PCM in m2ts to Little Endian bytes in WAV files, and reorder the LFE channel.

I'll check it out later as I remember a version where no matter what I did the update would not stop and kept annoying me. Which I prefer to keep it off.

Is there a way to change how MeGUI uses eacto? Or maybe change it from within eacto so MeGUI can use it as per my instruction? Like it does with the audio portion in MeGUI, FLAC, AC3, AAC, Vorbis but it doesn't have .wav for some reason.

As you mention I notice I use a program called Spek and I see that when I drag/drop the m2ts file into it it says:
PCM signed 16|20|24-bit big-endian for Blu-ray media, 2304 kbps, 480000 hZ, 2 channels

However with the extracted .wav it says:
PCM signed 24-bit-little-endian 2304 kbps, 48000 Hz, 2 channels.
How did you switch it?

MKVmerge can't extract wav files from a m2ts. You need convert to mkv and use MKVExtract.
If you do so with the track 3 of the 00002.m2ts the output wav play without distortion?

Right, no distortion when I use MKVmerge it'll change the extension to .mks which has been fine to get around my issue. But when there's multi-episodes in 1 m2ts file I am in need of MeGUI's Audio Cutter program.

Otherwise I have resorted to attempting to cut them in MKVmerge using its split mode but it requires more time and effort for me as one mode may not work but another mode may. It's faster with AVS Cutter > Audio Cutter but as mention Audio Cutter seems to encode it into .wav which adds distortion if it's above 24 bit.

To cut a sample of your m2ts you can use tsMuxerGUI (https://github.com/justdan96/tsMuxer/releases/download/nightly-2021-04-30-02-13-20/w64.zip) (tab Split & Cut)

Thanks so much for the cool program! I'm gonna keep it too. Will be a big help on those annoying multi-episodes I hope.
Here are the files (https://mega.nz/folder/AcdSDBBD) and the key: D-Z-NzO0mDDsSbAyW0ulCA In addition I've included the result of this split .wav file extract using eacto in MeGUI so you can hear it for yourself. My MeGUI ver 2525 is also included, so you can see exactly how it is at my end but only has the eacto in the tools folder.

tebasuna51
26th May 2021, 01:22
Is there a way to change how MeGUI uses eacto?
There are some GUI's for eac3to, the included in MeGUI is the HdBrStreamExtractor but you can use other eac3to GUI.
I make one UsEac3to (https://forum.doom9.org/showthread.php?t=145574) but it is not the problem.

Or maybe change it from within eacto so MeGUI can use it as per my instruction? Like it does with the audio portion in MeGUI, FLAC, AC3, AAC, Vorbis but it doesn't have .wav for some reason.
In the MeGUI Audio encoder section you can use a AviSynth decoder plugin
like LWlibavAudioSource (and others) to open your m2ts, but you are right
does not offer WAV output. If you want that you can use BeHappy than only can manage audio with AviSynth but with many more options.

PCM signed 16|20|24-bit big-endian for Blu-ray media, 2304 kbps, 480000 hZ, 2 channels

However with the extracted .wav it says:
PCM signed 24-bit-little-endian 2304 kbps, 48000 Hz, 2 channels.
How did you switch it?

Exact, the audio samples are the same but the bytes are ordered like big-endian in a m2ts (and the LFE channel is the last) but in a WAV file the bytes must be ordered little-endian (https://en.wikipedia.org/wiki/Endianness) and the channel order must be: FL,FR,FC,LFE,SL,SR (without differences in stereo)

The players know how must manage that audio data without problem.

Right, no distortion when I use MKVmerge it'll change the extension to .mks which has been fine to get around my issue.
If you load a m2ts in MkvToolNix and output only the audio make a .mka file. If I do that the .mka play fine but exactly like the .wav extracted by eac3to.

But when there's multi-episodes in 1 m2ts file I am in need of MeGUI's Audio Cutter program.

For me the MeGUI's Audio Cutter work fine with the wav extracted but there are other methods like MkvToolNix or tsMuxeR to split the audio.

Here are the files... In addition I've included the result of this split .wav file extract using eacto in MeGUI so you can hear it for yourself.

Sorry but your wav file play fine here, and is bit-identical to the obtained with my software.

All sound fine, your m2ts, your wav and the .mka or wav extracted be me, seems is a problem in your players with wav 24 bits.
Tested here with foobar2000, GoldWave, Audacity, VLC, MPC-HC and all sound fine.

dREV
26th May 2021, 03:53
There are some GUI's for eac3to, the included in MeGUI is the HdBrStreamExtractor but you can use other eac3to GUI.
I make one UsEac3to (https://forum.doom9.org/showthread.php?t=145574) but it is not the problem.

I used that program when I could not figure out how to extract eac3 audio in MeGUI. But it took me some time to kinda understand how to at least re-encode the audio. I haven't spent more time on figuring out the rest of it.

In the MeGUI Audio encoder section you can use a AviSynth decoder plugin
like LWlibavAudioSource (and others) to open your m2ts, but you are right
does not offer WAV output. If you want that you can use BeHappy than only can manage audio with AviSynth but with many more options. I been using foobar2000 for my .wav needs. I never used BeHappy but good to know there's a backup program I can try.


Exact, the audio samples are the same but the bytes are ordered like big-endian in a m2ts (and the LFE channel is the last) but in a WAV file the bytes must be ordered little-endian (https://en.wikipedia.org/wiki/Endianness) and the channel order must be: FL,FR,FC,LFE,SL,SR (without differences in stereo)

The players know how must manage that audio data without problem. Oh ok that explains it. I really don't know stuff like that. :scared:


If you load a m2ts in MkvToolNix and output only the audio make a .mka file. If I do that the .mka play fine but exactly like the .wav extracted by eac3to. For me the MeGUI's Audio Cutter work fine with the wav extracted but there are other methods like MkvToolNix or tsMuxeR to split the audio.

Thanks for introducing me to that program. I'm pleased to have such a program now but I wish it had a specific frame cutter with maybe a video frame to easily capture the frame, so I can completely replace both AVS Cutter and Audio Cutter. :(

Sorry but your wav file play fine here, and is bit-identical to the obtained with my software.

All sound fine, your m2ts, your wav and the .mka or wav extracted be me, seems is a problem in your players with wav 24 bits.
Tested here with foobar2000, GoldWave, Audacity, VLC, MPC-HC and all sound fine.

Going by your words that you had no issue with the files and even the .wav file I extracted myself I had to do some investigating and came to the conclusion that you are correct and it is the programs I been using. Strictly the program MPC-HC and Potplayer video players.

Following what you've said that the video player knows what to do with the data and everything else you've said got me thinking what if I put a video with that distorted audio therefore "switching" from big-endian to little-endian which then turns out no distortion! :eek:

So when I use MPC-HC strictly to listen to the audio for any distortion I hear the distortion when its in PCM (.wav) but not when I tell HD Streams Extractor to encode it into FLAC or any other audio > play it in MPC-HC there's nothing. :confused:

Then I tried to place the distorted .wav file into my foobar2000, increased my volume to max to see if I can hear it and nope, I heard no distortion! Since its specifically for audio files which I shouldn't be surprised but I was. :)

Then I investigated MPC-HC just raw and... no distortion! :rolleyes:

So now its one of the filters I'm using together with MPC-HC and turns out it was FFDShow Raw Video Source that's been causing the problem. Not sure why when it's for video. This filter I used sometime back because I could not watch DVD for some reason, so I included it specifically to watch my DVD. I also use FFDShow Audio Processor to enhance the audio even more together with all of the LAV filters but that didn't cause any issues just the video filter. :angry:

So reinstalling k-lite codec pack without that filter but leaving in FFDShow Audio Processor leads up to hearing no more distortion in both video players! :cool:

So I like to deeply apologize for wasting your time and humbly thank you for it as well to get me to finally understand why its been distorting all this time. I was so use to doing it this way for years never thinking otherwise as I did try many times to understand why but not figuring out that it was the filter in my video player. I didn't even think about listening to it in foobar2000 which again why I was surprised. :stupid:

:thanks:

Sorry for wasting your time with me honestly.

tebasuna51
26th May 2021, 10:18
Sorry for wasting your time with me honestly.

No problem, you are welcome.

[EDIT]
I added a AvsCutter function to UsEac3to (https://forum.doom9.org/showthread.php?p=1943641#post1943641) using only ffmpg.

dREV
28th May 2021, 03:05
No problem, you are welcome.

[EDIT]
I added a AvsCutter function to UsEac3to (https://forum.doom9.org/showthread.php?p=1943641#post1943641) using only ffmpg.

Thanks will give it a try when I get back to dealing with my multi-episode file again.
Thanks extra for including an image so it's easier to know how to figure its usage. It'll really help me out again thanks.

GAP
13th June 2021, 14:15
I heard some really good things about this program but I had never used it. Can anyone tell me some good things that you can do with MeGUI? I am looking for something to make my experience easier.

Atak_Snajpera
13th June 2021, 15:59
Define "good things". Do you mean "world peace" or something else ...

GAP
13th June 2021, 23:47
I was looking for features that will allow me to create scripts or upscale multiple videos.

guest
16th June 2021, 13:42
I was looking for features that will allow me to create scripts or upscale multiple videos.

Surely you've heard of RipBot264, if you know what you're doing, it should "fill the bill", and with the DE feature, it'll get it done quickly, as well :)

StormMeows
24th June 2021, 20:31
Hey guys, when I used to encode blurays way back in the day I mainly used Handbrake and Megui. Is Megui still the best encoding program for blu-ray encodes, which maintains as much quality as possible? I have read that Handbrake is not truly a 10 bit pipeline and it really seems like x265 10 bit encodes will be the best quality for my backups. Is Megui true 10-bit ? Also, from what I have read, Handbrake can use up to 16 cores (I'm not sure if this counts threads as well), can Megui do the same? I'm in the market for a new CPU so that will definitely sway my decision. Thanks so much guys! Your help means a lot to me!

tebasuna51
24th June 2021, 23:17
Is Megui still the best encoding program for blu-ray encodes, which maintains as much quality as possible?
Forum Rule 12) ... Do not ask "what's best" because this question cannot be answered objectively. Each and everyone has their own view about what's best in a certain area. The best is what works best for you!

MeGUI can use AviSynth with many free decoders and filters and the free encoders x264/x265, you can select the desired quality.
But, of course, there are other choices.

Is Megui true 10-bit ?
Of course (like x264/x265 are).

can use up to 16 cores?
All encoders can use all cores you have.

StormMeows
25th June 2021, 00:25
Forum Rule 12) ... Do not ask "what's best" because this question cannot be answered objectively. Each and everyone has their own view about what's best in a certain area. The best is what works best for you!

MeGUI can use AviSynth with many free decoders and filters and the free encoders x264/x265, you can select the desired quality.
But, of course, there are other choices.


Of course (like x264/x265 are).


All encoders can use all cores you have.

Thank you, I apologize for asking what's best. I realize this is going to differ from person to person. I may think something looks great, but someone else may think it is lacking detail that the orginal source had. I appreciate you taking the time to respond. I really wish there was a more up to date tutorial on Megui and all of the advanced settings though. I read a guide on here but it was very outdated.

jlw_4049
25th June 2021, 00:49
Thank you, I apologize for asking what's best. I realize this is going to differ from person to person. I may think something looks great, but someone else may think it is lacking detail that the orginal source had. I appreciate you taking the time to respond. I really wish there was a more up to date tutorial on Megui and all of the advanced settings though. I read a guide on here but it was very outdated.MeGui is stable and gets the job done. However, it doesn't seem to get much development anymore.

Sent from my SM-G986U1 using Tapatalk

LeXXuz
25th June 2021, 08:34
MeGui is stable and gets the job done. However, it doesn't seem to get much development anymore.

Sadly no. I'm still using it every day for many years now. However, there are many things I wish would be improved/fixed. :(

jlw_4049
25th June 2021, 14:18
Sadly no. I'm still using it every day for many years now. However, there are many things I wish would be improved/fixed. :(Try StaxRip [emoji12]

Sent from my SM-G986U1 using Tapatalk

LeXXuz
4th July 2021, 09:26
Try StaxRip [emoji12]

Sent from my SM-G986U1 using Tapatalk

To be honest I neither have the time nor the ambition to familiarize myself with a completely new encoding GUI.

Maybe one day when I really have to, but till then I'll stick with what I'm used to. :p

sunstyle
8th July 2021, 09:32
I have a problem with encoding files with non-ansi filenames.


-[Error] Log for job11 (video, 2021-06-23 дрол.mkv.avs -> 2021-06-23 дрол_Video.264)
--[Information] [01-Jul-21 17:37:46] Started handling job
--[Information] [01-Jul-21 17:37:46] Preprocessing
--[Information] [01-Jul-21 17:37:46] AviSynth input script
---[NoImage] LoadPlugin("E:\XWHZ\030221_da4a\MeGUI-video\tools\lsmash\LSMASHSource.dll")
---[NoImage] LWLibavVideoSource("E:\XWHZ\030221_da4a\g1w-in\!video_da4a\New folder\yrsaul3k.opw\2021-06-23 дрол.mkv")
---[NoImage] #Not doing anything because the source is progressive
---[NoImage] #crop
---[NoImage] LanczosResize(720,408) # Lanczos (Sharp)
---[NoImage] #denoise
--[Information] [01-Jul-21 17:37:53] resolution: 720x408
--[Information] [01-Jul-21 17:37:53] frame rate: 30/1
--[Information] [01-Jul-21 17:37:53] frames: 247980
--[Information] [01-Jul-21 17:37:53] length: 02:17:46.000
--[Information] [01-Jul-21 17:37:53] aspect ratio (avs): 30:17 (1.765)
--[Information] [01-Jul-21 17:37:53] color space: I420
--[Information] [01-Jul-21 17:37:53] Job command line: "cmd.exe" /c ""E:\XWHZ\030221_da4a\MeGUI-video\tools\ffmpeg\ffmpeg.exe" -loglevel level+error -i "E:\XWHZ\030221_da4a\g1w-in\!video_da4a\New folder\yrsaul3k.opw\2021-06-23 дрол.mkv.avs" -strict -1 -f yuv4mpegpipe - | "E:\XWHZ\030221_da4a\MeGUI-video\tools\x264\x264.exe" --crf 24.0 --keyint 300 --sar 1:1 --frames 247980 --output "E:\XWHZ\030221_da4a\g1w-in\!video_da4a\New folder\yrsaul3k.opw\2021-06-23 дрол_Video.264" --stdin y4m -"
--[Information] [01-Jul-21 17:37:53] Process started
--[Information] [01-Jul-21 17:37:53] Standard output stream
--[Error] [01-Jul-21 17:37:53] Standard error stream
---[Information] [01-Jul-21 17:37:54] [avisynth @ 066b3ac0] [error] Import: couldn't open "E:\XWHZ\030221_da4a\g1w-in\!video_da4a\New folder\yrsaul3k.opw\2021-06-23 ????.mkv.avs"
---[Information] [01-Jul-21 17:37:54] [error] E:\XWHZ\030221_da4a\g1w-in\!video_da4a\New folder\yrsaul3k.opw\2021-06-23 РґСЂРѕР».mkv.avs: Unknown error occurred
---[Error] [01-Jul-21 17:37:54] y4m [error]: bad sequence header magic
---[Error] [01-Jul-21 17:37:54] x264 [error]: could not open input file `-'
--[Error] [01-Jul-21 17:37:54] Process exits with error: 0xFFFFFFFF (-1)



How can this be fixed instead of files renaming?

Ripmann
10th July 2021, 16:22
What's the correct folder for QAAC's CoreAudioToolbox.dll? I want to install QAAC's files manually (don't use 7zip or iTunes), but no matter where I place the files (I grabbed every dll listed by makeportable.cmd from the iTunes folder, just in case), I still get the "CoreAudioToolbox.dll is missing" error.

tebasuna51
10th July 2021, 19:06
In Windows 64 bits (with qaac.exe 64 bits):
Directorio de C:\Portable\megui\tools\qaac\QTfiles64
15/05/2018 18:58 87.352 ASL.dll
15/05/2018 18:59 9.112.888 CoreAudioToolbox.dll
15/05/2018 18:58 2.251.064 CoreFoundation.dll
17/09/2015 20:09 3.072 icudt55.dll
15/05/2018 18:58 97.080 libdispatch.dll
15/05/2018 18:59 1.987.896 libicuin.dll
15/05/2018 18:59 1.358.136 libicuuc.dll
11/06/2011 01:15 608.080 msvcp100.dll
11/06/2011 01:15 829.264 msvcr100.dll
15/05/2018 18:58 216.376 objc.dll