View Full Version : MeGUI: General Questions and Troubleshooting Thread


Pages : 1 2 3 4 5 6 7 8 9 [10]

hello_hello
24th May 2020, 00:14
If the source is an NTSC DVD, the TIVTC plugin can be used to output a VFR encode. This is copied from another script as an example:

Analysis pass:
LoadPlugin("C:\Program Files\MeGUI\tools\dgindex\DGDecode.dll")
DGDecode_mpeg2source("D:\VTS_02_1_sample.d2v")

TFM(Output="D:\S01E01TFM.txt")
TDecimate(Mode=4, Hybrid=2, Output="D:\S01E01TDecimate.txt")

# TFM(Input="D:\S01E01TFM.txt")
# TDecimate(Mode=5, Hybrid=2, Input="D:\S01E01TDecimate.txt", tfmIn="D:\S01E01TFM.txt", mkvout="D:\S01E01Timecodes.txt")

Encoding pass:
LoadPlugin("C:\Program Files\MeGUI\tools\dgindex\DGDecode.dll")
DGDecode_mpeg2source("D:\VTS_02_1_sample.d2v")

# TFM(Output="D:\S01E01TFM.txt")
# TDecimate(Mode=4, Hybrid=2, Output="D:\S01E01TDecimate.txt")

TFM(Input="D:\S01E01TFM.txt")
TDecimate(Mode=5, Hybrid=2, Input="D:\S01E01TDecimate.txt", tfmIn="D:\S01E01TFM.txt", mkvout="D:\S01E01Timecodes.txt")

I generally do it with a single script and comment/uncomment the appropriate lines. The metrics files are created during the analysis pass (MeGUI has an analysis pass option for adding jobs to the job queue) and the timecodes file is created when the encoding script is first run. You'd add the timecodes to the x264 command line using the custom section in the encoder configuration like this:

--tcfile-in "D:\S01E01Timecodes.txt"

It's only designed for dealing with NTSC sources that are a combination of film and video though. The film sections at 23.976fps and the video sections at 29.97fps. It's not really a bitrate saver.

My favourite sharpener is LSFMod (http://avisynth.nl/index.php/LSFmod). It's subtle. I don't like video that looks sharpened. You can also try MCDegrainSharp (https://forum.doom9.org/showthread.php?p=1855907#post1855907) for some noise removal and sharpening.

Lord Dredd
24th May 2020, 07:17
AFAIK, if the source is CFR and using AviSynth, like MeGUI do, it is not possible obtain a VFR encode.

Use HandBrake instead.

Yep Handbrake does have the option of VRF
Many Thanks again , will bother again ;)

If the source is an NTSC DVD, the TIVTC plugin can be used to output a VFR encode. This is copied from another script as an example:

Analysis pass:


Encoding pass:


I generally do it with a single script and comment/uncomment the appropriate lines. The metrics files are created during the analysis pass (MeGUI has an analysis pass option for adding jobs to the job queue) and the timecodes file is created when the encoding script is first run. You'd add the timecodes to the x264 command line using the custom section in the encoder configuration like this:

--tcfile-in "D:\S01E01Timecodes.txt"

It's only designed for dealing with NTSC sources that are a combination of film and video though. The film sections at 23.976fps and the video sections at 29.97fps. It's not really a bitrate saver.

My favourite sharpener is LSFMod (http://avisynth.nl/index.php/LSFmod). It's subtle. I don't like video that looks sharpened. You can also try MCDegrainSharp (https://forum.doom9.org/showthread.php?p=1855907#post1855907) for some noise removal and sharpening.

Thanks a bunch Hello_Hello
Will try and follow your insight
Off to try LSFMod


Any other tips for low bitrate encoding dear mate ???
by low I mean 1500 something for a 720p video

hello_hello
24th May 2020, 11:47
Sorry, I usually encode using CRF18, the slow preset and film tuning, and let the bitrate be what it needs to be.
My last 720p encode came in at 1421 kb/s, but it was easy to compress animation. :)

You could try grafun3() from DitherTools at the end of your scripts. In fact you should, maybe more-so for low bitrate encoding. It converts the video to 16 bit, does some gradient smoothing, and then dithers back to 8 bit. It can reduce existing color banding and help prevent the encoder from creating it. I think when I've compared encodes with and without it in the past, including it tends to reduce the bitrate for a give CRF value a little. Not by much, but every bit helps.

I forgot to mention, if you try the above VFR method, once you loaded an analysis script into MeGUI and run it, don't load it into MeGUI again until it's edited to make it the encoding script. If you do, MeGUI will check the script is okay when you load it into the video section and TIVTC will erase the metrics files, so you'll have to run the analysis pass again. It doesn't take long, but it's annoying. If you follow TFM & TDecimate with other filtering in the script, comment it out for the analysis pass too, so as not to slow it down.

I just realised there were a couple of TFM options in my example that were specific to the encode I was doing. I've edited my previous post to remove them

Lord Dredd
24th May 2020, 13:36
Sorry, I usually encode using CRF18, the slow preset and film tuning, and let the bitrate be what it needs to be.
My last 720p encode came in at 1421 kb/s, but it was easy to compress animation. :)

You could try grafun3() from DitherTools at the end of your scripts. In fact you should, maybe more-so for low bitrate encoding. It converts the video to 16 bit, does some gradient smoothing, and then dithers back to 8 bit. It can reduce existing color banding and help prevent the encoder from creating it. I think when I've compared encodes with and without it in the past, including it tends to reduce the bitrate for a give CRF value a little. Not by much, but every bit helps.

I forgot to mention, if you try the above VFR method, once you loaded an analysis script into MeGUI and run it, don't load it into MeGUI again until it's edited to make it the encoding script. If you do, MeGUI will check the script is okay when you load it into the video section and TIVTC will erase the metrics files, so you'll have to run the analysis pass again. It doesn't take long, but it's annoying. If you follow TFM & TDecimate with other filtering in the script, comment it out for the analysis pass too, so as not to slow it down.

I just realised there were a couple of TFM options in my example that were specific to the encode I was doing. I've edited my previous post to remove them

You are always so helpful dear mate :)
Many Thanks
I went through Dither tools but seems like I spoke too soon regarding filters :p, my technical prowess is 0.1% of you folks
Couldn't make head and tail of it
was actually thinking of some avisynth filter or some change in x264/x265 profile parameters or add some extra in the command line box ,so that details can be retained, margins remain sharp enough in my low bitrate encoding.
The source doesnt have any grain or doesn't need any denoiser as such,
But you know how this is when you try to hammer a source with such low bitrate , blocks, artifacts tend to appear in the final encode.
Just wish that the video looks decent enough for a HD TV viewing from a distance of 4 to 7 feet

hello_hello
24th May 2020, 14:43
If you install Avisynth+ (in addition to MeGUI's portable version) it'll have it's own subfolder called plugins. Any dlls or avsi scripts inside will automatically load when Avisynth runs. MeGUI's Avisynth will check it too.
So you'd put the two dlls in the Win32 folder from the zip file (assuming 32 bit Avisynth), along with the two Avsi scripts.

Dithertools also needs these three, so you'd download them and put the dlls in the same place.
https://github.com/pinterf/masktools/releases
http://avisynth.nl/index.php/RgTools
http://avisynth.nl/index.php/AddGrainC

Then with fingers crossed, you add gradfun3() to a script you're creating with MeGUI's script creator and refresh the preview. You probably won't see a difference, but the alternative is an Avisynth error message.

Avisynth+ has more plugin loading options than classic Avisynth. You can read about them here (http://avisynth.nl/index.php/AviSynth%2B#Plugin_Autoloader), but I use the auto-loading method myself.

I don't use x265, but x264 has it's own denoising. Enabling it and using enough to remove some light noise will probably help. Even if the source doesn't look noisy, give it a try. If it only removes very fine noise you're not seeing then it can't be a bad thing. You can adjust it under the Analysis tab in MeGUI's x264 encoder configuration.
http://www.chaneru.com/Roku/HLS/X264_Settings.htm#nr

Unfortunately I don't think there's really any free lunch, but I'm not an expert when it comes to tweaking x264, because I don't need to use a low bitrate like do you. And personally, I prefer to keep the encoding quality decent even if it means reducing the resolution and sacrificing a bit of detail to do it. It's better than looking at encoding artefacts, in my opinion.

Lord Dredd
24th May 2020, 20:01
If you install Avisynth+ (in addition to MeGUI's portable version) it'll have it's own subfolder called plugins. Any dlls or avsi scripts inside will automatically load when Avisynth runs. MeGUI's Avisynth will check it too.
So you'd put the two dlls in the Win32 folder from the zip file (assuming 32 bit Avisynth), along with the two Avsi scripts.

Dithertools also needs these three, so you'd download them and put the dlls in the same place.
https://github.com/pinterf/masktools/releases
http://avisynth.nl/index.php/RgTools
http://avisynth.nl/index.php/AddGrainC

Then with fingers crossed, you add gradfun3() to a script you're creating with MeGUI's script creator and refresh the preview. You probably won't see a difference, but the alternative is an Avisynth error message.

Avisynth+ has more plugin loading options than classic Avisynth. You can read about them here (http://avisynth.nl/index.php/AviSynth%2B#Plugin_Autoloader), but I use the auto-loading method myself.

I don't use x265, but x264 has it's own denoising. Enabling it and using enough to remove some light noise will probably help. Even if the source doesn't look noisy, give it a try. If it only removes very fine noise you're not seeing then it can't be a bad thing. You can adjust it under the Analysis tab in MeGUI's x264 encoder configuration.
http://www.chaneru.com/Roku/HLS/X264_Settings.htm#nr

Unfortunately I don't think there's really any free lunch, but I'm not an expert when it comes to tweaking x264, because I don't need to use a low bitrate like do you. And personally, I prefer to keep the encoding quality decent even if it means reducing the resolution and sacrificing a bit of detail to do it. It's better than looking at encoding artefacts, in my opinion.

That seems pretty lucid :)
by lower what values or nr would you suggest to have a decent effect , thinking of 200 , what say ?
I know I ll have to try various values on diff sources to have a general idea , but do you think 200 is a good starting point "?

Thunderbolt8
26th May 2020, 02:56
Im trying to use filters with megui but I have trouble determining the source, from where they are taken.

first of all, are there any important filters which will work with 32-bit version of megui only?

in general, Id like to try to use 64-bit megui and corresponding filters as much as possible. can I really use only 64-bit filters with 64-bit version of megui without any exception?

the problem I have is that there seem to be various directories, theres tools\avs, tools\avs\plugins, tool\avisynth_plugin and also the directories of ones separate avisynth+ installation (plugins+ & plugins64+). so which is the directory megui uses for all its filters? I remember it could be specified in options but apparently not any more.

mostly I try to get ffms2, lsmashsource and TIVTC to run in 64-bit mode but its all a big mess and sometimes I get an error and get told that I cannot use some various 32-bit filter with 64-bit megui etc.

another thing is there are sometimes newer versions of some filters compared to the version which comes even with the developmental update server. is there any way I can simply replace such filters without breaking anything? can I simply replace megui internal avisynth.dll (and other files) with clang version of avisynth+?

hello_hello
26th May 2020, 08:57
The tools\avisynth_plugin folder is the one used for plugins by MeGUI. You should be able to simply replace the plugins with newer versions.

To change AVisynth itself, you need to replace the files in the MeGUI\tools\avs and MeGUI\tools\avs\plugins folders with the newer versions (replacement Avisynth files) while MeGUI is closed. When it runs it copies those files to the appropriate directories if it's using it's own portable Avisynth.

Anything in the "installed" Avisynth plugins folder is autoloaded when Avisynth runs, including MeGUI's portable version.

I don't know what the difference is between the "installed" Avisynth+ plugins+ & plugins64+ folders. For 32 bit Avisynth+ there's two folders. One is only checked by classic Avisynth while both are checked by Avisynth+. It's probably something similar. Someone else will probably know for sure.
http://avisynth.nl/index.php/AviSynth%2B#Plugin_Autoloader

Thunderbolt8
26th May 2020, 10:12
are avisynth and x264 which comes along with megui 64-bit also automatically 64-bit versions? or 32-bit but they still run on 64-bit megui? so everything Id manually replace in megui 64 has to be 64-bit as well?

hello_hello
26th May 2020, 11:59
Even if you're using 32 bit MeGUI, I'm fairly sure on a 64 bit OS it still uses a 64 bit version of x264. I think that's what avs4x26x.exe (or something similar) is for, but I could be wrong. I assume the 64 bit MeGUI comes with a 64 bit Avisynth, but have you tried Version() in a script?

tebasuna51
26th May 2020, 19:40
Of course MeGUI 64 have all soft 64 bits.

MeGUI 32 have Avs+ 32 but in OS 64 uses also x264/x265 64 bits, now with ffmpeg like interface with Avs+ 32, before it was avs4x26x.exe like hello_hello say (ffmpeg is 1% fast in my test).

A plugin without 64 bit version is AudioLimiter.dll used to downmix audio 7.1 to 5.1 in MeGUI 32 bits.

Lord Dredd
27th May 2020, 06:30
@ Hello_Hello & tebasuna51 :
How can I encode a video in MEGUI using x264 or x265 using VBR ?? I am game for all methods that is 2pass , ABR, and CRF
Actually I was usin the wrong short form previously when i asked the same question . I said VFR back then , But what I wanted to ask where is the option to do a VBR 2 pass encding.

I just saw these encoding settings somewhere, what got me interested ws how on earth there is a max bitrate heding there and how on earth its showing 8k plus :O
Video

Format : AVC
Format/Info : Advanced Video Codec
Duration : 1 h 56 min
Bit rate : 865 kb/s
Maximum bit rate : 8 921 kb/s



@ Hello_Hello : using nr 100 does, help it decreases the size in a variety of videos ( tested 3 actually ) saw it do around 10% to 12% decrease .. Thats a lot but the clips were like 15min each
Will add more info after encoding some more videos with longer duration.


Thank you


EDIT :
Okay so after trying a lot i found how this is done but this refers to ffmpeg , but still want your specialist opinion if this same thing can be used in megui while doing 2pass by adding these two options in misc tab in x264 profile settings.

You can use -crf or -b:v with a maximum bit rate by specifying both -maxrate and -bufsize:

ffmpeg -i input -c:v libx264 -crf 23 -maxrate 1M -bufsize 2M output.mp4

tebasuna51
27th May 2020, 12:12
@ Hello_Hello & tebasuna51 :
How can I encode a video in MEGUI using x264 or x265 using VBR ?? I am game for all methods that is 2pass , ABR, and CRF
Actually I was usin the wrong short form previously when i asked the same question . I said VFR back then , But what I wanted to ask where is the option to do a VBR 2 pass encding.

OK now. You can obtain VariableBitRate with 2pass or Constant Rate Factor (CRF).

Also ABR is not exactly ConstantBitRate, is AverageBitRate.
There are I, P and B-frames you can't use the same bitrate for all frames, let's the encoder do the job.

Lord Dredd
27th May 2020, 12:39
OK now. You can obtain VariableBitRate with 2pass or Constant Rate Factor (CRF).



Also ABR is not exactly ConstantBitRate, is AverageBitRate.

There are I, P and B-frames you can't use the same bitrate for all frames, let's the encoder do the job.No I was asking if that can be used but unfortunately those commands are fir ffmpeg only.

Can you tell me how can one encode using VBR

tebasuna51
27th May 2020, 12:45
...how on earth there is a max bitrate heding there and how on earth its showing 8k plus...

Some parts can need this bitrate.
A bitrate 8k can be a standard average bitrate for a 1080p movie.

What do you think about this encode:
Codec ID : V_MPEG4/ISO/AVC
Bit rate : 11,1 Mb/s
Width : 720 píxeles
Height : 572 píxeles
Frame rate : 50,000 FPS
Color space : YUV
Chroma subsampling : 4:2:0
Bit depth : 8 bits
Writing library : x264 core 159 r2991 1771b55
Encoding settings : ... crf=18.0 ...

Is a deinterlace (QTGMC for that 50 fps) of a dificult miniDV tape from my holidays (longtime ago): 11,1 Mb/s for a 720x572

Some parts need high bitrates.

EDIT: x264/x265 always encode VBR

Lord Dredd
27th May 2020, 12:51
Some parts can need this bitrate.
A bitrate 8k can be a standard average bitrate for a 1080p movie.

What do you think about this encode:
Codec ID : V_MPEG4/ISO/AVC
Bit rate : 11,1 Mb/s
Width : 720 píxeles
Height : 572 píxeles
Frame rate : 50,000 FPS
Color space : YUV
Chroma subsampling : 4:2:0
Bit depth : 8 bits
Writing library : x264 core 159 r2991 1771b55
Encoding settings : ... crf=18.0 ...

Is a deinterlace (QTGMC for that 50 fps) of a dificult miniDV tape from my holidays (longtime ago): 11,1 Mb/s for a 720x572

Some parts need high bitrates.

EDIT: x264/x265 always encode VBRThat should look great.
If all my MEGUI encoders done using x264 or x265 have VBR on by default
Then Why doesnt my mediinfo shows maximum bitrate like that example showed???

Sent via x266 [emoji12]

tebasuna51
28th May 2020, 01:21
Then Why doesnt my mediinfo shows maximum bitrate like that example showed???

MediaInfo can't examine the full video stream to search the max bitrate, it only show data stored in the tracks header.

Then the encoder or muxer of that video have store the maximum bitrate used. It is not standard.

If you use MkvToolNix to mux and you don't --disable-track-statistics-tags you grab some metadata about video:
Video: BPS-eng = 11066469
DURATION-eng = 00:07:33.600000000
NUMBER_OF_FRAMES-eng = 22680
NUMBER_OF_BYTES-eng = 627468799
_STATISTICS_WRITING_APP-eng = mkvmerge v45.0.0 ('Heaven in Pennies') 64-bit
_STATISTICS_WRITING_DATE_UTC-eng = 2020-05-25 17:07:43
_STATISTICS_TAGS-eng = BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES

with this data you have the average bitrate (BPS or NUMBER_OF_BYTES/DURATION) but unknow the max bitrate.

Lord Dredd
29th May 2020, 08:59
MediaInfo can't examine the full video stream to search the max bitrate, it only show data stored in the tracks header.

Then the encoder or muxer of that video have store the maximum bitrate used. It is not standard.

If you use MkvToolNix to mux and you don't --disable-track-statistics-tags you grab some metadata about video:
Video: BPS-eng = 11066469
DURATION-eng = 00:07:33.600000000
NUMBER_OF_FRAMES-eng = 22680
NUMBER_OF_BYTES-eng = 627468799
_STATISTICS_WRITING_APP-eng = mkvmerge v45.0.0 ('Heaven in Pennies') 64-bit
_STATISTICS_WRITING_DATE_UTC-eng = 2020-05-25 17:07:43
_STATISTICS_TAGS-eng = BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES

with this data you have the average bitrate (BPS or NUMBER_OF_BYTES/DURATION) but unknow the max bitrate.

Hi
Sorry for the late reply mate
I guess I ll have to devote more time in understaning the finer nuisances of parameters and all.
On a side note

Would you kindly enlighten me about when and how one should use

vbv_maxrate
vbv_bufsize

I guess they do the same thing as those ffmprg commands but I was wondering how to use these if suppose I am gonna use a slower or very slow profile to encode in 2 pass or crf.

But then If VBR is what both x264 and x265 encode with then may be these are not used anymore ???

LigH
29th May 2020, 10:15
VBV parameters are important when the player with a limited decoding buffer has to read from a medium with limited read speed, in contrast to a PC reading from a local harddisk with generous RAM and read speed.

That will mainly affect consumer players playing movies from an optical disc or a Flash memory stick/card, or any player (even a PC with large RAM) receiving the movie vie a network with a bandwidth close to the average bitrate.

Consumer devices and media (e.g. Blu-ray players) will have more or less publicly known specifications about their supported limits. Apart from that it may be a challenge to discover the decoding buffer capacity and the read speed...

tebasuna51
29th May 2020, 10:53
Would you kindly enlighten me about when and how one should use

vbv_maxrate
vbv_bufsize

I guess they do the same thing as those ffmprg commands but I was wondering how to use these if suppose I am gonna use a slower or very slow profile to encode in 2 pass or crf.

But then If VBR is what both x264 and x265 encode with then may be these are not used anymore ???

These parameters are to guarantee than you can play that encode without problems.

For instance if you store the movie with Maximum bit rate : 8 921 kb/s in a DVD (typical max read rate 5 Mb/s) you can have troubles in the points with high bitrate. But if you store the movie in a USB 2 (at least 20 Mb/s reading) all is ok.

Also related with the player to reproduce your encode, must guarantee the speed to support this max bitrate and the amount of buffer RAM (buffer size) to store the images to be decodified (related with resolution and num of ref-frames).

The easy way to control these parameters is use the parameter --level, you must know the level than your player accept. For instance a player certified to DivX Plus (--level 4.0 see Levels in this wiki (https://en.wikipedia.org/wiki/Advanced_Video_Coding)) accept --vbv-maxrate 20000 --vbv-bufsize 25000.

You can see in the x264 Configuration Dialog in MeGUI how change these parameters when you select the Target Playback Device.

Of course modern players certified for UHD accept --level 5.1 and the maxrate/bufsize are so high than you don't need to limit your encode with low resolution/bitrate.

And these parameters aren't related with the Preset (slow or other) or the Encoding Mode (crf or 2pass) like you can see in the Configuration Dialog, only with the Target Playback Device.

Lord Dredd
29th May 2020, 11:01
VBV parameters are important when the player with a limited decoding buffer has to read from a medium with limited read speed, in contrast to a PC reading from a local harddisk with generous RAM and read speed.

That will mainly affect consumer players playing movies from an optical disc or a Flash memory stick/card, or any player (even a PC with large RAM) receiving the movie vie a network with a bandwidth close to the average bitrate.

Consumer devices and media (e.g. Blu-ray players) will have more or less publicly known specifications about their supported limits. Apart from that it may be a challenge to discover the decoding buffer capacity and the read speed...

Thanks for the explanation :)

These parameters are to guarantee than you can play that encode without problems.

For instance if you store the movie with Maximum bit rate : 8 921 kb/s in a DVD (typical max read rate 5 Mb/s) you can have troubles in the points with high bitrate. But if you store the movie in a USB 2 (at least 20 Mb/s reading) all is ok.

Also related with the player to reproduce your encode, must guarantee the speed to support this max bitrate and the amount of buffer RAM (buffer size) to store the images to be decodified (related with resolution and num of ref-frames).

The easy way to control these parameters is use the parameter --level, you must know the level than your player accept. For instance a player certified to DivX Plus (--level 4.0 see Levels in this wiki (https://en.wikipedia.org/wiki/Advanced_Video_Coding)) accept --vbv-maxrate 20000 --vbv-bufsize 25000.

You can see in the x264 Configuration Dialog in MeGUI how change these parameters when you select the Target Playback Device.

Of course modern players certified for UHD accept --level 5.1 and the maxrate/bufsize are so high than you don't need to limit your encode with low resolution/bitrate.

And these parameters aren't related with the Preset (slow or other) or the Encoding Mode (crf or 2pass) like you can see in the Configuration Dialog, only with the Target Playback Device.

Once again loads of thankies for the elaborating mate.
Now I know why a animation that I had encoded sometime back didnt play on my TV , I had used tune animation along with crf and the level came out to be 5 and I realized my TV cant play anything with level 5 :)
Thanks

imsrk48
30th May 2020, 06:11
Hey Guys, How can i increase a 5.1 audio channel volume using megui?

StainlessS
30th May 2020, 15:46
@imsrk48
https://i.postimg.cc/JtbyTNw0/normalize.jpg (https://postimg.cc/JtbyTNw0)

LigH
31st May 2020, 20:33
I would suggest to stay a little below 100%, because lossy compression may cause decoding >100%, a.k.a. clipping.

StainlessS
1st June 2020, 00:44
Ligh, think mine set at 96, that sound about OK ?

hello_hello
1st June 2020, 03:58
96 is a fraction more than stuff-all less than 100, when translated to dB. It's -0.35dB.
An increased peak of 1dB wouldn't be too unusual for lossy encoding, and for some reason AAC seems worse than MP3 in that respect. If you want a margin for error:

0.9 = -0.91dB
0.8 = -1.9dB
0.7 = -3.09dB

I don't know how to write the equation properly, but the dB value is the log of the percentage multiplied by 20 (where 100% = 1.0)

Have I ever heard the clipping when normalising to 100? Nope.

Of course I disproved everything I just said while trying to provide examples. The peaks didn't change all that much, and all but one was lower, but I have seen an increase of close to 2dB on rare occasions. The peaks were the result of 4 times over-sampling to obtain the true peak, rather than the sample peak.

If this is any indication though, 96 should generally be fine.

https://i.postimg.cc/VLDTL3Tm/true-peaks.jpg

PS StainlessS, I bumped into your comment here (https://forum.doom9.org/showthread.php?p=1912206#post1912206) (thanks, by the way), so I thought I'd mention, if you haven't seen it, the idea inspired me to create some more MeGUI functions. In case you're interested......
https://forum.doom9.org/showthread.php?t=181500

StainlessS
1st June 2020, 15:31
I dont like to go too low, especially if viewing on hand held (phone) where volume of device can sometimes be quite low,
but thank you HH.

Lord Dredd
4th June 2020, 15:53
Hey Guys, How can i increase a 5.1 audio channel volume using megui?
I may raise certain eyebrows but I found MEGUI wanting in audio encoding, no matter wht I did I always ended up encoding a low volume aac file ..
after many months I moved to pazera (http://www.pazera-software.com/products/audio-extractor/)
It raises volume upto three times and its pretty efficient in encoding AAC , AC3 , MP3 ans a whole lot of other .. give it a go
Converting your 5.1 audio file to 5.1 ac3 9 mimimum would be 256 but 384 sounds very very good and aint big at all ]with volume slider all the way to right will surprise you.

=======================================

@ tebasuna51 and Hello_Hello
I am still not able to fine a way to display maximum bit-rate in a megui encoded video.

Also what are you guyz's thoughts about ABR encoding , 2 pass takes the most time but you know what you are doing , CRF well you cant really predict the size.. but I find CRF method to be pretty faster as its single pass..
DO you guys think its better to use ABR considering its 1 pass ( so less time ) plus you can predict the file size as well ??

What about the quality, will it be similar to 2pass for a given bitrate ??
I am again talking about bitrates in the range of 1500 to 2000 only ...

Also I know one should always keep thread count to 0/auto.. but to maximize CPU usage if there are no other bottlenecks, how many threads I can input just to make sure that maximum cpu is used while encoding..

Thank you

tebasuna51
5th June 2020, 00:15
I may raise certain eyebrows but I found MEGUI wanting in audio encoding, no matter wht I did I always ended up encoding a low volume aac file ..
after many months I moved to pazera
It raises volume upto three times and its pretty efficient in encoding AAC , AC3 , MP3 ans a whole lot of other .. give it a go
From Pazera web:
3rd party software
To encode the video and audio files the program uses the FFmpeg encoder (ffmpeg.org).

With MeGUI you can do the same, select the proper settings.

I am still not able to fine a way to display maximum bit-rate in a megui encoded video.
For what yo need know this?

DO you guys think its better to use ABR considering its 1 pass ( so less time ) plus you can predict the file size as well ??

Nope, use always crf.

What about the quality, will it be similar to 2pass for a given bitrate ??

Yes

Also I know one should always keep thread count to 0/auto.. but to maximize CPU usage if there are no other bottlenecks, how many threads

Let Auto

hello_hello
5th June 2020, 06:37
I may raise certain eyebrows but I found MEGUI wanting in audio encoding, no matter wht I did I always ended up encoding a low volume aac file ..
after many months I moved to pazera (http://www.pazera-software.com/products/audio-extractor/)
It raises volume upto three times and its pretty efficient in encoding AAC , AC3 , MP3 ans a whole lot of other .. give it a go
Converting your 5.1 audio file to 5.1 ac3 9 mimimum would be 256 but 384 sounds very very good and aint big at all ]with volume slider all the way to right will surprise you.

That bothers me a little because increasing the volume with Pazera doesn't seem to offer any clipping protection if you increase it too much. Do you use the Normalise option when converting with MeGUI?

My little comparisons were for a 5.1ch file downmixed to stereo, because without normalisation that's when you can notice a fair volume drop, because the volume should be lowered enough when downmixing so when the channels are combined they can't exceed maximum, even if the individual channels all happen to be at maximum at the same time.

Pazera simply downmixed and increased the volume with ffmpeg like this:
-c:a pcm_s16le -ac 2 -af volume=3.00
Without the volume adjustment, it's just this:
-c:a pcm_s16le -ac 2

MeGUI would be slower if you normalise, because it requires two passes. One to check the peak levels, then a second to adjust the volume and encode.

I assume ffmpeg uses a slightly different formula for downmixng than MeGUI, and I use a downmix formula using foobar2000 that's slightly different again, hence the average volumes being different in the screenshot below.
I assume ffmpeg has a method for normalising the peaks to 0dB, but Pazera doesn't seem to offer the option in the GUI.

Pazera 1x - Standard ffmpeg downmix.
MeGUI No Normalise - Standard MeGUI downmix without normalisation.
Foobar2000 Downmix Prevent Clipping - same as "MeGUI No Normalise" but using a different downmix formula.
Pazera 3x - Standard ffmpeg downmix plus Volume=3.
MeGUI Peak Normalise 95 Percent - Standard MeGUI downmix with peak normalisation set to 95%.
Foobar2000 Downmix - downmixed without reducing the volume to prevent the possibility of clipping. In this case there wasn't any.
Pazera 3x Foobar2000 Downmix - I used Pazera to re-encode the "Foobar2000 Downmix" file above while increasing the volume 3x. The average volume increased by around 10dB but the peaks were already just under maximum, so I assume they were clipped pretty hard.

If you're cranking the volume while re-encoding 5.1ch audio (without downmixing), I think you're very likely to cause the peaks to be clipped. It'd be no different to re-encoding stereo audio with peaks already at or close to 0dB, while cranking the volume.
The Track Gain column is a ReplayGain thing. You can ignore it. The Volume and Peak columns show the average and peak levels according to an EBU R128 scan, which is what I was interested in.

https://i.postimg.cc/QNfn7TBv/Volume-Comparison.jpg

https://i.postimg.cc/P5ntg9tW/Volume-3x.jpg

@ tebasuna51 and Hello_Hello
I am still not able to fine a way to display maximum bit-rate in a megui encoded video.

None of my encodes display it. Maybe it's something written by ffmpeg or a particular build of x264.

Also what are you guyz's thoughts about ABR encoding , 2 pass takes the most time but you know what you are doing , CRF well you cant really predict the size.. but I find CRF method to be pretty faster as its single pass..
DO you guys think its better to use ABR considering its 1 pass ( so less time ) plus you can predict the file size as well ??

Don't even consider contemplating the possibility of using ABR encoding. The encoder starts encoding and adjusts the quality to hit the target bitrate as it goes, because all it can do is guess. Find a shortish sample with a complex picture (and lots of movement) and encode them both at the same low bitrate using 2 pass and ABR and you should see the difference.
x264's rate control methods (https://forum.videohelp.com/threads/381668-would-it-make-more-sense-to-use-1-pass-encoding-instead-of-2-with-x265#post2470457)

Also I know one should always keep thread count to 0/auto.. but to maximize CPU usage if there are no other bottlenecks, how many threads I can input just to make sure that maximum cpu is used while encoding.

If memory serves, the default of zero means the thread count is 1.5x the number of CPU cores.

Lord Dredd
5th June 2020, 07:31
Thanks a bunch T :)
Take care Bud
Stay safe

EDIT :
To make the first pass faster i have set FFMS Thread count to 0 without any crashes , issues or stuff
Hope thats okay..

EDIT02 : Totally missed your post @ Hello_Hello
many thanks , But i used pazera to convert very high bitrate 5.1 ac3 audio to 2 channel aac audio.
and sometimes 5.1 high bitrate ac3 to 5.1 384kbps ac3

EDIT03 :
I read your post that you linked @Hello_Hello , TBH I would always want to encode the videos ( whenever my encoding bug starts to bite ;) ) using CRF only..
I had started with a number of my DVDs ( a few years back ;) ) and after converting a few i kept all the raw files in a HDD to experiment later , by the time Blurays got cheaper and once a tried a BR too.though my system needs a update as far as the ardware is concerned.

but the crux is I saw huge huge files when there was grain in the source video, crf gave big files and i stayed with 2 pass..
TBH even now I wonder about a simple degrain filter of avisynth coz I just cant get myself to use those complex filters lol

Same is with sharpening and denoising
I am experimenting with what you told about using the x264 inbuilt noise reducer and I am sure this will prove utterly helpful..
will be trying sharpen() filer only coz the videos that I am working on were professionally made, and then filtered, edited and made into a final copy by an office mate who is a specialist..

I am trying to hammer em a bit more just for the heck of it, you always learn new things by looking at professional material.

Lord Dredd
6th June 2020, 15:09
That bothers me a little because increasing the volume with Pazera doesn't seem to offer any clipping protection if you increase it too much. Do you use the Normalise option when converting with MeGUI?

My little comparisons were for a 5.1ch file downmixed to stereo, because without normalisation that's when you can notice a fair volume drop, because the volume should be lowered enough when downmixing so when the channels are combined they can't exceed maximum, even if the individual channels all happen to be at maximum at the same time.

Pazera simply downmixed and increased the volume with ffmpeg like this:
-c:a pcm_s16le -ac 2 -af volume=3.00
Without the volume adjustment, it's just this:
-c:a pcm_s16le -ac 2

MeGUI would be slower if you normalise, because it requires two passes. One to check the peak levels, then a second to adjust the volume and encode.

I assume ffmpeg uses a slightly different formula for downmixng than MeGUI, and I use a downmix formula using foobar2000 that's slightly different again, hence the average volumes being different in the screenshot below.
I assume ffmpeg has a method for normalising the peaks to 0dB, but Pazera doesn't seem to offer the option in the GUI.

Pazera 1x - Standard ffmpeg downmix.
MeGUI No Normalise - Standard MeGUI downmix without normalisation.
Foobar2000 Downmix Prevent Clipping - same as "MeGUI No Normalise" but using a different downmix formula.
Pazera 3x - Standard ffmpeg downmix plus Volume=3.
MeGUI Peak Normalise 95 Percent - Standard MeGUI downmix with peak normalisation set to 95%.
Foobar2000 Downmix - downmixed without reducing the volume to prevent the possibility of clipping. In this case there wasn't any.
Pazera 3x Foobar2000 Downmix - I used Pazera to re-encode the "Foobar2000 Downmix" file above while increasing the volume 3x. The average volume increased by around 10dB but the peaks were already just under maximum, so I assume they were clipped pretty hard.

If you're cranking the volume while re-encoding 5.1ch audio (without downmixing), I think you're very likely to cause the peaks to be clipped. It'd be no different to re-encoding stereo audio with peaks already at or close to 0dB, while cranking the volume.
The Track Gain column is a ReplayGain thing. You can ignore it. The Volume and Peak columns show the average and peak levels according to an EBU R128 scan, which is what I was interested in.

https://i.postimg.cc/QNfn7TBv/Volume-Comparison.jpg

https://i.postimg.cc/P5ntg9tW/Volume-3x.jpg



None of my encodes display it. Maybe it's something written by ffmpeg or a particular build of x264.



Don't even consider contemplating the possibility of using ABR encoding. The encoder starts encoding and adjusts the quality to hit the target bitrate as it goes, because all it can do is guess. Find a shortish sample with a complex picture (and lots of movement) and encode them both at the same low bitrate using 2 pass and ABR and you should see the difference.
x264's rate control methods (https://forum.videohelp.com/threads/381668-would-it-make-more-sense-to-use-1-pass-encoding-instead-of-2-with-x265#post2470457)



If memory serves, the default of zero means the thread count is 1.5x the number of CPU cores.



Yes I always used to use normalize option when I used to downmix 5.1 to stereo 128kbps HE or LC AAC.

You may be right about me cranking up the volume levels in pazera , BUt I ll be honest I found the audio much m,uch better on both my LG and Panasonic TVs , But yet to listen to this audio with my soundbar and home theater ( long story ;) lock down has put off a lot of repair works )

But I am game if you could guide me about which options to choose and which boxes to tick while downmixing a 5.1 DD to a 2 channel stereo & also converting a 5.1 AC3 DD or ATmos to 384kbps DD


===============

Apart from a few questions asked above I had some more queries about MEGUI
just yesterday I found a profile zip from 3 or may be 4 years back and in that qpmin was set to 10 and qpmax was set to 51
But in MEGUI x264 profiles they have been changed to 0 and 81 ( 69) actually whats your opinion : for lower , low and average bitrates x264 encodes what should be the values , are there some other settings as well in SLOWER profile apart from --nr that you guys feel should be changed to have better results.

whats your view of ref frames and bframes ( wrt slower profiles ) , some people advocate cranking them up a bit more especially bframes especially for low bitrate videos ???

This is a mediainfo detail of a 200MB video
I was surprised how a 200MB video of this much duration have bitrate that high.. This is some a friend of mine sent to me this morning, I have asked him to share the video as well but I dunno... I could make out its been encoded using Medium x265 profile with a crf of 23.5 but its totally beyond my understanding, Either this video has fabke info added to it or may be there is some secret recipe...


Format/Info : High Efficiency Video Coding
Format profile : Main@L4@Main
Codec ID : V_MPEGH/ISO/HEVC
Duration : 42 min 28 s
Bit rate : 8 007 kb/s
Width : 1 920 pixels
Height : 1 080 pixels
Display aspect ratio : 16:9
Frame rate mode : Constant
Frame rate : 23.976 (24000/1001) FPS
Color space : YUV
Chroma subsampling : 4:2:0
Bit depth : 8 bits
Bits/(Pixel*Frame) : 0.161
Stream size : 2.38 GiB
Writing library : x265 2.5+9-fdf39a97ecb8:[Linux][GCC 6.4.0][64 bit] 8bit+10bit+12bit
Encoding settings : cpuid=1050111 / frame-threads=3 / wpp / no-pmode / no-pme / no-psnr / no-ssim / log-level=2 / input-csp=1 / input-res=1920x1080 / interlace=0 / total-frames=0 / level-idc=0 / high-tier=1 / uhd-bd=0 / ref=3 / no-allow-non-conformance / no-repeat-headers / annexb / no-aud / no-hrd / info / hash=0 / no-temporal-layers / open-gop / min-keyint=23 / keyint=250 / bframes=4 / b-adapt=2 / b-pyramid / bframe-bias=0 / rc-lookahead=20 / lookahead-slices=6 / scenecut=40 / no-intra-refresh / ctu=64 / min-cu-size=8 / no-rect / no-amp / max-tu-size=32 / tu-inter-depth=1 / tu-intra-depth=1 / limit-tu=0 / rdoq-level=0 / dynamic-rd=0.00 / no-ssim-rd / signhide / no-tskip / nr-intra=0 / nr-inter=0 / no-constrained-intra / strong-intra-smoothing / max-merge=2 / limit-refs=3 / no-limit-modes / me=1 / subme=2 / merange=57 / temporal-mvp / weightp / no-weightb / no-analyze-src-pics / deblock=0:0 / sao / no-sao-non-deblock / rd=3 / no-early-skip / rskip / no-fast-intra / no-tskip-fast / no-cu-lossless / no-b-intra / rdpenalty=0 / psy-rd=2.00 / psy-rdoq=0.00 / no-rd-refine / analysis-reuse-mode=0 / no-lossless / cbqpoffs=0 / crqpoffs=0 / rc=crf / crf=23.5 / qcomp=0.60 / qpstep=4 / stats-write=0 / stats-read=0 / ipratio=1.40 / pbratio=1.30 / aq-mode=1 / aq-strength=1.00 / cutree / zone-count=0 / no-strict-cbr / qg-size=32 / no-rc-grain / qpmax=69 / qpmin=0 / no-const-vbv / sar=1 / overscan=0 / videoformat=5 / range=0 / colorprim=2 / transfer=2 / colormatrix=2 / chromaloc=0 / display-window=0 / max-cll=0,0 / min-luma=0 / max-luma=255 / log2-max-poc-lsb=8 / vui-timing-info / vui-hrd-info / slices=1 / opt-qp-pps / opt-ref-list-length-pps / no-multi-pass-opt-rps / scenecut-bias=0.05 / no-opt-cu-delta-qp / no-aq-motion / no-hdr / no-hdr-opt / no-dhdr10-opt / analysis-reuse-level=5 / scale-factor=0 / refine-intra=0 / refine-inter=0 / refine-mv=0 / no-limit-sao / ctu-info=0
Default : Yes
Forced : No

hello_hello
6th June 2020, 20:10
Lord Dredd,
When it comes to being able to hear everything without the loud parts being stupidly loud, I'd recommend trying the Dynamic Audio Normalizer. I use my PC as a media player so I downmix and compress the audio as it's being played (via ffdshow and a WinAmp plugin), but for the TV in another room I generally downmix to stereo and compress with the DAN.

A relativity easy way to try it (hopefully) is to download the portable version of foobar2000 I uploaded here (https://forum.doom9.org/showthread.php?p=1908807#post1908807). You'll also need ffmpeg. There's a text file with some instructions included. Once you're done you can load an audio file into a playlist, right click, select convert, and a list of my conversion presets will pop up. One is called "Downmix and Compression - Dynamic Audio Normalizer" or something similar. Select that preset and the output will be AAC. It's not overly high bitrate as I generally use it to create a temporary copy of the audio for watching in another room, but it's easy enough to edit/create a preset with higher bitrate AAC.

If you want to hear what it does, there's a zip file attached to this post (https://forum.doom9.org/showthread.php?p=1911061#post1911061) with some samples nobody bothered listening to. I was trying to show how much better it is than the method the OP was using. The idea is to compare the level of the speech at the beginning with the level of the loud stuff at the end. Ideally the loud stuff stays at the same volume while the quiet stuff gets louder. The audio in the zip file with the DAN settings I use is called "f=150 b=1.flac". There's another DAN example included using someone else's settings for comparison, although I prefer mine.

Edit: Thinking about it, Pazera lets you add stuff to the ffmpeg command line. Use it to downmix to stereo and add the following to the custom command line section. Leave the volume at 1x.
-af dynaudnorm=f=150:b=1
I haven't tested it, but it should work. I assume if you convert to AAC, Pazera uses ffmpeg to encode. The difference between doing it that way and my foobar2000 preset, is my preset uses ffmpeg to compress with the DAN, but it pipes the audio to QAAC for the actual encoding (and I probably downmix to stereo a little differently).
It'd possibly also work if you add it to the custom command line section for the formats where MeGUI uses ffmpeg for encoding, but if you do, don't enable peak normalising, or at least try it with and without.

I can't offer much of an opinion on qpmin/qpmax as I never play with them.

In theory, a higher number of reference and B frames should increase the possibility of compressing more for a given bitrate, but as a rule I just use the slow or slower preset and the number of reference and B frames that preset uses. How effective increasing the number of ref and B frames is, probably also depends on the motion estimation algorithm being used. I'm not much of an x264 tweaker but under x264's standard error stream in the MeGUI log file, there's information on reference and B frame usage.

ref P L0: 60.3% 16.9% 15.4% 3.5% 3.4% 0.4% 0.0%
ref B L0: 93.8% 4.7% 1.1% 0.4%
ref B L1: 99.0% 1.0%

I can't remember how to interpret it properly but the above was the result of the MeGUI command line below. Someone else may be able to explain it, but the way I remember it is if the numbers at the end of each line are zero or very close to it, you're into wasting CPU cycles territory if you increase the number of ref/B frames further.

"C:\Program Files\MeGUI\tools\x264\x264.exe" --level 4.1 --preset slow --tune film --crf 18.0 --min-keyint 25 --b-adapt 2 --vbv-bufsize 50000 --vbv-maxrate 50000 --me umh --stitchable --colormatrix bt470bg --sar 1:1 --frames 36931 --output "D:\0111.mkv.mkv" "D:\0111.mkv.avs"

According to MediaInfo your example isn't 200MB. Maybe you looked at the size of the audio stream by mistake.

Stream size : 2.38 GiB

tebasuna51
6th June 2020, 21:47
...for lower , low and average bitrates x264 encodes what should be the values , are there some other settings as well in SLOWER profile apart from --nr that you guys feel should be changed to have better results.

Nothing, please let the defaults than developers select for each profile.
Do you think than there are somebody than know better the encoder than the developers?

Select crf, preset, Target Playback device and encode.

Modify defaults can work ok for a movie but bad for another.
Don't exist miracle settings, let defaults.

whats your view of ref frames and bframes ( wrt slower profiles ) , some people advocate cranking them up a bit more especially bframes especially for low bitrate videos ???

Select preset VeriSlow (8 bframes, 16 ref-frames) or Placebo (16 bframes, 16 ref-frames)

Some playback devices can't support many bframes/ref-frames, don't forget the --level parameter.

tebasuna51
6th June 2020, 23:08
ref P L0: 60.3% 16.9% 15.4% 3.5% 3.4% 0.4% 0.0%
ref B L0: 93.8% 4.7% 1.1% 0.4%
ref B L1: 99.0% 1.0%

I can't remember how to interpret it properly but the above was the result of the MeGUI command line below. Someone else may be able to explain it, but the way I remember it is if the numbers at the end of each line are zero or very close to it, you're into wasting CPU cycles territory if you increase the number of ref/B frames further.

Preset slow implies --ref 5 and --weightp 2 is the default, then:

ref P L0: 60.3% of P frames have 1 reference
16.9% of P frames have 2 references
15.4% of P frames have 3 references
3.5% of P frames have 4 references
3.4% of P frames have 5 references
0.4% of P frames have 6 references
0.0% of P frames have 7 references (weightp 2 accept 2 more than the limit of --ref 5)

ref B L0: 93.8% of B frames have 1 back reference
4.7% of B frames have 2 back references
1.1% of B frames have 3 back references
0.4% of B frames have 4 back references

ref B L1: 99.0% of B frames have 1 forward reference
1.0% of B frames have 2 forward references

The % of B frames with 4 ref is very low, if the encode is a 1080p can't have 5 ref with --level 4.1 --vbv-bufsize 50000

Like you say search for more ref is waste the time.

hello_hello
7th June 2020, 00:01
Awesome tebasuna51. Thanks!

Edit: Looking again I picked a SD encode to use as an example, but at least we know what it all means now.

Lord Dredd
8th June 2020, 13:15
Thanks a lot for the insight again @ Hello_Hello :)
Will try and do the downmixing first then. as far as that stream size goes , I think the encoder has removed real info and added source info to the video. This is actually what the video mediainfo shows.

@ tebasuna51 : Indeed the developers know best , I donno 0.00000000001% TBH , Hence I keep lurking here time and again :)
I dont think I ll ever use any other preset than SLOWER, ever
As advised gonna stick to what the devs have pointed :)


One thing thats still a mystery to me is why all x265 encoded videos via MEGUI are cooler in color, do we need to tweak something or add something to the commandline to keep the colors similar to the source ..
Thanks

hello_hello
8th June 2020, 14:34
The x265 thing might be a rec.601 vs rec.709 vs rec.2020 issue.
https://en.wikipedia.org/wiki/Rec._601
https://en.wikipedia.org/wiki/Rec._709
https://en.wikipedia.org/wiki/Rec._2020

YV12 has to be converted to RGB on playback for display, and SD, HD and UHD use different formulas. It's more likely the player is making an assumption based on resolution and that's why the colors look different. Or the video card's drivers are borked. What's the resolution of the source and encode?
YV12 sources should just be decompressed and re-encoded as YV12 without a conversion to RGB and back (unless you're converting to RGB in a script for a filter that requires it), so re-encoding itself shouldn't change the colors, unless you downscale or upscale. For example, a SD source would usually be converted to RGB on playback using rec.601, but if you upscale to HD the player will probably use rec.709 instead, so you either need to convert the colors or set the correct colorimetry in the encoder configuration.
The difference between rec.601 and rec.709 isn't huge, but rec.2020 is a lot different.

The x264 encoder configuration offers the ability to write the correct colorimetry info via the GUI. It appears the x265 encoder configuration doesn't yet.

Did you have a listen to the samples of audio dynamic rage compression I linked to?

Lord Dredd
10th June 2020, 08:33
The x265 thing might be a rec.601 vs rec.709 vs rec.2020 issue.
https://en.wikipedia.org/wiki/Rec._601
https://en.wikipedia.org/wiki/Rec._709
https://en.wikipedia.org/wiki/Rec._2020

YV12 has to be converted to RGB on playback for display, and SD, HD and UHD use different formulas. It's more likely the player is making an assumption based on resolution and that's why the colors look different. Or the video card's drivers are borked. What's the resolution of the source and encode?
YV12 sources should just be decompressed and re-encoded as YV12 without a conversion to RGB and back (unless you're converting to RGB in a script for a filter that requires it), so re-encoding itself shouldn't change the colors, unless you downscale or upscale. For example, a SD source would usually be converted to RGB on playback using rec.601, but if you upscale to HD the player will probably use rec.709 instead, so you either need to convert the colors or set the correct colorimetry in the encoder configuration.
The difference between rec.601 and rec.709 isn't huge, but rec.2020 is a lot different.

The x264 encoder configuration offers the ability to write the correct colorimetry info via the GUI. It appears the x265 encoder configuration doesn't yet.

Did you have a listen to the samples of audio dynamic rage compression I linked to?

yes and I gotta say I found f=2000 g=23 m=15 b=1 to be most vibrant , the first three sounded alright the f=150 b=1 was also great but the other one had beefed up audio volumes so to me that sounded well.

I am not an expert and and I listened to them on my desktop speaker which is okish :)


Regarding the color so I never convert to RGB ever
AS i am these days trying on alreday converted videos so by and large all scripts use fpsnum=24000, fpsden=1001, colorspace="YUV420P8 at the end of source in avisynth..

strangely similar avisynth for a x264 video works well but when used with x265 cools the color off..
any tick you might wanna suggest to keep the colors as close to trhe original as possible.

hello_hello
11th June 2020, 04:53
yes and I gotta say I found to be most vibrant , the first three sounded alright the was also great but the other one had beefed up audio volumes so to me that sounded well.

I am not an expert and and I listened to them on my desktop speaker which is okish

Two of the samples were just a straight downmix (no compression) and there's one with very mild compression via Avisynth. The main difference between the two DAN samples is the speed at which it reacts to volume changes. My settings (f=150 b=1) react quite quickly, whereas the other settings (f=2000 g=23 m=15 b=1) are much slower. Both have advantages and disadvantages.

The DAN uses a kind of "window" for determining and adjusting the volume. If you compare the two samples, my settings keep the speech at much the same level throughout and the loud parts shouldn't be any louder than for a normal downmix.
For the other sample, the speech is louder at the beginning, but there's a section just before the first explosion where the volume of the speech starts to fade away, then the first explosion is probably a little louder than it was originally. I'm pretty sure that's due to the larger "window" it uses to determine volume.

The disadvantage of it reacting quickly is it can cause "volume pumping" on occasion....
Imagine a section of audio that's mostly normal speech with some light traffic noise in the background. In between people talking, where there's mostly silence, the volume of the background traffic can increase noticeably, then drop back down to a quieter level while someone talks, then get louder again where there's silence. That's the type of "volume pumping" I'm referring to.
If you use a TV with it's audio set to "night mode" there's a good chance you'll hear volume pumping for days, or just as bad, it'll sound like someone turned the volume down during a loud part, and they're slowly turning it up again while it's quiet.

Anyway.... the settings I use are what I found to give good compression, without noticeable volume pumping 99% of the time, and without being able to hear the volume being slowly adjusted to prevent volume pumping.... but it's all personal preference.


strangely similar avisynth for a x264 video works well but when used with x265 cools the color off..
any tick you might wanna suggest to keep the colors as close to trhe original as possible.

I can't think why x264 and x265 should look different when all else is equal, unless it's a playback issue. Someone else may have a better idea as I never use x265.

By the way, I know MeGUI automatically adds frame rate conversion to the script for ffms2, but don't use it unless the source is variable frame rate and you want to convert to a constant frame rate, in which case MeGUI will probably pick the wrong frame rate to convert to anyway.
Even if the specified frame rate is exactly the same as the source frame rate (in which case it should do nothing) it can still, on occasion, cause frames to be dropped and duplicated when they don't need to be and make the encode look "jittery". I'm talking about this:
fpsnum=24000, fpsden=1001
Unless you're converting the frame rate, delete it from the script.

Lord Dredd
11th June 2020, 13:24
Two of the samples were just a straight downmix (no compression) and there's one with very mild compression via Avisynth. The main difference between the two DAN samples is the speed at which it reacts to volume changes. My settings (f=150 b=1) react quite quickly, whereas the other settings (f=2000 g=23 m=15 b=1) are much slower. Both have advantages and disadvantages.

The DAN uses a kind of "window" for determining and adjusting the volume. If you compare the two samples, my settings keep the speech at much the same level throughout and the loud parts shouldn't be any louder than for a normal downmix.
For the other sample, the speech is louder at the beginning, but there's a section just before the first explosion where the volume of the speech starts to fade away, then the first explosion is probably a little louder than it was originally. I'm pretty sure that's due to the larger "window" it uses to determine volume.

The disadvantage of it reacting quickly is it can cause "volume pumping" on occasion....
Imagine a section of audio that's mostly normal speech with some light traffic noise in the background. In between people talking, where there's mostly silence, the volume of the background traffic can increase noticeably, then drop back down to a quieter level while someone talks, then get louder again where there's silence. That's the type of "volume pumping" I'm referring to.
If you use a TV with it's audio set to "night mode" there's a good chance you'll hear volume pumping for days, or just as bad, it'll sound like someone turned the volume down during a loud part, and they're slowly turning it up again while it's quiet.

Anyway.... the settings I use are what I found to give good compression, without noticeable volume pumping 99% of the time, and without being able to hear the volume being slowly adjusted to prevent volume pumping.... but it's all personal preference.
I think i had spoken too soon , you are correct the one that had your own settings was indeed most balanced .. I listened to them on my TV separately .. could you kindly gimme steps how i can use similar settings which improves the volume but propotionaley , in megui
Ac3 to ac3 and ac3 to aac - both higher to lower conversions as far as bitrate goes and from 5.12 ac3 to 2 ch aac



I can't think why x264 and x265 should look different when all else is equal, unless it's a playback issue. Someone else may have a better idea as I never use x265.

By the way, I know MeGUI automatically adds frame rate conversion to the script for ffms2, but don't use it unless the source is variable frame rate and you want to convert to a constant frame rate, in which case MeGUI will probably pick the wrong frame rate to convert to anyway.
Even if the specified frame rate is exactly the same as the source frame rate (in which case it should do nothing) it can still, on occasion, cause frames to be dropped and duplicated when they don't need to be and make the encode look "jittery". I'm talking about this:
fpsnum=24000, fpsden=1001

right , even I used to wonder their utility I dont work on frame rates and all ever .. so many thanks for pointing this out to me :)
will make a custom avisynth profile and remove these..
Unless you're converting the frame rate, delete it from the script.
one more thang that I have started adding to all my scripts is Sharpen(0.25) very light but helps as far as low bitrate hammering goes :) hope thats okay , doesn't really affect encoding speed too much[/QUOTE]

hello_hello
12th June 2020, 08:18
I think i had spoken too soon , you are correct the one that had your own settings was indeed most balanced .. I listened to them on my TV separately .. could you kindly gimme steps how i can use similar settings which improves the volume but propotionaley , in megui
Ac3 to ac3 and ac3 to aac - both higher to lower conversions as far as bitrate goes and from 5.12 ac3 to 2 ch aac

I haven't tested it myself, and for MeGUI it could only work for formats where ffmpeg is doing the encoding, but try the following. For both MeGUI and Pazera you'd probably want to downmix with them as you normally would while adding the DAN stuff to their custom command line sections.


Edit: Thinking about it, Pazera lets you add stuff to the ffmpeg command line. Use it to downmix to stereo and add the following to the custom command line section. Leave the volume at 1x.
-af dynaudnorm=f=150:b=1
I haven't tested it, but it should work. I assume if you convert to AAC, Pazera uses ffmpeg to encode. The difference between doing it that way and my foobar2000 preset, is my preset uses ffmpeg to compress with the DAN, but it pipes the audio to QAAC for the actual encoding (and I probably downmix to stereo a little differently).
It'd possibly also work if you add it to the custom command line section for the formats where MeGUI uses ffmpeg for encoding, but if you do, don't enable peak normalising, or at least try it with and without.

will make a custom avisynth profile and remove these.

Adding them was my idea, because I thought it'd make it easy for people to re-encode a variable frame rate source, but then the problems were discovered. The frame rate conversion was removed for Lsmash but not ffms2.
If you index with ffms2 I don't think you can stop MeGUI adding the frame rate stuff, but you can create a custom avisynth profile to remove it. Have a look here:
https://forum.videohelp.com/threads/397225-MeGui-How-to-get-path-name-of-current-file-in-the-queue-dynamically#post2583330
Or here's a version without the unnecessary stuff added for the OP of that thread. Of course if you don't index with ffms2 it'll prevent MeGUI opening the video and probably give you errors (Damn! I just had a thought for creating a template that'd do the following but still let you index with another source. I'll try it later and see if it works). This one doesn't include any colorspace conversion but you can add that to the FFVideoSource line if you want to.

Edit: Updated version of the template in this post (https://forum.doom9.org/showthread.php?t=105920&page=454).

InputString = """<input>"""

No1 = FindStr(InputString, "FFVideoSource") + 15
No2 = FindStr(InputString, "cachefile")
No3 = FindStr(InputString, "ffindex")
File = MidStr(InputString, No1, No2-No1-3)
CFile = MidStr(InputString, No2+11, No3-No2-4)

FFVideoSource(File, cachefile=CFile)
<deinterlace>
<crop>
<denoise>
<resize>

one more thang that I have started adding to all my scripts is Sharpen(0.25) very light but helps as far as low bitrate hammering goes :) hope thats okay , doesn't really affect encoding speed too much

I can't say I've used it much as I generally use LSFMod for sharpening, but if it's fast and you like it, why not?

hello_hello
12th June 2020, 09:12
will make a custom avisynth profile and remove these.

A template that'd work for any indexer is so obvious... in hindsight... I feel a little "special" for not having thought of it already. :)
The number of times I've deleted the frame rate stuff from the script, changed something in the script creator, had to delete it again, changed something, deleted....

This should remove the frame rate conversion stuff for FFVideoSource while leaving any other source filter untouched.
It includes colorspace="YUV420P8", but of course that's optional (just manually add or remove it). As is the LoadPlugin line for FFVideoSource. I have ffms2.dll auto-loading <edit> but I extracted the path for it and I'm pretty sure it works.

Edit: Updated version of the template and function below in this post (https://forum.doom9.org/showthread.php?t=105920&page=454).

InputString = """<input>"""
SomeNumber = FindStr(InputString, "FFVideoSource")
(SomeNumber == 0) ? Eval(InputString) : Eval("""
No1 = SomeNumber + 15
No2 = FindStr(InputString, "cachefile")
No3 = FindStr(InputString, "ffindex")
File = MidStr(InputString, No1, No2-No1-3)
CFile = MidStr(InputString, No2+11, No3-No2-4)
Plugged = MidStr(InputString, 13, SomeNumber-17)
LoadPlugin(Plugged)
FFVideoSource(File, cachefile=CFile, colorspace="YUV420P8")
""")
<deinterlace>
<crop>
<denoise>
<resize>

And thinking about it again, it turns into a function pretty easily, to make for neater Avisynth templates.

As a function:
function MeGUISource(string InputString)
{
SomeNumber = FindStr(InputString, "FFVideoSource")
(SomeNumber == 0) ? Eval(InputString) : Eval("""
No1 = SomeNumber + 15
No2 = FindStr(InputString, "cachefile")
No3 = FindStr(InputString, "ffindex")
File = MidStr(InputString, No1, No2-No1-3)
CFile = MidStr(InputString, No2+11, No3-No2-4)
Plugged = MidStr(InputString, 13, SomeNumber-17)
LoadPlugin(Plugged)
FFVideoSource(File, cachefile=CFile, colorspace="YUV420P8")
""")
}

Template:
Import("MeGUISource.avsi") # or auto-load it
MeGUISource("""<input>""")
<deinterlace>
<crop>
<denoise>
<resize>

Lord Dredd
12th June 2020, 09:19
A template that'd work for any indexer is so obvious... in hindsight... I feel a little "special" for not having thought of it already. :)
The numbers of times I deleted the frame rate stuff from the script, changed something in the script creator, had to delete it again, changed something, deleted....

This should remove the frame rate conversion stuff for FFVideoSource while leaving any other source filter untouched.

InputString = """<input>"""
SomeNumber = FindStr(InputString, "FFVideoSource")
(SomeNumber == 0) ? Eval(InputString) : Eval("""
No1 = SomeNumber + 15
No2 = FindStr(InputString, "cachefile")
No3 = FindStr(InputString, "ffindex")
File = MidStr(InputString, No1, No2-No1-3)
CFile = MidStr(InputString, No2+11, No3-No2-4)
FFVideoSource(File, cachefile=CFile)
""")
<deinterlace>
<crop>
<denoise>
<resize>

Actually the thing is , because FFMSIndex scans the file faster and does it pretty quickly I used to avoid using L-Smash-Works to index the source ;)
Since you pointed out I have moved back to L-Smash-Works now and it doesnt add those fps and stuff :)

hello_hello
12th June 2020, 12:09
The speed increase is probably because MeGUI can tell ffms2 to only index the video. Lsmash indexes video and audio. The bigger the source file, the longer Lsmash takes relative to ffms2. At least it used to, but apparently the latest version can be told to only index the video, however I don't know if MeGUI has been updated for that yet. I haven't updated MeGUI myself for a while and the newer Lsmash won't work on XP anyway.

Lord Dredd
12th June 2020, 18:41
The speed increase is probably because MeGUI can tell ffms2 to only index the video. Lsmash indexes video and audio. The bigger the source file, the longer Lsmash takes relative to ffms2. At least it used to, but apparently the latest version can be told to only index the video, however I don't know if MeGUI has been updated for that yet. I haven't updated MeGUI myself for a while and the newer Lsmash won't work on XP anyway.

That would be great , TBH Lsmash takes roughly 4x the time that FFMS takes ( even now , i always use stable servers to update megui and keep checking for the updates ).

But the amount of time that Lsmash takes is painfully higher ....
and the script loading takes extra time if made via Lsmash :(

HOB
12th June 2020, 19:38
"Runtime Files" update - Error?

When I start the latest version of MeGUI - 2924 - it tells me there are updates available but when I click to see what the update info is I get the following regarding "Runtime Files":

Update Local Version 5 Server Version 4 Local Date 5/24/2020 Server Date 5/1/2020

Very clearly the update is an OLDER version of the Runtime Files so my question is should I update anyway or just ignore this particular update? It occurred to me the NEW Version 5 may have issues so it correctly wants to go BACK to Version 4...could this be the case?

Thanks.

hello_hello
13th June 2020, 02:39
....
and the script loading takes extra time if made via Lsmash :(

Yeah, that probably annoys me the most.
I haven't done much encoding since creating the function a few posts ago, but I've been using it without any issue so far, so maybe give it a try if you prefer ffms2.

Lord Dredd
13th June 2020, 07:27
Yeah, that probably annoys me the most.
I haven't done much encoding since creating the function a few posts ago, but I've been using it without any issue so far, so maybe give it a try if you prefer ffms2.
So all i need to do is add these in my final avisynth script ofcourse then I ll have to manually edit the script for adding the input and all

Is there no way to automate
or I can just remove those frame strings from my own script in the nd before hitting ok

hello_hello
14th June 2020, 10:10
So all i need to do is add these in my final avisynth script of course then I ll have to manually edit the script for adding the input and all

Is there no way to automate
or I can just remove those frame strings from my own script in the nd before hitting ok

The whole point of the function is to automate removing the frame rate stuff, but yes you can just delete it manually before saving the script instead of using the function/template.

Edit 1: I discovered today that if the index file is saved to the same folder as the source file, MeGUI doesn't add the cachefile argument to the script, which breaks the function and template I originally posted, so I've edited the post to update them to fix the problem. I didn't bother updating the screenshots though.

Edit 2: And another edit, as the Edit #1 fix broke the function/template for file names and paths containing a comma.

To use the function version, create an AVS Profile (template) using the following MeGUISource function.

function MeGUISource(string InputString) {

SomeNumber = FindStr(InputString, "FFVideoSource")

(SomeNumber == 0) ? Eval(InputString) : Eval("""

No1 = SomeNumber + 15
No2 = FindStr(InputString, "cachefile=")
No3 = FindStr(InputString, "fpsnum=")
File = (No2 > 0) ? MidStr(InputString, No1, No2-No1-3) : MidStr(InputString, No1, No3-No1-3)
CFile = (No2 > 0) ? MidStr(InputString, No2+11, No3-No2-14) : ""
Plugged = MidStr(InputString, 13, SomeNumber-17)

LoadPlugin(Plugged)
FFVideoSource(File, cachefile=CFile, threads=1, colorspace="YUV420P8") """) }

# The line above decodes the video for ffms2.
# The colorspace and thread arguments need to be removed or changed manually.
# The function doesn't automatically extract them even if MeGUI adds them to the script.

Import("MeGUISource.avsi") # or auto-load it
MeGUISource("""<input>""")
<deinterlace>
<crop>
<denoise>
<resize>

MeGUI will still add the frame rate stuff to the script when it creates one, but the MeGUISource function will remove it and output the video. You need to add the color format conversion argument to the new FFVideoSource line in the function yourself if you want to include it (but it's already added for the function I posted). You can confirm the frame rate stuff is being removed by changing it manually and refreshing the preview. The frame rate/count won't change.

If you don't want to Import the function in a template or auto-load it, use the long version below. Either way, only the FFVideoSource line is changed and the input line for other source filters is untouched.
What they do for FFVideoSource, is convert the input line into a string, extract the plugin path and file name etc, then create a new LoadPlugin line and a new FFVideoSource line without the frame rate conversion.

InputString = """<input>"""
SomeNumber = FindStr(InputString, "FFVideoSource")
(SomeNumber == 0) ? Eval(InputString) : Eval("""
No1 = SomeNumber + 15
No2 = FindStr(InputString, "cachefile=")
No3 = FindStr(InputString, "fpsnum=")
File = (No2 > 0) ? MidStr(InputString, No1, No2-No1-3) : MidStr(InputString, No1, No3-No1-3)
CFile = (No2 > 0) ? MidStr(InputString, No2+11, No3-No2-14) : ""
Plugged = MidStr(InputString, 13, SomeNumber-17)

LoadPlugin(Plugged)
FFVideoSource(File, cachefile=CFile, threads=1, colorspace="YUV420P8") """)
# The line above decodes the video for ffms2.
# The colorspace and thread arguments need to be removed or changed manually.
# The template doesn't automatically extract them even if MeGUI adds them to the script
<deinterlace>
<crop>
<denoise>
<resize>

Thumbnails
https://i.postimg.cc/WqrtLpJ6/template1.jpg (https://postimg.cc/WqrtLpJ6) https://i.postimg.cc/Pp0NRvN5/template2.jpg (https://postimg.cc/Pp0NRvN5)

By the way, after indexing with ffms2 you can see what's happening by adding something like this to the end of a script using the template (for other source filters they'll result in an error message). It'll only work for the long template, not the template using the MeGUISource function.

subtitle(Plugged) # will display the LoadPlugin path as a subtitle
or
subtitle(File) # will display the path to the source file as a subtitle
or
subtitle(CFile) # will display the path to the cache file as a subtitle (if there is one).

imsrk48
26th June 2020, 04:33
@imsrk48
https://i.postimg.cc/JtbyTNw0/normalize.jpg (https://postimg.cc/JtbyTNw0)Thanks a lot Sir

beto
2nd July 2020, 03:48
I have some news. I found the tech specs regarding HEVC playback on the Apple TV HD:

HEVC SDR up to 1080p, 30 fps, Main/Main 10 profile

H.264 video up to 1080p, 60 fps, High or Main Profile level 4.2 or lower

H.264 Baseline Profile level 3.0 or lower with AAC-LC audio up to 160 Kbps per channel, 48kHz, stereo audio in .m4v, .mp4, and .mov file formats

MPEG-4 video up to 2.5 Mbps, 640 by 480 pixels, 30 fps, Simple Profile with AAC-LC audio up to 160 Kbps, 48kHz, stereo audio in .m4v, .mp4, and .mov file formats

Maybe this sheds some light as to what encoder settings should I use in x265 to sucessfully playback HEVC streams in Apple TV.


Thank you for taking the time to look into it.

a) I am positive it can. I am trying to play the file on an iPhone 11 Plus with iOS 13.4 so it can play HEVC. As for Profile@Level I do not know if there are any restrictions in the iPhone. Does anyone know anything about that and can contribute?

b) I always set up the Apple TV flag in the MP4 multiplexer (I set Device Type to Apple TV in MeGUI). I always run the multiplexer at the end of the process separately joining audio and video. This works if I mux h264 video and the files play fine in the iPhone but does not work if I use hevc video.

ps. I do not use One Click Encoder or the Auto Encode features in MeGUI.

beto
2nd July 2020, 19:42
I have tested the -P main and -P main10 switches in x265 and the resulting stream (muxed in an mp4/m4v container) does not play in iTunes, iPhone or Apple TV. Looking at the specs I thought they would work but that is not the case.

Maybe there is some other hidden setting I am missing. Did anyone have any success converting videos to HEVC using x265 and playing them back in an Apple device?

Additionally what does SDR mean right after HEVC in Apple's tech specs above?

Thanks.

tebasuna51
3rd July 2020, 00:51
Additionally what does SDR mean right after HEVC in Apple's tech specs above?

Standard Dynamic Range (https://www.viewsonic.com/library/photography/what-is-hdr-hdr-vs-sdr/) of color, the same used in BD's (REC 709), seems don't support High Dynamic Range used in UHD (REC 2020)

But if your sources are DVD's that can't be a problem.
Put a full MediaInfo (advanced mode) of your encodes to see if there are some problem.

BTW for the DVD resolution you can use h264, HEVC is more efficient for high resolution.

JKyle
3rd July 2020, 02:01
I have tested the -P main and -P main10 switches in x265 and the resulting stream (muxed in an mp4/m4v container) does not play in iTunes, iPhone or Apple TV. Looking at the specs I thought they would work but that is not the case.

Maybe there is some other hidden setting I am missing. Did anyone have any success converting videos to HEVC using x265 and playing them back in an Apple device?

Apple devices or native Apple players do not play HEVC video streams muxed in an mp4/m4v container with video Codec ID hev1. It only plays OK when the Codec ID is hvc1. This is a very weird behavior considering ffmpeg puts hev1 as the video Codec ID for an HEVC stream in mp4/m4v by default.

Look up the media info of your file and see if it's hev1. If so, fix it by running ffmpeg in CMD like this:

ffmpeg -hide_banner -i INPUT -map 0 -c copy -tag:v hvc1 OUTPUT.mp4

INPUT and OUTPUT should be modified adequately.

Since streams are just copied and only the tag metadata is changed, this will be done very quickly.

beto
3rd July 2020, 02:17
Standard Dynamic Range (https://www.viewsonic.com/library/photography/what-is-hdr-hdr-vs-sdr/) of color, the same used in BD's (REC 709), seems don't support High Dynamic Range used in UHD (REC 2020)

But if your sources are DVD's that can't be a problem.
Put a full MediaInfo (advanced mode) of your encodes to see if there are some problem.

BTW for the DVD resolution you can use h264, HEVC is more efficient for high resolution.

Thank you very much tebasuna51 for the insights. Find below the Mediainfo details for the file:

https://pastebin.com/TgqUYw7g

I cannot quote it here due to post size limits.

Thanks and regards.

beto
3rd July 2020, 02:36
Apple devices or native Apple players do not play HEVC video streams muxed in an mp4/m4v container with video Codec ID hev1. It only plays OK when the Codec ID is hvc1. This is a very weird behavior considering ffmpeg puts hev1 as the video Codec ID for an HEVC stream in mp4/m4v by default.

Look up the media info of your file and see if it's hev1. If so, fix it by running ffmpeg in CMD like this:

ffmpeg -hide_banner -i INPUT -map 0 -c copy -tag:v hvc1 OUTPUT.mp4

INPUT and OUTPUT should be modified adequately.

Since streams are just copied and only the tag metadata is changed, this will be done very quickly.

Thank you JKyle. I just tried your ffmpeg command line suggestion and had the same result. The stream is not playable in an apple device.

If you take a look at line 93 of the Mediainfo information for the original file (before the ffmpeg operation suggested by you) the codecID was already set to hvc1.

Thanks again for the suggestion.

tebasuna51
3rd July 2020, 04:00
Sorry, I don't know what can be the problem seems a pure SDR

Bit depth: 8 bits / no-hdr / no-hdr-opt / no-dhdr10-opt /

beto
6th July 2020, 20:25
Sorry, I don't know what can be the problem seems a pure SDR

Bit depth: 8 bits / no-hdr / no-hdr-opt / no-dhdr10-opt /

Thanks anyway for taking the time to look into it tebasuna51. It also puzzles me why it is not working.

Maybe someone else already had a similar issue an can shed some light on this.

Thanks again.

j8ee
7th July 2020, 12:39
After several updates after a period of no use, including an update to mp4box 1.0 in MeGUI dev server, muxing hevc and aac to mp4 stops with an error message from mp4box.exe regarding a missing OpenSVCDecoder.dll and a suggestion to re-install it?

MeGUI 2924 from the log:

mp4box.exe -add "C:\Temp\video.hevc#trackID=1:fps=29.13:par=4:3:name=" -add "C:\Temp\audio.aac#trackID=1:name=" -tmp "C:\\Temp" -new "C:\Temp\video-muxed.mp4"

-[Error] [2020-07-07 13:19:49] Process exits with error: 0xC0000135 STATUS_DLL_NOT_FOUND (-1073741515)

edit: Thanks...! I only searched this specific thread, I realize now.
edit 2: Still doesn't work, another error with something about wrong image type. Copied the rest of the .dll's as I suspected especially the hevc ones had something to do with it, but no. Will wait for a server package update.

tebasuna51
7th July 2020, 17:21
See the bug report thread: https://forum.doom9.org/showthread.php?p=1917826#post1917826

ed_co
12th July 2020, 23:08
The first line worked great, thanks. What if I wanted to slow down without pitch correction?

You can't do it with the atempo filter, but you can do it with rubberband this way:

-af "rubberband=tempo='20.0/22.0':pitch='20.0/22.0'"

There should be a way to do it by speeding the audio up with the asetrate filter and then resampling it, but I couldn't seem to get it to work. I'm not very clever with ffmpeg.

Hello,

This command line without pitch correction doesn't work for me.
It starts the process, but then it interrupts leaving a small *.lwi file there.
The command line with pitch correction works perfectly: -af "atempo='20.0/22.0'"
Can anyone help me? I don't want the pitch correction in a custom speed.

Thanks

tebasuna51
13th July 2020, 23:00
slowdown 11/10: -af "aresample=52800, asetrate=48000"
speedup 10/11: -af "asetrate=52800, aresample=48000"

ed_co
15th July 2020, 23:19
slowdown 11/10: -af "aresample=52800, asetrate=48000"
speedup 10/11: -af "asetrate=52800, aresample=48000"

Thanks for the reply. I thought that we have to use rubberband in order to achieve the non pitch one.

hello_hello
16th July 2020, 17:53
Thanks for the reply. I thought that we have to use rubberband in order to achieve the non pitch one.

It's not that you need to use rubberband, but at the time I couldn't remember how to do it, or maybe I couldn't get it to work.... I can't remember.... but the method tebasuna51 posted works fine if you don't want pitch correction.

I assume aresample resamples the audio at the specified rate, and asetrate changes the output sample rate to the original rate by speeding up or slowing down the audio rather than resampling (something like AssumeFPS for audio) which would change the pitch.

If you're not able to get rubberband to work it could be because the version of ffmpeg you're using doesn't include it. I haven't used the ffmpeg included with MeGUI in a fair while as it's not XP compatible. Is there an error message? You should be able to add -report to the custom command line and ffmpeg will create a log file, probably in the destination folder or wherever ffmpeg is located.

tebasuna51
17th July 2020, 00:23
The ffmpeg with MeGUI doesn't include --enable-librubberband

You can check it with:

ffmpeg -buildconf

Not included in Zeranoe, Sherpya and Reino (https://forum.doom9.org/showthread.php?p=1917997#post1917997) versions

hello_hello
17th July 2020, 01:07
The Reno ffmpeg build dated 2019-08-30 includes rubberband, but for some reason the more recent versions don't.

https://rwijnsma.home.xs4all.nl/files/ffmpeg/

ffmpeg-4.3-327-g83e0b71-win32-static-xpmod-sse.7z (https://rwijnsma.home.xs4all.nl/files/ffmpeg/ffmpeg-4.3-327-g83e0b71-win32-static-xpmod-sse.7z)

LigH
17th July 2020, 07:23
Reading the media-autobuild suite batch, librubberband can be included in full mode, which would usually create a non-distributable mix of licenses. So to create a distributable version of ffmpeg using MABS which includes rubberband, one may have to use the custom mode and manually tune the ffmpeg_options.txt to include GPL libraries but exclude educational licenses like the one of fdk-aac. Or you just build your private full version and don't share it.

LeXXuz
4th September 2020, 17:00
I'm desperately looking for the custom worker queues. I remember I was able to create custom workers and sent certain jobs to them, so I was able to create different queues. Has this feature been removed? :confused:

hello_hello
7th September 2020, 17:24
I'm desperately looking for the custom worker queues. I remember I was able to create custom workers and sent certain jobs to them, so I was able to create different queues. Has this feature been removed? :confused:

It's been removed/changed/updated..... however you might describe it. Now there's one worker and you configure the number of jobs of a particular type that will run simultaneously in options.

Fortunately though, I'm pretty sure temporary workers can still do their own thing as custom workers used to. You should be able to select a bunch of jobs in the job queue and right click to run them in a temporary worker, then select another lot of jobs and run them in a different temporary worker etc.

That's mostly how I did it myself, even back when custom workers were a thing.

LeXXuz
8th September 2020, 07:31
I see. Well that's a pitty but I guess that feature wasn't used by many. :(

Danette
8th September 2020, 21:05
The "Downmix multichannel to Stereo" option in MeGUI does not seem to work. The best searching that I've been able to do indicates that this is because Avisynth does not actually have this capability and, therefore, MeGUI is helpless. Is this true? If not, can anyone point me in the direction of successfully accomplishing this with MeGUI?

jlw_4049
8th September 2020, 21:56
The "Downmix multichannel to Stereo" option in MeGUI does not seem to work. The best searching that I've been able to do indicates that this is because Avisynth does not actually have this capability and, therefore, MeGUI is helpless. Is this true? If not, can anyone point me in the direction of successfully accomplishing this with MeGUI?Could use eac3to, ffmpeg, my ffmpeg audio encoding program, and many more.

However megui should be capable of downmixing to 2.0.

Staxrip also features a decent audio encoder GUI.

Sent from my SM-G986U1 using Tapatalk

StainlessS
8th September 2020, 22:02
You best post in Avisynth Usage,
Maybe see/ask here:- https://forum.doom9.org/showthread.php?p=1882416#post1882416

I generailly just use this [FAVCStereo], no idea if perfect [originally posted on-site somewhere, or maybe @VideoHelp].

Function FAVCStereo(clip Video, clip Audio) {

Dubbed = Video

Chan0 = (HasAudio(Audio)==False) ? AudioDub(Video, BlankClip(Video, audio_rate=48000, stereo=true)) : nop()
Dubbed = (HasAudio(Audio)==False) ? Chan0 : Dubbed

Audio = (HasAudio(Audio)==True) ? ConvertAudioToFloat(Audio) : Audio

Chan1 = (AudioChannels(Audio)==1) ? Audiodub(Video, GetChannel(Audio, 1, 1)) : nop()
Dubbed = (AudioChannels(Audio)==1) ? Chan1 : Dubbed

Chan2 = (AudioChannels(Audio)==2) ? Audiodub(Video, Audio) : nop()
Dubbed = (AudioChannels(Audio)==2) ? Chan2 : Dubbed

FrontLeft = (AudioChannels(Audio)==3) ? MixAudio(GetChannel(Audio, 1), GetChannel(Audio, 2), 0.5, 0.5) : nop()
FrontRight = (AudioChannels(Audio)==3) ? MixAudio(GetChannel(Audio, 3), GetChannel(Audio, 2), 0.5, 0.5) : nop()
Chan3 = (AudioChannels(Audio)==3) ? Audiodub(Video, MergeChannels(FrontLeft, FrontRight)) : nop()
Dubbed = (AudioChannels(Audio)==3) ? Chan3 : Dubbed

TotalLeft = (AudioChannels(Audio)==4) ? MixAudio(GetChannel(Audio, 1), GetChannel(Audio, 3), 0.5, 0.5) : nop()
TotalRight = (AudioChannels(Audio)==4) ? MixAudio(GetChannel(Audio, 2), GetChannel(Audio, 4), 0.5, 0.5) : nop()
Chan4 = (AudioChannels(Audio)==4) ? Audiodub(Video, MergeChannels(TotalLeft, TotalRight)) : nop()
Dubbed = (AudioChannels(Audio)==4) ? Chan4 : Dubbed

FrontLeft = (AudioChannels(Audio)==5) ? MixAudio(GetChannel(Audio, 1), GetChannel(Audio, 2), 0.3694, 0.2612) : nop()
FrontRight = (AudioChannels(Audio)==5) ? MixAudio(GetChannel(Audio, 3), GetChannel(Audio, 2), 0.3694, 0.2612) : nop()
TotalLeft = (AudioChannels(Audio)==5) ? MixAudio(FrontLeft, GetChannel(Audio, 4), 1, 0.3694) : nop()
TotalRight = (AudioChannels(Audio)==5) ? MixAudio(FrontRight, GetChannel(Audio, 5), 1, 0.3694) : nop()
Chan5 = (AudioChannels(Audio)==5) ? Audiodub(Video, MergeChannels(TotalLeft, TotalRight)) : nop()
Dubbed = (AudioChannels(Audio)==5) ? Chan5 : Dubbed

BackLeft = (AudioChannels(Audio)>=6) ? MixAudio(GetChannel(Audio, 4), GetChannel(Audio, 6), 0.2698, 0.2698) : nop()
BackRight = (AudioChannels(Audio)>=6) ? MixAudio(GetChannel(Audio, 5), GetChannel(Audio, 6), 0.2698, 0.2698) : nop()
FrontLeft = (AudioChannels(Audio)>=6) ? MixAudio(GetChannel(Audio, 1), GetChannel(Audio, 2), 0.2698, 0.1906) : nop()
FrontRight = (AudioChannels(Audio)>=6) ? MixAudio(GetChannel(Audio, 3), GetChannel(Audio, 2), 0.2698, 0.1906) : nop()
TotalLeft = (AudioChannels(Audio)>=6) ? MixAudio(FrontLeft, BackLeft, 1, 1) : nop()
TotalRight = (AudioChannels(Audio)>=6) ? MixAudio(FrontRight, BackRight, 1, 1) : nop()
Chan6 = (AudioChannels(Audio)>=6) ? Audiodub(Video, MergeChannels(TotalLeft, TotalRight)) : nop()
Dubbed = (AudioChannels(Audio)>=6) ? Chan6 : Dubbed


# Dubbed = (HasAudio(Audio)==True) ? Normalize(Dubbed) : Dubbed
# Dubbed = (HasAudio(Audio)==True) ? SSRC(Dubbed, 48000) : Dubbed
Dubbed = (HasAudio(Audio)==True) ? ConvertAudioTo16bit(Dubbed) : Dubbed

return(Dubbed)
}

Function FAVCStereoDSS(clip Video, clip Audio) {

Dubbed = Video

Chan0 = (HasAudio(Audio)==False) ? AudioDub(Video, BlankClip(Video, audio_rate=48000, stereo=true)) : nop()
Dubbed = (HasAudio(Audio)==False) ? Chan0 : Dubbed

Audio = (HasAudio(Audio)==True) ? ConvertAudioToFloat(Audio) : Audio

Chan1 = (AudioChannels(Audio)==1) ? Audiodub(Video, GetChannel(Audio, 1, 1)) : nop()
Dubbed = (AudioChannels(Audio)==1) ? Chan1 : Dubbed

Chan2 = (AudioChannels(Audio)==2) ? Audiodub(Video, Audio) : nop()
Dubbed = (AudioChannels(Audio)==2) ? Chan2 : Dubbed

FrontLeft = (AudioChannels(Audio)==3) ? MixAudio(GetChannel(Audio, 1), GetChannel(Audio, 3), 0.5, 0.5) : nop()
FrontRight = (AudioChannels(Audio)==3) ? MixAudio(GetChannel(Audio, 2), GetChannel(Audio, 3), 0.5, 0.5) : nop()
Chan3 = (AudioChannels(Audio)==3) ? Audiodub(Video, MergeChannels(FrontLeft, FrontRight)) : nop()
Dubbed = (AudioChannels(Audio)==3) ? Chan3 : Dubbed

TotalLeft = (AudioChannels(Audio)==4) ? MixAudio(GetChannel(Audio, 1), GetChannel(Audio, 3), 0.5, 0.5) : nop()
TotalRight = (AudioChannels(Audio)==4) ? MixAudio(GetChannel(Audio, 2), GetChannel(Audio, 4), 0.5, 0.5) : nop()
Chan4 = (AudioChannels(Audio)==4) ? Audiodub(Video, MergeChannels(TotalLeft, TotalRight)) : nop()
Dubbed = (AudioChannels(Audio)==4) ? Chan4 : Dubbed

FrontLeft = (AudioChannels(Audio)==5) ? MixAudio(GetChannel(Audio, 1), GetChannel(Audio, 3), 0.3694, 0.2612) : nop()
FrontRight = (AudioChannels(Audio)==5) ? MixAudio(GetChannel(Audio, 2), GetChannel(Audio, 3), 0.3694, 0.2612) : nop()
TotalLeft = (AudioChannels(Audio)==5) ? MixAudio(FrontLeft, GetChannel(Audio, 4), 1, 0.3694) : nop()
TotalRight = (AudioChannels(Audio)==5) ? MixAudio(FrontRight, GetChannel(Audio, 5), 1, 0.3694) : nop()
Chan5 = (AudioChannels(Audio)==5) ? Audiodub(Video, MergeChannels(TotalLeft, TotalRight)) : nop()
Dubbed = (AudioChannels(Audio)==5) ? Chan5 : Dubbed

BackLeft = (AudioChannels(Audio)>=6) ? MixAudio(GetChannel(Audio, 5), GetChannel(Audio, 4), 0.2698, 0.2698) : nop()
BackRight = (AudioChannels(Audio)>=6) ? MixAudio(GetChannel(Audio, 6), GetChannel(Audio, 4), 0.2698, 0.2698) : nop()
FrontLeft = (AudioChannels(Audio)>=6) ? MixAudio(GetChannel(Audio, 1), GetChannel(Audio, 3), 0.2698, 0.1906) : nop()
FrontRight = (AudioChannels(Audio)>=6) ? MixAudio(GetChannel(Audio, 2), GetChannel(Audio, 3), 0.2698, 0.1906) : nop()
TotalLeft = (AudioChannels(Audio)>=6) ? MixAudio(FrontLeft, BackLeft, 1, 1) : nop()
TotalRight = (AudioChannels(Audio)>=6) ? MixAudio(FrontRight, BackRight, 1, 1) : nop()
Chan6 = (AudioChannels(Audio)>=6) ? Audiodub(Video, MergeChannels(TotalLeft, TotalRight)) : nop()
Dubbed = (AudioChannels(Audio)>=6) ? Chan6 : Dubbed


# Dubbed = (HasAudio(Audio)==True) ? Normalize(Dubbed) : Dubbed
# Dubbed = (HasAudio(Audio)==True) ? SSRC(Dubbed, 48000) : Dubbed
Dubbed = (HasAudio(Audio)==True) ? ConvertAudioTo16bit(Dubbed) : Dubbed

return(Dubbed)
}


EDIT:
However megui should be capable of downmixing to 2.0.
Was not aware of this, anyway script is another option.

EDIT: Yeh, MeGUI can do it via Audio Encoder settings, config, Output channels, Downmix multichannel to stereo.

tebasuna51
8th September 2020, 22:35
The "Downmix multichannel to Stereo" option in MeGUI does not seem to work. The best searching that I've been able to do indicates that this is because Avisynth does not actually have this capability and, therefore, MeGUI is helpless. Is this true? If not, can anyone point me in the direction of successfully accomplishing this with MeGUI?

Work fine for me like usual.

Please put your log file to know the problem.

Danette
8th September 2020, 23:06
Work fine for me like usual.

Please put your log file to know the problem.

Logfile attached. You can see 6 channels throughout the log, but the "Downmix multichannel to Stereo" drop-down is selected in the One-click config section.

For all other good ideas about how to achieve it without MeGUI, I do have such options, but would like the option to do it all while encoding with One-click ...if possible.

LigH
9th September 2020, 07:17
... but the "Downmix multichannel to Stereo" drop-down is selected in the One-click config section.

See, this is important. MeGUI provides at least 3 different operational modes. If one of the more automated modes has an issue, the manual step-by-step queue gives you another chance. But it requires a little more knowledge and strategy.

tebasuna51
9th September 2020, 12:13
@Danette
The job work without errors, but the AC3 5.1 remain without downmix.

I never use the One-click, but maybe you have it configured to downmix and encode using FDK-AAC. Is that true?

Maybe for that don't work, because there are a message:
--[Information] [9/8/2020 5:44:29 PM] There is 1 package which can be updated: FDK-AAC

Try update the package or change the preference to use NeroAacEnc (or Qaac)

Danette
9th September 2020, 17:51
@Danette
The job work without errors, but the AC3 5.1 remain without downmix.

I never use the One-click, but maybe you have it configured to downmix and encode using FDK-AAC. Is that true?

Try update the package or change the preference to use NeroAacEnc (or Qaac)

As far as I can tell, FDK-AAC has no executable in the downloaded files, so that’s out and Nero wants $40 …out again. I tried changing it to Qaac, but it did not work (still 6 channels).

See, this is important. MeGUI provides at least 3 different operational modes. If one of the more automated modes has an issue, the manual step-by-step queue gives you another chance. But it requires a little more knowledge and strategy.

I can create an AVS file and run it through the other MeGUI routes, but that defeats the whole idea of simplicity in just loading a group of files with preset script in One-click.

To all that offered ideas: thanks for trying!

I guess that the One-click feature is not as robust as the options in it would indicate. I wonder how many of the other options in One-click are actually useless. I’m going to have to test all of the options that I’ve been using in it to make sure I’m getting what is advertised.

tebasuna51
10th September 2020, 00:46
As far as I can tell, FDK-AAC has no executable in the downloaded files,
Of course, can't be downloaded by licenses.
You need compile it yourself (https://github.com/m-ab-s/media-autobuild_suite).

so that’s out and Nero wants $40 …out again.
$40 ? You need NeroAacEnc.exe free from https://www.videohelp.com/software/Nero-AAC-Codec at ...megui\tools\eac3to folder

I tried changing it to Qaac, but it did not work (still 6 channels).
Work for me with qaac.exe and QTfiles folder from https://sites.google.com/site/qaacpage/

Danette
10th September 2020, 01:23
Of course, can't be downloaded by licenses.
You need compile it yourself (https://github.com/m-ab-s/media-autobuild_suite).


$40 ? You need NeroAacEnc.exe free from https://www.videohelp.com/software/Nero-AAC-Codec at ...megui\tools\eac3to folder


Work for me with qaac.exe and QTfiles folder from https://sites.google.com/site/qaacpage/

Thanks. I do have that old Nero encoder installed (didn't realize that's the most recent), but it didn't work with that old version, anyway.
I'm sure I could figure out how to compile, but my level of interest isn't high enough and I suspect it won't help anyway based upon the qaac failure. I did try several attempts with the qaac that's installed, but repeatedly failed.

I ended up just demuxing, rendering the audio with Audacity and encoded the video files with One-click. Everything is fine now, after muxing.

tebasuna51
10th September 2020, 10:21
I ended up just demuxing, rendering the audio with Audacity and encoded the video files with One-click. Everything is fine now, after muxing.

With NeroAacEnc.exe in ...megui\tools\eac3to folder you always can use MeGUI->Tools->HD Streams Extractor to downmix and recode to AAC like the image.

Include in +Options the parameter -downStereo (or downDpl) and optionally -normalize

hello_hello
10th September 2020, 15:26
As far as I can tell, FDK-AAC has no executable in the downloaded files, so that’s out and Nero wants $40 …out again. I tried changing it to Qaac, but it did not work (still 6 channels).

Try here:
https://forum.doom9.org/showthread.php?p=1892458#post1892458

LigH
11th September 2020, 07:11
Downmix with a Dolby ProLogic matrix has the advantage that an A/V receiver may partially reproduce some surround impression if it supports it, but even if you only have stereo speakers it still doesn't get lost completely.

tebasuna51
11th September 2020, 12:13
Thanks. I do have that old Nero encoder installed (didn't realize that's the most recent), but it didn't work with that old version, anyway.
I'm sure I could figure out how to compile, but my level of interest isn't high enough and I suspect it won't help anyway based upon the qaac failure. I did try several attempts with the qaac that's installed, but repeatedly failed.
I check the One-Click feature and work fine for me with the 3 aac encoders.

Check if you have the proper files:
Directorio de C:\Portable\megui\tools\eac3to
18/02/2010 11:54 868.352 neroAacEnc.exe
...
Directorio de C:\Portable\megui\tools\fdkaac
09/12/2019 02:33 803.805 fdkaac.exe
...
Directorio de C:\Portable\megui\tools\qaac
20/11/2018 15:30 2.006.528 qaac.exe
01/06/2019 17:26 <DIR> QTfiles
...
Directorio de C:\Portable\megui\tools\qaac\QTfiles
15/09/2015 14:25 62.736 ASL.dll
15/09/2015 14:25 7.238.416 CoreAudioToolbox.dll
15/09/2015 14:25 1.665.296 CoreFoundation.dll
15/09/2015 14:25 26.285.840 icudt55.dll
15/09/2015 14:25 75.024 libdispatch.dll
15/09/2015 14:25 1.681.680 libicuin.dll
15/09/2015 14:25 1.123.600 libicuuc.dll
11/06/2011 01:58 421.200 msvcp100.dll
11/06/2011 01:58 773.968 msvcr100.dll
15/09/2015 14:25 162.064 objc.dll
10 archivos 39.489.824 bytes

and activated in the Options->External programs tab

LigH
11th September 2020, 13:35
A tiny dummy replacement for the icudt55.dll does exist (see hydrogenaud.io).

agustin9
18th September 2020, 07:25
Hi, I keep getting this error


[Error] [18/09/2020 03:12:49] Standard error stream
-[Information] [18/09/2020 03:12:50] Invalid loglevel "level+error". Possible levels are numbers or:
-[Information] [18/09/2020 03:12:50] "quiet"
-[Information] [18/09/2020 03:12:50] "panic"
-[Information] [18/09/2020 03:12:50] "fatal"
-[Information] [18/09/2020 03:12:50] "error"
-[Information] [18/09/2020 03:12:50] "warning"
-[Information] [18/09/2020 03:12:50] "info"
-[Information] [18/09/2020 03:12:50] "verbose"
-[Information] [18/09/2020 03:12:50] "debug"
-[Information] [18/09/2020 03:12:50] "trace"
-[Error] [18/09/2020 03:12:50] x265 [error]: unable to open input file <->


Changing "level+error" to "error" and the full command works fine

EDIT:
Now works after updating ffmpeg. Why does Megui come with version 3.0.0 from 2016?

LigH
18th September 2020, 08:08
This version was possibly sufficient for the only specific reason it was needed for: Multiplexing MPEG-4 ASP from Xvid, IIRC...

tebasuna51
18th September 2020, 12:07
@agustin9
Use always 'development update server'

MrBonk
21st December 2020, 06:03
NVM seemed to have figured it out.

Pringles
24th December 2020, 11:58
I'm having a performance issue with MeGui and a new computer build that is 7 times slower for AC3 encoding than my 10y old computer.

I'm drag n' dropping an mkv file with audio/video into the "Audio input" field, selected FFmpeg AC3 with these settings (nothing fancy) and that's about it.
https://i.ibb.co/Qr4MWT1/Screenshot-2020-12-24-115206.png

With my new AMD 3900XT, B550, 64GB 3200MHz DDR4, SSD nvme, Win10 it takes about 8 minutes to process.

https://i.ibb.co/84XshMM/Screenshot-2020-12-23-230029.png

With my 10y old i7 2600K, P8P67, 16GB of RAM @ 1600MHz and 7200rpm HDD, Win7, it takes about 50 seconds:

https://i.ibb.co/c3SjVY0/Capture.png

I ran several performance benchmarks (Cinebench R20, Prime95, OCCT, memtest and userbenchmark) and it seems like everything is working like it should. Yet, it's 8 times slower with MeGui AC3 encoding.

Is the issue with MeGui or my computer? Can it be an Intel vs AMD thing?

jlw_4049
24th December 2020, 12:27
I'm having a performance issue with MeGui and a new computer build that is 7 times slower for AC3 encoding than my 10y old computer.

I'm drag n' dropping an mkv file with audio/video into the "Audio input" field, selected FFmpeg AC3 with these settings (nothing fancy) and that's about it.
https://i.ibb.co/Qr4MWT1/Screenshot-2020-12-24-115206.png

With my new AMD 3900XT, B550, 64GB 3200MHz DDR4, SSD nvme, Win10 it takes about 8 minutes to process.

https://i.ibb.co/84XshMM/Screenshot-2020-12-23-230029.png

With my 10y old i7 2600K, P8P67, 16GB of RAM @ 1600MHz and 7200rpm HDD, Win7, it takes about 50 seconds:

https://i.ibb.co/c3SjVY0/Capture.png

I ran several performance benchmarks (Cinebench R20, Prime95, OCCT, memtest and userbenchmark) and it seems like everything is working like it should. Yet, it's 8 times slower with MeGui AC3 encoding.

Is the issue with MeGui or my computer? Can it be an Intel vs AMD thing?Is your core boosting during this time?

Sent from my SM-G986U1 using Tapatalk

Pringles
24th December 2020, 12:47
Is your core boosting during this time?

Sent from my SM-G986U1 using Tapatalk

It looks like it is if I'm not mistaken:
https://i.ibb.co/D7qyjRh/Screenshot-2020-12-24-124513.png

EDIT: tried the same encoding several times, it yields the same results -> 8 minutes

EDIT2: Tried your program and it's way faster so my understanding is that the issue comes from MeGui.

https://i.ibb.co/mhG0j7W/Screenshot-2020-12-24-130403.png

jlw_4049
24th December 2020, 14:01
It looks like it is if I'm not mistaken:
https://i.ibb.co/D7qyjRh/Screenshot-2020-12-24-124513.png

EDIT: tried the same encoding several times, it yields the same results -> 8 minutes

EDIT2: Tried your program and it's way faster so my understanding is that the issue comes from MeGui.

https://i.ibb.co/mhG0j7W/Screenshot-2020-12-24-130403.png

EDIT3: but your program only encoded 59 minutes instead of the 2 hours for some reasonIs this only an issue with this file?

Im curious, could you potentially send me the file in question so I can mess with it later?

Sent from my SM-G986U1 using Tapatalk

Pringles
24th December 2020, 14:27
Is this only an issue with this file?

Im curious, could you potentially send me the file in question so I can mess with it later?

Sent from my SM-G986U1 using Tapatalk

Sorry I got mixed up with all the AC3 files I produced with MeGui and mixed up one MeGui aborted project with the result of your software which is working 100% fine and is way faster (about 30 seconds for this file).

jlw_4049
24th December 2020, 23:49
Sorry I got mixed up with all the AC3 files I produced with MeGui and mixed up one MeGui aborted project with the result of your software which is working 100% fine and is way faster (about 30 seconds for this file).Glad mine is working good for you!

Sent from my SM-G986U1 using Tapatalk

raymondjpg
20th January 2021, 22:31
Development Update Server is reporting FFMS uodate not available on server. Been a few days now.

--[Error] [21/01/2021 8:28:44 AM] Failed to download package FFMS: File cannot be found on the server.
--[Information] [21/01/2021 8:28:46 AM] Connected to server: http://megui.tmebi.de/test/

Kurtnoise
21st January 2021, 06:53
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>

raymondjpg
22nd January 2021, 05:31
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>


That worked thank you.

tp9192
1st February 2021, 04:39
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.

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

Ripmann
11th July 2021, 14:23
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

Perfect reply. Thank you.

LeXXuz
11th July 2021, 16:33
I don't want to install QT on my system. Is there another way to get these files installed for qaac? Or does this belong to the "things you're not allowed to do" department? Never mind then.

hello_hello
12th July 2021, 09:48
You can use the make portable.cmd file to extract the required files from the full itunes installer.
https://sites.google.com/site/qaacpage/

tebasuna51
12th July 2021, 14:38
Like you can see I use a old (2018) version of iTunes, see this thread (https://forum.doom9.org/showthread.php?p=1925430#post1925430)

LigH
12th July 2021, 19:59
I mirrored some older downloads from QAAC when there was a "cabinet" directory...

makeportable.zip (https://www.ligh.de/software/makeportable.zip) + makeportable2.zip (https://www.ligh.de/software/makeportable2.zip)

LeXXuz
12th July 2021, 20:20
Thank you guys! :)

wthreex
18th July 2021, 15:50
MeGUI deleted all of profiles, this is just ruined my day

GAP
12th October 2021, 10:28
How do upscale in MeGUI? I want to do a four times PointResize but I also want to use a Lanzcos or Spline. I also want to maintain the aspect ratio of the video in question.

LeXXuz
12th October 2021, 13:01
How do upscale in MeGUI? I want to do a four times PointResize but I also want to use a Lanzcos or Spline. I also want to maintain the aspect ratio of the video in question.

In AVS script creator klick the 'config' button.
Under the 'extra setup' tab tick the checkbox on 'upsizing allowed'. You can also select a preferred resize filter on that page.

doomleox999
13th October 2021, 05:39
Does anyone know if MeGUI will ever get a new STABLE update? Should I change to development update server or keep my stable version?

tebasuna51
13th October 2021, 12:06
I always recommend use the development update server.

kalehrl
13th October 2021, 14:41
There have been no changes for a long time so the development is actually as stable as it can be :D

GAP
13th October 2021, 23:18
What is the difference between the 32 bit version and 64 bit version of MeGUI?

LigH
14th October 2021, 09:07
The original MeGUI based on a 32 bit AviSynth, thus required the use of 32 bit applications, and 64 bit encoders had to be used via piping tools.

MeGUI64 will use 64 bit applications and expect a 64 bit version of AviSynth(+) to be available (or will provide its own copy). Now that most important plugins are available in 64 bit as well, and AviSynth+ matured, it should be preferable, as it has memory and speed advantages.

GAP
14th October 2021, 20:35
So the MeGUI 64 is the better one for now?

tebasuna51
14th October 2021, 23:09
Encoders can be 64 bits with both, the GUI is the same, the difference is Avs+ 64 bits over Avs+ 32 bits, of course better.

florinandrei
15th October 2021, 21:05
I have a bunch of MP4 files, AVC/AAC. The video tracks are encoded at a bitrate that's a bit higher than what I like.

What I do is: I open the file in MeGUI. I re-encode video with the default Constant Quality x264 settings (Q=23). I change nothing else in the video. I re-encode audio with the default ffmpeg VBR settings (Q=60). I convert output channels to mono. I mux the re-encoded tracks into a new MP4 file, using Tools / Muxer / MP4 Muxer.

Done manually, this is tedious. Does anyone have a recipe for automating this? Assume the input is a folder full of MP4 files and I want this done to every one of them.

I'm comfortable with scripting, even on Windows, so feel free to throw anything at me.

tebasuna51
16th October 2021, 00:18
Try with:

FOR %I in (*.mp4) DO FFMPEG -i "%I" -c:v libx264 -x264-params crf=23 -map 0:1 -acodec aac -ac 1 -aq 1.2 "%~nI_mono.mp4"

The ffmpeg VBR settings (Q=60) is converted to -aq 1.2, maybe 1.0 is more than enough now for this video quality, see actual bitrates here:https://forum.doom9.org/showthread.php?p=424070#post424070

LeXXuz
17th October 2021, 07:25
Done manually, this is tedious. Does anyone have a recipe for automating this? Assume the input is a folder full of MP4 files and I want this done to every one of them.


That's what the One-click encoder can help you with. After setting up your desired options for audio, video and muxer you can process an entire directory of source files with it not just only one file.

florinandrei
21st October 2021, 01:07
That's what the One-click encoder can help you with. After setting up your desired options for audio, video and muxer you can process an entire directory of source files with it not just only one file.

That works great, thanks!

Danette
8th November 2021, 00:42
My first foray into MT land:

MeGUI 2913, Avisynth+ 3.7, 4 cores and Prefetch set to 2 threads and 2 frames.

I load the job into the One-Click encoder (which I’ve used for many years without MT), and MeGUI crashes as soon as encoding begins, after the pre-processing operation. When I re-open MeGUI, the job is still in the queue and showing as “Waiting.” I click the start button and the job begins encoding normally.

Why the initial crash …every time? It’s almost like an initiation procedure for MT jobs.

VoodooFX
8th November 2021, 04:08
MeGUI crashes as soon as encoding begins, after the pre-processing operation.
Did you installed that new AvisynthWrapper from pinterf?

StainlessS
8th November 2021, 12:40
AvisynthWrapper from pinterf?
https://forum.doom9.org/showthread.php?p=1913117#post1913117

Danette
8th November 2021, 14:21
Did you installed that new AvisynthWrapper from pinterf?

https://forum.doom9.org/showthread.php?p=1913117#post1913117

No, I did not (didn't know about it). Now installed and it works fine.

Thanks to you both.

Pulp Catalyst
15th November 2021, 01:34
after a very long time, i though i would have a look at megui to see how things have come along...however does megui not support tone mapping out of the box (hdr to sdr)

LeXXuz
19th November 2021, 12:06
No. it does not.

Kill3rWolf
28th November 2021, 00:47
Why I'm unable to encode with 2pass - 2nd pass? Bitrate 3505

--level 5.0 --preset slow --pass 2 --bitrate 3505 --stats ".stats" --keyint 240 --min-keyint 21 --bframes 9 --b-adapt 2 --ref 9 --vbv-bufsize 168750 --vbv-maxrate 168750 --no-mbtree --rc-lookahead 80 --no-mixed-refs --no-dct-decimate --no-fast-pskip --nal-hrd vbr --colorprim bt709 --transfer bt709 --colormatrix bt709 --subme 9


&/or

--preset slow --pass 2 --bitrate 3505 --stats ".stats" --keyint 240 --min-keyint 21 --bframes 9 --b-adapt 2 --ref 9 --no-mbtree --rc-lookahead 80 --no-mixed-refs --no-dct-decimate --no-fast-pskip --colorprim bt709 --transfer bt709 --colormatrix bt709 --subme 9

Both times I got error, encode not start.

Log:
x264 [error]: ratecontrol_init: can't open stats file
x264 [error]: x264_encoder_open failed

--stats ".stats"

What should I do? But If I set CRF value then I'm free to go...

tebasuna51
28th November 2021, 11:30
Why I'm unable to encode with 2pass - 2nd pass? Bitrate 3505
...
Log:
x264 [error]: ratecontrol_init: can't open stats file


You need create the .stats file in a previous job '2pass - 1st pass', or use the 'Automated 2pass'

Danette
8th December 2021, 14:15
I'm not certain that this is an MeGUI issue, Avisynth issue, conflict issue (often have AvsPmod, which is prone to crashing, and other programs open), or something else. Since it occurs when using MeGUI (haven't tested other encoders), I thought that I'd start here.

I am using MT for the first time. I use the One-click feature and batch encode folders containing 30-40 files. Running MT (script below), I am seeing encoding times of 3.5 hours / file. If not using MT, it is about 45 minutes longer / file. However, I often take a look at the process, which can run for a week, and find that the encoding time for a file has slipped from 3.5 hours to ~20 hours. So, I have to abort, clear the job, re-load and re-start to resume normal functioning. Given this frequent occurrence, I'm not really saving any time by using MT.

Are there any ideas about how to address this problem?

Script:
Video=MPEG2Source("C:\Users\Main\Desktop\Videos\Combat!\Season 4\2 Demuxed\16 The Raider_Track01.d2v", cpu=0)
Audio=DirectShowSource("C:\Users\Main\Desktop\Videos\Combat!\Season 4\2 Demuxed\16 The Raider_Track02.ac3")
AudioDub(Video,Audio)
SetFilterMTMode("DEFAULT_MT_MODE",2)
Greyscale()
AssumeTFF()
QTGMC(InputType=0,Preset="Very Slow")
AssumeFPS(55.175)
AudioSpeed(55.175,59.94,PitchCorrect=True,Info=False)
VagueDenoiser(chromaT=0)
LimitedSharpenFaster(strength=300)
CropResize(0,0, 8, 0, -6, -0,InDAR=15.0/11.0,ResizeWO=True,Resizer="Lanczos4Resize")
GradFun3()
Prefetch(4)

LeXXuz
10th December 2021, 12:32
Probably an Avisynth/Filter problem. But hard to tell without proper info about your Avisynth version and the versions of the filters you use.

First of all you should end you script with a Return(Last) command. Maybe that already helps.

You should also use a proper MT-Modes script file to make sure all your filters are adressed properly regarding multithreading.
See: http://avisynth.nl/index.php/AviSynth+#Help_filling_MT_modes

If this doesn't help you may want to ask over in the Avisynth forums for a proper MT-setup of your script as this is most likely not an issue with MeGUI.

StainlessS
10th December 2021, 14:07
Danette, if you've got avstp.dll in plugins, take it out.

Danette
10th December 2021, 17:17
Danette, if you've got avstp.dll in plugins, take it out.

I do (now gone). If, during the coming week of running, the problem returns, I'll report back.

Thanks.

pommesmatte
19th December 2021, 23:06
after a very long time, i though i would have a look at megui to see how things have come along...however does megui not support tone mapping out of the box (hdr to sdr)

Its easy to use though. I use DGHDRtoSDR. Fits well, as I also use DGDecNV.

The ting that I am missing is support for HDR to HDR encoding (even better with integration of DoVi toolchain).

nandoom
25th December 2021, 23:03
I've not been following this forum for a while. I don't see any updates to MeGui since 2913 and the pkgs there in from the "stable server". Is it expected or am I supposed to update the pkgs my own?

Thanks

LigH
28th December 2021, 10:08
"Stable" is very rarely updated. Better switch to the "Development" update server. This is our "Groundhog Day" advice...

raymondjpg
1st January 2022, 07:34
I'm encountering an error extracting tracks from an mkv created by MeGUI from an mp4:

...Reason:index was out of range. Must be non-negative....etc

Log attached.

I do not get any error processing an mkv created from the same mp4 using MKVToolNix GUI.

Re-installing mkvmerge from the update server does not resolve the issue.

TIA

jlw_4049
2nd January 2022, 05:13
I'm encountering an error extracting tracks from an mkv created by MeGUI from an mp4:



...Reason:index was out of range. Must be non-negative....etc



Log attached.



I do not get any error processing an mkv created from the same mp4 using MKVToolNix GUI.



Re-installing mkvmerge from the update server does not resolve the issue.



TIATry gmkvextract GUI to see if you get the same problem.

Sent from my SM-G986U1 using Tapatalk

raymondjpg
2nd January 2022, 06:08
Try gmkvextract GUI to see if you get the same problem.

Sent from my SM-G986U1 using Tapatalk

Thanks for the response.

Running gmkvextract GUI on the mkv created by MeGUI extracts two tracks, video and audio, without error.

According to MediaInfo the original mp4 contains three tracks, video, audio and Timed Text. Both MeGUI and MKVToolNix GUI produce an mkv with only the video and audio tracks.

The Timed Text stream is definitely there in the original mp4 and can be extracted using Subtitle Edit.

MeGUI can process the mkv generated by MKVToolNix GUI, but throws an error when running mlvextract on the mkv file in the temporary directory created by MeGUI.

The problem appears to originate with the presence of the Timed Text stream, but I don't know why it manifests itself only in the mkv created by MeGUI.

GAP
3rd January 2022, 11:00
How do you upscale videos in MeGUI? And should you upscale in 32 bit or 64 bit?

tebasuna51
3rd January 2022, 11:37
How do you upscale videos in MeGUI?

If you want waste space and time use the AviSynth function nnedi3_rpow2 (http://avisynth.nl/index.php/Nnedi3).

No matter the bits, but better 64.

GAP
4th January 2022, 00:34
Is that an option in MeGUI?

StainlessS
4th January 2022, 01:37
Its an Avisynth plugin, see Teb's Link.

hello_hello
4th January 2022, 07:14
Is that an option in MeGUI?

No. For MeGUI you'd have to add it to the script manually. MeGUI only uses the native Avisynth resizers.

LeXXuz
6th January 2022, 23:35
How do you upscale videos in MeGUI? And should you upscale in 32 bit or 64 bit?

In Avisynth Creator select <Config> of the Avisynth file you actually use.
In the configuration dialogue goto <Extra Setup>.
Activate checkbox <Upsizing allowed>.
Update your preset and finally select <OK>.

Now you can increase resolution beyond the resolution of your source video.

GAP
7th January 2022, 23:42
Alright I got it. Thanks.

tebasuna51
8th January 2022, 11:48
In Avisynth Creator select <Config> ...

Now you can increase resolution beyond the resolution of your source video.

But MeGUI can't offer the recommended AviSynth upsize filter, nnedi3_rpow2, and you need modify the script manually.

Bazzu85
8th January 2022, 15:47
Guys..
I had the problem described here:
https://sourceforge.net/p/megui/bugs/963/

with the 2.0.0.6 version of dgindex resolve the problem..
can you insert in the update channel?

LeXXuz
9th January 2022, 15:20
But MeGUI can't offer the recommended AviSynth upsize filter, nnedi3_rpow2, and you need modify the script manually.

True. But if maximum quality is not the biggest concern, the internal filter does its job quite alright.

LeMoi
12th January 2022, 17:13
Hello there,
I just changed my PC and I'm stucked with an old sharpen filter I used to apply (for exemple scriptname()).
It's an .avsi file, in which folder should I put that file to be able to call and use it with the scriptname() in the ripping file? I tried C:\Program Files (x86)\MeGUI\tools\avisynth_plugin but it's not recognized...

tebasuna51
12th January 2022, 21:44
Use instead scriptname():

import("C:\Program Files (x86)\MeGUI\tools\avisynth_plugin\scriptname.avsi")

LeMoi
13th January 2022, 00:00
Thanks for the tip, the script in indeed loaded and called. It's unfortunately not a definitive solution, instead of just some chars I have to manually add a full line, and it doesn't completely work since it seems my script depends on some DLL (masktools ?) and even if I put my old DLL in the plugin folder it doesn't work...
Isn't there an option to retrieve the folder used by avisynth for the plugins?

EDIT: in my previous PC, I just had to add the scriptname() at the end of the AVS script to call it, and the .avsi was in the Program Files (x86)\AviSynth\plugins folder
EDIT2: OK I managed to edit the .avsi file to load the required DLLs after finding them and putting them in a plugin folder, now the scripts seems to be working fine. But I still wish to be able to call the script via the simple scriptname() function without "import"... the included MeGUI AVS has some dll in the subfolders, why can't I use this folder to put my AVSI file in it and load it without the import function? Is there a registry key to modify to specify the plugin folder automatically?

VoodooFX
13th January 2022, 09:33
@LeMoi
Install Avisynth and copy plugins there.

tebasuna51
13th January 2022, 11:21
In order to know the requirements for an AviSynth install and the registry plugins folders maybe you can read the post Universal Avisynth Installer (https://forum.doom9.org/showthread.php?p=1720988#post1720988) by Groucho2004.

LeMoi
14th January 2022, 09:31
@LeMoi
Install Avisynth and copy plugins there.

That's why I tried to (avisynth+), but then I had an error in MeGUI that couldn't open the video stream of the M2TS file (while opening the L-SMASH index).

LeMoi
14th January 2022, 09:32
In order to know the requirements for an AviSynth install and the registry plugins folders maybe you can read the post Universal Avisynth Installer (https://forum.doom9.org/showthread.php?p=1720988#post1720988) by Groucho2004.

I didn't know this topic, I'll have a look, thanks

LigH
14th January 2022, 14:54
That's why I tried to (avisynth+), but then I had an error in MeGUI that couldn't open the video stream of the M2TS file (while opening the L-SMASH index).

Do not open the *.lwi index file, but still the original media file, when you use the L-SMASH Works plugin in the Indexer dialog.

hello_hello
20th January 2022, 15:44
Is that an option in MeGUI?

If you're still around, there's a link below for a function designed to allow MeGUI to use any resizer, not just the standard Avisynth ones, and it's been so long since I've used it myself (I rarely upscale) I forgot it includes a template for upscaling with nnedi3_rpow2.

There's sample Avisynth templates included you can load into MeGUI (File/Import Presets), or you can create your own, and you have to load the AnyResizerMeGUI script to use them (or if you have Avisynth installed put it in the Avisynth plugins folder so it auto-loads) and then you can use other resizers as you would the ones included with MeGUI.

The quick instructions are, create an Avusynth template in MeGUI that by default looks something like this:

<input>
<deinterlace>
<crop>
<denoise>
<resize>

And replace the resize line so it looks like this, changing YourPreferredResizer to the name or your preferred resizer.

<input>
<deinterlace>
<crop>
<denoise>
Eval("YourPreferredResizer("+AnyResizerMeGUI(Last,"<resize>")+",Kernel="+"""ResizerMeGUI("<resize>")"""+")")

There's an example here for creating a template to upscale with nnedi3_rpow2.
AnyResizerMeGUI & CropResizeMeGUI (https://forum.doom9.org/showthread.php?p=1913922#post1913922)

GAP
21st January 2022, 16:41
I will give those a shot. Thanks.

James_b
27th September 2022, 20:10
Hi Guys!
I get pretty much all working (since a crach) except the frame doubling feature.
Any thoughts?

tebasuna51
28th September 2022, 11:10
Hi Guys!
I get pretty much all working (since a crach) except the frame doubling feature.
Any thoughts?

LWLibavVideoSource("C:\D (TV temp)\m temp\2\5qdm4eca.5z2\Film_1080p 25fps.mkv")
LoadPlugin("C:\Program Files (x86)\MeGUI-2913-32\tools\avisynth_plugin\yadifmod2.dll")
Yadifmod2(order=-1)

frame doubling?

int mode = 0

Controls double rate vs same rate output, and whether or not the spatial interlacing check is performed.

0 : Same rate, do spatial check
1 : Double rate, do spatial check
2 : Same rate, no spatial check
3 : Double rate, no spatial check

If you want double rate you must include mode=1 or 3

James_b
28th September 2022, 11:48
:thanks: Well isn't that the main function of the program? :) Can't just find where and how to get it back in the 'one click' menu. Load defults does not seem to work.

andimoor
15th November 2022, 08:48
I get an Error:

[Error] Log
-[Information] Versions
--[Information] MeGUI: 2913 x64
--[Information] MeGUI Debug Data: available
--[Information] Update Check: stable update server
--[Information] System Information
---[Information] Operating System: Windows 10 Pro 2009 x64 (10.0.22621.819)
---[Information] .NET Framework: 4.0 (4.0.0.0)
---[Information] .NET Framework: 4.8 (4.8.09032)
---[Information] Redistributables
----[Information] Microsoft Visual C++ 2010 x86: 10.0.30319
----[Information] Microsoft Visual C++ 2015 x86: 14.0.24215
---[Information] DPI: 100% (96/96)
---[Information] Monitor 1
----[Information] Resolution: 1920x1080
----[Information] Primary Screen: True
--[Information] Component Information
---[Information] Haali Media Splitter: 1.13.138.14 (14-04-2013)
---[Information] Haali DSS2: (14-04-2013)
---[Information] ICSharpCode.SharpZipLib: 0.85.5.452 (07-08-2008)
---[Information] MediaInfo: 18.05.0.0 (08-05-2018)
---[Information] SevenZipSharp: 0.64.3890.29348 (02-01-2011)
---[Information] 7z: 9.20 (18-11-2010)
--[Information] AviSynth Information
---[Information] AviSynth Wrapper
----[Information] Version: 1.0.2847.0
----[Information] Date: 06-05-2018
----[Information] Interface: 3
---[Information] AviSynth
----[Information] AviSynth Status: ignored as portable build is forced
---[Information] AviSynth portable
----[Information] File Version: 0.1
----[Information] File Date: 20-12-2018
----[Information] File Name: AviSynth+ 0.1 (r2772, MT, x86_64)
----[Information] File Path: c:\program files\megui\avisynth.dll
----[Information] AviSynth Version: AviSynth+ 0.1 (r2772, MT, x86_64)
----[Information] AviSynth+: true
----[Information] AviSynth MT: true
----[Information] AviSynth Status: active
-[Information] Update detection
--[Information] [15.11.2022 08:41:42] Using cached update config and server: http://megui.tmebi.de/stable/
--[Information] [15.11.2022 08:41:42] No package requires an update
--[Information] [15.11.2022 08:41:42] redist files copied: 2017_x64
-[Information] FileIndexer
--[Information] [15.11.2022 08:42:49] MediaInfo
---[Information] File: E:\SOPTEST\Video.h264
---[Information] General
----[Information] Format: AVC
----[Information] FileSize: 10918268154
---[Information] Video
----[Information] Format: AVC
----[Information] FormatInfo: Advanced Video Codec
----[Information] Width: 1920
----[Information] Height: 1080
----[Information] FrameRate: 23.976
----[Information] ScanType: Progressive
----[Information] Bits Depth: 8
----[Information] AspectRatio: 1.778
----[Information] AspectRatioString: 16:9
----[Information] PixelAspectRatio: 1.000
-[Error] Log for job1 (idx, Video.h264 -> Video.dgi)
--[Information] [15.11.2022 08:43:05] Started handling job
--[Information] [15.11.2022 08:43:05] Preprocessing
--[Information] [15.11.2022 08:43:05] Job command line: "C:\Program Files\MeGUI\tools\dgindexim\dgindexim.exe" -i "E:\SOPTEST\Video.h264" -o "E:\SOPTEST\Video.dgi" -h
--[Information] [15.11.2022 08:43:05] Process started
--[Information] [15.11.2022 08:43:05] Standard output stream
---[Information] [15.11.2022 08:43:05] Invalid license!
--[Information] [15.11.2022 08:43:05] Standard error stream
--[Error] [15.11.2022 08:43:05] Process exits with error: 2
--[Information] [15.11.2022 08:43:05] Job completed

Do you need more information?
What can I do?

James_b
22nd November 2022, 12:53
Is there any way to get vp9-support on the in-file? It only gives med the red cross of death when trying to encode.

LigH
22nd November 2022, 17:50
VP9 in WebM (MKV) should be readable via indexing source filters like FFMS2 or L-SMASH Works. If not, let's inspect the source file and the error messages and logs, where available.

James_b
23rd November 2022, 15:12
LigH, ok, here it is :) The x starts at section 2

tebasuna51
24th November 2022, 11:06
I get an Error:

[Error] Log
...
--[Information] Update Check: stable update server
...
-[Information] Update detection
--[Information] [15.11.2022 08:41:42] Using cached update config and server: http://megui.tmebi.de/stable/
...
---[Information] [15.11.2022 08:43:05] Invalid license!

What can I do?

Options -> Extended -> Auto Update -> Use development update server

And Tools -> Update all the soft
many DGtools don't need now license, if still need license buy it or use other indexer.

StainlessS
24th November 2022, 17:50
From earlier in thread
IIRC, when installed DGIndexNV {free} in MeGUI and have not had previous license, then having "Enable DGIndexNV" in settings, puts up some kind of
"not licensed for this machine", or similar, I just untick that box and use via Avisynth LoadPlugin [or in system installed Avsiynth plugins autoload directory],
I dont use MeGUI for anything other than x264 encode with pre-existing avs scripts
[no MeGUI deinterlace or whatever else], so makes no difference for me now I know of the problem.
[EDIT: Its probably MeGUI putting up that error message rather than DGIndexNV]
[Dont know if it will work if you just put it in the MeGUI avisynth_plugin's directory, with that box unticked, however if you have system wide Avisynth set up, put in its plugins dir]

EDIT: And thanks for flagging the new DGDecNV_237 link [you're slipping kedautinh12 :) ].



[EDIT: Its probably MeGUI putting up that error message rather than DGIndexNV]

Correct.


VideoH is D. Graft.

LigH
24th November 2022, 23:53
LigH, ok, here it is :) The x starts at section 2

Strange file.

The original appears to be VP9 and FLAC in MP4.

General
Format: MPEG-4
Video
Codec: vp09
Audio
Format: fLaC

It gets converted to MKV, using mkvmerge.

General
Format: Matroska
Video
Format: V_QUICKTIME
Codec: V_QUICKTIME
Audio
Format: A_QUICKTIME

I would say, no surprise it can't handle a format it can't detect. But no clue why it has no specific codec/format identifier in the remultiplexed copy.

dbtayag
29th December 2022, 10:47
Hi guys,

I'm trying to take a 4K HDR file and crop it while maintaining HDR metadata. What do I need to type in the command line in x265 to do that? Every time I try to crop and re-encode it removes the HDR metadata.

therealjoeblow
6th January 2023, 00:49
When I re-encode 1080p x264 mkv files down to 720p, I typically start with the AVS Script Creator tool, and drop the MKV file there. That automatically loads the File Indexer where I choose L-SMASH Works and then I tell it to demux all streams.

But it only demuxes the audio and video. To demux the .srt subtitles and the chapter file, I need to manually use another external tool before I go to the "Auto Encode" tool in MeGUI where I can add the audio and subs and chapters to my final project.

Is there a setting I'm missing, or another way that MeGUI can automate demuxing the subs and chapters at the same time it does the audio and video so I don't need to do it manually?

Many thanks
TRJB

tebasuna51
7th January 2023, 14:13
The recommended way to use MeGUI for this is load the mkv first in Tools -> HD streams extractor
Here you can extract/recode the desired audio tracks with automatic delay compensation (eac3to), also subtitles can be extracted.
Chapters can't be extracted from mkv with eac3to (it can from BD's) then you need other tool.

In Tools -> Chapter Creator load the original mkv and extract the txt/xml chapter file to mux in your final mkv.
Extract also the .qpf file needed when encode with x264 to create K frames in chapters points to a correct jump in the recoded h264 file.
Add in your x264 config -> tab Misc, Custom Command Line: -qpfile "your.qpf"

pooksahib
27th February 2023, 21:50
Hi. I've successfully used this slomo command on a vid:
trim(17131,17180).SmoothFPS2(int(framerate*3), 1).AssumeFPS(framerate)
When using it on the same vid but a different part, the MeGUI queue stops and says 'error'. The log says "Number of encoded frames does not match the source: 2940/8743" but I don't know what to make of that.

As an experiment, I made a copy of the vid with XMediaRecode. My thinking was that, being a different beast from the original vid, the slomo command would work. But no, MeGUI still says 'error'. All a bit weird. Can anyone suggest why the slomo command works on some sections of the vid but not others? Thanks.

EDIT: Doesn't matter. I installed Avisynth+ which handled it. Odd, though, that vanilla Avisynth couldn't...

Tschizzey
10th March 2023, 21:05
Hi,

I've encountered this error message, what does it mean? Is there something I'm doing wrong?

18331

tebasuna51
11th March 2023, 12:02
If your source is a TV capture maybe there are some errors because:
----[Information] FrameCount: 22320
----[Information] FrameRate: 29.607
----[Information] FrameRateOriginal: 29.970
----[Information] FrameRateMode: VFR

and the video encode crash:
--[Information] [2023. 03. 10. 20:54:57] Job command line: "cmd.exe" /c ""G:\Programs\MeGUI\tools\ffmpeg\ffmpeg.exe" -loglevel level+error -i "D:\test\cvzjnqr5.fy4\03..avs" -strict -1 -f yuv4mpegpipe - | "G:\Programs\MeGUI\tools\x264\x264.exe" --level 4.1 --preset veryslow --crf 13.0 --keyint 230 --vbv-bufsize 78125 --vbv-maxrate 62500 --aq-mode 3 --aq-strength 0.6 --colormatrix bt709 --sar 1:1 --tcfile-in "D:\test\cvzjnqr5.fy4\03..mkv.timestamps.txt.x264" --frames 22320 --output "D:\test\cvzjnqr5.fy4\03.mkv" --stdin y4m -"
--[Information] [2023. 03. 10. 20:54:57] Process started
--[Information] [2023. 03. 10. 20:54:57] Standard output stream
--[Error] [2023. 03. 10. 20:54:57] Standard error stream
---[Information] [2023. 03. 10. 20:54:59] [error] av_interleaved_write_frame(): Broken pipe
---[Information] [2023. 03. 10. 20:54:59] [error] Error writing trailer of pipe:: Broken pipe
---[Information] [2023. 03. 10. 20:54:59] [error] Error closing file pipe:: Broken pipe
---[Information] [2023. 03. 10. 20:54:59] y4m [info]: 1280x720p 1:1 @ 24000/1001 fps (cfr)
---[Error] [2023. 03. 10. 20:54:59] timecode [error]: invalid input tcfile for frame 22320
---[Error] [2023. 03. 10. 20:54:59] x264 [error]: timecode input failed
--[Error] [2023. 03. 10. 20:54:59] Process exits with error: 0xFFFFFFFF (-1)

Like the problem seems be at end of file (frame 22320) you can try add a Trim(0,22319) to the avs.
Check also the timestamps file (tcfile).

Tschizzey
11th March 2023, 12:41
Thank you for the answer!

Added the command to avs script like this:

<input>
Trim(0,22319)
<crop>
<resize>
AssumeFPS("ntsc_film")

but it didn't solve the problem.

Checked the tcfile (now at least I know what that is :D).
The last five line in tcfile:

744730
744764
744830
753918
753918

And that's what I think the problem is. It's a big jump.
What are these timestamps mean? Which frames are they connected to?

Once I figured it out which frame should be the last frame, trimming should solve the problem I guess.

tebasuna51
12th March 2023, 12:27
The last five line in tcfile:

744730 00:12:24.730 + 34 ms
744764 00:12:24.764 + 66 ms
744830 00:12:24.830 + 9008 ms
753918 00:12:33.918 + 0 ms
753918 00:12:33.918

And that's what I think the problem is. It's a big jump.
What are these timestamps mean? Which frames are they connected to?

Once I figured it out which frame should be the last frame, trimming should solve the problem I guess.

Each number is the ms when the player must show this frame on the screen (I added time in hh:mm:ss and ms than must remain in screen).

There are 2 problems: the 0 ms for last frame, but also the 9 seconds for the previous frame.

That last tme (753918) is used like video duration to calculate the average FPS:
22320/753.918 = 29.605

but until 2 previous frames
22318/744.830 = 29.964
the FPS is near the standard "ntsc_film"=29.970

If the error with the trim(0,22318) show also:
timecode [error]: invalid input tcfile for frame 22320
maybe you must change also the command line parameter:
--frames 22320 to --frames 22318

Tschizzey
12th March 2023, 13:22
Okay, thank you! :)
Will look into it.

Zergrinch
13th March 2023, 13:27
I'm using the development server to check for updates. However, I have not seen anything new since October 2022. Am I doing something wrong, or is there a new URL for the development server?

http://upload.jetsam.org/images/megui.png

doomleox999
29th March 2023, 06:18
After updating to its latest version (x64 2933) MeGUI now doesn't delete intermediate files (.lwi) and sometimes even entire folders that contain .avs files and audio files. I've tried disabling and reenabling the "Delete intermediate files" option in settings but didn't work.

How can I fix this? Is this something that needs an update? Thanks in advance.

bartonnen
29th March 2023, 10:17
After updating to its latest version (x64 2933) MeGUI now doesn't delete intermediate files (.lwi) and sometimes even entire folders that contain .avs files and audio files.

I use both single-click and manual encoding and both methods leave the .lwi files behind.

doomleox999
5th April 2023, 11:54
Was it always like that for you? In my case, it used to always delete them.
It's actually not consistent right now, sometimes it deletes them and sometimes it does not.

Tschizzey
30th June 2023, 18:06
Hi,

I'd like to use a debanding filter, but I don't know how to do it in MeGUI.
I've tried neo-f3kdb, but it didn't work.
First I downloaded the official neo-f3kdb.dll files and then copied the x86 variant into the following folders:

G:\Programs\MeGUI\tools\avisynth_plugin
G:\Programs\MeGUI\tools\avs\plugins

Then I opened up the program and tried to one-click encode a video.
The AviSynth configuration dialog window looks like this:

<input>
<crop>
<resize>
Spline64Resize(854, 480)
neo_f3kdb.deband(src=clip, range=15, y=64, cb=64, cr=64, grainy=64, grainc=64, dynamic_grain=False, sample_mode=4)

The program gives me the following error message:

--[Error] [2023. 06. 30. 18:45:12] An error occurred creating the AVS file
---[Error] [2023. 06. 30. 18:45:12] Exception message
----[NoImage] The file H:\filename\qzimwtgn.mn3\filename.avs cannot be opened.
----[NoImage] Error message for your reference: I don't know what 'neo_f3kdb' means.

I don't care too much about what debanding filter I'm using as long as it works with MeGUI.
Can you guys help me with that?
Or is there an already built-in debanding filter in MeGUI?

Lan4
2nd August 2023, 14:42
Tell me how to use copying the audio stream from the original? I don't see this option.

tebasuna51
3rd August 2023, 01:55
You need extract it, using Tools -> 'HD Streams Extractor' or 'File Indexer', to mux it after with 'Muxer'

Lan4
3rd August 2023, 14:08
Thanks. This can be dealt with. But why does the application give an error when loading the Avisint script, which works fine in other programs? And why is there no usual choice of CRF and CQP in the encoder settings?:rolleyes:

tebasuna51
3rd August 2023, 21:06
But why does the application give an error when loading the Avisint script,

Upload the log file.

And why is there no usual choice of CRF and CQP in the encoder settings?

'Const. Quality' is CRF, like you can see below.

Tiny Mud
9th August 2023, 20:50
MeGUI 2944 Development Update Server _ Aug 9th, 2023 - x295 ISSUE

Seems the MeGUI program does not recognize the x295 3.5 + 104 update although successfully Installed ?

"STUCK ON STATUS "REINSTALLING"

VoodooFX
9th August 2023, 22:03
If you think that it's a bug then report it there: https://sourceforge.net/p/megui/bugs/

Tiny Mud
10th August 2023, 18:58
Thanks VoodooFX:

Seems the latest MeGUI update for x265 is missing the 86/x265.exe v3.5+104 file

Here's a link to DL "x265-3.5+104_Win_GCC131.7z" containing the file - Extract and copy the 32-Bit version to MeGUI/tools/x265/86 directory: https://www.mediafire.com/file/7rwq5oenvaete3a/

I can't say if they have corrected the update to include the file.

Tiny Mud
11th August 2023, 00:54
Quote from Zathor to me - I'm Humbled:

"Thank you very much for letting me know. The issue is that the wrong file is downloaded (the one for MeGUI x64 which does not include the x86 folder). I do not have currently access to the update servers and can therefore not change it."

Tiny Mud
12th August 2023, 02:28
From Wundderba:

megui.org was moved to a different platform.
You can get a ftp account from Wilbert: https://forum.doom9.org/showthread.php?t=185020

Can't yet STILL love MeGUI for video encoding ;o)

LouieChuckyMerry
19th November 2023, 07:44
Hello, I hope all's well for all :) . After many years and upgrading from x86 MeGUI to x64 MeGUI and from installed basic AviSynth to AviSynt+, I indexed a previously successfully encoded .m2v file with the default DGIndex and a what in the past had been a functional profile, only to have the resulting script crash MeGUI. A bit of effort later, I learned that the problem was the two "LoadPlugin" lines that DGIndex adds to the script. To wit, the red bits are the culprit:

# Set DAR in encoder to 6480 : 4739. The following line is for automatic signalling
global MeGUI_darx = 6480
global MeGUI_dary = 4739
LoadPlugin("FilePath\DGDecode.dll")
DGDecode_mpeg2source("FilePath.d2v", cpu=4, info=3)
LoadPlugin("FilePath\ColorMatrix.dll")
ColorMatrix(hints=true, threads=0)

If I delete the red bits from the script, then it runs perfectly. Please, is there any way to stop DGIndex from writing those lines? And doesn't the newest AviSynth auto load DGDecode.dll and ColorMatrix.dll anyway? Thanks for any clarity.

hello_hello
20th November 2023, 09:02
DGIndex isn't writing anything. It's MeGUI adding that stuff to the script because it loads it's bundled plugins from it's own plugins folder. Avisynth (even the portable version bundled with MeGUI) checks the registry each time it runs, and if it finds entries pointing to a plugins folder or folders, it automatically loads the plugins they contain. MeGUI is supposed to be "portable" so it doesn't create any registry entries for plugin auto-loading. The easiest way to enable plugin auto-loading is to install Avisynth+ and put the plugins you use in the Avisynth+\plugins64 or Avisynth+\plugins64+ folder. MeGUI will still add the same lines to the script to load it's bundled plugins, because it doesn't require you to have Avisynth installed.

If I remember correctly, the 64 bit version of DGDecode doesn't include a deblocking filter, so if you enable Mpeg2 Deblocking under Filters in the Script Creator, MeGUI will add the cpu argument to the mpeg2source filter and it'll cause an error.
Info=3 is added when color correction is enabled in the script creator under the filters tab. If it's causing a problem leave it disabled because color correction is only applied when it's needed and these days that'd be almost never. With color correction disabled, the colormatrix plugin won't be used.

I thought I'd give DGDecode a spin myself, because I haven't used it since I switched to 64 bit Avisynth+ earlier in the year. I'm running Avisynth in Linux with Wine and DGDecode caused both MeGUI and AvsPmod to crash, and that was without enabling Mpeg2 Deblocking or Color Correction. I tried again on Windows 11 and the same thing happened. Hopefully just disabling Mpeg2 Deblocking will fix your problem, but if MeGUI still crashes, try the previous version of DGDecode. I can enable color correction with DGDecode 2.0.0.7, so the version of ColorMatrix I'm using must be okay, but DGDecode 2.0.0.8 seem to cause MeGUI to crash no matter what.
https://www.videohelp.com/software/DGMPGDec/old-versions

You'll need to replace DGDecode.dll in the MeGUI\tools\dgindex folder, and also in the plugins64 folder for the installed version of Avisynth, if you have it installed and there's a copy of it in there. It's probably a good idea to make sure any plugins in the Avisynth+\plugins64 folder are the same versions as the plugins MeGUI loads from it's tools folder.

LouieChuckyMerry
20th November 2023, 15:44
hello_hello to the rescue again :) . And you finally made the move from XP to Linux, nice! I'm still running Windows 7 but someday... Anyway, as always thanks for your help. Unticking the "Mpeg2 Deblocking" and "Colour Correction" boxes does the job; do you know if there's a way to permanently have them unticked? Having to untick them for every episode of The Simpsons and Futurama would get rather tedious.

Edit: Seems I'm even dumber than I look. I was unticking the boxes while indexing a video file; going to "Tools/AVS Script Creator/Config/Extra Setup" makes it stick. Thanks again for your help hello_hello, it always appreciated :) .

benwaggoner
21st November 2023, 20:00
Is there a recommended alternative MPEG-2 deblocking solution that runs under Windows 10/11? And hopefully a better one; DGDecode was a miracle in its time dealing with high QP MPEG-2 content, but there are certainly algorithms that can do a better job of deblocking and deringing while preserving detail today. And we certainly have >>1000x more MIPS we can apply today versus when MeGUI came out in Doom9's early glory days. Way more cores, way better SIMD, and programmable GPU compute.

LeXXuz
22nd November 2023, 11:07
Is there a recommended alternative MPEG-2 deblocking solution that runs under Windows 10/11? And hopefully a better one; DGDecode was a miracle in its time dealing with high QP MPEG-2 content, but there are certainly algorithms that can do a better job of deblocking and deringing while preserving detail today. And we certainly have >>1000x more MIPS we can apply today versus when MeGUI came out in Doom9's early glory days. Way more cores, way better SIMD, and programmable GPU compute.

I usually use Avisynth filters like Deblock_QED and HQDeringMod for these tasks when dealing with poorly encoded DVDs.

http://avisynth.nl/index.php/Deblock_QED
http://avisynth.nl/index.php/HQDering_mod

Not sure if those satisfy your requirements though. :)

LeXXuz
22nd November 2023, 11:12
I'm trying to transcode some ogg/opus files to mp3 for my old car stereo and I get an error when opening these with either FFAudioSource or LWLibAudioSource:
[Error] [22.11.2023 11:00:24] An error occurred: Script error: There is no function named 'SSRC'.

I rarely encode audio files, so I really have no clue what MeGui is trying to tell me here and how to fix this. :o

Data of one of the source files:

[Information] General
-[Information] Format: Ogg
-[Information] FileSize: 4902434
-[Information] PlayTime: 00:04:54.428

[Information] Audio
-[Information] ID: 2669402980
-[Information] Format: Opus
-[Information] SamplingRate: 48000
-[Information] SamplingRateString: 48.0 kHz
-[Information] Channels: 2
-[Information] ChannelsString: 2 channels
-[Information] ChannelPositionsString2: 2/0/0
-[Information] Language: en
-[Information] LanguageString: English

tebasuna51
22nd November 2023, 15:03
I'm trying to transcode some ogg/opus files to mp3 for my old car stereo and I get an error when opening these with either FFAudioSource or LWLibAudioSource:
[Error] [22.11.2023 11:00:24] An error occurred: Script error: There is no function named 'SSRC'.

1) Please attach the full log file (in your ...megui\logs folder)

2) The SSRC function is only called if you want change the samplerate, if you preserve the source samplerate SSRC can't be called.

3) The SSRC function is a internal function in AviSynth and can't show that message, if you are using AviSynth+ that function is in a external Shibatch.dll. Seems you have a wrong Avs+ install missing that .dll.

4) Making test I found a bug in last ffmpeg (6.1), ffms2_r1387 and L-SMASH-Works-r1156.0.0.0 opus decoder: opus files with samplerate 32 KHz or 44.1 KHz (maybe more) are decoded always to 48 KHz.
Using opusdec.exe from last opus-tools-0.2-opus-1.3 the samplerate is preserved ok.
Bug reported https://trac.ffmpeg.org/ticket/10680

LeXXuz
22nd November 2023, 17:07
2) The SSRC function is only called if you want change the samplerate, if you preserve the source samplerate SSRC can't be called.


Thanks tebasuna51, that did it. Changed it to 'Keep original samplerate' and now transcoding works. :)

benwaggoner
22nd November 2023, 19:55
I usually use Avisynth filters like Deblock_QED and HQDeringMod for these tasks when dealing with poorly encoded DVDs.

http://avisynth.nl/index.php/Deblock_QED
http://avisynth.nl/index.php/HQDering_mod

Not sure if those satisfy your requirements though. :)
I've not had to work with DVD sources professionally in a long time, thank goodness. It's more for when family has old home movies on DVD (typically bad MPEG-2) and that sort of thing.

LouieChuckyMerry
26th November 2023, 23:00
I hope everyone's well :) . For the the last week or so both my laptops with portable 64bit MeGUI, both fully updated from the developmental server, have been crashing whenever I try to downmix any audio with any of my previously-working-fine QAAC profiles. After much banging of head, I discovered that switching the "Preferred Decoder" in the "QAAC configuration dialog" from "FFAudioSource" to "LWLibavAudioSource" solved the issue. Is this something I should post somewhere else? Looking for guidance, thanks.

hello_hello
27th November 2023, 04:29
After updating 64 bit MeGUI I'm pretty sure I discovered it'd installed the 32 bit version of ffms2 instead of the 64 bit version. The file in MeGUI's update_cache folder is called ffms2-r1387-32.7z.
Try downloading it manually and replacing ffms2.dll in MeGUI's tools\ffms folder with the 64 bit version.
https://codeberg.org/StvG/ffms2/releases/tag/r1387

MeGUI seems to have developed an annoying habit of simply shutting down when an error is encountered, without displaying an error message to let you know what the problem might be. It only became obvious when I tried using ffms2 with AvsPmod and was able to see the Avisynth+ error message.

Having said that, if I open a file with FFAudioSource I now get an access violation error message. That's using Linux/Wine/AvsPmod with the current version of FFMS2, so maybe it's just a Wine issue. I haven't tried it on Windows yet. LWLibavAudioSource is okay though, and FFVideoSource works as expected.

LouieChuckyMerry
29th November 2023, 01:06
After updating 64 bit MeGUI I'm pretty sure I discovered it'd installed the 32 bit version of ffms2 instead of the 64 bit version. The file in MeGUI's update_cache folder is called ffms2-r1387-32.7z.
Try downloading it manually and replacing ffms2.dll in MeGUI's tools\ffms folder with the 64 bit version.
https://codeberg.org/StvG/ffms2/releases/tag/r1387

Exactly the problem; you've many tricks.

MeGUI seems to have developed an annoying habit of simply shutting down when an error is encountered, without displaying an error message to let you know what the problem might be. It only became obvious when I tried using ffms2 with AvsPmod and was able to see the Avisynth+ error message.

I agree with the annoyance of MeGUI crashing without an error message but understand, given that it's freeware and quite complex (I miss Zathor). Are you familiar with Groucho2004's AVSMeter? I added it to my "Send to" context menu; if a script is troublesome it always leads me in the direction of a solution.

Having said that, if I open a file with FFAudioSource I now get an access violation error message. That's using Linux/Wine/AvsPmod with the current version of FFMS2, so maybe it's just a Wine issue. I haven't tried it on Windows yet. LWLibavAudioSource is okay though, and FFVideoSource works as expected.

My problem was strictly in the audio realm (Win 7); video indexing was fine (although I only use FFMS2 for VC-1 video).

Thanks again, hello_hello, for saving me physical effort and mental stress :) .

tebasuna51
29th November 2023, 14:32
...

4) Making test I found a bug in last ffmpeg (6.1), ffms2_r1387 and L-SMASH-Works-r1156.0.0.0 opus decoder: opus files with samplerate 32 KHz or 44.1 KHz (maybe more) are decoded always to 48 KHz.
Using opusdec.exe from last opus-tools-0.2-opus-1.3 the samplerate is preserved ok.
Bug reported https://trac.ffmpeg.org/ticket/10680

Closed ticket like wontfix like a old one (https://trac.ffmpeg.org/ticket/5240)
Internally opus only support 8, 12, 16, 24 and 48 kHz, then other input is resampled and ffmpeg refuse any last resample after decode.
It is ok for me.

LouieChuckyMerry
27th December 2023, 22:44
As always I hope everyone's well :) . I'm not certain that this is necessarily an MeGUI issue but it seems a reasonable place to start. I've an older (Win 7 64-bit; Intel i7; 16GB RAM) laptop that I pretty much only use to downmix audio and encode video (MeGUI 64-bit, Developmental Server; AviSynth+ 3.7.2, r3661, 64-bit), although I'll occasionally go online to get a subtitle or read an article while waiting for a large file to finish copying or indexing. For ten-some years I've had no problems that weren't eventually explained as user error; however, a few months ago I started having issues with MeGUI simply stopping for no apparent reason while encoding video. That is, for years I could simply queue video(s), start the queue, then wait for the results, moving the mouse to kill the screensaver every once in a while to check the queue's progress. Unfortunately for these last several months, about every third time I start a queue I'll find that MeGUI is completely frozen or that the FPS has slowed to a number so low that the encode(s) will take years to finish (it could be the first video in a queue, the last video in a queue, or one somewhere in the middle of a queue; and, I might discover this frozen state the first time I interrupt the screensaver, the third time, the fifth...). Invariably I'll have to do a hard restart because I'm unable to open anything, not the Start Menu or the Task Manager or any program. It reminds me of a problem I had years ago with a browser suffering from a memory leak. I've checked things as well as I know how--Memtest86 shows no issues with the RAM; CrystalDiscInfo shows no issue with the SSD; Avast shows no viruses or malware after a scan; I've not made any changes to my dozen-or-so script presets--so I'm wondering if there's an MeGUI-Win 7 issue I'm unaware of. Upgrading my OS SSD from a 500GB Crucial to a 1TB Dataram occurred about the same time this problem arose; is it possible an SSD drive is too slow for multithreading? Any help is much appreciated.
_____________

EDIT: In case this helps someone I found a solution. After testing the hardware as best as I could and uninstalling-reinstalling various softwares, I decided to re-restore the Clonezilla image that I'd originally restored to the new SSD; however, the image proved to be corrupt (deemed unrestorable by Clonezilla) upon attempting this. I've no idea how I was able to restore the image in the first place if it was corrupt, but restoring an older, uncorrupt image seems to have fixed the problem. Happy New Year :) .

raymondjpg
14th January 2024, 23:11
I'm seeing this error quite regularly when processing the last video in a folder batch job, typically when running QAAC. It halts processing of the job, but goes away on left mouse click, which appears to resume processing without error.

Can anyone please tell me what is causing the error, and how to prevent it?

LouieChuckyMerry
26th January 2024, 22:18
Happy Friday! I'm wondering: is it possible to use MeGUI with UtVideo and, if so, how? Thanks for any help.

LigH
27th January 2024, 12:07
For reading AVI files encoded with an UtVideo codec, to convert them to a final format, surely.

For writing AVI files, would not make much sense. Ut codecs are lossless, you won't use them to approach a target bitrate/filesize. Simply using VirtualDub2 would be a lot easier.

LouieChuckyMerry
27th January 2024, 18:56
LigH: Thanks for your reply :) . I'm currently using MeGUI to index UHD Blu-rays then VirtualDub2-UtVideo to tonemap and downscale them then MeGUI-AVC to clean-sharpen-shrivel, and just wondered if I could streamline the process by using MeGUI exclusively. Not a big deal, just curious. Thanks again for your input, Prost!

StainlessS
27th January 2024, 19:34
Why not just use DGIndexNV to generate index, and also generate avs from template [with your tonemap/downscale/clean/sharpen/etc], and then use MeGUI on that avs to encode.
[Make your AVS template, and set it as default in DGIndexNV settings]

Below untested
MyDefaultDgIndexNV_Template.avs

# Below 3 lines __names__ filled in by DgIndexNV
VideoFileName ="__vid__"
AudioFileName =LCase("__aud__")
AudioDelay =Value("__del__")
# ...
# example load code
Video = LWLibavVideoSource(VideoFileName)
Audio = LWLibavAudioSource (AudioFileName)
AudioDub(Video,Audio)
DelayAudio(AudioDelay)
Trim(0,0) # Chop/add audio, ensure same length as video
# ...
# + your code to tonemap/downscale/clean/sharpen/etc
# ...
Prefetch(SomeNumber)
Return Last#.ConvertToYV12 # MeGUI usually requires YV12


EDIT: DgIndexNV 251:- https://www.rationalqm.us/dgdecnv/binaries/
Maybe use current DgIndexNV as above instead of the one in MeGUI directories, copy file to index onto a DgIndexNV shortcut on Desktop,
and press F4 to index. [after setting default template, in settings]

LouieChuckyMerry
31st January 2024, 19:40
StainlessS: Originally I did as you suggest but quickly discovered that the encoding time for a single script with everything was about four times greater than the encoding time for a tonemap-downscale-to-lossless script followed by a clean-sharpen-shrivel script. Of course, some would argue, not necessarily incorrectly, that downscaling before cleaning-sharpening leads to a lower quality encode. Hmmm, maybe I'll test tonemaping-to-lossless then cleaning-downscaling-sharpening-shriveling. Thanks for your input :) .

kalehrl
21st February 2024, 21:22
What tools can be updated safely without breaking MeGUI?

LigH
21st February 2024, 21:30
All of the EXE encoders which did not change their command line interface to an incompatible syntax.

And MeGUI x64 is surely the better choice to keep up with the development of Avisynth+ and its plugins.

diavliyo
21st March 2024, 23:32
[Error] Unhandled error
--[Information] [21/03/2024 16:02:17] Exception message
---[NoImage] No se puede obtener acceso al objeto desechado.
---[NoImage] Nombre del objeto: 'VideoPlayer'.
--[Information] [21/03/2024 16:02:17] Stacktrace
---[NoImage] en System.Windows.Forms.Control.CreateHandle()
---[NoImage] en System.Windows.Forms.Form.CreateHandle()
---[NoImage] en System.Windows.Forms.Control.get_Handle()
---[NoImage] en MeGUI.VideoPlayer.SetMaxZoomWidth() en D:\MeGUI\_MeGUI_clean\core\gui\VideoPlayer.cs:línea 374
---[NoImage] en MeGUI.VideoPlayer.LoadVideo(String path, PREVIEWTYPE type, Boolean hasAR, Boolean inlineAvs, Int32 startFrame, Boolean originalSize) en D:\MeGUI\_MeGUI_clean\core\gui\VideoPlayer.cs:línea 170
---[NoImage] en MeGUI.AviSynthWindow.previewButton_Click(Object sender, EventArgs e) en D:\MeGUI\_MeGUI_clean\packages\tools\avscreator\AviSynthWindow.cs:línea 218
---[NoImage] en System.Windows.Forms.Control.OnClick(EventArgs e)
---[NoImage] en System.Windows.Forms.Button.OnClick(EventArgs e)
---[NoImage] en System.Windows.Forms.Button.OnMouseUp(MouseEventArgs mevent)
---[NoImage] en System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
---[NoImage] en System.Windows.Forms.Control.WndProc(Message& m)
---[NoImage] en System.Windows.Forms.ButtonBase.WndProc(Message& m)
---[NoImage] en System.Windows.Forms.Button.WndProc(Message& m)
---[NoImage] en System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
---[NoImage] en System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
---[NoImage] en System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
--[Information] [21/03/2024 16:02:17] Inner exception: null

sorry hehehehe you're right, I forgot the translator,
I was wondering about the error I present below. The megui does not load and gives me a video player error. Could someone or know how to tell me if it is because I need to update or install something?

frobber
22nd March 2024, 02:08
Hi,

I've been trying to use MeGUI to deinterlace some video using QTGMC.

My script seems to work as I can play the video, but whenever I click AutoEncode, MeGUI waits a little and then crashes.

I don't see anything obvious in the log file (linked below).

I've used MeGUI for other projects (not deinterlacing), so I think the installation is basically OK.

How can I troubleshoot this? Is there something like the AviSynth Info Tool for MeGUI?

Thanx

MeGUI log file: https://www.sendspace.com/file/cyutix

guest
22nd March 2024, 02:48
hola a todos. disculpad por que no se si este es el sitio correcto para esto. pero desde hace un par de dias que reinstale megui me sale este problema

decir que me meguie me busca algo en el disco local D y nunca he tenido nada instalado alli,
queria saber si es que me falta algo por instalar por si me podrian decir que es

ENGLISH, please.

Translated....

Hello everyone. Sorry I don't know if this is the right place for this. But since a couple of days ago I reinstalled Megui I got this problem

To say that I was looking for something on the local disk D and I have never had anything installed there,
I wanted to know if I have something missing to install in case you could tell me what it is.

https://forum.doom9.org/showthread.php?p=841444#post841444

https://www.videohelp.com/software/MeGUI

https://sourceforge.net/projects/megui/

diavliyo
22nd March 2024, 10:12
sorry hehehehe you're right, I forgot the translator,
I was wondering about the error I present below. The megui does not load and gives me a video player error. Could someone or know how to tell me if it is because I need to update or install something?

diavliyo
22nd March 2024, 10:22
sorry hehehehe you're right, I forgot the translator,
I was wondering about the error I present below. The megui does not load and gives me a video player error. Could someone or know how to tell me if it is because I need to update or install something?



Sorry and thank you for moving the post to the correct place. Does anyone know why this error?

tebasuna51
22nd March 2024, 10:56
If there are references to a drive D: better make a new install (now 64 bits recommended (https://www.videohelp.com/software/MeGUI)) in a folder out of windows system, recommended C:\Portable\MeGUI
After:
Options -> Extended -> Use development update server
Tools -> Update -> Show all packages (enable and update all)

LouieChuckyMerry
14th September 2024, 18:13
Hello, and as always I hope all's well with all :) . I recently began using MeGUI's Suspend-Resume feature so that I can use my primary computer to encode video whenever I'm not using it for communication or gathering information (overnight, when I'm not home, etc.); however, I've found that, frequently, when I Suspend the encode I'm either unable to then open my browser, or can open it but then not any new tabs, because there's not enough RAM available. Does anybody know any tricks to free the cached RAM when I've suspended the encode or have any thoughts for a solution? Thanks for any help.

EDIT: Windows 7, MeGUI x64, AviSynth+, Firefox.

Barough
14th September 2024, 20:06
Hello, and as always I hope all's well with all :) . I recently began using MeGUI's Suspend-Resume feature so that I can use my primary computer to encode video whenever I'm not using it for communication or gathering information (overnight, when I'm not home, etc.); however, I've found that, frequently, when I Suspend the encode I'm either unable to then open my browser, or can open it but then not any new tabs, because there's not enough RAM available. Does anybody know any tricks to free the cached RAM when I've suspended the encode or have any thoughts for a solution? Thanks for any help.

EDIT: Windows 7, MeGUI x64, AviSynth+, Firefox.

Why not give Kurtnoise's 'new' MeGUI 6666 releases a try.....
https://github.com/Kurtnoise-zeus/megui/releases

dbtayag
15th September 2024, 06:26
Hi, I tried to update x265 to version 4.0 but I keep getting "error." I used to update by just replacing the x265 exe file in the tools x265 folder of MeGUI. Now it doesn't work.

LigH
15th September 2024, 06:52
The reason might be the same as with RipBot264: If x265 is used via a pipe, it now requires an explicit "--input" parameter before the "-" placeholder for the input file name.

LigH
15th September 2024, 07:58
I changed my x265 v4.0+4 archive (https://forum.doom9.org/showthread.php?p=2006909#post2006909).

Please note: From version 4.0 on I will build all variants without MultiView support so that they may still work without explicit --input parameter, except for a 64 bit build which has it explicitly enabled.

LouieChuckyMerry
15th September 2024, 20:43
Why not give Kurtnoise's 'new' MeGUI 6666 releases a try.....
https://github.com/Kurtnoise-zeus/megui/releases

Thanks for the idea, Barough; I've downloaded it and will attack next weekend when I've some free time.

dbtayag
17th September 2024, 02:48
When I use the newest x265 build on MeGUI 2944, when processing there's always an error.
This is what I get from the log of MeGUI 2944:
--[Information] [9/16/2024 8:37:02 PM] AviSynth input script
--[Information] [9/16/2024 8:37:03 PM] resolution: 1080x1920
--[Information] [9/16/2024 8:37:03 PM] frame rate: 24000/1001
--[Information] [9/16/2024 8:37:03 PM] frames: 2714
--[Information] [9/16/2024 8:37:03 PM] length: 00:01:53.196
--[Information] [9/16/2024 8:37:03 PM] aspect ratio (avs): 9:16 (0.563)
--[Information] [9/16/2024 8:37:03 PM] color space: I420
--[Information] [9/16/2024 8:37:03 PM] custom command line: --output-depth 10
--[Information] [9/16/2024 8:37:03 PM] Job command line: "cmd.exe" /c ""C:\Users\dbtay\Desktop\MeGUI-2913-64\tools\ffmpeg\ffmpeg.exe" -loglevel level+error -i "C:\Users\dbtay\Videos\pbimmift.fqi\1653122960001-L1QrcQqv.mkv.avs" -strict -1 -f yuv4mpegpipe - | "C:\Users\dbtay\Desktop\MeGUI-2913-64\tools\x265\x64\x265.exe" --crf 30.0 --output-depth 10 --sar 1:1 --output "C:\Users\dbtay\Videos\pbimmift.fqi\1653122960001-L1QrcQqv_Video.hevc" --frames 2714 --y4m -"
--[Information] [9/16/2024 8:37:03 PM] Process started
--[Information] [9/16/2024 8:37:03 PM] Standard output stream
--[Information] [9/16/2024 8:37:03 PM] Standard error stream
---[Warning] [9/16/2024 8:37:03 PM] x265 [warning]: extra unused command arguments given <->
---[Information] [9/16/2024 8:37:03 PM] [vost#0:0/wrapped_avframe @ 000002670ff4d940] [error] Error submitting a packet to the muxer: Invalid argument
---[Information] [9/16/2024 8:37:03 PM] [vost#0:0/wrapped_avframe @ 000002670ff4d940] [error] Error submitting a packet to the muxer: Invalid argument
---[Information] [9/16/2024 8:37:03 PM] [out#0/yuv4mpegpipe @ 000002670ff4ca80] [error] Error muxing a packet
---[Information] [9/16/2024 8:37:03 PM] [out#0/yuv4mpegpipe @ 000002670ff4ca80] [error] Task finished with error code: -22 (Invalid argument)
---[Information] [9/16/2024 8:37:03 PM] [out#0/yuv4mpegpipe @ 000002670ff4ca80] [error] Terminating thread with return code -22 (Invalid argument)
---[Information] [9/16/2024 8:37:03 PM] [out#0/yuv4mpegpipe @ 000002670ff4ca80] [error] Error writing trailer: Invalid argument
---[Information] [9/16/2024 8:37:03 PM] [out#0/yuv4mpegpipe @ 000002670ff4ca80] [error] Error closing file: Invalid argument
--[Error] [9/16/2024 8:37:03 PM] Process exits with error: 1
--[Information] [9/16/2024 8:37:03 PM] Job completed


But when I use MeGUI 6666.2308, x265 works.
This is the log for MeGUI 6666.2308:
--[Information] [9/16/2024 8:39:01 PM] AviSynth input script
--[Information] [9/16/2024 8:39:02 PM] resolution: 1080x1920
--[Information] [9/16/2024 8:39:02 PM] frame rate: 24000/1001
--[Information] [9/16/2024 8:39:02 PM] frames: 2714
--[Information] [9/16/2024 8:39:02 PM] length: 00:01:53.196
--[Information] [9/16/2024 8:39:02 PM] aspect ratio (avs): 9:16 (0.563)
--[Information] [9/16/2024 8:39:02 PM] color space: I420
--[Information] [9/16/2024 8:39:02 PM] Job command line: "cmd.exe" /c ""C:\Users\dbtay\Desktop\MeGUI-6666.2308_x64\tools\ffmpeg\ffmpeg.exe" -loglevel level+error -hide_banner -i "C:\Users\dbtay\Videos\ceumlct4.e02\1653122960001-L1QrcQqv.mkv.avs" -strict -1 -f yuv4mpegpipe - | "C:\Users\dbtay\Desktop\MeGUI-6666.2308_x64\tools\x265\x64\x265.exe" --crf 30.0 --output-depth 10 --sar 1:1 --output "C:\Users\dbtay\Videos\ceumlct4.e02\1653122960001-L1QrcQqv_Video.hevc" --frames 2714 --y4m --input -"
--[Information] [9/16/2024 8:39:02 PM] Process started
--[Information] [9/16/2024 8:39:02 PM] Standard output stream
--[Information] [9/16/2024 8:39:02 PM] Standard error stream
---[Information] [9/16/2024 8:39:02 PM] y4m [info]: 1080x1920 fps 24000/1001 i420p8 sar 1:1 unknown frame count
---[Information] [9/16/2024 8:39:02 PM] raw [info]: output file: C:\Users\dbtay\Videos\ceumlct4.e02\1653122960001-L1QrcQqv_Video.hevc
---[Information] [9/16/2024 8:39:02 PM] x265 [info]: HEVC encoder version 4.0+4-29d59cb
---[Information] [9/16/2024 8:39:02 PM] x265 [info]: build info [Windows][GCC 14.2.0][64 bit] 10bit
---[Information] [9/16/2024 8:39:02 PM] x265 [info]: using cpu capabilities: MMX2 SSE2Fast LZCNT SSSE3 SSE4.2 AVX FMA3 BMI2 AVX2
---[Information] [9/16/2024 8:39:02 PM] x265 [info]: Main 10 profile, Level-4 (Main tier)
---[Information] [9/16/2024 8:39:02 PM] x265 [info]: Thread pool created using 16 threads
---[Information] [9/16/2024 8:39:02 PM] x265 [info]: Slices : 1
---[Information] [9/16/2024 8:39:02 PM] x265 [info]: frame threads / pool features : 4 / wpp(30 rows)
---[Information] [9/16/2024 8:39:02 PM] x265 [info]: Coding QT: max CU size, min CU size : 64 / 8
---[Information] [9/16/2024 8:39:02 PM] x265 [info]: Residual QT: max TU size, max depth : 32 / 1 inter / 1 intra
---[Information] [9/16/2024 8:39:02 PM] x265 [info]: ME / range / subpel / merge : hex / 57 / 2 / 3
---[Information] [9/16/2024 8:39:02 PM] x265 [info]: Keyframe min / max / scenecut / bias : 23 / 250 / 40 / 5.00
---[Information] [9/16/2024 8:39:02 PM] x265 [info]: Lookahead / bframes / badapt : 20 / 4 / 2
---[Information] [9/16/2024 8:39:02 PM] x265 [info]: b-pyramid / weightp / weightb : 1 / 1 / 0
---[Information] [9/16/2024 8:39:02 PM] x265 [info]: References / ref-limit cu / depth : 3 / off / on
---[Information] [9/16/2024 8:39:02 PM] x265 [info]: AQ: mode / str / qg-size / cu-tree : 2 / 1.0 / 32 / 1
---[Information] [9/16/2024 8:39:02 PM] x265 [info]: Rate Control / qCompress : CRF-30.0 / 0.60
---[Information] [9/16/2024 8:39:02 PM] x265 [info]: tools: rd=3 psy-rd=2.00 early-skip rskip mode=1 signhide tmvp
---[Information] [9/16/2024 8:39:02 PM] x265 [info]: tools: b-intra strong-intra-smoothing lslices=8 deblock sao
---[Information] [9/16/2024 8:40:10 PM] x265 [info]: frame I: 11, Avg QP:29.13 kb/s: 5047.73
---[Information] [9/16/2024 8:40:10 PM] x265 [info]: frame P: 663, Avg QP:30.71 kb/s: 1900.60
---[Information] [9/16/2024 8:40:10 PM] x265 [info]: frame B: 2040, Avg QP:36.08 kb/s: 328.43
---[Information] [9/16/2024 8:40:10 PM] x265 [info]: Weighted P-Frames: Y:3.3% UV:1.8%
---[Information] [9/16/2024 8:40:10 PM] encoded 2714 frames in 67.72s (40.08 fps), 731.62 kb/s, Avg QP:34.74
--[Information] [9/16/2024 8:40:10 PM] Final statistics
---[Information] [9/16/2024 8:40:10 PM] Constant Quality Mode: Quality 30 computed...
---[Information] [9/16/2024 8:40:10 PM] Video Bitrate Obtained (approximate): 732 kbit/s
---[Information] [9/16/2024 8:40:10 PM] Frames Source vs Encoded: Number of encoded frames match the source: 2714/2714
--[Information] [9/16/2024 8:40:10 PM] MediaInfo
---[Information] File: C:\Users\dbtay\Videos\ceumlct4.e02\1653122960001-L1QrcQqv_Video.hevc
-[Information] Format: HEVC
-[Information] FileSize: 10365368
---[Information] General
-[Information] Format: HEVC
-[Information] FormatInfo: High Efficiency Video Coding
-[Information] Width: 1080
-[Information] Height: 1920
-[Information] FrameRate: 23.976
-[Information] FrameRate_N: 24000
-[Information] FrameRate_D: 1001
-[Information] Bits Depth: 10
-[Information] AspectRatio: 0.562
-[Information] AspectRatioString: 0.562
-[Information] PixelAspectRatio: 1.000
---[Information] Video
--[Information] [9/16/2024 8:40:10 PM] Postprocessing
---[Information] [9/16/2024 8:40:10 PM] Deleting intermediate files
--[Information] [9/16/2024 8:40:10 PM] Job completed
-[Information] Log for job2 (mux, 1653122960001-L1QrcQqv_Video.hevc -> 1653122960001-L1QrcQqv.mkv)
--[Information] [9/16/2024 8:40:10 PM] Started handling job
--[Information] [9/16/2024 8:40:10 PM] Preprocessing
--[Information] [9/16/2024 8:40:10 PM] MediaInfo
---[Information] File: C:\Users\dbtay\Videos\ceumlct4.e02\1653122960001-L1QrcQqv_Video.hevc
-[Information] Format: HEVC
-[Information] FileSize: 10365368
---[Information] General
-[Information] Format: HEVC
-[Information] FormatInfo: High Efficiency Video Coding
-[Information] Width: 1080
-[Information] Height: 1920
-[Information] FrameRate: 23.976
-[Information] FrameRate_N: 24000
-[Information] FrameRate_D: 1001
-[Information] Bits Depth: 10
-[Information] AspectRatio: 0.562
-[Information] AspectRatioString: 0.562
-[Information] PixelAspectRatio: 1.000
---[Information] Video
--[Information] [9/16/2024 8:40:10 PM] MediaInfo
---[Information] File: C:\Users\dbtay\Videos\ceumlct4.e02\1653122960001-L1QrcQqv - [1][0] English.aac
-[Information] Format: ADTS
-[Information] FileSize: 2300797
---[Information] General
-[Information] CodecID: 2
-[Information] Format: AAC
-[Information] FormatString: AAC LC
-[Information] FormatVersion: Version 4
-[Information] FormatInfo: Advanced Audio Codec Low Complexity
-[Information] SamplingRate: 48000
-[Information] SamplingRateString: 48.0 kHz
-[Information] Channels: 2
-[Information] ChannelsString: 2 channels
-[Information] ChannelLayout: L R
-[Information] BitRateMode: VBR
-[Information] [9/16/2024 8:40:10 PM] The language information is not available for this track. The default MeGUI language has been selected.
---[Information] Audio
--[Information] [9/16/2024 8:40:10 PM] Job command line: "C:\Users\dbtay\Desktop\MeGUI-6666.2308_x64\tools\mkvmerge\mkvmerge.exe" --output "C:\Users\dbtay\Videos\1653122960001-L1QrcQqv.mkv" --engage keep_bitstream_ar_info --default-duration 0:24000/1001fps --video-tracks 0 --no-audio --no-subtitles --no-chapters "C:\Users\dbtay\Videos\ceumlct4.e02\1653122960001-L1QrcQqv_Video.hevc" --aac-is-sbr 0:0 --language 0:eng --audio-tracks 0 --no-chapters --no-video --no-subtitles "C:\Users\dbtay\Videos\ceumlct4.e02\1653122960001-L1QrcQqv - [1][0] English.aac" --engage no_cue_duration --engage no_cue_relative_position --ui-language en
--[Information] [9/16/2024 8:40:10 PM] Process started
--[Information] [9/16/2024 8:40:10 PM] Standard output stream
--[Information] [9/16/2024 8:40:10 PM] Standard error stream
---[Information] [9/16/2024 8:40:10 PM] mkvmerge v86.0 ('Winter') 64-bit
---[Information] [9/16/2024 8:40:10 PM] 'C:\Users\dbtay\Videos\ceumlct4.e02\1653122960001-L1QrcQqv_Video.hevc': Using the demultiplexer for the format 'HEVC/H.265'.
---[Information] [9/16/2024 8:40:10 PM] 'C:\Users\dbtay\Videos\ceumlct4.e02\1653122960001-L1QrcQqv - [1][0] English.aac': Using the demultiplexer for the format 'AAC'.
---[Information] [9/16/2024 8:40:10 PM] 'C:\Users\dbtay\Videos\ceumlct4.e02\1653122960001-L1QrcQqv_Video.hevc' track 0: Using the output module for the format 'HEVC/H.265 (unframed)'.
---[Information] [9/16/2024 8:40:10 PM] 'C:\Users\dbtay\Videos\ceumlct4.e02\1653122960001-L1QrcQqv - [1][0] English.aac' track 0: Using the output module for the format 'AAC'.
---[Information] [9/16/2024 8:40:10 PM] The file 'C:\Users\dbtay\Videos\1653122960001-L1QrcQqv.mkv' has been opened for writing.
---[Information] [9/16/2024 8:40:10 PM] 'C:\Users\dbtay\Videos\ceumlct4.e02\1653122960001-L1QrcQqv_Video.hevc' track 0: Extracted the aspect ratio information from the video bitstream and set the display dimensions to 1080/1920.
---[Information] [9/16/2024 8:40:10 PM] The cue entries (the index) are being written...
---[Information] [9/16/2024 8:40:10 PM] Multiplexing took 0 seconds.
--[Information] [9/16/2024 8:40:10 PM] MediaInfo
---[Information] File: C:\Users\dbtay\Videos\1653122960001-L1QrcQqv.mkv
-[Information] Format: Matroska
-[Information] FileSize: 12668804
-[Information] PlayTime: 00:01:53.197
---[Information] General
-[Information] ID: 1
-[Information] StreamOrder: 0
-[Information] CodecID: V_MPEGH/ISO/HEVC
-[Information] Format: HEVC
-[Information] FormatInfo: High Efficiency Video Coding
-[Information] Width: 1080
-[Information] Height: 1920
-[Information] FrameCount: 2714
-[Information] FrameRate: 23.976
-[Information] FrameRate_N: 24000
-[Information] FrameRate_D: 1001
-[Information] FrameRateMode: CFR
-[Information] FrameRateModeString: Constant
-[Information] Duration: 00:01:53.197
-[Information] Bits Depth: 10
-[Information] AspectRatio: 0.562
-[Information] AspectRatioString: 0.562
-[Information] PixelAspectRatio: 1.000
-[Information] Delay: 0
-[Information] Default: Yes
-[Information] Forced: No
---[Information] Video
-[Information] ID: 2
-[Information] StreamOrder: 1
-[Information] CodecID: A_AAC-2
-[Information] Format: AAC
-[Information] FormatString: AAC LC
-[Information] FormatInfo: Advanced Audio Codec Low Complexity
-[Information] SamplingRate: 48000
-[Information] SamplingRateString: 48.0 kHz
-[Information] Channels: 2
-[Information] ChannelsString: 2 channels
-[Information] ChannelLayout: L R
-[Information] Delay: 0
-[Information] Language: en
-[Information] LanguageString: English
-[Information] Default: Yes
-[Information] Forced: No
---[Information] Audio
--[Information] [9/16/2024 8:40:10 PM] Postprocessing
-[Information] [9/16/2024 8:40:10 PM] Successfully deleted C:\Users\dbtay\Videos\ceumlct4.e02\1653122960001-L1QrcQqv_Video.hevc
---[Information] [9/16/2024 8:40:10 PM] Deleting intermediate files
--[Information] [9/16/2024 8:40:10 PM] Job completed
-[Information] Log for job3 (cleanup, 1653122960001-L1QrcQqv.mkv -> )
--[Information] [9/16/2024 8:40:10 PM] Started handling job
--[Information] [9/16/2024 8:40:10 PM] Preprocessing
--[Information] [9/16/2024 8:40:10 PM] Delete Intermediate Files option set: True
-[Information] [9/16/2024 8:40:10 PM] Successfully deleted C:\Users\dbtay\Videos\ceumlct4.e02\1653122960001-L1QrcQqv.mkv.avs
-[Information] [9/16/2024 8:40:10 PM] Successfully deleted C:\Users\dbtay\Videos\ceumlct4.e02\1653122960001-L1QrcQqv.mkv.lwi
-[Information] [9/16/2024 8:40:10 PM] Successfully deleted C:\Users\dbtay\Videos\ceumlct4.e02\1653122960001-L1QrcQqv - [1][0] English.aac
-[Information] [9/16/2024 8:40:10 PM] Successfully deleted C:\Users\dbtay\Videos\ceumlct4.e02\1653122960001-L1QrcQqv.mkv
-[Information] [9/16/2024 8:40:10 PM] Successfully deleted directory C:\Users\dbtay\Videos\ceumlct4.e02
--[Information] [9/16/2024 8:40:10 PM] Deleting intermediate files
--[Information] [9/16/2024 8:40:11 PM] Postprocessing
---[Information] [9/16/2024 8:40:11 PM] Deleting intermediate files
--[Information] [9/16/2024 8:40:11 PM] Job completed


Why does it work on MeGUI 6666.2308 but not MeGUI 2944?

LigH
17th September 2024, 03:47
If you had searched for the error message "extra unused command arguments given" in this board, you could have found several places where we explained: Since x265 supports MultiView (e.g. stereoscopic) video encoding, it requires explicit "--input" parameter before the placeholder "-" as filename for the pipe input.

MeGUI 6666.2308 does use "--input -"; MeGUI 2944 did not yet.

So I published x265 v4.0+4 without MultiView support hoping that these binaries do not need the "--input" parameter and may work with older tools. Scroll up to the bright red text here.

dbtayag
17th September 2024, 06:18
If you had searched for the error message "extra unused command arguments given" in this board, you could have found several places where we explained: Since x265 supports MultiView (e.g. stereoscopic) video encoding, it requires explicit "--input" parameter before the placeholder "-" as filename for the pipe input.

MeGUI 6666.2308 does use "--input -"; MeGUI 2944 did not yet.

So I published x265 v4.0+4 without MultiView support hoping that these binaries do not need the "--input" parameter and may work with older tools. Scroll up to the bright red text here.Thank you for the response. I am already using your version of x265 v4.0+4 without MultiView.

https://i.postimg.cc/pTwztjs4/Screenshot-2024-09-17-001319.png

I'm supposed to use the x265.exe inside the Win64 folder, correct?

I apologize if I am slow regarding this. I am not very fluent regarding stuff like this.

LigH
17th September 2024, 06:42
I'm supposed to use the x265.exe inside the Win64 folder, correct?

Yes, correct.

dbtayag
17th September 2024, 08:50
Yes, correct.That's odd. I still get an error even with that version of x265.

LigH
17th September 2024, 22:34
Well, that's unfortunate. The MV feature should be the only one which requires several input sources. I hoped that the command line parser would accept the last remaining parameter as input filename, as it used to work before, when I just disable MV support, but I can't guarantee it, I don't understand the sources to this degree.

LouieChuckyMerry
21st September 2024, 21:41
Why not give Kurtnoise's 'new' MeGUI 6666 releases a try.....
https://github.com/Kurtnoise-zeus/megui/releases

I've finally some time but I'm only able to import my x264 profiles; all other profiles either don't appear or are sent to a backup folder (.avs profiles, etc.). Any thoughts on how to import my AviSynth and QAAC profiles? Actually, Kurtnoise's MeGUI build doesn't even have QAAC...

EDIT: I figured out the QAAC problem; I had to enable it in Options/External Programs. D'oh! Now if I could just import my AviSynth profiles...