View Full Version : MeGUI: General Questions and Troubleshooting Thread
hello_hello
15th February 2019, 15:11
Also, if you start the job queue, then run another job in a temporary worker, the job queue stops running after the first job.
At least it does if the job in the queue finishes before the job in the temporary worker.
It makes using a temporary worker somewhat less useful.
Thanks.
The temporary worker does not adhere the other workers rule, however the other workers do. So e.g. if you do have the rule that only one worker should be running the temporary one can be started if already a normal worker is running. If then the normal worker finished while the temporary one is running, it will not pick the next job as the two workers would be running. But it should start when the temporary one finishes. Have you seen a different behaviour?
To be honest I'd not seen it through and I didn't realise if the job queue stopped due to a temporary worker running it would resume again when the temporary worker finished.
I think at the time I had the worker option configured to only run one job at a time, and the normal queue just appeared to stop as there's no indication it's waiting to resume. And I think the temporary worker was running a job that didn't tax the CPU much... maybe an audio encoding job or a video job with really slow filtering that barely kept a single core busy.... but whatever the case, that meant the job queue stopped and the remaining cores had nothing to do until the temporary job finished.
Now I know how it works I guess I could change the maximum number of jobs to two, start the job queue again, then change it back to one... or something.... but still, my preference would be for ordinary workers to be completely independent of temporary workers, much like they were before the worker setup changed. That's just me though....
Cheers.
Zathor
16th February 2019, 12:00
After RC, there is now x265 3.0 Au (Gold)...
Thanks, updated
an3k
8th March 2019, 11:22
Anybody know where I could get a x86 (32-Bit) version of the x264 encoder that is "shipped" with MeGUI? I need that so I can utilize all the AviSynth plugins.
x64 (64-Bit) version is fine for simple Blu-ray sources since DGIndexNV is available in 64-Bit but other plugins especially QTGMC is not.
EDIT: Nevermind. It is an unmodified version of x264 which is available at the official website where also a 32-Bit version can be downloaded.
an3k
8th March 2019, 13:00
I have to encode plenty of DVDs and I do use various AviSynth plugins that are very slow, thus I wanted to improve the encoding speed (through Multi-Threading).
My MeGUI is fully updated. It uses:
-> 32-Bit: AviSynth 0.1 (r2728, MT, i386)
-> 64-Bit: x264 0.157.2935 545de2f
I additionally downloaded:
-> 32-Bit: x264 0.157.2935 545de2f
I used two sample AviSynth scripts. vts_02.avs:
LoadPlugin("C:\Program Files (x86)\MeGUI\tools\dgindexnv\DGDecodeNV.dll")
DGSource("C:\Encode\vts_02_1.dgi")
Trim(24586,25547)
QTGMC(preset="slow",Sharpness=1.2,SLMode=1)
SelectEven()
Spline64Resize(768,576)
Sharpen(0.5)
and vts_02_MT.avs:
LoadPlugin("C:\Program Files (x86)\MeGUI\tools\dgindexnv\DGDecodeNV.dll")
DGSource("C:\Encode\vts_02_1.dgi")
Trim(24586,25547)
QTGMC(preset="slow",Sharpness=1.2,SLMode=1)
SelectEven()
Spline64Resize(768,576)
Sharpen(0.5)
Prefetch(20)
Encoding vts_02.avs in MeGUI will call the following command line "C:\Program Files (x86)\MeGUI\tools\ffmpeg\ffmpeg.exe" -loglevel level+error -i "C:\Encode\vts_02.avs" -strict -1 -f yuv4mpegpipe - | "C:\Program Files (x86)\MeGUI\tools\x264\x264.exe" --profile high --level 4.1 --crf 22 --tune film --preset veryslow --sar 1:1 --frames 962 --output "C:\Encode\vts_02.264" --stdin y4m -"
I ran that command line manually in a prompt to get the statistics from x264:
"C:\Program Files (x86)\MeGUI\tools\ffmpeg\ffmpeg.exe" -loglevel level+error -i "C:\Encode\vts_02.avs" -strict -1 -f yuv4mpegpipe - | "C:\Program Files (x86)\MeGUI\tools\x264\x264.exe" --profile high --level 4.1 --crf 22 --tune film --preset veryslow --sar 1:1 --frames 962 --output "C:\Encode\vts_02.264" --stdin y4m -"
y4m [info]: 768x576p 1:1 @ 25/1 fps (cfr)
x264 [info]: using SAR=1/1
x264 [info]: using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 AVX FMA3 BMI2 AVX2
x264 [info]: profile High, level 4.1, 4:2:0, 8-bit
x264 [info]: frame I:8 Avg QP:20.06 size: 29006
x264 [info]: frame P:273 Avg QP:24.30 size: 11169
x264 [info]: frame B:681 Avg QP:27.14 size: 3802
x264 [info]: consecutive B-frames: 5.6% 6.7% 17.2% 27.4% 15.6% 26.8% 0.7% 0.0% 0.0%
x264 [info]: mb I I16..4: 26.9% 61.4% 11.7%
x264 [info]: mb P I16..4: 5.0% 13.3% 1.6% P16..4: 41.3% 10.1% 10.6% 0.2% 0.0% skip:18.0%
x264 [info]: mb B I16..4: 0.4% 1.0% 0.1% B16..8: 42.3% 5.6% 1.1% direct: 4.3% skip:45.2% L0:44.5% L1:49.3% BI: 6.2%
x264 [info]: 8x8 transform intra:66.4% inter:74.5%
x264 [info]: direct mvs spatial:98.7% temporal:1.3%
x264 [info]: coded y,uvDC,uvAC intra: 63.7% 65.1% 32.7% inter: 12.9% 15.9% 2.5%
x264 [info]: i16 v,h,dc,p: 22% 23% 8% 46%
x264 [info]: i8 v,h,dc,ddl,ddr,vr,hd,vl,hu: 6% 6% 4% 12% 17% 13% 16% 12% 13%
x264 [info]: i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 8% 7% 6% 11% 15% 13% 15% 11% 15%
x264 [info]: i8c dc,h,v,p: 32% 31% 18% 19%
x264 [info]: Weighted P-Frames: Y:11.0% UV:8.8%
x264 [info]: ref P L0: 53.4% 11.4% 13.2% 4.8% 4.0% 3.0% 2.4% 1.5% 1.2% 1.0% 0.9% 0.8% 0.7% 0.6% 0.6% 0.4%
x264 [info]: ref B L0: 84.1% 7.0% 3.4% 1.3% 1.2% 0.8% 0.6% 0.3% 0.3% 0.3% 0.2% 0.2% 0.2% 0.2% 0.1%
x264 [info]: ref B L1: 97.1% 2.9%
x264 [info]: kb/s:1220.40
encoded 962 frames, 18.93 fps, 1220.40 kb/s
I then ran vts_02.avs directly in x264 32-Bit to see if ffmpeg is slowing the whole process down:
x286.exe --profile high --level 4.1 --crf 22 --tune film --preset veryslow --sar 1:1 --frames 962 --output "C:\Encode\vts_02.264" "C:\Encode\vts_02.avs"
avs [info]: 768x576p 1:1 @ 25/1 fps (cfr)
x264 [info]: using SAR=1/1
x264 [info]: using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 AVX FMA3 BMI2 AVX2
x264 [info]: profile High, level 4.1, 4:2:0, 8-bit
x264 [info]: frame I:8 Avg QP:20.07 size: 28931
x264 [info]: frame P:273 Avg QP:24.28 size: 11160
x264 [info]: frame B:681 Avg QP:27.17 size: 3805
x264 [info]: consecutive B-frames: 5.6% 6.7% 17.2% 27.4% 15.6% 26.8% 0.7% 0.0% 0.0%
x264 [info]: mb I I16..4: 27.5% 60.9% 11.6%
x264 [info]: mb P I16..4: 5.0% 13.2% 1.6% P16..4: 41.4% 10.0% 10.4% 0.2% 0.0% skip:18.1%
x264 [info]: mb B I16..4: 0.4% 1.0% 0.2% B16..8: 42.2% 5.6% 1.1% direct: 4.3% skip:45.2% L0:44.5% L1:49.3% BI: 6.2%
x264 [info]: 8x8 transform intra:65.9% inter:74.5%
x264 [info]: direct mvs spatial:98.7% temporal:1.3%
x264 [info]: coded y,uvDC,uvAC intra: 63.4% 64.8% 32.5% inter: 12.9% 15.9% 2.5%
x264 [info]: i16 v,h,dc,p: 23% 23% 8% 46%
x264 [info]: i8 v,h,dc,ddl,ddr,vr,hd,vl,hu: 6% 6% 4% 12% 17% 13% 16% 12% 13%
x264 [info]: i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 8% 7% 5% 11% 15% 13% 15% 12% 15%
x264 [info]: i8c dc,h,v,p: 31% 32% 18% 19%
x264 [info]: Weighted P-Frames: Y:11.0% UV:8.8%
x264 [info]: ref P L0: 53.3% 11.5% 13.1% 4.8% 4.0% 3.1% 2.5% 1.4% 1.2% 1.1% 0.9% 0.8% 0.7% 0.6% 0.6% 0.5%
x264 [info]: ref B L0: 84.0% 6.9% 3.5% 1.3% 1.2% 0.8% 0.6% 0.3% 0.3% 0.3% 0.2% 0.2% 0.2% 0.1% 0.1%
x264 [info]: ref B L1: 97.1% 2.9%
x264 [info]: kb/s:1220.30
encoded 962 frames, 18.80 fps, 1220.30 kb/s
Not much of a difference. Now lets use vts_02_MT.avs directly in x264 32-Bit
x286.exe --profile high --level 4.1 --crf 22 --tune film --preset veryslow --sar 1:1 --frames 962 --output "C:\Encode\vts_02_MT.264" "C:\Encode\vts_02_MT.avs"
avs [info]: 768x576p 1:1 @ 25/1 fps (cfr)
x264 [info]: using SAR=1/1
x264 [info]: using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 AVX FMA3 BMI2 AVX2
x264 [info]: profile High, level 4.1, 4:2:0, 8-bit
x264 [info]: frame I:8 Avg QP:20.07 size: 28931
x264 [info]: frame P:273 Avg QP:24.28 size: 11160
x264 [info]: frame B:681 Avg QP:27.17 size: 3805
x264 [info]: consecutive B-frames: 5.6% 6.7% 17.2% 27.4% 15.6% 26.8% 0.7% 0.0% 0.0%
x264 [info]: mb I I16..4: 27.5% 60.9% 11.6%
x264 [info]: mb P I16..4: 5.0% 13.2% 1.6% P16..4: 41.4% 10.0% 10.4% 0.2% 0.0% skip:18.1%
x264 [info]: mb B I16..4: 0.4% 1.0% 0.2% B16..8: 42.2% 5.6% 1.1% direct: 4.3% skip:45.2% L0:44.5% L1:49.3% BI: 6.2%
x264 [info]: 8x8 transform intra:65.9% inter:74.5%
x264 [info]: direct mvs spatial:98.7% temporal:1.3%
x264 [info]: coded y,uvDC,uvAC intra: 63.4% 64.8% 32.5% inter: 12.9% 15.9% 2.5%
x264 [info]: i16 v,h,dc,p: 23% 23% 8% 46%
x264 [info]: i8 v,h,dc,ddl,ddr,vr,hd,vl,hu: 6% 6% 4% 12% 17% 13% 16% 12% 13%
x264 [info]: i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 8% 7% 5% 11% 15% 13% 15% 12% 15%
x264 [info]: i8c dc,h,v,p: 31% 32% 18% 19%
x264 [info]: Weighted P-Frames: Y:11.0% UV:8.8%
x264 [info]: ref P L0: 53.3% 11.5% 13.1% 4.8% 4.0% 3.1% 2.5% 1.4% 1.2% 1.1% 0.9% 0.8% 0.7% 0.6% 0.6% 0.5%
x264 [info]: ref B L0: 84.0% 6.9% 3.5% 1.3% 1.2% 0.8% 0.6% 0.3% 0.3% 0.3% 0.2% 0.2% 0.2% 0.1% 0.1%
x264 [info]: ref B L1: 97.1% 2.9%
x264 [info]: kb/s:1220.30
encoded 962 frames, 34.46 fps, 1220.30 kb/s
Nearly twice the speed; because now all compatible plugins can use all CPU cores and not just one.
At last lets try the detour through ffmpeg:
"C:\Program Files (x86)\MeGUI\tools\ffmpeg\ffmpeg.exe" -loglevel level+error -i "C:\Encode\vts_02_MT.avs" -strict -1 -f yuv4mpegpipe - | "C:\Program Files (x86)\MeGUI\tools\x264\x264.exe" --profile high --level 4.1 --crf 22 --tune film --preset veryslow --sar 1:1 --frames 962 --output "C:\Encode\vts_02_MT.264" --stdin y4m -"
y4m [info]: 768x576p 1:1 @ 25/1 fps (cfr)
x264 [info]: using SAR=1/1
x264 [info]: using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 AVX FMA3 BMI2 AVX2
x264 [info]: profile High, level 4.1, 4:2:0, 8-bit
x264 [info]: frame I:8 Avg QP:20.06 size: 29006
x264 [info]: frame P:273 Avg QP:24.30 size: 11169
x264 [info]: frame B:681 Avg QP:27.14 size: 3802
x264 [info]: consecutive B-frames: 5.6% 6.7% 17.2% 27.4% 15.6% 26.8% 0.7% 0.0% 0.0%
x264 [info]: mb I I16..4: 26.9% 61.4% 11.7%
x264 [info]: mb P I16..4: 5.0% 13.3% 1.6% P16..4: 41.3% 10.1% 10.6% 0.2% 0.0% skip:18.0%
x264 [info]: mb B I16..4: 0.4% 1.0% 0.1% B16..8: 42.3% 5.6% 1.1% direct: 4.3% skip:45.2% L0:44.5% L1:49.3% BI: 6.2%
x264 [info]: 8x8 transform intra:66.4% inter:74.5%
x264 [info]: direct mvs spatial:98.7% temporal:1.3%
x264 [info]: coded y,uvDC,uvAC intra: 63.7% 65.1% 32.7% inter: 12.9% 15.9% 2.5%
x264 [info]: i16 v,h,dc,p: 22% 23% 8% 46%
x264 [info]: i8 v,h,dc,ddl,ddr,vr,hd,vl,hu: 6% 6% 4% 12% 17% 13% 16% 12% 13%
x264 [info]: i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 8% 7% 6% 11% 15% 13% 15% 11% 15%
x264 [info]: i8c dc,h,v,p: 32% 31% 18% 19%
x264 [info]: Weighted P-Frames: Y:11.0% UV:8.8%
x264 [info]: ref P L0: 53.4% 11.4% 13.2% 4.8% 4.0% 3.0% 2.4% 1.5% 1.2% 1.0% 0.9% 0.8% 0.7% 0.6% 0.6% 0.4%
x264 [info]: ref B L0: 84.1% 7.0% 3.4% 1.3% 1.2% 0.8% 0.6% 0.3% 0.3% 0.3% 0.2% 0.2% 0.2% 0.2% 0.1%
x264 [info]: ref B L1: 97.1% 2.9%
x264 [info]: kb/s:1220.40
encoded 962 frames, 39.89 fps, 1220.40 kb/s
Awesome! More than twice as fast!
The problem is MeGUI loves to crash with "Prefetch()" in use with "Could not read AVS frame." which most of the time freezes MeGUI so I have to kill it using Task Manager.
damia
10th March 2019, 09:18
Hey . Anyone know how to fix and cause of the problem this ? http://prntscr.com/mvsv9q
encode using audio AAC 192Kbps 6Channel . thanks :)
Source
Audio
ID : 2
Format : AC-3
Format/Info : Audio Coding 3
Commercial name : Dolby Digital
Codec ID : A_AC3
Duration : 1 h 52 min
Bit rate mode : Constant
Bit rate : 640 kb/s
Channel(s) : 6 channels
Channel layout : L R C LFE Ls Rs
Sampling rate : 48.0 kHz
Frame rate : 31.250 FPS (1536 SPF)
Bit depth : 16 bits
Compression mode : Lossy
Stream size : 517 MiB (4%)
Language : Korean
Service kind : Complete Main
Default : Yes
Forced : No
tebasuna51
10th March 2019, 12:56
@Damia, please include the full log:
Over the Job in Log Tab right mouse button -> Save -> Log -> select a name for the log file.
Use Pastebin to upload the log file, or Zip/7z the log file and attach it here.
Sometimes the error "String maybeFullPath" is related with filenames.
LouieChuckyMerry
10th March 2019, 20:30
I'm wondering if it's possible to somehow use Ut Video in MeGUI and, if so, then how to do this? Thank you!
LigH
11th March 2019, 08:16
MeGUI is a converter with the intention to produce final results; I see a use of Ut video only for the case that you want to use an intermediate render for two encoding passes because your filter chain is so slow that it saves time to write it out as losslessly compressed AVI. MeGUI may support that for a first pass, but I never used it and don't know which range of formats you may select here...
imsrk48
11th March 2019, 08:18
How to add Output Title & Select Audio Tracks Language When Encoding Media? When using DirectShowStreamPlease help [emoji120]
LigH
11th March 2019, 10:06
What do you mean by "DirectShowStream"? In case you mean "DirectShowSource": Its use is discouraged, in general. There are only few exceptions where you may have no choice to use any better native source plugin.
Rather independent from the source, there are different ways to use MeGUI to convert media. You did not tell us which one you prefer (OneClick, Auto Encode, manual queueing ...); the better you want to customize your result, the more you may have to manage manually, step by step. Automated usage modes can be pre-configured, but the ultimate freedom is available by converting audio and video tracks separately, and then using the Multiplexer tool of your choice, adding video stream and audio streams you already converted before, selecting their language and other attributes in the multiplexer's dialog.
LouieChuckyMerry
18th March 2019, 15:53
MeGUI is a converter with the intention to produce final results; I see a use of Ut video only for the case that you want to use an intermediate render for two encoding passes because your filter chain is so slow that it saves time to write it out as losslessly compressed AVI. MeGUI may support that for a first pass, but I never used it and don't know which range of formats you may select here...
Thanks for the answer, LigH :) . I'll stick with VirtualDub for Ut Video, then.
Morku
21st March 2019, 22:11
@videoh
Can you please check into an issue I have with a mpls file?
The mpls file contains 2 m2ts. When I save the dgi, only the first stream is proceed. Same with MeGUI and DGIndexNV GUI.
You can check the dgi here: https://www.dropbox.com/s/ec73v2fv9ynwso9/IM%20AUGUST%20IN%20OSAGE%20COUNTY_00001.dgi?dl=1
To try to bypass, I started the DGIndexNV GUI and loaded both m2ts, instead the mpls. Again, only the first m2ts is indexed.
So... I Indexed both m2ts seperatly. When save one of the m2ts file, I get this error:
https://i.imgur.com/odwgQpl.png
Even when it says, it can't find "video data", it saved fine.
When save the other m2ts file, I don't get this warning.
So to finally bypass the problem, I created 2 dgi file and merged with AlignedSplice.
So I think there must be something weird with the m2ts file. I have uploaded here: https://www.dropbox.com/s/e73odwdwnuu3u7g/00002.m2ts?dl=1
And if necessary the mpls, but I think it's unrelated to the problem: https://www.dropbox.com/s/xopyx6g3z9i8gur/00001.mpls?dl=1
I have tried Slipstream 173 down to 168. I don't have any older version to test.
tebasuna51
21st March 2019, 23:00
Your 00001.mpls:
D:\tmp\00001.mpls
Num Clips: 2 -- Duration: 120:54
PlayList:
00002.M2TS -- Duration: 0:05
00001.M2TS -- Duration: 120:49
The 00002.M2TS is a credit of 5 seconds and the 00001.M2TS is the full movie.
The 00002.M2TS:
M2TS, 1 video track, 3 audio tracks, 3 subtitle tracks, 0:00:05, 24p
1: h264/AVC, 1080p24 (16:9)
2: DTS Master Audio, 5.1 channels, 16 bits, 48kHz
(core: DTS, 5.1 channels, 1509kbps, 48kHz)
3: DTS Master Audio, 5.1 channels, 16 bits, 48kHz
(core: DTS, 5.1 channels, 1509kbps, 48kHz)
4: DTS, 2.0 channels, 384kbps, 48kHz
5: Subtitle (PGS)
6: Subtitle (PGS)
7: Subtitle (PGS)
The h264 stream have 120 frames at 24 fps is 5 seconds.
The 3 audio streams are silent but the stream 2 is 50 seconds long, (3 and 4 streams are 5 seconds like the video).
The 00002.M2TS is wrong.
If you select in DGindexNV not demux the streams don't show the error (Cannot find video data, because search more than 5 sec.).
Use only the 00001.M2TS like input and forget the 5 second initial credit.
Morku
21st March 2019, 23:17
I know about the content, but it does not explain, why it's not working.
The 00002.M2TS contains the same metadata like the 00001.M2TS with the whole movie. Same audiostreams, subtitles, framerate.
The "Enable demux processing" was not selected in DGIndexNV. I only saved the dgi file and do get the errormessage.
In general, Indexing with multiple m2ts just always works fine.
With eac3to I extracted both audiostreams with 00002.M2TS+00001.M2TS. Both audiofiles have the same lenght with the silent intro. Tomorrow I can check if video and audio is synchronous, but I do expect.
Yes, I could forget about the initial, but if possible I also like to keep.
tebasuna51
22nd March 2019, 10:23
Like I say you the problem seems the first audio track with a duration of 50 s. instead 5 s. like other streams.
Try replace with this 00002.m2ts: https://www.sendspace.com/file/cki7gt
And verify if the problem is solved (I replace the first audio track with a copy of second audio track).
Morku
22nd March 2019, 17:17
Hi,
I can confirm that your modified 00002.m2ts index fine with 00002.m2ts+00001.m2ts
So even when the first audiotrack is the issue, in my opinion it shouldn't be an issue, because audiodemux is disabled and in MeGUI I always select "No Audio", because I use eac3to for that.
Of course this is up to the developer.
K3V1991
23rd March 2019, 17:05
Hey Folks,
My Problem is, everytime i try to encode a Video in MeGUI it gives me an Error:
Invalid Argument: crf = 20,0 (example)
Process exits with error: 0xFFFFFFFF (-1)
NFO:
Latest MeGUI (tried x86 and x64)
Windows 10 Pro x64 (1809) - Build: 17763.379
Here is a complete Log: https://mega.nz/#!kRxAACgT!pstLky1858C4SqNbtm2mG4I8sWGu7eiNlDQhJxjwVGQ
I hope anyone can help me
Groucho2004
23rd March 2019, 18:03
Hey Folks,
My Problem is, everytime i try to encode a Video in MeGUI it gives me an Error:
Invalid Argument: crf = 20,0 (example)
Process exits with error: 0xFFFFFFFF (-1)
The comma should be a decimal point. Are you using German Windows?
K3V1991
23rd March 2019, 18:17
The comma should be a decimal point. Are you using German Windows?
Yes german Windows
Groucho2004
23rd March 2019, 18:24
Yes german WindowsWell, it seems that megui takes the format of the decimal point from the regional settings for some reason. I hope a developer can clear this up.
jlw_4049
2nd April 2019, 06:59
Does MeGUI support 4k HDR encoding through a 10 bit pipeline?
If so how do I use this? Can I not index etc?
Sent from my SM-G965U1 using Tapatalk
sneaker_ger
2nd April 2019, 10:38
MeGUI supports 10 bit pipeline with AviSynth+. In the extended options you have to disable "Restrict input filter to 8 bit" and use a suitable input filter (like ffms2). But you have to set any HDR flags (colormatrix, master display info etc.) manually in the encoder/muxing settings.
jlw_4049
2nd April 2019, 14:40
Thanks for the info!
Sent from my SM-G965U1 using Tapatalk
I use Megui last version 2896-X64 on Server with WinServer 2019 X64, cpu is Intel Xeon E5-1650 [6 Core]
to use all six cores, I have to install external "AviSynth v.2.5.8 MT 64-bit" ???
How can check/verify if Megui uses all six cores??
Thanks
LigH
5th April 2019, 18:33
Not SEt's AviSynth MT, rather pinterf's AviSynth+ MT (https://github.com/pinterf/AviSynthPlus/releases) (and I would be surprised if MeGUI does not update this once in a while).
It doesn't matter how many cores MeGUI uses, because MeGUI is only a user interface to build the AviSynth script. AviSynth+ has to use all cores when it executes the script. For AviSynth+, this requires a Prefetch(number_of_cores) call at the end of the script. You may have to add it manually. And there will not be a guarantee for 100% CPU utilization ever. Also note that the encoder will need some CPU time too, and often more than the AviSynth filter chain.
LouieChuckyMerry
6th April 2019, 21:15
Not SEt's AviSynth MT, rather pinterf's AviSynth+ MT (https://github.com/pinterf/AviSynthPlus/releases) (and I would be surprised if MeGUI does not update this once in a while).
Happy Saturday! :) . When I set up my i7 (4 core) system to encode video some years ago--thanks again to everyone who helped--I eventually ended up with the following as my standard template for 1080p sources (adjusting the TR and ThSAD for each source):
SetMemoryMax(2048)
SetMTMode(3,7)
LSMASH SOURCE INFORMATION HERE
SetMTMode(2)
SMDegrain(TR=X,ThSAD=XXX,RefineMotion=True,Plane=0,Chroma=False,Lsb=True,Lsb_Out=True)
F=DitherPost(Mode=-1)
S=F.FastLineDarkenMod()
D=MT_MakeDiff(S,F).Dither_Convert_8_To_16()
Dither_Add16(Last,D,Dif=True,U=2,V=2)
GradFun3(Radius=16,Lsb_In=True,Lsb=True)
### Preview Source OR Send 16-bit Output To x264 10-bit ###
# DitherPost()
Dither_Out()
This seems to utilize as close to 100% CPU as possible without crashing or glitches--Special Thanks to Groucho's AVSMeter (https://forum.doom9.org/showthread.php?t=174797) :thanks: --and I'm quite pleased with the results when viewed. The above quote has me wondering, however: would I see any gain in encoding speed if I switched from SEt's AviSynth MT to pinterf's AviSynth+ MT?
Groucho2004
6th April 2019, 21:29
The above quote has me wondering, however: would I see any gain in encoding speed if I switched from SEt's AviSynth MT to pinterf's AviSynth+ MT?Probably. First, you can use a 64 bit processing chain throughout which eliminates any memory restrictions (given that you do have enough memory installed). If you can't use 64 bit (if for example one of your filters is not available in 64 bit or you don't have a 64 bit OS), AVS+ is still the better option because it uses much less memory than SEt's MT in most cases, is more stable and many internal functions are much faster.
Apart from the multi-threading syntax (see here (http://avisynth.nl/index.php/AviSynth%2B#MT_Notes)) and some new functions, AVS+ usage is pretty much the same as classic Avisynth.
So, pretty much a no-brainer.
LouieChuckyMerry
6th April 2019, 22:44
Probably. First, you can use a 64 bit processing chain throughout which eliminates any memory restrictions (given that you do have enough memory installed).
I've 16GB RAM installed, although I think some is dedicated to the graphics card.
If you can't use 64 bit (if for example one of your filters is not available in 64 bit or you don't have a 64 bit OS), AVS+ is still the better option because it uses much less memory than SEt's MT in most cases, is more stable and many internal functions are much faster.
My OS is 64 bit Windows 7 Home Premium. Is there somewhere you'd recommend to gather 64 bit filters?
Apart from the multi-threading syntax (see here (http://avisynth.nl/index.php/AviSynth%2B#MT_Notes)) and some new functions, AVS+ usage is pretty much the same as classic Avisynth.
Thanks. I worry about checking out pinterf's AviSynth+ MT such that I botch something then can't return to my original set up. Any suggestions?
So, pretty much a no-brainer.
Ho ho ho, you slay me :p .
EDIT: The Universal Avisynth Installer would probably be a very useful tool.
LigH
6th April 2019, 22:49
Please read: AviSynth Wiki: AviSynth+ (http://avisynth.nl/index.php/AviSynth%2B); it has a chapter about already available 64 bit plugins, too (more might be ported, sometimes, some day).
LouieChuckyMerry
6th April 2019, 23:02
Please read: AviSynth Wiki: AviSynth+ (http://avisynth.nl/index.php/AviSynth%2B); it has a chapter about already available 64 bit plugins, too (more might be ported, sometimes, some day).
Thanks, LigH. Ahhh, maybe you'd know. Since I'm currently using SEt's MT AviSynth the box in my "MeGUI/Settings/Always use the included AviSynth" is unticked. If I were to tick this would I then be able to test pinterf's AviSynth+ MT but still be able to revert to SEt's by simply unticking it?
LigH
6th April 2019, 23:05
Yes, if you check this box, MeGUI will use its own local copy of AviSynth+, and you can keep the AviSynth version installed in your Windows system for other applications. But then you can also use only the AviSynth plugins shipped with MeGUI, or the ones you load explicitly. But the plugins installed in your legacy AviSynth plugin directory will not be loaded automatically for MeGUI.
Groucho2004
6th April 2019, 23:32
EDIT: The Universal Avisynth Installer would probably be a very useful tool.
Indeed.
LouieChuckyMerry
7th April 2019, 00:27
Yes, if you check this box, MeGUI will use its own local copy of AviSynth+, and you can keep the AviSynth version installed in your Windows system for other applications. But then you can also use only the AviSynth plugins shipped with MeGUI, or the ones you load explicitly. But the plugins installed in your legacy AviSynth plugin directory will not be loaded automatically for MeGUI.
Indeed.
I thank you both for your kind help :) .
hello_hello
7th April 2019, 22:39
Yes, if you check this box, MeGUI will use its own local copy of AviSynth+, and you can keep the AviSynth version installed in your Windows system for other applications. But then you can also use only the AviSynth plugins shipped with MeGUI, or the ones you load explicitly. But the plugins installed in your legacy AviSynth plugin directory will not be loaded automatically for MeGUI.
The portable Avisynth+ does the same registry checking for auto-loading folders as it would if it was "installed", so you can switch between the installed version and MeGUI's portable Avisynth+, and plugins in the "installed" Avisynth/plugins folder will autoload either way.
Assuming they're both 32 bit anyway. I saw some mention of 64 bit plugins earlier, so maybe I've misunderstood what you're referring to. If so, sorry....
LouieChuckyMerry
10th April 2019, 13:54
The portable Avisynth+ does the same registry checking for auto-loading folders as it would if it was "installed", so you can switch between the installed version and MeGUI's portable Avisynth+, and plugins in the "installed" Avisynth/plugins folder will autoload either way.
Thanks for the information; I can confirm it's true.
LouieChuckyMerry
10th April 2019, 16:55
I finally successfully upgraded from MeGUI Version 2855 (I think the last version to use avs4x26x.exe?) with SEt's MT AviSynth installed to the latest development server version because I wanted to check out pinterf's AviSynth+. My typical script was:
SetMemoryMax(2048)
SetMTMode(3,7)
LSMASH SOURCE INFORMATION HERE
SetMTMode(2)
SMDegrain(TR=X,ThSAD=XXX,RefineMotion=True,Plane=0,Chroma=False,Lsb=True,Lsb_Out=True)
F=DitherPost(Mode=-1)
S=F.FastLineDarkenMod()
D=MT_MakeDiff(S,F).Dither_Convert_8_To_16()
Dither_Add16(Last,D,Dif=True,U=2,V=2)
GradFun3(Radius=16,Lsb_In=True,Lsb=True)
### Preview Source OR Send 16-bit Output To x264 10-bit ###
# DitherPost()
Dither_Out()
and now is:
SetMemoryMax(2048)
LSMASH SOURCE INFORMATION HERE
SetFilterMTMode("Default_MT_Mode",2)
SMDegrain(TR=X,ThSAD=XXX,RefineMotion=True,Plane=0,Chroma=False,Lsb=True,Lsb_Out=True)
F=DitherPost(Mode=-1)
S=F.FastLineDarkenMod()
D=MT_MakeDiff(S,F).Dither_Convert_8_To_16()
Dither_Add16(Last,D,Dif=True,U=2,V=2)
GradFun3(Radius=16,Lsb_In=True,Lsb=True)
DitherPost()
Prefetch(8)
outputting 10-bit video.
I've a few questions:
1) With my old setup I had to end my scripts with "DitherPost()" to preview the video properly but "Dither_Out()" to encode the video properly; however, with the new setup using "DitherPost()" works to preview the video and to encode the video (this took a bit of trial-and-error to figure out). I'm curious why. Is it a change in syntax or some such?
2) After some testing, it seems the pinterf AviSynth+ setup is ~15% faster than the old SEt MT setup. Nice! However, before the change the SEt MT setup was utilizing very close to 100% of the CPU, whereas now the updated MeGUI using SEt's MT AviSynth is ~25% slower than the old SEt MT setup and only utilizes ~50% of the CPU. Does anyone think that tweaking the SEt's MT AviSynth settings on the new setup might result in faster encoding than pinterf's AviSynth+ on the new setup?
3) Is there a trick to loading YADIFMod2? I can use my old YADIF.dll (Version 1.7.0.0) without issue, but if I replace it with the updated YADIFMod2.dll I receive the message "Script error: There is no function named 'Yadif.'"
Thanks for any answers :) .
K3V1991
10th April 2019, 20:38
Well, it seems that megui takes the format of the decimal point from the regional settings for some reason. I hope a developer can clear this up.
I changed my "Language" to "English (US)" on Windows and now all works great.
:thanks:
hello_hello
11th April 2019, 10:10
3) Is there a trick to loading YADIFMod2? I can use my old YADIF.dll (Version 1.7.0.0) without issue, but if I replace it with the updated YADIFMod2.dll I receive the message "Script error: There is no function named 'Yadif.'"
Yadif()
Yadifmod()
Yadifmod2()
:)
On the plus side, you can put all three in the plugins folder and they'll co-exist.
If you want to just swap them, but still use Yadif() in scripts, you could create a wrapper function to load YadifMod2() and put it in the auto-loading folder. I think they only have three arguments in common, but this should work.
function yadif(clip c, int "mode", int "order", int "opt") {
return c.yadifmod2(int "mode", int "order", int "opt") }
Thinking about it, classic Avisynth won't auto-load C plugins, and Yadif be one.
You could also rectify that by putting an avsi script in the auto-loading plugins folder. Something like
Yadif = "C:\Program Files\AviSynth\C Plugins\yadif.dll"
exist(Yadif) ? Load_Stdcall_Plugin(Yadif) : nop()
LouieChuckyMerry
11th April 2019, 13:25
Thanks for the above clarity :) . I've only a single script with a default YADIF call; is there any reason to favor YADIFMod or YADIFMod2 over YADIF?
hello_hello
12th April 2019, 19:41
YadifMod doesn't de-interlace itself. It needs to take the required pixels from an interlaced version of the clip. ie
A = last
B = A.QTGMC()
Yadifmod(mode=1, edeint=B)
YadifMod2 is Yadif and YadifMod combined. If you don't specify a clip for edeint, it de-interlaces itself.
YadifMod & YadifMod2 have a "Field" option for specifying the field to keep in "same rate" de interlacing mode. For Yadif I think it's always the same as "Order".
I kind of remember additional colorspace and high bitdepth support for YadifMod2, but the help file will tell you.
MeGUI uses YadifMod2 instead of Yadif these days.
LouieChuckyMerry
12th April 2019, 23:04
YadifMod doesn't de-interlace itself. It needs to take the required pixels from an interlaced version of the clip. ie
A = last
B = A.QTGMC()
Yadifmod(mode=1, edeint=B)
YadifMod2 is Yadif and YadifMod combined. If you don't specify a clip for edeint, it de-interlaces itself.
YadifMod & YadifMod2 have a "Field" option for specifying the field to keep in "same rate" de interlacing mode. For Yadif I think it's always the same as "Order".
I kind of remember additional colorspace and high bitdepth support for YadifMod2, but the help file will tell you.
MeGUI uses YadifMod2 instead of Yadif these days.
Thank you for the explanation, I appreciate it :) .
imsrk48
13th April 2019, 11:00
How to add Logo.png using MeGUI?
imsrk48
13th April 2019, 11:01
Then switch to e.g. QAAC. NeroAACEnc is not in active delopment anymore so there is likely no chance to have this fixed.What is QAAC? & How to download it.
hello_hello
13th April 2019, 22:11
What is QAAC? & How to download it.
It should be in the MeGUI\tools\qaac folder. You'll probably need to enable it in preferences (there should then be a QAAC option in the list of audio encoders). It needs some Apple files, which do the actual encoding, so you'll need to download the Apple iTunes installer. You don't need to install it.
http://www.apple.com/itunes/download/
I think you have to install 7-zip
https://www.7-zip.org/download.html
Put the iTunes installer in the MeGUI\tools\qaac folder and run makeportable.cmd. It'll extract the required files. You can then delete the installer.
StainlessS
13th April 2019, 22:17
What is QAAC? & How to download it.
Its builtin to MegUI already as one of the optional audio encoders (ie change the selected encoder).
EDIT: Hello_Hello said it better.
How to add Logo.png using MeGUI?
MeGUI is an encoder app, why do you expect it to add all sorts of non encode stuff, if you want to add logo (most people want to get rid of such crap)
then learn to use Avisynth, and do it yourself. (once you know how to use Avisynth, then can add your own code to MeGUI generated script)
EDIT: You'de be better off posting request in Avisynth forum, as that is what you would want to use via MeGUI.
Also, you will also want to be more specific in your requirement, ie what is logo source [EDIT: you already said is png], how big, how much of clip affected [eg all, intro, exit] etc.
EDIT: Could search in Avisynth forum for previously posted stuff [EDIT: Below just threads with logo in the thread title]:
eg
[EDIT Actually this one in Mpeg4 Encoder forum] https://forum.doom9.org/showthread.php?t=147946&highlight=logo
https://forum.doom9.org/showthread.php?t=144883&highlight=logo
https://forum.doom9.org/showthread.php?t=72445&highlight=logo
https://forum.doom9.org/showthread.php?t=127649&highlight=logo
https://forum.doom9.org/showthread.php?t=124608&highlight=logo
https://forum.doom9.org/showthread.php?t=123574&highlight=logo
https://forum.doom9.org/showthread.php?t=91192&highlight=logo
https://forum.doom9.org/showthread.php?t=70411&highlight=logo
https://forum.doom9.org/showthread.php?t=64961&highlight=logo
https://forum.doom9.org/showthread.php?t=49078&highlight=logo
https://forum.doom9.org/showthread.php?t=48118&highlight=logo
https://forum.doom9.org/showthread.php?t=44455&highlight=logo
https://forum.doom9.org/showthread.php?t=37886&highlight=logo
https://forum.doom9.org/showthread.php?t=25886&highlight=logo
https://forum.doom9.org/showthread.php?t=25886&highlight=logo
EDIT: Avisynth Layer:- http://avisynth.nl/index.php/Layer
Avisynth Overlay:- http://avisynth.nl/index.php/Overlay
EDIT: Can also do D9 search on "Watermark" as well as "Logo".
https://forum.doom9.org/showthread.php?t=171208&highlight=Watermark
https://forum.doom9.org/showthread.php?t=173101&highlight=logo
https://forum.doom9.org/showthread.php?t=160317&highlight=Watermark
https://forum.doom9.org/showthread.php?t=159587&highlight=Watermark
https://forum.doom9.org/showthread.php?t=152310&highlight=Watermark
https://forum.doom9.org/showthread.php?t=111611&highlight=Watermark
https://forum.doom9.org/showthread.php?t=77045&highlight=Watermark
EDIT: Simple demo SomeLogo.avs
# SomeLogo.avs
# with Avisynth installed, play avs in most any player except VLC.
Colorbars(Pixel_Type="YV12").KillAudio # Testing subtstitute for your source video clip as YV12, ie delete line or comment out [insert '#' before line]
#AviSource("D:\Parade.avi").ConvertToYV12
##### CONFIG #####
I=ImageSource(".\Imagemagick-logo.png") # Your Logo in current directory (or specify path)
I_Width = 128 # Your required width of Logo, multiple of 4
I_HEIGHT = 96 # Your required Height of Logo, multiple of 4
LOGO_X = -20 # Logo X position
LOGO_Y = -20 # Logo Y position
RGT_REL = True # If True then LOGO_X adjusts right aligned, ie LOGO_X=0 is hard against Right hand side)
BOT_REL = True # If True then LOGO_Y adjusts Bottom aligned, ie LOGO_Y=0 is hard against bottom)
OPACITY = 0.5 # 0.0 -> 1.0, 0.0=NO LOGO, 1=ALL LOGO
START_FRAME = 25
END_FRAME = 100 # 0 = Do Till End of clip
### END CONFIG ###
I=(I.Width!=I_WIDTH || I.Height != I_HEIGHT) ? I.Spline36Resize(I_WIDTH,I_HEIGHT) : I # Resize to required
I=I.ConvertToYV12 # Same As Source clip
END_FRAME = (END_FRAME==0) ? Framecount-1 : END_FRAME
LOGO_X = (RGT_REL) ? (Width -I.Width + LOGO_X) : LOGO_X
LOGO_Y = (BOT_REL) ? (Height-I.Height + LOGO_Y) : LOGO_Y
MASK=I.BlankClip(Color_YUV=$FF8080) # Solid White (just dummy for ApplyRange really)
(START_FRAME==0 && END_FRAME==FrameCount-1)
\ ? Last.Overlay(I,x=LOGO_X,y=LOGO_Y,Mask=MASK,Opacity=OPACITY)
\ : Last.ApplyRange(START_FRAME,END_FRAME,"Overlay",I,LOGO_X,LOGO_Y,MASK,OPACITY)
Could in MeGUI script editor add line (somewhere just before end of megui script
Import("D:\...\SomeLogo.avs") # edit path
And save above script as SomeLogo.avs and edit only the SomeLogo script. [If you do this, ensure to comment out the Colorbars line]
https://i.postimg.cc/ZW0V1M8R/someLogo.jpg (https://postimg.cc/ZW0V1M8R)
imsrk48
18th April 2019, 18:32
Its builtin to MegUI already as one of the optional audio encoders (ie change the selected encoder).
EDIT: Hello_Hello said it better.
MeGUI is an encoder app, why do you expect it to add all sorts of non encode stuff, if you want to add logo (most people want to get rid of such crap)
then learn to use Avisynth, and do it yourself. (once you know how to use Avisynth, then can add your own code to MeGUI generated script)
EDIT: You'de be better off posting request in Avisynth forum, as that is what you would want to use via MeGUI.
Also, you will also want to be more specific in your requirement, ie what is logo source [EDIT: you already said is png], how big, how much of clip affected [eg all, intro, exit] etc.
EDIT: Could search in Avisynth forum for previously posted stuff [EDIT: Below just threads with logo in the thread title]:
eg
[EDIT Actually this one in Mpeg4 Encoder forum] https://forum.doom9.org/showthread.php?t=147946&highlight=logo
https://forum.doom9.org/showthread.php?t=144883&highlight=logo
https://forum.doom9.org/showthread.php?t=72445&highlight=logo
https://forum.doom9.org/showthread.php?t=127649&highlight=logo
https://forum.doom9.org/showthread.php?t=124608&highlight=logo
https://forum.doom9.org/showthread.php?t=123574&highlight=logo
https://forum.doom9.org/showthread.php?t=91192&highlight=logo
https://forum.doom9.org/showthread.php?t=70411&highlight=logo
https://forum.doom9.org/showthread.php?t=64961&highlight=logo
https://forum.doom9.org/showthread.php?t=49078&highlight=logo
https://forum.doom9.org/showthread.php?t=48118&highlight=logo
https://forum.doom9.org/showthread.php?t=44455&highlight=logo
https://forum.doom9.org/showthread.php?t=37886&highlight=logo
https://forum.doom9.org/showthread.php?t=25886&highlight=logo
https://forum.doom9.org/showthread.php?t=25886&highlight=logo
EDIT: Avisynth Layer:- http://avisynth.nl/index.php/Layer
Avisynth Overlay:- http://avisynth.nl/index.php/Overlay
EDIT: Can also do D9 search on "Watermark" as well as "Logo".
https://forum.doom9.org/showthread.php?t=171208&highlight=Watermark
https://forum.doom9.org/showthread.php?t=173101&highlight=logo
https://forum.doom9.org/showthread.php?t=160317&highlight=Watermark
https://forum.doom9.org/showthread.php?t=159587&highlight=Watermark
https://forum.doom9.org/showthread.php?t=152310&highlight=Watermark
https://forum.doom9.org/showthread.php?t=111611&highlight=Watermark
https://forum.doom9.org/showthread.php?t=77045&highlight=Watermark
EDIT: Simple demo SomeLogo.avs
# SomeLogo.avs
# with Avisynth installed, play avs in most any player except VLC.
Colorbars(Pixel_Type="YV12").KillAudio # Testing subtstitute for your source video clip as YV12, ie delete line or comment out [insert '#' before line]
#AviSource("D:\Parade.avi").ConvertToYV12
##### CONFIG #####
I=ImageSource(".\Imagemagick-logo.png") # Your Logo in current directory (or specify path)
I_Width = 128 # Your required width of Logo, multiple of 4
I_HEIGHT = 96 # Your required Height of Logo, multiple of 4
LOGO_X = -20 # Logo X position
LOGO_Y = -20 # Logo Y position
RGT_REL = True # If True then LOGO_X adjusts right aligned, ie LOGO_X=0 is hard against Right hand side)
BOT_REL = True # If True then LOGO_Y adjusts Bottom aligned, ie LOGO_Y=0 is hard against bottom)
OPACITY = 0.5 # 0.0 -> 1.0, 0.0=NO LOGO, 1=ALL LOGO
START_FRAME = 25
END_FRAME = 100 # 0 = Do Till End of clip
### END CONFIG ###
I=(I.Width!=I_WIDTH || I.Height != I_HEIGHT) ? I.Spline36Resize(I_WIDTH,I_HEIGHT) : I # Resize to required
I=I.ConvertToYV12 # Same As Source clip
END_FRAME = (END_FRAME==0) ? Framecount-1 : END_FRAME
LOGO_X = (RGT_REL) ? (Width -I.Width + LOGO_X) : LOGO_X
LOGO_Y = (BOT_REL) ? (Height-I.Height + LOGO_Y) : LOGO_Y
MASK=I.BlankClip(Color_YUV=$FF8080) # Solid White (just dummy for ApplyRange really)
(START_FRAME==0 && END_FRAME==FrameCount-1)
\ ? Last.Overlay(I,x=LOGO_X,y=LOGO_Y,Mask=MASK,Opacity=OPACITY)
\ : Last.ApplyRange(START_FRAME,END_FRAME,"Overlay",I,LOGO_X,LOGO_Y,MASK,OPACITY)
Could in MeGUI script editor add line (somewhere just before end of megui script
Import("D:\...\SomeLogo.avs") # edit path
And save above script as SomeLogo.avs and edit only the SomeLogo script. [If you do this, ensure to comment out the Colorbars line]
https://i.postimg.cc/ZW0V1M8R/someLogo.jpg (https://postimg.cc/ZW0V1M8R)Thanks Buddy for your huge valuable help[emoji4]
StainlessS
18th April 2019, 20:29
imsrk48,
The provided script is probably not the best ever script, if you do intend to pursue, then post in avisynth forum where the experts can give better scripts.
in particular, the line
MASK=I.BlankClip(Color_YUV=$FF8080) # Solid White (just dummy for ApplyRange really)
Could probably be better, as should be full PC levels white, whereas I think above line will produce TV levels white.
Elliptical Logo Demo (req Masktools v2)
# Requires Masktools v2
Function OverlayClip(clip c,clip c2,Int "S", Int "E", Int "X", Int "Y",Float "Opacity",String "Mode") {
/*
Requires RGB32 clips c and c2, c2 with Alpha mask.
Overlay clip c with clip c2 using c2's RGB32 Alpha channel mask, frames S to E, @ clip c overlay coords X and Y.
Start and End Args S & E, are similar but not exactly like trim.
OverlayClip(c,c2, 0,0) # Entire clip
OverlayClip(c,c2, 100,0) # Frame 100 to End of Clip
OverlayClip(c,c2, 0,-1) # Frame 0 Only
OverlayClip(c,c2, 1,1) # Frame 1 Only
OverlayClip(c,c2, 1,-1) # Frame 1 Only
OverlayClip(c,c2, 1) # Frame 1 Only [Not same as Trim()], E defaults to -1 ie single frame.
OverlayClip(c,c2, 1,-3) # Frames 1 to 3 (ie 3 frames)
OverlayClip(c,c2, 100,200) # Frames 100 to 200
OverlayClip(c,c2, 100,-50) # Frames 100 to 149 ie 50 frames
X and Y are OverLay x & y offsets, and can be -ve where is relative to c.Width & c.Height, use eg x = -(c2.Width+16)
If c2.Framecount is shorter than S,E specified range, then final c2 frame will be used for remainder of overlay range,
so if c2 clip is single frame, then that frame will be used for entire overlay range.
Opacity=Overlay::Opacity and Mode=Overlay::Mode.
*/
FMX=c.FrameCount-1
S = Min(Max(Default(S,0),0),FMX) E = Default(E,-1)
X=Default(X,0) Y=Default(Y,0)
Opacity=Float(Default(Opacity,1.0)) Mode=Default(Mode,"Blend")
X = (X<0) ? c.Width + X : X
Y = (Y<0) ? c.Height + Y : Y
E = (E==0) ? FMX : E
E = Min(((E < 0) ? S-E-1 : E),FMX) # S <= E <= FMX : E is +ve END Frame number (may be 0)
Empty = c.BlankClip(Length=0)
CS = (S==0) ? Empty : c.Trim(0,-S)
CM = c.Trim(S,E==0?FMX:E).Overlay(c2, mask=c2.showalpha(),x=X,y=Y,opacity=Opacity,mode=Mode)
CE = (E==FMX) ? Empty : c.Trim(E+1,0)
CS ++ CM ++ CE
}
#Avisource("F:\V\StarWars.avi") # Source YV12
BlankClip(pixel_type="YV12")
#Sym=Avisource("F:\V\XMen2.avi").Trim(5000,0) # Overlay clip
Sym=Colorbars(pixel_type="YV12")
W=(Width/16) * 4
H=(Height/16) * 4
Sym=Sym.BilinearResize(W,H)
#S="(((x-.5)^2 +(y-.5)^2) < .25 ? 255 : 0" # Elliptical Disk (Hard Edge)
S="((x-.5)^2+(y-.5)^2)>.25?0:(((x-.5)^2+(y-.5)^2)<.2?255:(.25-((x-.5)^2+(y-.5)^2))*5100)" # Elliptical Disk (Soft Edge)
# Create Elliptical Disk
ElipDisk = Sym.trim(0,-1).mt_lutspa(mode = "relative", expr = Mt_Polish(S), chroma = "-128" ).ConvertToRGB32.Loop(Sym.framecount,0,0)
# Add Elliptical Disk mask to Alpha Channel
Sym=Sym.ConvertToRGB32.Mask(ElipDisk)
# Start @ frame 100, End at end of Sym Clip, Rel Bottom RHS with 16 pixels GAP
Return OverlayClip(Last,Sym,S=100,E= -Sym.FrameCount,x= -(Sym.Width+16),y= -(Sym.Height+16))
https://i.postimg.cc/BtQC7fmb/z2.jpg (https://postimg.cc/BtQC7fmb)
LouieChuckyMerry
24th April 2019, 21:22
Hello. I'm wanting to upmix 72 2.0 audio files to 5.1 using the "SuperEQ" option in the audio configuration settings, and I'm wondering if it's possible to batch load the files or if I have to load them individually. Ahhh, also, if anyone knows of an improved method of upmixing I'd be happy to read of it. Thanks for any help :) .
imsrk48
25th April 2019, 04:57
How to Use FFmpegSource for Encoding Instead of Windows Default Encoders?
LigH
25th April 2019, 08:09
@imsrk48 - do you possibly confuse encoders with decoders?
MeGUI offers you FFMS2 (or L-SMASH Works, alternatively) per default in its "File Indexer" during the source selection. DirectShow decoding is disabled in recent versions, you would have to enable it manually.
_
@LouieChuckyMerry: No guarantee, but batch audio processing with AviSynth base might be the domain of BeHappy, instead of MeGUI.
vBulletin® v3.8.11, Copyright ©2000-2025, vBulletin Solutions Inc.