Log in

View Full Version : MeGUI - x264/XviD/lavc/Snow encoder with MP4/MKV/AVI output & audio


Pages : 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 [52] 53 54 55 56 57 58 59 60 61 62 63

OneWhoSink
11th July 2010, 08:00
Hi,
I was wondering, does MeGUI use 4 cores CPUs efficiently? If it does, whats the difference from encoding with... 1\2 cores?

Tnx, OWS.

Sharktooth
11th July 2010, 15:00
megui is just a GUI hence it almost uses no resources when encoding.
the correct question would be "does encoder_name_here use 4 CPU cores efficiently? etc..." and that would not be related to megui

Hotpocketdeath
12th July 2010, 03:58
NM. I thought it was a bug, but I found the setting that fixes my problem.

Marc05
20th July 2010, 18:21
I've had this problem for a while now, hopefully someone can help. When I try transcoding aac files (also have had the same problem with ac3 and ogg), I get an error. The log says "Pins cannot connect due to not supporting the same transport.". Am I missing something? (Also sometimes when it does work, the file has no sound) I know it's not the files themselves because it works using Ripbot264.

tebasuna51
21st July 2010, 10:35
I've had this problem for a while now, hopefully someone can help. When I try transcoding aac files (also have had the same problem with ac3 and ogg), I get an error. The log says "Pins cannot connect due to not supporting the same transport.". Am I missing something? (Also sometimes when it does work, the file has no sound) I know it's not the files themselves because it works using Ripbot264.
:logfile:

ronker
21st July 2010, 11:06
I get an error when loading an avs script in MeGUI that MSVCR71.dll is missing. I try to download it from dll-files.com and put it in \Windows\system32 and \Windows\SysWOW64 but not helped. In system32 the error message is still there and in SysWOW64 I get an encoding window but nothing happens. Also tried to register the MSVCR71.dll with regsvr32 but get an error that the version of the dll is not compatible.

http://img833.imageshack.us/img833/9726/megui.th.jpg (http://img833.imageshack.us/i/megui.jpg/)

I Use: MeGUI 0.3.5.0 Installer, Windows 7 x64, AviSynth 2.5.8

Can someone help?

Sharktooth
21st July 2010, 16:18
you need the correct DLL version for you windows version...

Marc05
21st July 2010, 23:23
:logfile:

[Error] Log
-[Information] Versions
--[NoImage] MeGUI Version : 0.3.5.6 x64
--[NoImage] OS : Windows Seven Ultimate Edition x64 (6.1.0.7600)
--[NoImage] Latest .Net Framework installed : 4.0 (4.0.30319)
--[NoImage] Avisynth Version : 2.5.8.5
-[Error] Log for job53 (audio, 1x01 - Awakening_Track2.aac -> 1x01 - Awakening_Track2.mp4)
--[Information] [7/21/2010 6:20:35 PM] Started handling job
--[Information] [7/21/2010 6:20:35 PM] Preprocessing
--[NoImage] Avisynth script
---[NoImage] DirectShowSource("C:\Users\Administrator\Desktop\1x01 - Awakening_Track2.aac")
---[NoImage] EnsureVBRMP3Sync()
---[NoImage] Normalize()
---[NoImage] return last
--[NoImage] Commandline used: -ignorelength -he -br 192000 -if - -of "{0}"
--[Information] [7/21/2010 6:20:35 PM] Encoding started
--[Information] [7/21/2010 6:20:35 PM] Encode thread started
--[Information] [7/21/2010 6:20:35 PM] Avisynth script environment opened
--[Error] An error occurred
---[NoImage] Exception message
----[NoImage] DirectShowSource: Could not open as video or audio.
----[NoImage] Video returned: "DirectShowSource: couldn't open file C:\Users\Administrator\Desktop\1x01 - Awakening_Track2.aac:
----[NoImage] Pins cannot connect due to not supporting the same transport."
----[NoImage] Audio returned: "DirectShowSource: couldn't open file C:\Users\Administrator\Desktop\1x01 - Awakening_Track2.aac:
----[NoImage] Pins cannot connect due to not supporting the same transport."
---[NoImage] Stacktrace
----[NoImage] at MeGUI.AviSynthClip..ctor(String func, String arg, AviSynthColorspace forceColorspace, AviSynthScriptEnvironment env)
----[NoImage] at MeGUI.AviSynthScriptEnvironment.ParseScript(String script)
----[NoImage] at MeGUI.AviSynthAudioEncoder.encode()
---[NoImage] Inner exception: null
--[Information] [7/21/2010 6:20:36 PM] Job completed

Sharktooth
22nd July 2010, 02:27
You need a working AAC source filter

Marc05
22nd July 2010, 04:35
You need a working AAC source filter

Is that referring to that bassaudio.dll (or something similar)? If so, how would I go about using that with MeGUI? I'm fairly new at all this so a little more detail would be appreciated.

tebasuna51
22nd July 2010, 10:12
Sharktooth say a DirectShow AAC source filter.

You can use BassAudio with BeHappy or, if you have Bassaudio.dll, bass.dll and bass_aac.dll in your default AviSynth plugins folder, create an .avs file with:

BassAudioSource("C:\Users\Administrator\Desktop\1x01 - Awakening_Track2.aac")

and open this .avs in Audio Input (MeGUI) instead the aac file.

Marc05
23rd July 2010, 17:17
Sharktooth say a DirectShow AAC source filter.

You can use BassAudio with BeHappy or, if you have Bassaudio.dll, bass.dll and bass_aac.dll in your default AviSynth plugins folder, create an .avs file with:

BassAudioSource("C:\Users\Administrator\Desktop\1x01 - Awakening_Track2.aac")

and open this .avs in Audio Input (MeGUI) instead the aac file.

Now the log just says that there is no function named "BassAudioSource". I'm using MeGUI x64 if it makes any difference.

Sharktooth
23rd July 2010, 17:44
yes, it makes a big difference. you need a 64bit AAC source filter.
Im not sure if it exists, maybe tebasuna knows.
However you can mux your AAC in a container (MP4, MKV,...) and use that file as source so another source filter will be used.

sinz718
16th August 2010, 19:49
Problem that I don't know how to fix being a new comer to this stuff...
http://img704.imageshack.us/img704/8246/75533062.jpg
The encoding setting should have read X264 not Xvid.


Any professional assistance would be greatly appreciated.

Also is there any .avi support for X264 encoding under megui?

stax76
16th August 2010, 20:13
Using raw streams is most of the time a bad idea no matter if it's .aac, .h264, .vc-1 or .pcm, first they contain no meta data, is this AAC HE SBR or not? Second fewest applications and filters can read raw streams, there are exceptions.

Zathor
16th August 2010, 21:28
Problem that I don't know how to fix being a new comer to this stuff...
http://img704.imageshack.us/img704/8246/75533062.jpg


You can ignore this kind of error message. It is already fixed in the development build and it will be removed in the next stable build, too.

sinz718
17th August 2010, 03:01
You can ignore this kind of error message. It is already fixed in the development build and it will be removed in the next stable build, too.

Thanks for the heads up and info, but when I try to ignore it I get an error message within the encoding section trying to start my encode.

Stax:
This doesn't have an audio file attatched to it, it's just video I do them seperately. This isn't a raw It's an Avi I am trying to re-encode to fix It up. Why this message is coming up I have no clue but I can run the script fine in Vdub, no errors what so ever, also I get this similar error within avsp but only when trying to add the Tweakcolor command (I think).

Anywoot,
I managed to figure out how I can use both the avs script and vdub. I will ask on the Vdub forums I guess my question regarding the filter thanks!

Zathor
17th August 2010, 18:41
Thanks for the heads up and info, but when I try to ignore it I get an error message within the encoding section trying to start my encode.
Which kind of error do you get?

sinz718
18th August 2010, 00:21
http://img200.imageshack.us/img200/7897/28413149.jpg
Also I can't save the log to send It off cause It also crashes when I try to do that.

Might be something in my .avs script that is wrong, with one of the filters maybe, I don't know cause VirtualDub doesn't show any errors and does It fine, so I am confused.

Guest
18th August 2010, 00:24
@sinz718

Why are you hiding file names? Please describe the source and where you got it.

sinz718
18th August 2010, 01:01
Why would a source be important with an error? but ok sure it was posted on youtube and I am re-encoding it for myself and to learn avisynth scripting on bad source files.
http://www.youtube.com/watch?v=W6Y6tgVGbYk

GJ I can't learn on this site now?

Guest
18th August 2010, 01:11
Why would a source be important with an error? Forum rule 6, my friend. Thank you for your clarification.

FirstBorg
24th August 2010, 19:57
Hi!

Is there way to "synthesise" the qeue?

Right now I want to encode an entire series for more convienient watching (no more changing discs :)), and what I am doing is simply chosing the VOB in the one click mode, and add to the qeue. When I am finished with one season, I start that season and let it run. But its kind of annoying doing the same thing 24 times. So, is there some document describing how this qeue looks like inside? Because then I could write a script that creates the qeue.
Thx.

Sharktooth
25th August 2010, 03:00
@sinz718: try switching to the development build.

@FirstBorg: sorry. there is no documentation on that matter. also megui does not support batch encoding (yet).

IceFiend
26th August 2010, 18:37
Just upgraded to core 3.5(I'd been ignoring updates for a while). The bitrate calculator now has resolution and works perfectly ^_^
Thank you for improving this. I always want my encodes to end in round MBs(I'm weird :p) and I was using a manual calculator before. I'm sure there are a lot of other improvements but this one eclipses anything else for me.

Sharktooth
27th August 2010, 00:35
check the changelog.

LeXXuz
28th August 2010, 07:08
Any chance to feed the one click encoder with anything else than mpeg2 video?

Zathor
28th August 2010, 11:42
There is always a chance :)

pancserzso
4th September 2010, 22:28
I am using the newest official build (0.3.5 offline) to encode a 1080p Quicktime file, what is in a avs wrapper with QTSource.

Every time I try to do anything in MeGUI in the normal way, like auto-encode, audio before video, closing the preview window, anything, it says an error when starting the encoding.

The only way to encode that Quicktime > avs file is to drag it to video, _do not_ close the preview, and encode the video without doing anything else. When the video is finished, I could quit MeGUI and start it again, to encode the audio.

Do you have any idea that:
- why is this happening?
- is there any newer build than 0.3.5 offline?
- is there any other program, what handles Quicktime source or Quicktime > avs wrapper correctly, and has high quality h264 profiles built in?

I always used MeGUI for it's quality built in profiles, is there any other encoder recommened with newer builds of components, but with the same quality of profiles?

Sharktooth
5th September 2010, 02:43
switch to development server (in options) you should get megui version 0.3.5.8.

pancserzso
5th September 2010, 03:35
switch to development server (in options) you should get megui version 0.3.5.8.

OK, I found it.

BTW, is it normal that for example BD5 and BD9 profiles has the same command line written? If I open the xml-s, they have for example 24 and 48 frame keyframe intervalls, but for the command line in the config dialog, they both say the same.

Sharktooth
5th September 2010, 04:06
yes, coz BD-9 is just a BD structure in a dual layer DVD and BD-5 is BD structure on a normal DVD.
what changes is just the filesize and the keyframes intervals.

pancserzso
5th September 2010, 13:45
yes, coz BD-9 is just a BD structure in a dual layer DVD and BD-5 is BD structure on a normal DVD.
what changes is just the filesize and the keyframes intervals.

No, what I say is a kind of bug, if I understand correctly:
BD9 command line generated at the bottom of the config dialog:
program --crf 20 --open-gop bluray --pic-struct --level 4.1 --bframes 3 --ref 4 --slices 4 --aud --nal-hrd vbr --b-pyramid strict --keyint 24 --min-keyint 2 --vbv-maxrate 14000 --vbv-bufsize 14500 --weightp 0 --colorprim "bt709" --transfer "bt709" --colormatrix "bt709" --output "output" "input"


BD5 command line generated at the bottom of the config dialog:
program --crf 20 --open-gop bluray --pic-struct --level 4.1 --bframes 3 --ref 4 --slices 4 --aud --nal-hrd vbr --b-pyramid strict --keyint 24 --min-keyint 2 --vbv-maxrate 14000 --vbv-bufsize 14500 --weightp 0 --colorprim "bt709" --transfer "bt709" --colormatrix "bt709" --output "output" "input"

Exactly the same. And the command line does not get updated when I manually edit anything in the advanced part of the profile. But for example DXVA profile works as it should, manual updating changes the command line too.

Many of the other Bluray profiles show the same bug too.

nurbs
5th September 2010, 14:15
Updating the BD profiles works fine here. Of course you can't change the stuff that is forced for compatibility unless you remove it from the custom command line box, but that's by design.

pancserzso
5th September 2010, 20:26
Updating the BD profiles works fine here. Of course you can't change the stuff that is forced for compatibility unless you remove it from the custom command line box, but that's by design.

Some of the fields do change, others don't. For example I don't see any effect of changing Maximum and Minimum GOP size in BD9 and BD5. Same for VBR buffer size and VBR Maximum bitrate.

Zathor
5th September 2010, 20:33
As nurbs had explained:

Of course you can't change the stuff that is forced for compatibility unless you remove it from the custom command line box, but that's by design.

If you want to change the mentioned settings you have to delete them first in the custom command line.

pancserzso
5th September 2010, 21:48
As nurbs had explained:

If you want to change the mentioned settings you have to delete them first in the custom command line.

OK, I start to see, so for every field, if it's set in the custom command line, it overwrites the normal field.

But then what's the point of having
<KeyframeInterval>48</KeyframeInterval>
<KeyframeInterval>24</KeyframeInterval>
<MinGOPSize>4</MinGOPSize>
<MinGOPSize>2</MinGOPSize>

In the xml profile, when the custom command line forces something different? Or I shouldn't care about what's in the profile, I should just use it knowing that the custom command line will do everything fine? Maybe the pointless fields should be greyed or something to make it clear how it works.

I was not thinking about that MeGUI actually reads something back from command line, I thought the whole GUI is a one way thing (GUI > CLI)

Zathor
5th September 2010, 23:52
But then what's the point of having [...]in the xml profile, when the custom command line forces something different?
Tell us in which profile the settings do not match and we will correct them.

Maybe the pointless fields should be greyed or something to make it clear how it works.
It is explained in the tooltip of the custom command line. Ok, that's not good to find but still better than nothing. Other solutions are planed but we had no time to implement them yet.

Sharktooth
6th September 2010, 02:26
@pancserzso: im actually reworking the x264 config for a better usability. the point is Dark Shikari is going to implement the --device option in x264 and that will influence the changes im implementing. if i commit the changes now i will have to change the code again when --device will be added to x264... so double work...

pancserzso
6th September 2010, 07:55
Thanks for the responses, now it's clear. It's really not anything serious, I was just curious why was it the way it was. The only point is that without asking it in this forum, I would have never figured out how do things work, but I think all MeGUI users have to ask questions sooner or later here.

pancserzso
6th September 2010, 07:56
tell us in which profile the settings do not match and we will correct them.

BD9 or BD5

Frogger13
7th September 2010, 18:42
Hi Devs,

Just wanted to propose a small request on MeGUI:

Would it be possible to have the AVS script creator remember the name of the output AVS script, or to add an option to force the default name to one we set?

The reason is that I use a lot of scripts to speed up encoding preparation for many small files, and thus changing the generated default AVS script name takes a "lot" ;) of time when done often!

For the small story: I have a "make.bat" script where the minimal parameter to enter is the bitrate for commandline encoding, it then looks for make.avs and encodes... save a lot of typing for many small files :)

:thanks::thanks::thanks:

Zathor
7th September 2010, 19:20
BD9 or BD5

Thanks, it has been corrected in 56:
http://megui.org/auto/x264_presets_v56.zip
I will not push it out because it is only a minor change.

Sharktooth
7th September 2010, 19:25
@zathor: push it. wont be a problem.

pancserzso
8th September 2010, 00:43
Thanks, it has been corrected in 56:
http://megui.org/auto/x264_presets_v56.zip
I will not push it out because it is only a minor change.

OK I see it. As an idea, if you will rework the whole thing in the future, you could just remove all redundant lines from the xml, and just specify the ones not forced by custom. This way all edits have to be updated in two places.

Fadeout
20th September 2010, 06:01
I have a 500Mb clip encoded in Lagarith. Is there a way to import it in MeGUI and recode in H264?

Every time I try to load it Avisynth gives an error: FFVideoSource: video codec not found

The codec is in the system, mediaplayer plays the video and VirtualDub sees it as well. So is there a way to have Avisynth load this video so that I can then re-encode it?

Zathor
20th September 2010, 12:24
Try opening your file directly in the AVS Script Creator.

follz20
23rd September 2010, 09:38
I've been having trouble with MeGUI inexplicably changing the SAR of my encodes. It only seems to happen with certain resolutions, for example:

For a resolution of 1920x796p it changes the SAR to 796:1053
For a resolution of 1920x784p it changes the SAR to 784:1053
For a resolution of 1920x1036p it changes the SAR to 1036:1053
For a resolution of 1920x804p it changes the SAR to 268:351

On the other hand, for the following resolutions, the SAR is 1:1 which is the exact way I want it:

1920x798p = 1:1
1920x800p = 1:1
1920x814p = 1:1
1920x816p = 1:1
1920x818p = 1:1
1920x1038p = 1:1
1920x1040p = 1:1
1920x1080p = 1:1

So it's pretty clear this has nothing to do with mod16 etc. Why is this all of a sudden happening? I used to only use the stable versions of MeGUI but a few months back switched to the development version. Is there any particular reason MeGUI would want to do this? The source doesn't matter, seemingly it all depends on the resolution (ie how much I crop the video).

In the mean time, should I just add the --SAR 1:1 to the CL? Would this fix the problem with the aforementioned resolution where this happens?

Cheers for any help.

Zathor
23rd September 2010, 13:23
I need a little bit more information before I can dig deeper into this problem report.

Did you use the same source file as reference? Did you use crop or resize in the AVS Creator? Is "Clever anamorphic encoding" enabled (which mode?) or disabled"?
EDIT: Please post the avs file.

follz20
23rd September 2010, 13:58
Did you use the same source file as reference? Did you use crop or resize in the AVS Creator? Is "Clever anamorphic encoding" enabled (which mode?) or disabled"?
EDIT: Please post the avs file.

Sorry, I should have been more specific in my post.

No, I don't resize with CAE - I only crop my videos. My avs scripts are very simple, and the following is one in which MeGUI changed the SAR to 796/1053 :

DirectShowSource("H:\Blu-Ray Rips\I_AM_LEGEND\00051.track_4113.mkv", fps=23.976, audio=false, convertfps=true)
#deinterlace
crop( 0, 142, 0, -142)

#resize
#denoise

So resolution for this particular movie is 1920x796 minus the black bars. If, however, if I simply stop cropping at 1920x800, MeGUI leaves the SAR at 1:1. So the source file doesn't matter - only resolution.

The first pass (partial) log looks like this:

--[NoImage] raw [info]: 1920x796p 796:1053 @ 2500000/104271 fps (cfr)
--[NoImage] x264 [info]: using SAR=796/1053

I hope that's all the information you need!

:thanks: