Log in

View Full Version : MeGUI: General Questions and Troubleshooting Thread


Pages : 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 [185] 186

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.