View Full Version : MeGUI - x264/XviD/lavc/Snow encoder with MP4/MKV/AVI output & audio
MOS-Marauder
9th January 2013, 15:35
Hi Folks.
Since i guess ive posted this in the Wrong Thread before now ill do it here again..
Well from Time to Time i got problems with MeGui encoding to XVID 2 Pass.
Its performing Pass1 perfectly with approx 450 FPS encode speed and then it crashes starting Pass2. (Log below)
That can this be ? Its most time only on Xvid with 640x272 Resolution.
Edit:
I tried it again with another DVD and got the Same problem.. Pass1 perfect, pass2 crash. All encodes to 640x272. If i have an encode 640x352..everything runs perfect.
I dont know what else to test now...
Mara
-[NoImage] LoadPlugin("D:\Programme\megui-Dev-031-1061\tools\dgindexnv\DGDecodeNV.dll")
---[NoImage] DGSource("O:\Encode\US-Encode\NOW_IS_GOOD\nowisgood.dgi",fieldop=1, resize_w=640, resize_h=272)
---[NoImage] #deinterlace
---[NoImage] #crop
---[NoImage] #resize
---[NoImage] #denoise
--[Information] [04.01.2013 21:45:19] Job commandline: "D:\Programme\megui-Dev-031-1061\tools\xvid_encraw\xvid_encraw.exe" -i "O:\Encode\US-Encode\NOW_IS_GOOD\nowisgood.avs" -pass1 "O:\Encode\US-Encode\NOW_IS_GOOD\nowisgood.stats" -bitrate 803 -kboost 100 -chigh 30 -clow 15 -turbo -max_key_interval 19 -nopacked -vhqmode 4 -imin 1 -pmin 1 -max_bframes 1 -bvhq -bquant_ratio 162 -bquant_offset 0 -bmin 1 -par 1 -threads 8
--[Information] [04.01.2013 21:45:19] Encoding started
--[Information] [04.01.2013 21:50:41] Standard output stream
---[NoImage] xvid_encraw - raw mpeg4 bitstream encoder written by Christoph Lampert 2002-2003
---[NoImage] Tot: enctime(ms) =318045.00, length(bytes) = 954051050
---[NoImage] Avg: enctime(ms) = 2.15, fps = 465.66, length(bytes) = 6441
---[NoImage] I frames: 8289 frames, size = 23064/ 191178992, quants = 2 / 2.00 / 2
---[NoImage] P frames: 70674 frames, size = 8680/ 613474682, quants = 2 / 2.00 / 2
---[NoImage] B frames: 69137 frames, size = 2160/ 149397369, quants = 3 / 3.00 / 3
---[NoImage] N frames: 1 frames, size = 7/ 7
--[Information] [04.01.2013 21:50:41] Standard error stream
---[NoImage] Trying to retrieve width and height from input header
---[NoImage] xvid [info]: Avisynth detected
---[NoImage] xvid [info]: Input colorspace is YV12
---[NoImage] xvid [info]: Input is 640 x 272, 23.976fps (24000/1001), starting from frame 0
---[NoImage] xvid [info]: Number of frames to encode: 148101, Bitrate = 803kbps
---[NoImage] xvid [info]: xvidcore build version: xvid-1.2.2
---[NoImage] xvid [info]: Bitstream version: 1.2.2
---[NoImage] xvid [info]: Detected CPU flags: ASM MMX MMXEXT SSE SSE2 TSC
---[NoImage] xvid [info]: Detected cpus = 8, threads requested = 7, threads in use = 7
---[NoImage] xvid [info]: Threaded input reading active
--[Information] [04.01.2013 21:50:41] Postprocessing
---[Information] Deleting intermediate files
--[Information] [04.01.2013 21:50:41] Job completed
-[Error] Log for job3 (video, nowisgood.avs -> nowisgood.avi)
--[Information] [04.01.2013 21:50:41] Started handling job
--[Information] [04.01.2013 21:50:41] Preprocessing
--[Information] [04.01.2013 21:50:41] Avisynth input script
---[NoImage] LoadPlugin("D:\Programme\megui-Dev-031-1061\tools\dgindexnv\DGDecodeNV.dll")
---[NoImage] DGSource("O:\Encode\US-Encode\NOW_IS_GOOD\nowisgood.dgi",fieldop=1, resize_w=640, resize_h=272)
---[NoImage] #deinterlace
---[NoImage] #crop
---[NoImage] #resize
---[NoImage] #denoise
--[Information] [04.01.2013 21:50:43] Job commandline: "D:\Programme\megui-Dev-031-1061\tools\xvid_encraw\xvid_encraw.exe" -i "O:\Encode\US-Encode\NOW_IS_GOOD\nowisgood.avs" -pass2 "O:\Encode\US-Encode\NOW_IS_GOOD\nowisgood.stats" -bitrate 803 -kboost 100 -chigh 30 -clow 15 -turbo -max_key_interval 19 -nopacked -vhqmode 4 -imin 1 -pmin 1 -max_bframes 1 -bvhq -bquant_ratio 162 -bquant_offset 0 -bmin 1 -par 1 -threads 8 -avi "O:\Encode\US-Encode\NOW_IS_GOOD\nowisgood.avi"
--[Information] [04.01.2013 21:50:43] Encoding started
--[Error] [04.01.2013 21:50:48] Process exits with error: 0xC0000409 STATUS_STACK_BUFFER_OVERRUN (-1073740791)
--[Information] [04.01.2013 21:50:48] Standard output stream: xvid_encraw - raw mpeg4 bitstream encoder written by Christoph Lampert 2002-2003
--[Information] [04.01.2013 21:50:48] Standard error stream
--[Information] [04.01.2013 21:50:48] Job completed
docholliday
12th January 2013, 10:36
I have a problem with MeGUI. when it finished Encoded Audio it dosent Encode Video suddenly error and stop. Does anybody knows?
LigH
12th January 2013, 12:17
:( Why can't people get used to providing helpful details?
:logfile: MeGUI creates a log with the verbose error message and directions to the reason.
Furthermore, a MediaInfo analysis of the source file can't hurt. Never.
Grossmeister
12th January 2013, 20:42
Hi.
I have 2 systems, one is laptop (Core i5) and another is desktop with AMD A10-5800K. On desktop, when I encode DTS to AC-3 job step called "Preprocessing" takes huge amount of time (several minutes), on laptop it finishes in a few seconds. Same delay I have when demuxing mkv. Is this something related with MeGUI settings.
Is there a way to reset them? Or where should I dig?
Zathor
12th January 2013, 20:46
Likely you have normalize enabled which will take a few seconds/minutes - but please post your log file.
Grossmeister
13th January 2013, 01:12
Thanks. About audio encoding, delay was result of normalizing option enabled.
About mkv demux: if I select to extract video stream as .mkv (default option) extractor just freezes ("Analyzing ..."), if I set .h264 - process goes normally. Actually I would better set .h264 for video stream as default option if it is possible.
Anyway, here is a log for the first case:
-[Information] Versions
--[Information] [13.01.2013 1:49:31] MeGUI: 2237
--[Information] [13.01.2013 1:49:31] Operating System: Windows 7 Enterprise Edition x64 SP1 (6.1.65536.7601)
--[Information] [13.01.2013 1:49:31] .Net Framework: 4.0 (4.0.30319)
--[Information] [13.01.2013 1:49:31] AviSynth: 2.5.8.5 (21.12.2008 21:46:54)
--[Information] [13.01.2013 1:49:31] AvisynthWrapper: 02.01.2009 20:34:04
--[Information] [13.01.2013 1:49:31] Haali Matroska Splitter: 24.11.2005 21:24:30
--[Warning] [13.01.2013 1:49:31] Haali DSS2: not installed
--[Information] [13.01.2013 1:49:31] ICSharpCode.SharpZipLib: 0.85.5.452 (07.08.2008 20:31:12)
--[Information] [13.01.2013 1:49:31] LinqBridge: 1.0.0.0 (28.05.2009 1:24:34)
--[Information] [13.01.2013 1:49:31] MediaInfo: 0.7.61.0 (21.10.2012 16:29:05)
--[Information] [13.01.2013 1:49:31] MediaInfoWrapper: 0.7.53.0 (23.08.2012 14:33:43)
--[Information] [13.01.2013 1:49:31] MessageBoxExLib: 1.0.2218.28317 (19.12.2008 20:53:04)
--[Information] [13.01.2013 1:49:31] SevenZipSharp: 0.64.3890.29348 (02.01.2011 10:59:32)
--[Information] [13.01.2013 1:49:31] 7z: 9.20 (18.11.2010 16:27:34)
-[Information] Update detection
--[Information] [13.01.2013 1:49:31] Connecting to server: http://megui.org/auto/stable/
--[Information] [13.01.2013 1:49:32] All files are up to date
-[Information] HD Streams Extractor
--[Information] [13.01.2013 1:50:04] Input: E:\222\video.mkv
--[Information] [13.01.2013 1:50:04] Arguments: "E:\222\video.mkv"
--[Warning] Unknown line: "v01 The video bitstream is encoded in a non-standard framerate."
--[Information] [13.01.2013 1:50:05] Feature Retrieval Completed
-[Information] Log for job9 (ext, video.mkv -> _txxx)
--[Information] [13.01.2013 1:50:26] Started handling job
--[Information] [13.01.2013 1:50:26] Preprocessing
--[Information] [13.01.2013 1:50:26] Job commandline: "D:\app\MeGUI\tools\eac3to\eac3to.exe" "E:\222\video.mkv" 1:"L:\_t\T1_Video - .mkv" 2:"L:\_t\T2_Audio - English.dts" -core 3:"L:\_t\T3_Subtitle - English.srt" -progressnumbers
--[Information] [13.01.2013 1:50:26] Extracting started
-[Information] [13.01.2013 1:50:51] Delete aborted ouptut set: True
-[Information] [13.01.2013 1:50:51] File to delete: L:\_txxx
-[Information] [13.01.2013 1:50:51] File deleted
--[Information] Deleting aborted output
--[Information] [13.01.2013 1:50:51] Process exits with error: 0xFFFFFFFF (-1)
-[NoImage] MKV, 1 video track, 1 audio track, 3 subtitle tracks, 1:44:44, 24p /1.001
-[NoImage] 1: h264/AVC, 1920x816 23.976p (40:17)
-[NoImage] 2: DTS, English, 5.1 channels, 24 bits, 1510kbps, 48kHz
-[NoImage] "DTS 5.1"
-[NoImage] 3: Subtitle (SRT), English
-[NoImage] 4: Subtitle (SRT), Dutch
-[NoImage] 5: Subtitle (SRT), Portuguese
-[NoImage] v01 The video bitstream is encoded in a non-standard framerate.
-[NoImage] v01 Extracting video track number 1...
-[NoImage] a02 Extracting audio track number 2...
-[NoImage] v01 Muxing video to Matroska...
-[NoImage] a02 Creating file "L:\_t\T2_Audio - English.dts"...
--[Information] [13.01.2013 1:50:51] Standard output stream
--[Information] [13.01.2013 1:50:51] Standard error stream
--[Information] [13.01.2013 1:50:51] Job completed
--[Information] [13.01.2013 1:50:51] Current job was aborted
OK, it's fixed. Just reinstalled Matroska.
wolfbane5
18th January 2013, 00:42
Hi,
I'm encountering a minor problem, hopefully this is the right place to post it.
I've encoded a couple bluray movies recently using Megui (2-pass x264 muxed to mkv), but when I play them afterwards using VLC I'm finding that it has somewhat of a seek time when I skip through the movie; in particular if I were to skip from 5 mins in to say 30 mins, the elapsed time counter on the bottom left side turns blue while it's seeking and takes about 5 seconds while it's navigating to the time position.
I've encoded tons of bluray video over the last couple years (when I was on Win7) and none of them have this seek issue - when I click on a timestamp, it instantly jumps there and continues. I switched to Win8 recently, forgot to backup my x264 profiles :o, so I had to remake them all again, so I'm assuming I've just forgotten one of the settings that I used to use. My guess is that it has something to do with video buffering?
Any help is appreciated, thanks. :cool:
Kurtnoise
18th January 2013, 09:31
Hi,
Did you try with another player ? Did it exhibit the same behaviour ?
Did you still have your logfiles ? If yes, post them here...maybe we can help you with this.
tebasuna51
18th January 2013, 11:42
Maybe the problem is the new mkvmerge 5.9.0 and this:
https://trac.bunkus.org/wiki/FAQ%3APlaybackDoesNotWorkVLCCannotSeekMkvmerge590
Read also:
https://trac.bunkus.org/wiki/FAQ%3AImprovingPlaybackCompatibilityWithPlayers
luke83
18th January 2013, 17:42
I'm using the r683 version of ffms instead of r725 ICL 4.
If i use it, megui makes a mistake on the indexing of the pre-rendering job file
wolfbane5
19th January 2013, 03:15
Maybe the problem is the new mkvmerge 5.9.0 and this:
https://trac.bunkus.org/wiki/FAQ%3APlaybackDoesNotWorkVLCCannotSeekMkvmerge590
Read also:
https://trac.bunkus.org/wiki/FAQ%3AImprovingPlaybackCompatibilityWithPlayers
Yep, it was exactly that! I guess VLC has an issue with the new Matroska specs. I just checked off 'Dummy Elements' in VLC and it all works great now. Thanks for your help! :cool:
hubblec4
22nd January 2013, 02:04
i think there is a small bug in the avs creator. (MeGUI2272 x64)
i use the AutoCrop button and the value of the right side is 2 (left:0 top:132 bottom: 134).
If i select the resize filter mod16 i cant set the display resolution to 1920x???. 1880x800 is the maximum value i can set.
in a previous version it was possible to do this.
Zathor
22nd January 2013, 22:55
Upsizing is now disabled by default. You can enable it in the AviSynth profile settings.
docholliday
22nd January 2013, 23:46
When I use mt2 format from Full BD my MeGUI stop working ! How can i do that ?
Zathor
23rd January 2013, 07:58
Post your log file and describe what you are doing. Likely you are using the m2ts directly with DiretShowSource - use instead the HD Streams Extractor, convert the m2ts to mkv and use the file indexer on the mkv.
docholliday
23rd January 2013, 09:08
Post your log file and describe what you are doing. Likely you are using the m2ts directly with DiretShowSource - use instead the HD Streams Extractor, convert the m2ts to mkv and use the file indexer on the mkv.
Yes i'm use DirectShoSource and use Directly Stream Folder ,You said I must convert m2ts file to Mkv ?
Kurtnoise
23rd January 2013, 10:03
yes...
Betsy25
23rd January 2013, 10:04
FYI - Mkvtoolnix 6.0.0 is out, which has Header Removal Compression switched off by default.
tebasuna51
23rd January 2013, 12:27
FYI - Mkvtoolnix 6.0.0 is out, which has Header Removal Compression switched off by default.
Yes, good news!
But maybe we need now:
--engage no_cue_relative_position --engage no_cue_duration
to preserve compatibility with some players.
hubblec4
24th January 2013, 10:31
Upsizing is now disabled by default. You can enable it in the AviSynth profile settings.
mmh, its not an upscaling in my case.
after cropping i loose 2Pixel from the rigth side. so could be the display dimension 1918x???
and where i can set the upscaling in AVISynth configuration?
LigH
24th January 2013, 10:43
1918 is no integer multiple of 16. So you would have to switch from "MOD 16" to "MOD 2" to allow this width without resizing.
Some border values are just not worth the cropping; you don't have to trust automatically gathered values blindly, you (as human) are able to decide better.
docholliday
27th January 2013, 08:07
How can i add DTS Audio ? I can not see DTS Audio in the category
LigH
27th January 2013, 08:31
The main window is for sources to be decoded, processed, and encoded. There is probably no dts decoder for AviSynth available yet, and certainly no free dts encoder after processing; you may convert dts to AC3 beforehand with eac3to.
Furthermore, it is possible to multiplex the unprocessed dts into MKV after the video conversion finished. But then you should not cut the video, or it would be async.
tebasuna51
27th January 2013, 11:37
There is probably no dts decoder for AviSynth available yet,...
Don't exist for DTS-HD but yes for standard DTS.
docholliday
27th January 2013, 18:37
Don't exist for DTS-HD but yes for standard DTS.
I want Encode a movie and dont Encode Audio e.g: DTS Audio after Encode DTS Audio dont change. how can i do that ?
Zathor
27th January 2013, 18:42
Not sure if I get you, but use OneClick and select Encode:Never for the DTS audio track and it will be copied (not possible for all input /output containers)
LigH
27th January 2013, 19:52
If you do something more elaborate with the video, just run the video converting job, and when finished, use the "MKV Muxer" from the "Muxer" submenu in the "Tools" menu to multiplex the converted video with the original dts audio.
I doubt any of the other muxers would be suitable to multiplex dts into its container.
unknownsoldierX
8th February 2013, 10:36
Haven't used the program for a few months. Went to convert an MP4 today and noticed something weird. I used the File Indexer like usual, and MeGUI created the .ffindex file and the track_1_.avs file. The AviSynth creator window popped up and the video input was set to the .mp4 file. What is the ffindex file for now that MeGUI no longer loads it?
LigH
8th February 2013, 10:57
Usually, if you want FFMS2 to load yourmovie.mp4, it will detect that yourmovie.mp4.ffindex already exists, and use it.
It is not similar to DGMPGDec where the *.d2v index file must be opened instead of the MPEG2 video source; FFMS2 gets the name of the source file and derives the index file name from it (except for a custom index file name, this would have to be added as additional parameter then).
Zathor
10th February 2013, 13:59
I doubt any of the other muxers would be suitable to multiplex dts into its container.
Beside the MKV container M2TS can be used to store DTS(-HD) files in MeGUI.
And before I forget it once again - thank you very much for your very good support for various questions/tools (not only MeGUI of course) in several forums. Much appreciated!
docholliday
23rd February 2013, 01:41
I have a question.when i use MeGUI it does not use 100% of CPU only 40% ,what should i do ?
LigH
23rd February 2013, 09:22
There are so many different reasons, and so many possible answers ... many already given during the last months and years.
MeGUI is not involved in the conversion anyway. It is only a user interface to build the conversion script and execute the encoder.
If the encoder (possibly x264) is unable to use the majority of the CPU time, it has to wait for something.
May be the elaborate filtering in the script (could be improved by using MT manually). A bad relation between script and encoder CPU intensity is one of the most probable reasons.
May also be the hardware (slow reading from harddisk, slow copying in memory, slow transfer from the GPU if using DGDecNV).
Poutnik
25th February 2013, 19:35
There are so many different reasons, and so many possible answers ... many already given during the last months and years.
If the encoder (possibly x264) is unable to use the majority of the CPU time, it has to wait for something.
May be the elaborate filtering in the script (could be improved by using MT manually). A bad relation between script and encoder CPU intensity is one of the most probable reasons.
It can be also closely related to script.
I use Core2duo E4700, SetMTmode(3,0)/Source/SetMTmode(2) and Slower X264 preset.
I get near perfect CPU utilization for MCTD (very low/low, gpu=false, ncpu=1), but 20-25% CPU idling for QMCTG ( various presets ).
I have not yet experimented enough with threads and memorymax to optimize it, just realized SetMTmode(3,3) without increasing Setmemorymax(768) did not seem to help.
Poutnik
25th February 2013, 19:46
.... A bad relation between script and encoder CPU intensity is one of the most probable reasons.
Interesting question - what is good relation range ?
For compressing of my "record/view/delete" DVB-T queue ( If my disk free size does not like the queue size )
I often use fast scripts and Normal-Fast(-Faster) X264 preset.
I get typically 1/5-1/4 of CPU for scripts and 3/4-4/5 of CPU for X264.
For heavy archive processing by MCTD ( a/o recently also QMCTG ) I usually use Slow-Slower X264 preset.
I get typically 3/5-4/5 of CPU for scripts, 1/5-2/5 of CPU for X264.
docholliday
6th March 2013, 06:55
MeGUI pass1 does not use Full cpu only 40%, but (pass2) use 100% of cpu. What should i do ? I want to use 100% of cpu (pass1)
LigH
6th March 2013, 08:32
You could use the parameter --slow-firstpass to waste more time and electricity.
Or you could learn instead that less than 100% CPU consumption in the first pass is not at all a reason to worry. May be better for your blood pressure. :)
magsoud
14th March 2013, 13:48
How to contrast/brightness Plugin for Megui?
LigH
14th March 2013, 13:52
Manually: Add an instance of Tweak() with matching parameters to the generated script.
magsoud
14th March 2013, 14:54
I'm using this method:
Levels(16,1,240,0,255)
LigH
14th March 2013, 15:04
This appears to be an inexact approximation of ColorYUV(levels="TV->PC"); if you do so, you may have to add the "coring" parameter to many other filters.
If you feel like the luminance and chrominance range is wrong when you play movies, your graphic driver might be set up to the wrong range. Fixing this should be prefered over recoding bloated video content.
magsoud
14th March 2013, 15:16
Manually: Add an instance of Tweak() with matching parameters to the generated script.
Please Explain more...
LigH
14th March 2013, 15:29
While using the "AVS Script Creator" to import your video source, switch to the tab "Script", and type in there, where it is useful, a line with the Tweak (http://avisynth.org/mediawiki/Tweak) or Levels (http://avisynth.org/mediawiki/Levels) or ColorYUV (http://avisynth.org/mediawiki/ColorYUV) filter, whatever may suit your needs...
Or do you expect Zathor to add sliders to the preview window?
magsoud
14th March 2013, 15:46
@LigH:thanks:
Or do you expect Zathor to add sliders to the preview window?
I did not understand this section.
LigH
14th March 2013, 16:01
[–·····«¦¦»·····+] Brightness
[–·····«¦¦»·····+] Contrast
^ Sliders
But I doubt MeGUI needs that. Usually, the video is fine; if it looks wrong, your display may need a calibration, not the movie.
If the video is really wrong, then you may need more than sliders, like a colorimeter, a phase display, tools to measure the color shift before trying to fix it...
magsoud
14th March 2013, 16:50
[–·····«¦¦»·····+] Brightness
[–·····«¦¦»·····+] Contrast
^ Sliders
I'm Sorry
I could not get it to run!
I'm not found Sliders!!!
LigH
14th March 2013, 17:02
Because they are not implemented.
The question was:
Would you want any?
Do you expect Zathor to make them?
I would not be surprised if he did not want to make any.
magsoud
14th March 2013, 17:15
Because they are not implemented.
The question was:
Would you want any?
Do you expect Zathor to make them?
Yes
LigH:thanks:
AGKnotUser
7th April 2013, 16:57
Even though I have selected a chapter file in the Manual MKV Muxer window there are no chapters in the output MKV file. In fact, I see "--no chapters" in the command line in the logs. Am I doing something wrong?
simcut
7th April 2013, 17:10
am using the development update server and megui tells me to update from 2338 to 2341 but when I try restarting MeGUI it comes up with:-
"Couldn't run updater"
any ideas? is it just me?
Cheers.
Zathor
7th April 2013, 17:46
I do not have this problem, sorry.
vBulletin® v3.8.11, Copyright ©2000-2026, vBulletin Solutions Inc.