View Full Version : MeGUI: General Questions and Troubleshooting Thread
Zathor
22nd June 2014, 16:27
[...]this just proves to me that 64bit avisynth and 64bit filters are required in this day and age, on a machine with 16GB ram a prgram should not be kicking out due to it running out of memory
Especially the 64 bit filters are the problem here. If you have all your filters available you can try AVS+ 64bit.
Carpo
22nd June 2014, 17:58
the filters that QTGMC requires have no 64bit versions, not that i could find anyway :( that is why i have had to stick with 32bit avisynth
Groucho2004
22nd June 2014, 18:24
Of the googling I have done it points to a program error, the results I have found say the program is doing something it shouldn't with the memory, and I doubt its a hardware issue as I can repeat it on multiple machines, also seems to be a combination of the options used in QTGMC, I changed them around as per advise on another forum and I have had no issues with it since, this just proves to me that 64bit avisynth and 64bit filters are required in this day and age, on a machine with 16GB ram a prgram should not be kicking out due to it running out of memory - --[Information] [21/06/2014 18:25:47] Exception message: Exception of type 'System.OutOfMemoryException' was thrown.
I tested the memory with memtest+ and it passed, and the cpu never goes above 50C, I have a large fan blowing into the case as its pretty hot here
It does seem that you're simply running out of memory. With Avisynth MT and QTGMC, that's rather common.
First you should determine how much memory your script requires, without the memory the encoder needs. Use AVSMeter to check that.
If you're getting close to the 2 GB limit for 32 Bit processes, there are a couple of things you can do (assuming you're on a 64 Bit OS):
- Pipe the script with avs2yuv (or similar) to the 64 Bit version of x264
- Use less threads for SetMTMode
Carpo
22nd June 2014, 18:33
Next time I have to do an encode i will test it with your program first :)
Yes I have a 64 bit OS, be rather silly to have 16GB of ram and a 32bit OS :sly:
Must admit I never put the amount of threads in the script as I thought, from reading the documentation, that it would do it automatically, I guess it was setting the full 8 threads, what would you advise I limit it to? Or should I run a few tests and see?
Groucho2004
22nd June 2014, 18:44
Must admit I never put the amount of threads in the script as I thought, from reading the documentation, that it would do it automatically, I guess it was setting the full 8 threads, what would you advise I limit it to? Or should I run a few tests and see?
Yes, AVS MT sets the number threads automatically to the number of logical cores but each thread uses additional memory. Try 4 threads and compare the memory usage.
Other things to play with:
- QTGMC presets
- SetMemoryMax()
Abdelhachim
22nd June 2014, 18:46
Hi Zathor,
Did you found the time to take a look at my latest post (1st June)?
I really want to use the combination of "One-Click" + "x264" + "AVS Scripts for cleansing" + "Lsmash indexer" + "Disable Intermediate MKV files" for mass encoding... but I still have this issue : Index File is not cleaned after encoding.
Thanks for your help.
Abdel
Carpo
22nd June 2014, 18:50
Yes, AVS MT sets the number threads automatically to the number of logical cores but each thread uses additional memory. Try 4 threads and compare the memory usage.
Other things to play with:
- QTGMC presets
- SetMemoryMax()
I have tried many different SetMemoryMax amounts, 400, 512, 600, 800, none seem to be the sweet spot
As to the QTGMC presets, I think I have found something that will work for now, just have to see when I have a few more encodes to do to see if it is going to be okay
Zathor
22nd June 2014, 22:15
Hi Zathor,
Did you found the time to take a look at my latest post (1st June)?
I really want to use the combination of "One-Click" + "x264" + "AVS Scripts for cleansing" + "Lsmash indexer" + "Disable Intermediate MKV files" for mass encoding... but I still have this issue : Index File is not cleaned after encoding.
Not yet. In my last tests (without your files) I could not reproduce it. Have to try your profiles.
Btw. is this really a show stopper for you?
EDIT: Reproduced with your files! I now need "only" to find the reason.
Abdelhachim
22nd June 2014, 23:49
Thank you...
I really appreciate...
LigH
23rd June 2014, 10:33
Why is unpacking so slow? Extracting x265 took about 10 seconds. I believe C# is not the most convenient language to re-implement efficient algorithms?
Zathor
23rd June 2014, 18:48
The 7zip library is used to extract files. The files are compressed with the "Ultra" profile so unpacking may be slow.
Zathor
23rd June 2014, 21:02
Did you found the time to take a look at my latest post (1st June)?
Changed in 2503
Abdelhachim
23rd June 2014, 22:15
Changed in 2503
Thanks a lot...
Zathor
24th June 2014, 22:26
I'm using the stable update servers and the new version 2500 simply does not work.
I manually went in and had to enable all the modules but it will not encode audio.
As already written please post your log. Otherwise I am not able to fix it. I release a stable bugfix release within the next 1-2 weeks and would like to include this fix as well.
2505 [Audio Encoder] fixed wrong channel count mismatch warning for AVS files. Bug #767
2504 [Adaptive Muxer] fixed first subtitle unintended set to default. Bug #774
2503 [L-SMASH Indexer] the cache file was sometimes not deleted
2502 [Update] fixed freeze when adding new custom update servers. Bug #769
2501 [Update] removed update server megui.xvidvideo.ru for the stable branch as it cannot be synced anymore
[Update] increased update data refresh interval to 10 days for the stable server
j8ee
25th June 2014, 22:58
Trying to (auto)update, but there seems to be some files missing in the stable directory? megui-data_2443.zip and avisynthplus-r1576.7z are the problem files in the log.
Looking manually in the auto/stable sever folders there are either errors downloading manually (megui-data_2443.zip on the .org server), or they are not to be found.
Zathor
25th June 2014, 23:10
I cannot read your attachment yet, but I assume it is related to change 2501
2501 [Update] removed update server megui.xvidvideo.ru for the stable branch as it cannot be synced anymore
[Update] increased update data refresh interval to 10 days for the stable server
j8ee
25th June 2014, 23:25
OK, setting the main server only as a custom update server made it work, everything updates fine then.
(Without those two files mentioned above being available, megui failed to start, saying "MeGUI encountered a fatal error and may not be able to proceed. Reason: Object reference not set to an instance of an object.")
I guess the installation files from sourceforge must be updated since it will not update correctly...
Zathor
26th June 2014, 17:27
I guess the installation files from sourceforge must be updated since it will not update correctly...
http://forum.doom9.org/showpost.php?p=1683461&postcount=4234
VideoFanatic
2nd July 2014, 22:36
I'm using the One-Click option with an Avisynth script I entered in the config.
On the Audio Tab under Encoder I selected "FFmpeg AC-3 scratchpad". Under "Encode" I selected Never as I assume this means it muxes instead of re-encoding the audio. The audio isn't mentioned in my Avisynth script.
To encode I just drag a 1080i HDTV 25fps MKV with 128Kbps AC3 into the input section then I click Go. Everything comes out fine but there's no sound in the audio. If I then demux the output MKV then play the AC3 file, it DOES have sound so why doesn't it have sound when it's in the MKV?
Here's the source (https://www.dropbox.com/s/x24jnh7uri0hgmm/F1%20Test%20Original%2010%20secs.mkv).
Hello i have installed "MeGUI_2507_x86" on my Windows Server 2012 R2 X64, but cannot extract any video if try to create HD Stream Extractor from full bluray get this error:
....
[v02] Muxing video to Matroska...
[v02] Getting "Haali Matroska Muxer" instance failed. <ERROR>
Aborted at file position 1048576. <ERROR>
I get same error if use old version 2418.
If not selected video, audio and subs extracts them without problems.
Please help me
Xebika
20th July 2014, 19:56
Hello i have installed "MeGUI_2507_x86" on my Windows Server 2012 R2 X64, but cannot extract any video if try to create HD Stream Extractor from full bluray get this error:
I get same error if use old version 2418.
If not selected video, audio and subs extracts them without problems.
Please help me
Download the splitter from here and install it: http://haali.su/mkv/MatroskaSplitter.exe
Now it should work.
Download the splitter from here and install it: http://haali.su/mkv/MatroskaSplitter.exe
Now it should work.
Thanks a lot!! :D
leon
20th July 2014, 22:06
Hi
what are the problems of this video and what plugins I should use to fix them.
http://i62.tinypic.com/mts46x.jpg
Xebika
20th July 2014, 22:45
Is that the original frame or the filtered frame??
LigH
21st July 2014, 09:40
If this is the original, it is beyond fixing; get rid of this waste of disk space.
If it is the result of a filtering, then there is certainly an exaggerated use of blurring and median filtering. Knowing your whole script would be useful then.
How to install/enable codec and profile for encoding HEVC X265 on Megui?
Overdrive80
21st July 2014, 20:33
Options-->Settings-->>TAB "External Program Configuration"-->> Enable x265
leon
22nd July 2014, 12:12
If this is the original, it is beyond fixing; get rid of this waste of disk space.
If it is the result of a filtering, then there is certainly an exaggerated use of blurring and median filtering. Knowing your whole script would be useful then.
Hi
No this isn't the original frame.
I've used this script for this video:
MosquitoNR(strength=16,restore=128,radius=2,threads=0)
f3kdb(range=26,sample_mode=2,dither_algo=3,grainY=90,grainC=90,dynamic_grain=true,Y=90,Cb=64,Cr=90,blur_first=true,keep_tv_range=false)
Tweak(hue=0,sat=1.15,bright=2,cont=1.01,coring=false,startHue=0,endHue=360,maxSat=150,minSat=0,interp=16,dither=true)
Removegrain(mode=1,modeU=1,modeV=1)
hqdn3d(2, 1, 3, 1)
EdgeCleaner(strength=40,rep=false,smode=0,hot=false,fix=true)
DeHalo_alpha_mt(rx=2,ry=2,darkstr=1,brightstr=1,highsens=50,lowsens=50,ss=1.5)
aWarpSharp(depth=30,blurlevel =1)
I finally replaced warpsharp with aWarpSharp :)
I used Spline64 for upscaling.
do you want the original frame ?
LigH
22nd July 2014, 12:22
http://cosgan.de/images/smilie/frech/o010.gif (http://www.cosgan.de/smilie.php) Filter overkill.
Someone who might be able to help you may be interested in a brief sample. But not in this thread. This is certainly not the fault of MeGUI. MeGUI usually does not create such a script.
leon
22nd July 2014, 19:25
http://cosgan.de/images/smilie/frech/o010.gif (http://www.cosgan.de/smilie.php) Filter overkill.
Someone who might be able to help you may be interested in a brief sample. But not in this thread. This is certainly not the fault of MeGUI. MeGUI usually does not create such a script.
I didn't say it's MeGUI's fault.
I just wanted to know what is the names of problems of this video and what plugin is good for them.
is there any way to upscale a video x4 or more without these problems?
that frame originally was 352x240.
LigH
22nd July 2014, 21:49
... upscale a video x4 or more ...
that frame originally was 352x240.
:eek:
Quite impossible "without any problems". Lost details stay lost.
Your last hope might be nnedi3_rpow2 (http://avisynth.nl/index.php/Nnedi3/nnedi3_rpow2)(4) or "super resolution (http://www.infognition.com/super_resolution_avisynth/)". But I wouldn't waste any more time on it.
Gone is gone.
Groucho2004
22nd July 2014, 21:55
do you want the original frame ?
Yes, let's have a look.
leon
23rd July 2014, 20:31
:eek:
Quite impossible "without any problems". Lost details stay lost.
Your last hope might be nnedi3_rpow2 (http://avisynth.nl/index.php/Nnedi3/nnedi3_rpow2)(4) or "super resolution (http://www.infognition.com/super_resolution_avisynth/)". But I wouldn't waste any more time on it.
Gone is gone.
Yes I used NNEDI3 (256 neurons) in madVR and the quality was so good but too slow.
the video itself doesn't matter to me I'm new in these works and I just wanna learn something it is just a test.:)
and I appreciate people like you that wanna help others and this great forum. :)
leon
23rd July 2014, 20:59
Yes, let's have a look.
without any filter:
http://i60.tinypic.com/bdtagk.jpg
DoctorM
23rd July 2014, 21:36
I'd personally just use a crop/Spline36Resize followed by limitedsharpenfaster() and be done with it.
It's otherwise pretty clean looking.
But again, this isn't a MeGUI problem.
hello_hello
24th July 2014, 03:42
The main problem with The Walking Dead is the video is often very noisy. I can't remember if that particular scene in that particular episode was particularly noisy, but I'd just be running some noise filtering. When it comes to filtering I'm a believer that less is often more, while more tends to look terrible if you're not very careful.
Oh..... sorry.... I forgot you're upscaling. Something I rarely do myself so I know little about the filtering to use for that....
You might be better off using a noise filter script which includes a little sharpening, and probably de-haloing and edge cleaning too.
The FastDegrain, TemperalDegrain and MCTemporalDenoise scripts come to mind. You should find them easily enough via Google. My "go to" filter for stabilising the picture and removing noise is QTGMC. You can run it in progressive mode for progressive video. I tend not to adjust it's settings all that much. Mostly, I just add QTGMC's denoising if required (it tends to fix very light noise without it's noise filtering enabled), and adjust the denoising level appropriately. Values between 1 and 4 are pretty sane. If you want to try it out, once you've installed it and the required plugins, try something like this in a script instead of everything else. If you use QTGMC's de-noising (or any decent de-noising) it's probably a good idea to add dithering to the very end of the script to prevent banding (something like gradfun), which you can do thanks to the Dither filter.
QTGMC(InputType=1, EzDenoise=2)
gradfun3()
leon
24th July 2014, 20:05
The main problem with The Walking Dead is the video is often very noisy. I can't remember if that particular scene in that particular episode was particularly noisy, but I'd just be running some noise filtering. When it comes to filtering I'm a believer that less is often more, while more tends to look terrible if you're not very careful.
Oh..... sorry.... I forgot you're upscaling. Something I rarely do myself so I know little about the filtering to use for that....
You might be better off using a noise filter script which includes a little sharpening, and probably de-haloing and edge cleaning too.
The FastDegrain, TemperalDegrain and MCTemporalDenoise scripts come to mind. You should find them easily enough via Google. My "go to" filter for stabilising the picture and removing noise is QTGMC. You can run it in progressive mode for progressive video. I tend not to adjust it's settings all that much. Mostly, I just add QTGMC's denoising if required (it tends to fix very light noise without it's noise filtering enabled), and adjust the denoising level appropriately. Values between 1 and 4 are pretty sane. If you want to try it out, once you've installed it and the required plugins, try something like this in a script instead of everything else. If you use QTGMC's de-noising (or any decent de-noising) it's probably a good idea to add dithering to the very end of the script to prevent banding (something like gradfun), which you can do thanks to the Dither filter.
QTGMC(InputType=1, EzDenoise=2)
gradfun3()
Hi thank you so much for your concern.
The problem is that the video is too small and when I use denoising and upscaling I lose most of the detail.
I could preserve a bit of detail by deleting "Removegrain" line.
A noob question :) :is there any way to upscale a frame as vector image?
I'll try your suggestion.
nekrovski
25th July 2014, 16:09
Hello
So ok, I have a video I want to encode/compress to a smaller size. I encode the video from tools-> avs script creator etc etc.
Then I extract the audio. Then I finally mux them.
The problem is, when it is not muxed, Mediainfo does show the bitrate. But after muxing, Mediainfo fails to show the bitrate. Why is this and is there any fix?
Dunno If I should probably ask at Mediainfo forum or if there's a thread for MediaInfo here as well.
[edit] this (http://forum.doom9.org/showpost.php?p=1602172&postcount=10) workaround helped me and after converting the audio to AC-3, MediaInfo does show the bitrate of the video.
nekrovski
25th July 2014, 20:20
Ok in the meantime I've came across a more important problem. It might be due to some recent update, I'm not sure.
Whenever I open any .mkv file with megui avs script creator, the preview of the video is total blank and after closing the preview megui crashes with 2-3 not responding errors:
Faulting application name: MeGUI.exe, version: 1.0.2507.0, time stamp: 0x53aec650
Faulting module name: directshowsource.dll_unloaded, version: 0.0.0.0, time stamp: 0x52c5ac73
Exception code: 0xc0000005
Fault offset: 0x682fa369
Faulting process id: 0x3f4
Faulting application start time: 0x01cfa83d2b7f6a26
Faulting application path: C:\Users\x\Desktop\MeGUI_2507_x86\MeGUI.exe
Faulting module path: directshowsource.dll
Report Id: 73fd572b-1430-11e4-9606-4487fc5e4ce8
Faulting application name: MeGUI.exe, version: 1.0.2507.0, time stamp: 0x53aec650
Faulting module name: directshowsource.dll_unloaded, version: 0.0.0.0, time stamp: 0x52c5ac73
Exception code: 0xc0000005
Fault offset: 0x682fa369
Faulting process id: 0x3f4
Faulting application start time: 0x01cfa83d2b7f6a26
Faulting application path: C:\Users\x\Desktop\MeGUI_2507_x86\MeGUI.exe
Faulting module path: directshowsource.dll
Report Id: 7cb16f43-1430-11e4-9606-4487fc5e4ce8
Faulting application name: MeGUI.exe, version: 1.0.2507.0, time stamp: 0x53aec650
Faulting module name: ntdll.dll, version: 6.1.7601.18247, time stamp: 0x521ea8e7
Exception code: 0xc0000028
Fault offset: 0x000908fd
Faulting process id: 0x3f4
Faulting application start time: 0x01cfa83d2b7f6a26
Faulting application path: C:\Users\x\Desktop\MeGUI_2507_x86\MeGUI.exe
Faulting module path: C:\Windows\SysWOW64\ntdll.dll
Report Id: 855c5f99-1430-11e4-9606-4487fc5e4ce8
When I was clicking save instead of closing the preview, I got some error like
"This is often an indication that other memory is corrupt."
But now that error seems gone and no matter if I close the preview or click save I get the 3 errors listed above.
Now, I'm going through my jobs queue and it kinda seems like I havent done any encoding for .mkv files in recent time.
Actually, I've reinstalled the system to 64 bit 2 months ago (my megui folder was backed up from my 32 bit system thats why I have kept a lot of jobs queue) and it seems since I haven't done any .mkv encoding on this 64 bit OS (but i found some files, i might have done, I'll get back later I'm in a hurry).
Here's my programs installed, maybe something interferes?
Adobe AIR
Adobe AIR
Adobe Community Help
Adobe Community Help
Adobe Flash Player 14 Plugin
Adobe Photoshop CS6
Adobe Premiere Pro CS5.5
Adobe Story
Adobe Story
Avidemux 2.6 - 64bits
Bandicam
Bandisoft MPEG-1 Decoder
Brothers - A Tale of Two Sons
Catalyst Control Center - Branding
Dota 2
Duplicate Cleaner Free 3.2.4
foobar2000 v1.3.2
FormatFactory 3.3.4.0
Fraps (remove only)
Google Chrome
Google Earth
Google Update Helper
HandBrake 0.9.9.1
IrfanView (remove only)
Java 7 Update 65
LAV Filters 0.61.2
Malwarebytes Anti-Malware version 2.0.2.1012
Microsoft Visual C++ 2005 Redistributable
Microsoft Visual C++ 2008 Redistributable - x86 9.0.30729.4148
Microsoft Visual C++ 2008 Redistributable - x86 9.0.30729.6161
Microsoft Visual C++ 2010 x86 Redistributable - 10.0.40219
Microsoft Visual C++ 2012 Redistributable (x64) - 11.0.50727
Microsoft Visual C++ 2012 Redistributable (x86) - 11.0.50727
Microsoft Visual C++ 2012 x86 Additional Runtime - 11.0.50727
Microsoft Visual C++ 2012 x86 Minimum Runtime - 11.0.50727
Microsoft_VC80_ATL_x86
Microsoft_VC80_CRT_x86
Microsoft_VC80_MFC_x86
Microsoft_VC80_MFCLOC_x86
Microsoft_VC90_ATL_x86
Microsoft_VC90_CRT_x86
Microsoft_VC90_MFC_x86
Microsoft_VC90_MFCLOC_x86
MozBackup 1.5.1
Mozilla Firefox 31.0 (x86 en-US)
NFOPad 1.69
PDF Settings CS6
PowerISO
PxMergeModule
Realtek High Definition Audio Driver
Security Update for Microsoft .NET Framework 4.5.1 (KB2898869)
Security Update for Microsoft .NET Framework 4.5.1 (KB2901126)
Security Update for Microsoft .NET Framework 4.5.1 (KB2931368)
Skype™ 6.16
SopCast 3.8.3
Steam
SubMagic V0.71
SumatraPDF
The KMPlayer (remove only)
Tunatic
Ulead GIF Animator 5
VisualSubSync (remove only)
x264vfw - H.264/MPEG-4 AVC codec (remove only)
x264vfw - H.264/MPEG-4 AVC codec for x64 (remove only)
VideoFanatic
26th July 2014, 00:06
Log (https://www.dropbox.com/s/uwlvaw12t2z9ppz/MeGUI%2065%20second%20delay.log). Forgot to add -tff switch so video was 1080p instead of 1080i but even when I do it correctly whatever resolution I encode to I get a delay.
Anything I encode with MeGUI 2507 has an audio delay. I'm converting 1080i 25fps videos to the same resolution and to 720p 50fps with MeGUI. The videos were cut with VideoRedo and from experience I know that my video sources don't have a delay in them. However converting the 1080i videos to the same resolution or to 720p with MeGUI causes a 65 second delay in the audio, MeGUI is causing that.
I know MeGUI is causing that because I could demux and remux my source with DGIndexNV/TSmuxer and there would be no delay.
I ticked the option in MeGUI to use DGDecodeNV.
I chose the option to never re-encode the AC3 128 Kbps audio that's in my sources.
It doesn't matter what container I encode to with MeGUI, I always get a delay.
I can convert a 45 minute episode fine, there's still a delay but it doesn't cause the audio to go out of sync. Yet with a 2 hour 15 minute video or more, I always get a 65 second delay.
I use these advanced settings to make the video Bluray compliant:
--crf 17 --preset veryfast --bluray-compat --vbv-maxrate 15000 --vbv-bufsize 15000 --profile high --level 4.0 --slices 1 --sar 1:1
I chose High Profile in the GUI. I also tried GOP Calculation: FPS based and it uses 500 KeyInt. I tried Fixed and 100 KeyInt so it does actually use 100 KeyInt but it made no difference, I still get a delay.
Not to complicate things further, for testing purposes, I'm using this basic Aviysnth script for converting 1080i files to the same resolution:
setmtmode(5,9)
<input>
setmtmode(2)
Tweak(Hue=0, Sat=1.0, Bright=0, Cont=1.0, Coring=False)
How can I prevent my MeGUI encodings from getting a delay?
nekrovski
26th July 2014, 00:22
Regarding my last post (http://forum.doom9.org/showpost.php?p=1687956&postcount=7600) I fixed the problem with installing matroska splitter. It probably got messed up (read uninstalled) when I was going through a guide for codecs/mpc-hc/madvr etc
hello_hello
26th July 2014, 18:02
holygamer,
From your log file:
---[Information] [25/07/2014 21:36:42] File: E:\1 = Working Videos\WWE 2014\Raw from July\1v5ymxyt.v2w\Raw Mar 24 2014 - [0] English Delay 65571ms.ac3
As far as I know, MeGUI uses the audio delay reported by MediaInfo. In your case it's 65571ms. I don't know why MediaInfo is reporting such an odd delay, but given you're first cutting the videos using VideoRedo, I'd guess that's where something odd is happening. MeGUI writes the reported delay to the extracted audio's file name and it's automatically applied when muxing. Unless someone has a better idea, maybe the best you can do is mux the encoded video/audio manually without applying the delay.
Can you use MeGUI to do the cutting? If you create a script you can use the AVS Cutter under the Tools menu to specify multiple start and end points for encoding, effectively cutting/editing as you encode. The AVS Cutter can save a "cuts file" which can be loaded into the audio section in order to re-encode it to match, or the audio cutter under the Tools menu can cut/rejoin extracted audio without re-encoding it.
You appear to be using the OneClick encoder. I don't use it myself but I assume the above method would be best done "manually". ie use the File/Open menu to open a file, index it and extract the audio, create a script and then add the cuts etc.....
Where did you get the x264 settings you use for Bluray compatibility?
If you open the x264 encoder configuration, load the defaults, then select Bluray as the target playback device from the dropdown list, you get this:
program --level 4.1 --bluray-compat --open-gop --slices 4 --vbv-bufsize 30000 --vbv-maxrate 40000 --output "output" "input"
You can of course change the x264 speed preset. Open Gop isn't compulsory but it's probably a good idea for Bluray (due to the short key interval). MeGUI will automatically make a few adjustments behind the scenes to settings such as -keyint. Those settings are based on the frame rate so they don't appear in the initial x264 commandline, but they'll be specified in the log file.
You shouldn't need --sar 1:1. As long as you're not using anamorphic encoding and you're just resizing, the sar will always be 1:1.
kalehrl
26th July 2014, 18:24
When an audio track is demuxed from a mkv, audio delay is written in the file name and is applied when muxing.
However, when you take an audio track with a delay and transcode it to a different format, the audio delay is not added to the file name of the new file.
This seems to be a small bug.
VideoFanatic
26th July 2014, 18:30
Thanks. I never even thought to look in MediaInfo for a delay. You're correct there's a delay mentioned there. There's no delay mentioned in MediaInfo on a VideoRedo edited file. It's only when I remux the video and convert the audio from AAC to AC3 with FFMPEG that the muxed file gets a delay. Muxing from TS to TS gets a -5ms delay. Muxing from MKV to MKV gets a 1 minute 5 second delay!
I didn't get a delay in 45 minute files because I didn't use FFMPEG on those files.
Here's my FFMPEG script:
"X:\Portable Installations\ffmpeg-2014 May 14-git-72dcd48-win64-static\bin\ffmpeg.exe" -i %1 -c copy -absf aac_adtstoasc -vn gain.m4a
"X:\Portable Installations\AAC Gain 1.9\aacgain" -r -k -m 0 gain.m4a
"X:\Portable Installations\ffmpeg-2014 May 14-git-72dcd48-win64-static\bin\ffmpeg.exe" -i gain.m4a -acodec copy "%~d1%~p1%~n1.aac"
"X:\Portable Installations\ffmpeg-2014 May 14-git-72dcd48-win64-static\bin\ffmpeg.exe" -i %1 -i gain.m4a -map 0:v -map 1 -c:v copy -c:a ac3 -ab 2 -ab 128k "%~d1%~p1%~n1.AC3.mkv"
del gain.m4a
"X:\Daves Folder\Sounds\VideoRedo Completed Sound Short.WAV"
pause
Basically I use the Elgato Game Capture HD to capture Satellite TV. Annoyingly it uses AAC instead of AC3 which isn't Bluray compliant. So I put the above batch file in the "Send To" directory in Windows, I right-click a video, select Send TO then select the batch file and it does the following: Muxes MKV to MKV and re-encodes AAC to AC3. It also demuxes the AAC in the MKV into an AAC file and normalizes both the AAC and AC3!
Is there a script I can use to prevent FFMPEG adding a delay to the muxed file it makes? Or is there a way to tell MeGUI to ignore the audio delay?
With regards to my Bluray switches, I just did what was required to make a compliant disc as mentioned on this thread and the Doom9 guide: http://forum.videohelp.com/threads/365953-Making-a-Compliant-Bluray-Disc?p=2335130
hello_hello
27th July 2014, 02:15
When an audio track is demuxed from a mkv, audio delay is written in the file name and is applied when muxing.
However, when you take an audio track with a delay and transcode it to a different format, the audio delay is not added to the file name of the new file.
This seems to be a small bug.
I ran a test encode and it seems MeGUI compensates for any audio delay when encoding. I'm not sure when it started doing that (maybe it always has), or even if it's a good idea (it probably is most of the time) but when I added an audio file named "test - [0] English Delay 18ms" to MeGUI's audio section, it automatically named the output "test - [0] English Delay 0ms".
I checked the output file and it was indeed 18ms longer than the original. A look through the log file revealed MeGUI added the following to the Avisynth script:
DelayAudio(18.0/1000.0)
I rarely use MeGUI for the audio encoding myself so I wasn't aware it does that. It's handy to know though.
hello_hello
27th July 2014, 02:49
Is there a script I can use to prevent FFMPEG adding a delay to the muxed file it makes? Or is there a way to tell MeGUI to ignore the audio delay?
I don't use ffmpeg so I can't help there. Is there another thread where you could ask that question (ie an ffmpeg thread)? It seems like it's either an ffmpeg bug or for some reason MediaInfo is getting it wrong.
I don't think there's any way to tell MeGUI to ignore the delay. Doing things the "manual" way you could simply change the delay written to the audio file's name after it's extracted. Or do the muxing manually. MKVMergeGUI (or MeGUI's muxers) will automatically apply the audio delay written to the file name, but you can manually change it when muxing.
Using the Oneclick encoder, I'm not sure.
With regards to my Bluray switches, I just did what was required to make a compliant disc as mentioned on this thread and the Doom9 guide: http://forum.videohelp.com/threads/365953-Making-a-Compliant-Bluray-Disc?p=2335130
Sorry, I'd forgotten you could use --slices 1 if you use lower vbv values etc, although I'm not sure if --slices 4 with the higher VBV values wouldn't be better.
How do you normally set --keyint? You may already be doing it this way (I'm not sure from your earlier post) but if you select "fps based" in MeGUI's encoder configuration, maximum GOP 50 and minimum GOP 25, you should end up with the correct --keyint setting based on the frame rate (2 second GOP, matching the other Bluray compatible settings you use).
ie if the frame rate is 24fps,
50/25*24 = keyint 48
Sharc
27th July 2014, 09:08
holygamer,
.... Where did you get the x264 settings you use for Bluray compatibility?.....
Note that his VBV settings are perfectly right if he wants to burn to SL disks (BD5, BD9). Otherwise, a reference for blu-ray compliant settings can be found here (https://sites.google.com/site/x264bluray/).
hello_hello
27th July 2014, 09:30
Ah yes..... it's coming back to me. I don't encode for Bluray compliance myself. I forgot the lower VBV settings are for burning to DVD discs.
leon
29th July 2014, 20:38
Hi
how can I fix this problem:
http://i60.tinypic.com/n3kbde.jpg
Avisynth script:
LoadPlugin("...")
FFAudioSource("...")
# detected channels: 2 channels
# detected channel positions: 1/0/0
Mediainfo:
Audio
ID : 2
Format : AAC
Format/Info : Advanced Audio Codec
Format profile : LC
Codec ID : 40
Duration : 1h 1mn
Bit rate mode : Constant
Bit rate : 64.0 Kbps
Channel(s) : 2 channels
Channel(s)_Original : 1 channel
Channel positions : Front: C
Sampling rate : 44.1 KHz
Compression mode : Lossy
Stream size : 28.4 MiB (10%)
tebasuna51
30th July 2014, 09:58
@leon
I can't reproduce your problem:
--[Information] [30/07/2014 10:42:44] Trying to open the file with Import()
--[Information] [30/07/2014 10:42:47] Successfully opened the file with Import()
--[Information] [30/07/2014 10:42:54] ignoring downmix as there is only 2 channel
--[Information] [30/07/2014 10:42:54] Avisynth script
---[NoImage] Import("D:\test.avs")
---[NoImage] # detected channels: 2 channels
---[NoImage] # detected channel positions:
---[NoImage] SSRC(96000)
---[NoImage] Normalize()
...
The avs:
LoadPlugin("D:\Programa\megui\tools\ffms\ffms2.dll")
FFAudioSource("D:\test.mp4")
Mediainfo:
Audio
ID : 2
Format : AAC
Format/Info : Advanced Audio Codec
Format profile : HE-AACv2 / HE-AAC / LC
Codec ID : 40
Duration : 20s 153ms
Bit rate mode : Variable
Bit rate : 64.0 Kbps
Maximum bit rate : 68.4 Kbps
Channel(s) : 2 channels / 1 channel / 1 channel
Channel positions : Front: L R / Front: C / Front: C
Sampling rate : 44.1 KHz / 44.1 KHz / 22.05 KHz
Maybe your audio have some problem to be recognized properly like SBR-PS (high frequencies in SBR part, second channel in PS part).
Please put a sample.
BTW I can't understand your upsample to 96 KHz (SSRC)
vBulletin® v3.8.11, Copyright ©2000-2025, vBulletin Solutions Inc.