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
m0rc1
20th August 2005, 10:50
that stupid calculator is going to be the end of me.. never again.
oh, well, I'm glad it's in the pack.
Writing that was torture and it's not even over. It's no overflow though, 32 bits allow for up to 4 GB in size.
I haven't checked but still might be an overflow (you know: if you firts multipy then divide, the multiplication can overflow the 31 bits for a positive integer...).
m0rc1
Doom9
20th August 2005, 11:42
Pause feature while encoding using x264 works for me even though it takes some time to pause. However, MeGUI still shows the job is as "processing" in the Queqe tab after paused. Would it be better if MeGUI shows the status as "paused" here rather than "processing" after the pause?
You forgot something crucial.. x264 encoding using x264.exetakes about 50 frames until it stops.. mencoder stops immediately. I'm suspending the thread the same way, I can only presume that x264 continues to work until the stdout and stderr buffers are full, and only then abort. It doesn't even take so long on my dual core X2 (even with all the options I have more than 16fps so the 50 or so frames it takes will be encoded rather quickly). Do you have a play icon for me with the right dimensions? I don't have any design tools, I drew the pause icon in pain and it was kinda annoying to get it to have the proper dimensions and be properly placed in the icon.
Oh and the paused thing.. when designing jobs there was no such state.. I would have to add that from the ground up.
I haven't checked but still might be an overflowthere's not only one.. there are tons of things you can do to really screw things up.. e.g. set a target size and then design an audio stream that's bigger than the video, set a zero length and I'm sure there's more.. with all the inter-dependencies of the GUI elements, it's a real pain to catch them all. You can go to 4 GB audio streams in the code I have now, I'm using unsigned 64 bit ints for temporary storage now.
Egh
20th August 2005, 15:42
FourCC selection for avc/mencoder seems to be b0rked in MeGUI last build.
that made several encoded fragments i tried to be encoded under VSSH fourcc.
Enable "show command line" and change fourcc's in the combobox. In my case what's selected in the list wasn't what was after --fourcc parameter in command line.
Also, sometimes there's no --fourcc key shown in command line at all, despite selecting different options from the combobox.
Egh
20th August 2005, 16:02
Another glitch.
still same build of megui. Selected x264 as my avc encoder. Selected .avi for it. MeGUI politely shows dialog x264 doesn't support that. Great. But why AFTER that dialog meGUI shows THAT:
*********************
See the end of this message for details on invoking
just-in-time (JIT) debugging instead of this dialog box.
************** Exception Text **************
System.NullReferenceException: Object reference not set to an instance of an object.
at MeGUI.MeGUI.addVideoJob(Boolean start)
at MeGUI.MeGUI.queueVideoButton_Click(Object sender, EventArgs e)
at System.Windows.Forms.Control.OnClick(EventArgs e)
at System.Windows.Forms.Button.OnClick(EventArgs e)
at System.Windows.Forms.Button.OnMouseUp(MouseEventArgs mevent)
at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
at System.Windows.Forms.Control.WndProc(Message& m)
at System.Windows.Forms.ButtonBase.WndProc(Message& m)
at System.Windows.Forms.Button.WndProc(Message& m)
at System.Windows.Forms.ControlNativeWindow.OnMessage(Message& m)
at System.Windows.Forms.ControlNativeWindow.WndProc(Message& m)
at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
************** Loaded Assemblies **************
mscorlib
Assembly Version: 1.0.5000.0
Win32 Version: 1.1.4322.573
CodeBase: file:///c:/winxp/microsoft.net/framework/v1.1.4322/mscorlib.dll
----------------------------------------
MeGUI
Assembly Version: 1.0.2057.42352
Win32 Version: 1.0.2057.42352
CodeBase: file:///D:/VIDEOZZZ/mencoder/MeGUI.exe
----------------------------------------
System.Windows.Forms
Assembly Version: 1.0.5000.0
Win32 Version: 1.1.4322.573
CodeBase: file:///c:/winxp/assembly/gac/system.windows.forms/1.0.5000.0__b77a5c561934e089/system.windows.forms.dll
----------------------------------------
System
Assembly Version: 1.0.5000.0
Win32 Version: 1.1.4322.573
CodeBase: file:///c:/winxp/assembly/gac/system/1.0.5000.0__b77a5c561934e089/system.dll
----------------------------------------
System.Drawing
Assembly Version: 1.0.5000.0
Win32 Version: 1.1.4322.573
CodeBase: file:///c:/winxp/assembly/gac/system.drawing/1.0.5000.0__b03f5f7f11d50a3a/system.drawing.dll
----------------------------------------
System.Xml
Assembly Version: 1.0.5000.0
Win32 Version: 1.1.4322.573
CodeBase: file:///c:/winxp/assembly/gac/system.xml/1.0.5000.0__b77a5c561934e089/system.xml.dll
----------------------------------------
wr0pqh62
Assembly Version: 0.0.0.0
Win32 Version: 1.1.4322.573
CodeBase: file:///c:/winxp/assembly/gac/system/1.0.5000.0__b77a5c561934e089/system.dll
----------------------------------------
rzindssj
Assembly Version: 0.0.0.0
Win32 Version: 1.1.4322.573
CodeBase: file:///c:/winxp/assembly/gac/system/1.0.5000.0__b77a5c561934e089/system.dll
----------------------------------------
kobwwihr
Assembly Version: 0.0.0.0
Win32 Version: 1.1.4322.573
CodeBase: file:///c:/winxp/assembly/gac/system/1.0.5000.0__b77a5c561934e089/system.dll
----------------------------------------
************** JIT Debugging **************
To enable just in time (JIT) debugging, the config file for this
application or machine (machine.config) must have the
jitDebugging value set in the system.windows.forms section.
The application must also be compiled with debugging
enabled.
For example:
<configuration>
<system.windows.forms jitDebugging="true" />
</configuration>
When JIT debugging is enabled, any unhandled exception
will be sent to the JIT debugger registered on the machine
rather than being handled by this dialog.
*********************
Although it seems to continue working as usual if you choose continue. But still such glitches are a bit worrying :)
Doom9
20th August 2005, 16:22
for future reference, you can save yourself the trouble of posting the crash report.. all that is required is the info on how to reproduce.
Doom9
20th August 2005, 16:41
what is "sometimes"? For modes where there's no output, there's not gonna be a fourcce either. Likewise, if the output is not fully configured in the main GUI, there will be no fourcc. This is because the commandline generator looks at the extension of the output filename to determine if we have avi output (in which case the fourcc will be appended), or something else (in which case the fourcc is not needed and will thus not be appended)
The fourCCs are stored twice, in an array and in the GUI and for some wicked reason the ones in the GUI got reordered. They're back where they ought to be now.
@edit: all fixed now.. there was also a reordering thing in the xvid dialogue and the asp dialogue had an empty entry.. no idea how that happened. I took the opportunity to improve the commandline generator for x264 (many options are superfluous in qp mode, and they are no longer added, and the corresponding GUI elements will be disabled as well).
Egh
20th August 2005, 17:24
Likewise, if the output is not fully configured in the main GUI, there will be no fourcc. This is because the commandline generator looks at the extension of the output filename to determine if we have avi output (in which case the fourcc will be appended), or something else (in which case the fourcc is not needed and will thus not be appended)
The fourCCs are stored twice, in an array and in the GUI and for some wicked reason the ones in the GUI got reordered. They're back where they ought to be now.
Thanx for explanation on that key. Where to get newer megui build? :)
Also, on the exception mentioned earlier. Have you managed to reproduce it? It's reproduced here w/o fail.
Steps I do:
Select x264 as avc encoder, select .avs script, select .avi as output, use queue. Dialog about x264 and avi incompatibility is shown. Press ok, dialog closes, MeGUI exception is shown.
Doom9
20th August 2005, 17:39
Have you managed to reproduce it?Yes, reproduced and fixed.
Where to get newer megui build?it'll be posted when it's ready. There are other things I want to take care off before new release, and the issues you've uncovered are mostly of cosmetical nature and not really a showstopper.
AstaRoth
20th August 2005, 22:29
Not particularly.. I never found that indication in GKnot useful, especially since there's no way you can change it to something better without risking to break encoding (I enforce mod16 resolutions which is the only thing that will work with every codec MeGUI supports), and the resolution that is automatically picked with suggest resolution is the one that gives the lowest error compared to the real aspect ratio of the movie.
Yes, but without error ratio (vary with the crop), it is difficult to minimize the "deformation" with the various values of the crop
Doom9
21st August 2005, 01:32
to minimize the "deformation" I have my doubts you'd notice it either way. We're really talking about tiny errors unless you grossly "mis-crop". And how would the error rate be computed anyway? What is your reference? What is a 0.0% error? Is it when you crop every black pixel and don't resize? What if you manually crop and screw up? where is the 0.0% error now? And next thing you're asking for a smart crop that works together with resize, right?
AstaRoth
21st August 2005, 08:55
sorry, my english is not very good, so it's difficult to explain clearly
For example :
I have a old movie with 4 black bands.
With autocrop and mod16, the movie is slightly stretched in height.
Then I decrease a little the crop in top and bottom to reduce the error.
At this time, if the height doesn't change, the image is less stretched in height.
I calculate the error with the new size and the crop compared to the true size
Doom9
21st August 2005, 14:33
you didn't answer my question.. what is a 0.0% error? Is it what I wrote in my post above?
Then I decrease a little the crop in top and bottom to reduce the error.and in the progress start wasting bits on encoding black lines (it's not the lines, it's having the cut between movie and black lines actually)? That's like swapping out one imperfection for one serious evil. The only option I consider remotely valid is cropping into the picture.. that's still trading one evil for another but the difference is smaller than if you crop less.
Doom9
21st August 2005, 21:40
a new build is up. enjoy
leowai
22nd August 2005, 04:40
It doesn't even take so long on my dual core X2 (even with all the options I have more than 16fps so the 50 or so frames it takes will be encoded rather quickly).
:eek: I'm not that lucky as you because I'm still stick to a PIII 1GHz machine. So, it could take me few ten seconds for the stop! But this is not a big issue anyway. :p
Do you have a play icon for me with the right dimensions? I don't have any design tools, I drew the pause icon in pain and it was kinda annoying to get it to have the proper dimensions and be properly placed in the icon.
Oh and the paused thing.. when designing jobs there was no such state.. I would have to add that from the ground up.
I did the play icon as attached in this post. One which is the same size as the pause icon but looks smaller so I also did another slightly larger one. Hope it helps.
Thanks a lot. :)
dejected_is_me
22nd August 2005, 05:38
this is more of a gripe then a bug... maybe both.
The new: "Warning about audio to small....thing" is rather annoying.
If there is a demand for such a feature then i will bite my tounge, other wise...COME ON! who sets the audio to larger then the video and doesnt notice. Or even the actual file size. If this is a must have featrue i suggest making the "to small check" when you push the apply button. When i go to put in a custom file size ie: 230 mb, it yells at me before i can add the 3 of 230 mb. Making me push the error button over and over again for each episode calculation. (Yes i was encoding more then one source.)
If im out of line slap me with a fish: (DOOM9 slaps dejected with a fish)
Doom9
22nd August 2005, 08:55
@dejected_is_me: I'm trying to prevent people from stupid mistakes in the bitrate calculation with this feature.. its annoyingness is on purpose, it's there to make sure that people will set up the calculator to get a meaningful result. It takes but two clicks to make it disappear for good (one for the OK, another one to adjust the audio bitrate or output size). What good is the result of the calculation if it cannot be obtained? I figure you want audio for your episodes, don't you, so you need to calculate something that makes sense.. audio larger than output clearly doesn't make any sense at all.
Igor Kharchenko
22nd August 2005, 09:24
and the bugfix is now publicly available. See the first post for the changelog.
Thank you for such fast fix.
Is there any plans to make compressibility test like in Gordian Knot? Or some other tool to estimate the complexity of the source.
Doom9
22nd August 2005, 09:51
Is there any plans to make compressibility test like in Gordian Knot?No. I have never used that feature except when writing guides, and when even codec developers tell you it's not very meaningful, it is time to seriously reevaluate where you invest your time.
bond
22nd August 2005, 23:20
That's the different version of MP4Box used.
v3.x uses ";" but v4.x uses ":"does megui already support mp4box 0.4.x with that? the link to celtic druids page points to 0.4.x builds already
Liisachan
28th August 2005, 04:43
This might be a known problem but:
MeGUI 0.2.2.2 seems to generate this option:
vcodec=snow:vqscale=5:vstrict=-2
for the 1st pass of SNOW 2pass. It doesn't generate the passlogfile specified.
Should be at least
vcodec=snow:vpass=1:vstrict=-2
or maybe something like
vcodec=snow:vqscale=2:vpass=1:vstrict=-2
would work (a la XviD).
Doom9
28th August 2005, 12:48
@Liisachan: hmm, I thought I had already fixed that but apparently not.
@bond: last time I checked, the latest build in CD's dev directory was based on 0.3.x, hence no change in the commandline generation. Is the 0.4.x series really stable enough now? I've seen a bunch of problems reported in the container form when it first appeared.
Wishbringer
28th August 2005, 14:05
In MeGUI (Avisynth Script Creator) it would be nice to have some templates in *.ini file to use per default.
e.g.:
LoadPlugin("RemoveGrainSSE2.dll")
RemoveGrain(mode=2)
LoadPlugin("FFT3Dfilter.dll")
FFT3Dfilter()
Because after changing something in first tab, all custom changes on second tab are gone and have to be written again.
Doom9
28th August 2005, 14:12
and where would those dlls reside? the way it's written, I suppose the directory where the avs resides, and that's not very practical, is it? On the other hand, there's the plugins directory to save you the hassle of loadplugin.
And I have to ask why don't you configure the standard options first, and then start to customize?
Last but not least, I'm very sceptical about making changes to the AviSynth editor.. there's a few good ones out there and I don't really want to compete with those.. what is offered is just a really basic set of features, enough to take care of basic resizing and interlacing/ivtc needs you might have, but those wishing for advanced features probably already have their favorite script editor anyway, and I'd have to go through considerable extensions to make them switch.
MomoNyo
28th August 2005, 18:01
I keep getting crashes here when it tries to start the second pass.
------------------------------------------------------
Microsoft Visual C++ Runtime Library
Buffer overrun detected!
Program D:\Program Files\Multimedia\MeGUI\x264.exe
A buffer overrun has been detected which has corrupted the program's internal state. The program cannot safely continue execution and must be terminated.
------------------------------------------------------
Same thing happens with mencoder. The only way I can finish a job is to copy/paste the commandline from the log window into a command prompt and run the encoder from there.
I'm not sure if it's my .NET Framework at fault (it's v1.1.4322, the one that's installed as default with Server 2003), or if something else is behind it. It's happened with the last few MeGUI builds so I don't think it's a new issue, but nobody else seems to have posted about buffer overruns.
At least I have a way around it, but it takes away the convenience of being able to let it run and come back to a complete mkv.
Just thought I'd let you know. Keep up the good work, I really like MeGUI :)
Doom9
28th August 2005, 21:38
It's happened with the last few MeGUI builds so does that mean that once upon a time it was working properly? Can you trace it back to a specific build? I have no W2K3 machine to try, but if you can tell me the last working build I could look at the differences between the last working and the first not working build.
Doom9
28th August 2005, 22:58
alright, mp4box 0.4.x is now supported and the snow bugfix is in.. and then there's some goodies (finally I don't have to change the number of threads manually anymore :)
MomoNyo
28th August 2005, 23:12
so does that mean that once upon a time it was working properly? Can you trace it back to a specific build? I have no W2K3 machine to try, but if you can tell me the last working build I could look at the differences between the last working and the first not working build.
It's never worked here. Well, I've only been trying out MeGUI for the last month or two so I've only used maybe the last 5 or 6 builds. I should have been clearer there.
The strange thing is it can do the first pass just fine. But when it starts the second pass, as soon as the encoding status window pops up, I get the crash dialog. For a while I thought the problem was with the encoders, but once I can use them fine via the command prompt I'm guessing it must be something to do with the way MeGUI hooks into them to report the encoding status. I'm not a programmer though, so that's not an educated guess ;)
Doom9
28th August 2005, 23:14
well.. the crashes are caused by the encoder, not MeGUI. I've seen .NET act a bit weird on W2K3 at work, so is there any need for you to run what's clearly a desktop app on a server OS?
Liisachan
29th August 2005, 12:28
Thanks for the update, I'm going to play with SNOW more later.
Meanwhile I'm feeling that this is a bit inconvenient:
MeGUI 0.2.2.3 : MP4 Muxer - You can set the FPS before you open the Video file, but you cannot set the FPS after you open the file (the pulldown list is grayed out).
Such a limitation doesn't make sense to me, but is this by design?
Doom9
29th August 2005, 13:10
Such a limitation doesn't make sense to me, but is this by design?This is effectively a bug and should not happen. The FPS should only be grayed out when the muxer is pre-fed with content that is to be encoded (so in auto-mode when you add additional audio streams, subs and chapters) and where the FPS is already known.
Jerry_Sm@rt
29th August 2005, 16:45
hi, i'd say it's really a powfull tool to encode with.
but i cann't make the one click encoder working ,maybe it's because the auto generated avs do not add LoadPlugin("dgdecode.dll") just like using the Avisynth Script Creator i had to add it myself.
Any way to fix it?
Sirber
29th August 2005, 16:57
Yes, add dgindex.dll in "C:\Program Files\AviSynth 2.5\plugins".
Liisachan
29th August 2005, 18:43
The FPS should only be grayed out when the muxer is pre-fed with content that is to be encoded (so in auto-mode when you add additional audio streams, subs and chapters) and where the FPS is already known. Then, perhaps this is by design after all. I tried to mux video-only MP4 (AVC encoded by x264.exe thru MeGUI) + MPEG-4 AAC in MP4, and what bothered me was, actually, not the grayed-out listbox, but MeGUI forcing -fps 25 if you don't specify FPS. I'm not sure, but my hunch is, you don't have to use the -fps switch in many cases, because MP4Box can auto-detect it. Nevertheless MeGUI seems to add -fps 25 whenever you don't specify it explicitly, and I'm wondering if that is really necessary.
Doom9
29th August 2005, 20:00
looking at it a bit more carefully, the fps is only grayed out if your input is an mp4.. in that case you don't need the fps. However, there are still two problems. One is that the fps is not reactivated when another non MP4 is being loaded, the other is that the default fps value for muxsettings is 25 fps.. since you must select an fps unless your input is an mp4, it makes no sense to force that default. I will set the fps to 0.0 so the fps won't be added to the commandline in case of mp4 input, but will be added for all other scenarios.
Doom9
29th August 2005, 21:40
@Liisachan: please try the new release, it contains the mp4 muxer fix.
DeadRinga
30th August 2005, 00:58
I find that if i select a language for the audio the mp4 muxer errors out with "Feature not supported"
Jerry_Sm@rt
30th August 2005, 03:52
Yes, add dgindex.dll in "C:\Program Files\AviSynth 2.5\plugins".
dgindex.dll???u mean dgdecode.dll ,it's already there.
i mean the auto generated avs is like this:
mpeg2source("D:\040602_2359\VIDEO_TS\VTS_01_1.d2v")
crop(0,0,-2,-2)
LanczosResize(640,352)
the one click encoder should've add a line like:
LoadPlugin("DGDecode.dll")
Liisachan
30th August 2005, 04:50
@Doom9: /me tested 0.2.2.3a MP4 Muxer for MP4 Video+MP4 Audio, and it worked fine.
For testing purpose, I even tried to confuse MeGUI by setting a random wrong value as FPS before I open my MP4 video file, but MeGUI just ignored it when the file was specified (the listbox was automatically reset, ignoring the CurSel), and the generated cmdline didn't have -fps either. :D
Thanks you!
Doom9
30th August 2005, 08:51
I find that if i select a language for the audio the mp4 muxer errors out with "Feature not supported"And which mp4box version would you be using? Please don't tell me 0.3.x, even the changelog states that two versions ago I moved to 0.4.x style syntax.
DeadRinga
30th August 2005, 16:55
Doh. I am usually good with keeping packages up to date, guess i missed the mp4box update. It was 0.3.x that was causing the issue. Now fixed. :)
Doom9
30th August 2005, 19:55
the one click encoder should've add a line like:
LoadPlugin("DGDecode.dll")No, the user should set up everything properly in accordance with what's posted in the first post. I've set up a completely new machine exactly like that and it works like a charm. Unless you mess up your AviSynth installation, copying dgdecode.dll into the plugins folder (and making sure you don't have an old mpeg2dec*.dll around there) works just fine and dandy. I don't understand why people insist on not using one of AviSynth's finest features: automatic plugin loading. It spares you a lot of grief when you move scripts around, install new software, etc.
foxyshadis
31st August 2005, 00:50
well.. the crashes are caused by the encoder, not MeGUI. I've seen .NET act a bit weird on W2K3 at work, so is there any need for you to run what's clearly a desktop app on a server OS?
The 4gig dual-xeon makes an excellent night-time encoding box, though it still doesn't compare to your X2. One of these days I'll try making a build farm out of a couple.
I haven't tried megui on it, so I can't offer more, sorry. If I have time I'll give it a try in the next few days and see if I can narrow it down to anything in particular.
dejected_is_me
1st September 2005, 07:34
I post this here because im unsure of the cause...
i have a hybrid DVD, Colorful from ADV films, that refuses to encode right. when i say hybrid i mean this:
If in DGIndex a source is switching between interlaced and progressive but is also being reported as completely FILM then don't worry - it's progressively encoded and Force FILM will restore the original frames. However, if it is switching and it's being reported as mostly NTSC then you have a hybrid dvd (just like the colorful disc I'm using below) and this will need to be handled in a different way, as I will describe later. Hybrid sources have two forms, one is where you have mostly FILM and only some parts interlaced and the other where only some parts will be FILM. These will be discussed in more detail later. Remember that some sources that only have a very small about of interlaced footage (such as FILM 98%) can often have Force FILM used.
I have the later. this is my script:
# PLUGINS
LoadPlugin("C:\PROGRA~1\GORDIA~1\DGMPGDec\DGDecode.dll")
LoadPlugin("C:\PROGRA~1\GORDIA~1\AviSynthPlugins\decomb.dll")
# SOURCE
mpeg2source("C:\DVD encodes\Raws\Colorfull\d2v\color.d2v", idct=7)
# IVTC
Telecide(order=1, post=4).Decimate(mode=1, threshold=1.0)
# CROPPING
#crop(0,0,720,480)
# RESIZING
LanczosResize(720,480)
I can encode a small part of the film, about 300 frames or so, and it comes out ok. 2 pass with latest xvid build and MEgui 2.2.2. But when i encode the whole movie and play the resulting file all i get is a black screen. The size looks right and the time is accurate.
Someone please help me. Im not sure if this my script error or a megui error.
-dejected_is_me
LigH
1st September 2005, 08:58
In my opinion, this cannot be the fault of MeGUI. Instead, better ask where DGMPGDec is discussed; MeGUI only handles the really active applications, but is not involved in the conversion process - this part is only done by AviSynth and the encoder.
Doom9
1st September 2005, 10:49
this is not the first time I hear this reported (long movie with xvid, output unusable). ligh is correct though, unless you can prove that it does not happen if you run the megui generated commandline from a dos prompt, it's the encoder's fault. I would do that test, and if it fails as well, like I suspect it will, file a mencoder bugreport via the appropriate channels (it may not help.. I've filed bugs before and they seem to be using the bugzilla mostly to be very quiet about what's happening - it happens with many open source projects in fact - in a forum it's much harder to ignore users clamoring so I guess that's why forums are often not liked for that kind of stuff ;))
jmk
1st September 2005, 17:47
hey, i just wanted to thank you, doom9, for your work on this great program!
i do have a problem though :rolleyes: :
what exactly has to be the format of subtitles inside an mp4 container? i know they have to be textbased but subrip's .srt format did not seem to work (at least, neither mplayer not vlc displayed any subs).
could you maybe post an example line?!
thx alot,
jmk
Doom9
1st September 2005, 18:17
@jmk: here are three sample lines from a file I know works (it's my standard subtitle track1)
1
00:00:14,328 --> 00:00:16,592
(mmam) Do youu fimdd mmme saddstc?
2
00:00:18,398 --> 00:00:20,730
Y ouu knmoww, Kiddddo...
3
00:00:20,801 --> 00:00:23,269
...I'dd Ikne to beeIeve...
If that doesn't work for you, then the error lies in the playback software.
LigH
1st September 2005, 18:22
Whattn thattn language?! :D
Doom9
1st September 2005, 18:49
that's English with me not having enough time to properly set up subrip.. I don't care that it's incorrect, I just needed some subs.
Yama4050242
3rd September 2005, 02:11
a quick question, how much free space should be there with megui(0.2.2.3a)?
since i found a interesting thing that if my partition(with megui.exe on) space is 12x mb, the mp4 i muxed got no sound played.i tried for long to solve it, finally, i found that the disk space may be a problem, so i delete some file on the partition with megui.exe. after i deleted, i got 8xx mb space on that partion and the muxed mp4 is fine, the muxed mp4 output is 2xx mb.
do i need the space more than the output to run megui mp4 muxer?
i tried yamb with same version of mp4box.exe(both 0.4.0), of course yamb is on the same partition, the output file played fine
the output file is on another partition with enough free space
sorry for my messy organized information, but iv tried to provide as much as possible
LigH
3rd September 2005, 06:55
Please expect to need at least twice the amount of desired video + audio size, because multiplexing requires that the data is duplicated once; no application is able to insert data into the same file it is reading from, it would destroy the file trying that, by overwriting data which would have been read later.
Malkacoglu
4th September 2005, 11:56
Hi everybody!
This is my first post and excuse my english.
First of all I want to say MeGUI is very perfect tool for x264 AVC encoding. I like it very much.
I found a bug in program.
Bug: if you setup default x264 encoder to mencoder, subq setting working wrong. When you select 6. RDO option in command line, its show subq=5. So I manualy enter this optin in custom command line en it works right.
http://img383.imageshack.us/img383/6403/mencoderbug8cj.jpg
And I want to ask some questions about some megui options
why dont you make a select option for psnr? I use it in mencoder at command line but i cant use it when i encode with x264. because in command line you add a option --no-psnr. is there a problem in x264 psnr option?
can you support mono mp3 format? for example I encode a very old movie and its sound format is mono. So I want to encode it mono mp3. Bu in your mp3 options there is no mono option.
why dont you support external audio files? For example I encode sound before the encoding proses so I want to use this file. Bu megui is not support external files. Its support it in muxer menu but i want to use it in autoencode mode.
Thank you! :cool:
Edit: I 'm using latest version MeGUI 0.2.2.3a.
Doom9
4th September 2005, 13:13
When you select 6. RDO option in command line, its show subq=5.Correct, I did not paste enough from the x264.exe commandline.
why dont you make a select option for psnr?psnr is useless to me.
can you support mono mp3 format?I have my doubts that I'll do that.. I like to have features I consider useful and since I don't care about old movies... You can always load an externally encoded MP3 though (see next point)
why dont you support external audio files?it is supported. Just set up your video as usual, do not load audio, press auto-encode. Then in the windows that pops up, check Add Audio Stream. Then when you press Queue, the audio muxer window will come up and you can select your MP3 audio stream.
Malkacoglu
4th September 2005, 14:24
Hi,
Thank you for answer my question.
Doom9
4th September 2005, 22:45
@Malkacoglu: the bug you reported is fixed now.
Richard Berg
5th September 2005, 07:24
Trying MeGUI for the first time. Nice interface, good amount of options without overwhelming.
How do I get it to use the audio track from the source?
berrinam
5th September 2005, 10:59
If you are doing each step separately, simply don't set up audio to encode, and then choose the original in the muxing stage. If you are using AutoEncode, similarly, don't set up the audio encoding, and when you press AutoEncode, check 'Add additional content', and you can select your audio in the muxing window which pops up.
In OneClick mode, check 'Don't encode audio', which will use the original audio.
Richard Berg
5th September 2005, 21:18
Hmm, I can't figure it out. Input -> Audio Input only lets me choose AC3, MP3, or WAV. Muxer -> Audio Input only lets me choose AC3, MP3, or AAC. One Click only lets me choose VOB, MPG, or TS. Just to make sure we're talking about the same thing: I do TV captures. My source is an AVI file (Huff/MJPEG + PCM) processed via Avisynth.
Since my Avisynth scripts are way slower than any encoder, an ideal front-end would also have an option to render out to a temp file whenever doing 2-pass. Should be fairly straightforward to automate Avs2Avi. Is the code available? I like C#.
Finally, a minor bug report: the command line shown in the AAC config dialog doesn't update when you choose different VBR presets.
Doom9
5th September 2005, 22:57
Is the code available? The first post of this thread is very enlightening ;) And I'm not using avs2avi.. there's no VfW here except for preview. And you need to extract your PCM.. there is no support for combined video/audio.. mencoder's audio capabilities stand no chance against BeSweet, never have and most likely never will.
vidhead
7th September 2005, 08:59
the mp4 video made with MeGUI - i used mplayer GUI - MPGUI to playback, its report shows 0 for bitrate - is this normal?
Playing J:\source\gw-3-04-e.mp4.
ISO: Unknown File Type Major Brand: avc1
Quicktime/MOV file format detected.
--------------
MOV track #0: 4310 chunks, 43100 samples
ID_VIDEO_ID=0
MOV: AVC decoder configuration record atom (43)!
MOV: Found unknown movie atom btrt (20)!
Image size: 512 x 384 (24 bpp)
Display size: 512 x 384
Fourcc: avc1 Codec: ''
--------------
MOV: longest streams: A: #-1 (0 samples) V: #0 (43100 samples)
VIDEO: [avc1] 512x384 24bpp 29.970 fps 0.0 kbps ( 0.0 kbyte/s)
ID_FILENAME=J:\source\gw-3-04-e.mp4
ID_DEMUXER=mov
ID_VIDEO_FORMAT=avc1
ID_VIDEO_BITRATE=0 <------?
ID_VIDEO_WIDTH=512
ID_VIDEO_HEIGHT=384
ID_VIDEO_FPS=29.970
ID_VIDEO_ASPECT=0.0000
ID_LENGTH=1438.10
==========================================================================
Opening video decoder: [ffmpeg] FFmpeg's libavcodec codec family
Selected video codec: [ffh264] vfm:ffmpeg (FFmpeg H.264)
==========================================================================
Audio: no sound
Starting playback...
VDec: vo config request - 512 x 384 (preferred csp: Planar YV12)
VDec: using Planar YV12 as output csp (no 0)
Movie-Aspect is undefined - no prescaling applied.
VO: [directx] 512x384 => 512x384 Planar YV12
mp4UI loads the mp4, show one video branch with Track 1 showing:
Type Video
Numberofsamples 43100
VideoType invalid <----?
Bitrate 0 <--- ?
duration 23:58.104 minutes
framerate 29.970fsp
width x height 0 x 0 <---?
if you try to export raw it throws
exception: MPEG-4 internal
reason: couldn'read sample 1
using MV2player the same mp4 shows:
resolution 512 x 384 < --looks correct
FPS = 0 <---?
Format = AVC1
Bitrate = 1154 kbps <--? if i remember correctly i fixed that at 700 or 800
the mp4 file size (without audio) 141696 kb - 2pass encode.
otherwise the mp4 plays without noticeable problem.
just curious.
PatchWorKs
7th September 2005, 09:16
Just a question: what about Theora ? and Dirac ?
Doom9
7th September 2005, 19:06
@vidhead: I wouldn't rely on MP4UI (created way before there was AVC).. but what mplayer reports could be atoms in the mp4 (somebody correct me if I'm wrong.. I never bothered learning all the details about the format).. and if an encoder / muxer doesn't write them, I guess 0 is the default.
@Just a question: what about Theora ? and Dirac ?: not available in mencoder so not really an option here. Perhaps one day in the future when they become more usable and deliver better quality and speed. In the case of Dirac, I don't even know of a tool that can take avs input and put the dirac stream into a container (plus then there's the thing about adding audio.. assuming AVI as container, any VfW based tool wouldn't work because there's no VfW Dirac codec....)
haubrija
15th September 2005, 20:24
Doom9,
Quick question. I saw that you were thinking about using encraw for xvid in MeGui. I'm getting ready to start my fall tv captures and was wondering if that's still your plan or if you're gonna still stick with mencoder. I really want to use custom quant matrix with windows and I think I remember you saying that with encraw we could use them. Thanks.
Doom9
15th September 2005, 20:49
encraw's commandline is still under heavy changes.. before it's reasonably settled I won't do anything that I have to redo two days after.
babaz
15th September 2005, 22:07
hi doom9
really longing for a version with "Nero-free" aac encoding (u know waht i mean, using latest besweet beta with dimzon plugins for FAAC)
would love it :D
Doom9
15th September 2005, 22:25
it'll happen.. it just takes time that I don't have right now.
danpos
16th September 2005, 06:58
Hi there! In order to sustain actualized myself in the present video editon scene, I did solve try MeGui out. The video used in present test is a piece of VOB (100 MB) chopped by kutterman.
For video encoding, I set x264.exe up through MeGui with following settings:
QPEL, CABAC, Loop -5, ChromaME, no B-Frames, 1 Reference Frames, P-Frames 8x8, Extra, other settings on default, ABR 1000 Kbits/s.
For audio encoding, I did choose AAC CBR 2.0 stereo 64 Kbits/s as output for each either AC3 5.1 tracks (english and portuguese audio tracks). Muxing is done by MP4 box CL app which is set up in GUI itself.
Follows down link for a resulting encoded clip:
MP4 AVC 1000 Kbps ABR - Two AAC 2.0 stereo 64 Kbps audio channels (http://uploadhut.com/view.php/325509.zip)
:o
Really is very impressive! :cool:
neo_anderson
16th September 2005, 12:04
hi,
i have 2 small questions, if want to set deblocking to -1 in megui that comes with x264 rev. 292, how to do that, should i set both alpha and beta deblocking options to -1? also, for dvd backups, which profile should be used, main or baseline or high? also, please tell me if there is any guide for using megui to do dvd backups using x264! i am little confused with 2-pass settings in megui!
neo_anderson
16th September 2005, 20:50
please someone help me with MeGUI Settings for dvd to x264 encoding!
ipse
17th September 2005, 08:13
First of all - thanks for good tool. MP4 absence is really boring in GK. :) But calculator and avs-editor in GK is much more smarter. I hope MeGUI will absorb best features from GK.
So, bugs and wishes on usability:
1. In MP4 muxer window in Video Input selection dialog I can't select nonexistent file. I want to add mux-job as final job after video and audio coding. But a have no video and audio files at this time.
2. Automaticaly set video output name in main window when opening avs-script. As it's in GK. E.g. simply changing <video>.avs to <video>.mp4 (or such other extension).
Addition: Hmm.. It's a good feature for muxing dialog too.
3. Put bitrate selection editbox in main window. This paramter changes on every new job. It is not comfortable to open codec settings window every time.
4. "Autostart job" checkbox in main window. I want to autostart only one job (usualy last) while I load chain of jobs. May be it would be better to add "Queue&Start" button near "Queue" button.
PS And do you think about centralized bugtraq? :)
DarkNite
17th September 2005, 09:44
@neo_anderson:
Main profile should be fine. High profile won't playback for everyone, at least not last time I checked. Nero may have updated sometime between the time I stopped paying attention to Recode\NVE\ShowTime and now.
neo_anderson
17th September 2005, 11:47
also, please tell me how to set deblocking to -1 in MeGUI , should alpha and beta deblocking both be set to -1?
hellfred
17th September 2005, 12:04
also, please tell me how to set deblocking to -1 in MeGUI , should alpha and beta deblocking both be set to -1?
I suggest you to have a look at DeathTheSheeps encoding guid :search: and mplayers manpage, there the x264encopts section. The parameters are not named exactly the same in mplayer/mencoder, x264 vfw interface and MeGUI (AFAIK) but you will get a good idea of what the different settings do.
Hellfred
Doom9
17th September 2005, 15:24
But calculator and avs-editor in GK is much more smarter.Please elaborate.
In MP4 muxer window in Video Input selection dialog I can't select nonexistent file. I want to add mux-job as final job after video and audio coding.Enter the awsome power of the auto-mode.. configure your video and audio, press the auto-encode button, select output and split size, check the checkbox to add streams, and you'll see a muxer window with everything needed pre-filled out, you can add your subtitle tracks and chapters.. so everything you can do with the muxer. There's no need to be able to select non-existent files (think about it logically for a sec.. it's not programmatically possible because a file open dialog needs existing files, and it doesn't make any sense because the automatization to mux after encoding is already here).
2. Automaticaly set video output name in main window when opening avs-script. Uh, I distinctively recall coding that... admittedly I had a few beers last night but my eyes do not deceive me, it's there. Not for the muxer though but I can put that onto the todo list.
3. Put bitrate selection editbox in main window. This paramter changes on every new job. It is not comfortable to open codec settings window every time.Let's see... I have a strong suspicion that you're unfamiliar with the auto mode, so that's feature 1 to make your suggestion superfluous. And there's option two: if you use the bitrate calculator, there's the apply button that applies the calculated bitrate to the currently selected codec.. and once again you don't need to configure the bitrate manually. With these two features, having a bitrate selector in the main window would be redundant, plus it breaks the separation between input/output and codec separation.
4. "Autostart job" checkbox in main window. I want to autostart only one job (usualy last) while I load chain of jobs. Uh, "load a chain of jobs"? How does that work? You probably meant to write something else as this makes no sense to me.
Let's see what happens if you add a job to the queue:
a) no job is currently being encoded
-> if autostart is enabled, the first job that will be added to the queue when you press the queue button will be encoded immediately.
-> if autostart is not enabled, the jobs will simply be added to the queue
b) a job is currently being encoded
-> regardless of the autostart, the job(s) is/are added to the queue. When the job that was being encoded when you pressed queue is done, there's another crossroads:
--> if you pressed the stop button in the queue tab, encoding will stop
--> if you didn't press stop, the next job in the queue will be encoded (taking into account job dependencies, chained jobs will be encoded after another regardless of their respective position in the queue).
There is no feature to encode "just this job" automatically and I don't see this as particularly useful. If you wish to get this, two clicks will take you there: 1) click on queue tab, 2)press the stop button. this will prevent any futher jobs from being encoded, but leaves the job that is currently being encoded to be encoded till the end.
When jobs error out, chained jobs are automatically skipped and the next non chained but queued job will be encoded (provided nobody pressed stop in the meantime).
Last but not least, pressing the stop button twice (it changes names from stop to start and reverse), will "re-start" the queue mode.. so if you decide at some point that you still want subsequent jobs to be encoded, just press that button again.
bob0r
19th September 2005, 19:59
Searched for "megui upsample"
I am not sure if this was already asked once, or in some to do list but:
Can MeGUI Upsample audio? like from 44KHz to 48KHz?
.... since Sony PSP only can play LC-AAC 48KHz, its quite wanted.
Also... what about winamp aac and aacplus encoding support?
Dimzon is going great with it, and the output is perfect, not those dirty nero files!
Doom9
19th September 2005, 21:13
audio wise I'm planning faac integration but nothing else at this point. The winamp encoders, as well as the reference encoder have one major drawback: they're CBR only. I'm waiting for a HA listening test to prove that those encoders beat faac despite CBR - perhaps that would change my mind.. but I have no plans in supporting 10 different AAC codecs.
And why would you need to upsample of digiTV and DVD uses 48KHz anyway?
Sharktooth
19th September 2005, 22:07
AAC+ v2 wont be bad though...
bob0r
20th September 2005, 01:24
..
And why would you need to upsample of digiTV and DVD uses 48KHz anyway?
Uhm, back in the day all movies were encoded 44KHz because some players could not handle 48KHz, including xbox in the beginning.
A lot of (old) divx/xvid movies can be converted to x264 for PSP with superb quality, but we MUST have 48KHz. Now i know encoding my own .aac with besweet and all with 48KHz is easy. BUTTTTTT since Megui is the best GUI i have seen in a long time, and i so love it, i would really love to see this, i would think, simple option.
---
As for the AACplus encoder, i agree about not supporting a lot of encoders, but FAAC for LC-AAC en winamp aacplus.dll for HE-AAC(AAC+SBR+PS) encoding would be perfect for now. CBR may not be what we want now, but until we can get any other, why not support it now.
(At least don't use nero for encoding AAC files, they are <insert nasty words here> !!
Doom9
20th September 2005, 09:12
A lot of (old) divx/xvid movies can be converted to x264 for PSP with superb quality, but we MUST have 48KHz.Cough cough, ayee matee (imagine me wearing an eye patch). If it's a legitimate backup, there should be a DVD to re-rip, shouldn't there?
why not support it now.Adding another audio encoder isn't such a small deal.. audio encoding related stuff is all over the place (well, not really, but there's plenty of instances that need to be changed now that I'm adding faac support, and one of the main reasons I never added Vorbis support is the additional complexity in adding yet another audio codec). I won't switch out the nero classes, conceptually it doesn't matter what the output is if the encoder is different.. just as there are two ASP codecs that are handled independently in the video area, there will now be two AAC codecs that will be handled differently.. and to make matters worse, I either have to mess with the dropdown in the main GUI or make an aac encoder selection in the settings.
PS is only useful for very low bitrates, which might be suited for mobile devices, but the PSP cannot handle HE, can it. For PC / Standalone playback, PS is really not needed as the bitrate simply is too low to give you a real movie feeling. Even I can hear bad audio at some point and I'm the exact opposite of an audiophile.
bob0r
20th September 2005, 11:24
Cough cough, ayee matee (imagine me wearing an eye patch). If it's a legitimate backup, there should be a DVD to re-rip, shouldn't there?
....
Uhm? Downloading in The Netherlands is still 100% legal.
Just sharing it is illegal, or when the contents itself is illegal (like kiddie porn, el-qaeda training video maybe... you get my point)
---
About the aac codec again, yes i agree, though psp will probably be "ready" in the future soon :)
You do whatever you want, its your party! ... you now know what the guests want though ;)
Doom9
20th September 2005, 11:27
well, I'm sorry, legal or not, I have always despised such format conversions and no tool of mine would ever support such a thing.. just like downsampling is out of the question for me. And obviously, somebody needs to share for you to be download ;) Those that downsample will need to come to my brainwashing seminar.. I'll teach them not to downsample.
bob0r
20th September 2005, 11:39
I will use -ssrc( --rate 48000 ) in besweet
bob0r slaps Doom9 with the :thanks: board
Doom9
20th September 2005, 21:27
a new release it out. there's your faac support...
babaz
20th September 2005, 21:39
a new release it out. there's your faac support...
for the holy ghost!
this is fantastic - have to try it immediately
:thanks:
bob0r
21st September 2005, 00:35
a new release it out. there's your faac support...
Great, now we can create complete PSP videos without extra tools.
Oh wait we can't, we can't upsample audio to 48000Khz :devil: :D
Next step replace NAAC with WAAC and we all happy! (N = Nero, W = Winamp) :scared: :goodpost:
(Nero = AACPLUS v1 (AAC+SBR))
(Winamp = AACPLUS v1/v2 (AAC+SBR+PS))
(Yes Nero can do ABR on AAC+SBR, but when the file size is so small and still sounds so well, who cares about ABR?)
:devil: :devil: mode: Support both Nero and Winamp, shall we start paypal for Doom9? The poor guy. :eek:
max-holz
21st September 2005, 16:07
Is it possible to have a guide that explain step by step how to encode using MeGUI and x264, also creation of AviSynth script and .avs files?
I have used the search function but I didn't find something suitable like the GordianKnot guide.
:thanks:
P.S
I'am a novice in this ground, I have always used tools like AutoGK or XMpeg doing my videos, is it a problem?
Doom9
21st September 2005, 17:39
@max-holz: tools - one click encoder and you don't really need a guide ;) you just need to create an audio and a video profile
Doom9
21st September 2005, 19:31
Oh wait we can't, we can't upsample audio to 48000KhzNot gonna happen. But you can always edit the job xml files and put whatever you like into the commandline and have it executed.. there just won't be any gui support for that.
Next step replace NAAC with WAAC and we all happy! (N = Nero, W = Winamp) Not gonna happen considering the lack of any non CBR mode. And PS is really pointless for DVD backups.
max-holz
21st September 2005, 20:55
@max-holz: tools - one click encoder and you don't really need a guide ;) you just need to create an audio and a video profile
I have tried with this script, MeGUI freeze and hang up:
LoadPlugin("C:\PROGRA~1\AutoGK\DGMPGDec\DGDecode.dll")
LoadPlugin("C:\PROGRA~1\AutoGK\filters\autocrop.dll")
LoadPlugin("C:\PROGRA~1\AutoGK\filters\RemoveGrainSSE3.dll")
movie = mpeg2source("C:\Scambio\Elaborazione Video\Hana\agk_tmp\Hana.d2v")
cropclip = autocrop(movie,mode=0,wmultof=4,hmultof=4,samples=8000,aspect=0,threshold=34,samplestartframe=1,leftadd=0,rightadd=0,topadd=0,bottomadd=0)
fixed_aspect = 1.42222222222222
c_width = width(cropclip)
c_height = round(height(cropclip) / fixed_aspect)
input_par = float(c_width)/float(c_height)
input_par = (input_par > 1.4) || (input_par < 1.25) ? input_par : (4.0/3.0)
out_width = 704
out_height = round(float(out_width) / input_par)
hmod = out_height - (floor(out_height / 16 ) * 16)
out_height = (hmod > 4) ? (out_height + (16 - hmod)) : (out_height - hmod)
new_aspect = (float(out_width) / float(out_height)) / fixed_aspect
autocrop(movie,mode=0,wmultof=4,hmultof=4,samples=8000,aspect=new_aspect,threshold=34,samplestartframe=1,leftadd=0,rightadd=0,topadd=0,bottomadd=0)
LanczosResize(out_width,out_height)
RemoveGrain(mode=2)
SelectRangeEvery(300,15)
Doom9
21st September 2005, 21:00
I swear one day we'll have a rule that if you claim a problem and don't provide reproduceability, you're going to get striked. It's not so much different from rule1..
max-holz
21st September 2005, 21:05
I swear one day we'll have a rule that if you claim a problem and don't provide reproduceability, you're going to get striked. It's not so much different from rule1..
I said I'am a novice.....
there is no error, simply the application freeze
Doom9
21st September 2005, 21:27
there's logs, jobs, etc.. it doesn't take a masters degree to post them. And if you say you're a novice, if your AviSynth script has more lines than you have fingers, something is really wrong.
max-holz
21st September 2005, 21:30
there's logs, jobs, etc.. it doesn't take a masters degree to post them. And if you say you're a novice, if your AviSynth script has more lines than you have fingers, something is really wrong.
No log, simply the application freeze and CPU goes to 100% when I press the button Queue,
Doom9
21st September 2005, 21:37
geez.. can I reproduce that? Screw that godawful script.. take a simple three liner that loads the d2v, crops and resizes, then explain what you do starting with you double clicking on megui.exe. This is the basics of error reporting, I presume everybody knows that as everybody knows the basics of what do do when your car won't work (check batteries, gas, the real obvious things that even somebody without any flair for technology can handle).
I like to make sure that my app runs as good as it can and that everybody can use it.. but it's people like you who'll eventually make me stop caring altogether.. I have already provided countless of hours for the community, and I think it's not unreasonable to ask for as little as a proper report in return. Gosh, I feel like never come back again right now.
max-holz
21st September 2005, 21:45
geez.. can I reproduce that? Screw that godawful script.. take a simple three liner that loads the d2v, crops and resizes, then explain what you do starting with you double clicking on megui.exe. This is the basics of error reporting, I presume everybody knows that as everybody knows the basics of what do do when your car won't work (check batteries, gas, the real obvious things that even somebody without any flair for technology can handle).
I like to make sure that my app runs as good as it can and that everybody can use it.. but it's people like you who'll eventually make me stop caring altogether.. I have already provided countless of hours for the community, and I think it's not unreasonable to ask for as little as a proper report in return. Gosh, I feel like never come back again right now.
With a simple script like this:
LoadPlugin("C:\PROGRA~1\AutoGK\DGMPGDec\DGDecode.dll")
mpeg2source("C:\Scambio\Elaborazione Video\Hana\agk_tmp\Hana.d2v")
the application works well, so I think there is something wrong in the script that I post above. As I said I'am not practice about AviSynth simply I run AutoGK and then I use his script.
Doom9
21st September 2005, 22:32
ahh.. see, now we're already getting somewhere ;) Was it that hard?
SelectRangeEvery(300,15)looks like you picked a compressibility check script. Still, a complete description of what you're doing is still essential to narrow things down.. it very much matters what you are doing in MeGUI, every click can potentially matter. Even a simple "load avs, press queue" goes through hundreds of lines of code. You cannot know at which line it freezes, but if you flood me with details, I might be able to figure it out, and that in turn might lead to something else, etc. Just look at http://forum.doom9.org/showthread.php?t=99909 for a good example on how the smallest of details can matter a lot, and how not properly investigating can lead to false conclusions.
max-holz
22nd September 2005, 09:43
ahh.. see, now we're already getting somewhere ;) Was it that hard?
SelectRangeEvery(300,15)looks like you picked a compressibility check script. Still, a complete description of what you're doing is still essential to narrow things down.. it very much matters what you are doing in MeGUI, every click can potentially matter. Even a simple "load avs, press queue" goes through hundreds of lines of code. You cannot know at which line it freezes, but if you flood me with details, I might be able to figure it out, and that in turn might lead to something else, etc. Just look at http://forum.doom9.org/showthread.php?t=99909 for a good example on how the smallest of details can matter a lot, and how not properly investigating can lead to false conclusions.
I press the button to import the script and then ok, the application freeze at this moment. If you want you can use the script changing some few lines and test by yourself.
dimzon
22nd September 2005, 10:04
Great, now we can create complete PSP videos without extra tools.
Oh wait we can't, we can't upsample audio to 48000Khz :devil: :D
Next step replace NAAC with WAAC and we all happy! (N = Nero, W = Winamp) :scared: :goodpost:
(Nero = AACPLUS v1 (AAC+SBR))
(Winamp = AACPLUS v1/v2 (AAC+SBR+PS))
(Yes Nero can do ABR on AAC+SBR, but when the file size is so small and still sounds so well, who cares about ABR?)
:devil: :devil: mode: Support both Nero and Winamp, shall we start paypal for Doom9? The poor guy. :eek:
And don't forget about reference AAC+2 encoder :)
Doom9
22nd September 2005, 11:22
And don't forget about reference AAC+2 encoderAs I said, I won't support a gazillion AAC encoders. Plus, one thing to consider for your 5.1 attempts: there's only 2 ch channel coupling if you create 3 2ch streams and merge them together.. not quite ideal. And the reference encoder is cbr only as well and reference encoders aren't exactly known for speed.
I press the button to import the script and then ok, the application freeze at this moment.previously you said it froze when you pressed queue.. that's quite something different. Also, it matters if you have automatic script preview activated or not.
berrinam
22nd September 2005, 11:55
@max-holz: If you want automated cropping and resizing, MeGUI can do that for you, without the hassle of copying the AutoGK script. As Doom9 said, the easiest thing to use if you want an AutoGK-like operating mode is the One Click Encoder which is part of MeGUI.
vidhead
22nd September 2005, 15:01
I have tried with this script, MeGUI freeze and hang up:
...
RemoveGrain(mode=2)
SelectRangeEvery(300,15)
SelectRangeEvery() tells you its the compressability check avs script, just delete this line. also, the avs is called something_comptest.avs the movie.avs is exactly the same but without the last line.
my guess is the autocrop parameter samples=8000 that causing the big "freeze"...red HDD led was flicking like crazy so killed the task. change samples=10 works for me.
edit: LoadPlugin("C:\PROGRA~1\AutoGK\filters\RemoveGrainSSE3.dll") i changed this to RemoveGrain.dll coz i dont have an sse2 cpu :edit
max-holz
22nd September 2005, 16:02
@max-holz: If you want automated cropping and resizing, MeGUI can do that for you, without the hassle of copying the AutoGK script. As Doom9 said, the easiest thing to use if you want an AutoGK-like operating mode is the One Click Encoder which is part of MeGUI.
Now I prepare a script by myself:
LoadPlugin("C:\Programmi\x264\DGDecode.dll")
LoadPlugin("C:\Programmi\x264\plugins\autocrop.dll")
LoadPlugin("C:\Programmi\x264\plugins\RemoveGrain.dll")
mpeg2source("C:\Scambio\Elaborazione Video\Hana\Hana.d2v")
AutoCrop(preview=false,wMultOf=4,hMultOf=4,leftAdd=0,rightAdd=0,topAdd=0,bottomAdd=0,threshold=34,samples=8000)
LanczosResize(720,416)
RemoveGrain(mode=2)
MeGUI works but I got this error:
The current job contains errors. Stopping queue mode
Generating jobs. Desired size: 1468006400 bytes
No audio encoding. Calculating desired video bitrate directly.
Setting video bitrate for the video jobs to 1174404 kbit/s
Setting desired size of video to 1468004352 bytes
Next job job1-1 is a video job. encoder commandline:
"C:\Programmi\x264\x264.exe" --pass 1 --bitrate 1174404 --stats "C:\Scambio\Elaborazione Video\Hana\Hana.stats" --analyse all --8x8dct --threads 2 --progress --no-psnr --output NUL "C:\Scambio\Elaborazione Video\Hana\Hana.avs"
successfully set up video encoder and callbacks for job job1-1
----------------------------------------------------------------------------------------------------------
Log for job job1-1
avis [error]: unsupported input format (DIB )
could not open input file 'C:\Scambio\Elaborazione Video\Hana\Hana.avs'
max-holz
22nd September 2005, 17:04
Also this script doesn't freeze MeGUI but the error reported is the same:
LoadPlugin("C:\Programmi\x264\DGDecode.dll")
LoadPlugin("C:\Programmi\x264\plugins\autocrop.dll")
LoadPlugin("C:\Programmi\x264\plugins\RemoveGrain.dll")
movie = mpeg2source("C:\Scambio\Elaborazione Video\Hana\agk_tmp\Hana.d2v")
cropclip = autocrop(movie,mode=0,wmultof=4,hmultof=4,samples=8000,aspect=0,threshold=34,samplestartframe=1,leftadd=0,rightadd=0,topadd=0,bottomadd=0)
fixed_aspect = 1.42222222222222
c_width = width(cropclip)
c_height = round(height(cropclip) / fixed_aspect)
input_par = float(c_width)/float(c_height)
input_par = (input_par > 1.4) || (input_par < 1.25) ? input_par : (4.0/3.0)
out_width = 704
out_height = round(float(out_width) / input_par)
hmod = out_height - (floor(out_height / 16 ) * 16)
out_height = (hmod > 4) ? (out_height + (16 - hmod)) : (out_height - hmod)
new_aspect = (float(out_width) / float(out_height)) / fixed_aspect
autocrop(movie,mode=0,wmultof=4,hmultof=4,samples=10,aspect=new_aspect,threshold=34,samplestartframe=1,leftadd=0,rightadd=0,topadd=0,bottomadd=0)
LanczosResize(out_width,out_height)
RemoveGrain(mode=2)
Doom9
22nd September 2005, 19:29
max, please search this thread for that error message..(yes, it's possible to search within a thread) and you'll find cause and what to do about it.
bob0r
22nd September 2005, 19:58
NAAC/FAAC option: Delay Correction
When i try to out -300 in thats not possible, the "-" can't be added.
Also when i type a lot of numbers in the delay box, or remove the 0, then megui gives some quit message
(too large or too small for an Int32) guess we need a box limit :)
max-holz
22nd September 2005, 20:17
max, please search this thread for that error message..(yes, it's possible to search within a thread) and you'll find cause and what to do about it.
I have resolved the problem, is an outdated version of autocrop dll.
I have one question about the autocrop, if I say to watch 8000 frames to determine the crop the application freeze (now I use 10 frames). Is it possible some workarounds about this problem in the next version?
Ciao
Doom9
22nd September 2005, 20:30
8000 frames is an awful lot.. I use 10 myself in megui (well, we use, since berrinam greatly improved upon my code and fixed some bugs, and the whole thing is based upon ideas taken from gknot), and I haven't had any complaints.
When i try to out -300 in thats not possible, the "-" can't be added.You're saying you didn't demux with dgindex? Why on earth not? If the delay's in the filename, it'll be picked up even when it's negative ;) And you're evil trying to make MeGUI crash. Admit it, your audio doesn't have the delay you typed in <grin>
bob0r
23rd September 2005, 01:18
@doom9:
cap MPA DELAY -300ms.mpa
When i typed i can't out, i meant i can't add :)
So i cant add negative values in delay for my audio encoding with megui-full.
I had to use belight, which delays and upsamples audio perfectly :goodpost:
And yes, i try everything in my power to break megui! :devil::D:devil::D
Doom9
23rd September 2005, 09:38
just load that file, the delay will automatically be filled in (yes, negative delays are supported, I've personally re-verified yesterday evening). That kinda takes the need to type in anything away, doesn't it?
locke86
23rd September 2005, 10:45
just load that file, the delay will automatically be filled in (yes, negative delays are supported, I've personally re-verified yesterday evening). That kinda takes the need to type in anything away, doesn't it?
is the delay taken in account when i just mux it using megui after encoding it with belight?
if so, is it possible to make it echo to the log that the delay is being taken care of? would help set my mind at ease
bob0r
23rd September 2005, 10:58
just load that file, the delay will automatically be filled in (yes, negative delays are supported, I've personally re-verified yesterday evening). That kinda takes the need to type in anything away, doesn't it?
Yeah that really is great!
But, sometimes there are reasons to manually alter the audio delay, like satellite glitches or other errors.
Maybe i should use the word please, but audio delay(positive/negative) and audio upsample/downsample really complete megui as a simple complete encoding gui!
AMED
23rd September 2005, 11:27
Is there any chance of implementing a force mono option for the audio output?
EDIT: I just tried using a mono WAV as the source audio, it still gets converted to 2 channels.
also on the automatic encoding window, could the file size box be in MB like how AutoGK does it's custom size, with up down arrows? http://img385.imageshack.us/img385/2672/clipboard018vo.png
Doom9
23rd September 2005, 12:06
is the delay taken in account when i just mux it using megui after encoding it with belight? No, there's no delay option for muxing.. the whole delay thing in muxing still seems somewhat problematic so the smart thing to do is to take the delay into account when encoding the audio and compensate for it.
but audio delay(positive/negative)that's just nasty coding. You realize what negative GUI entry means: instead of just allowing numbers, I have do do another character comparison, and if it's a minus, see if there's not one already and that the entry box currently is empty and then allow it, otherwise do not react. Certainly not impossible and no great achievement but ugly another ugly code bit just for the GUI, that I think I'll do, but after the current dgindex rework phase, and right now coding really isn't on my mind (I hurt my neck, not as bad to take painkillers all the time but the lingering pain makes it hard to concentrate)
audio upsample/downsampleI'll say it for the last time: over my dead body. So you better go looking for your gun now or abandon hope because this is one issue where I will certainly not budge.
Is there any chance of implementing a force mono option for the audio output?I think that's been asked and answered before.
also on the automatic encoding window, could the file size box be in MB like how AutoGK does it's custom size, with up down arrows?Certainly possible but what good would it do?
AMED
23rd September 2005, 12:11
Certainly possible but what good would it do?
make it easier for people who encode with sizes different to the ones that are pre set. i don't think anybody sets there encoding size down to the KB, correct me if i'm wrong.
Doom9
23rd September 2005, 12:26
i don't think anybody sets there encoding size down to the KB, correct me if i'm wrong.good point.. in the autoencoding scenario, KB does indeed seem to be rather redundant.. going down to KB only makes sense with later muxing in mind and since that's all done in MeGUI.. but is a numeric up/down really preferable over a simple textbox? It may have a disadvantage (that a developer can hide from you): you need to press enter after manually typing in something (to be verified)
AMED
23rd September 2005, 12:35
good point.. in the autoencoding scenario, KB does indeed seem to be rather redundant.. going down to KB only makes sense with later muxing in mind and since that's all done in MeGUI.. but is a numeric up/down really preferable over a simple textbox? It may have a disadvantage (that a developer can hide from you): you need to press enter after manually typing in something (to be verified)i personally wouldn't mind just a text box, what ever is easier for you to implement.
Sharktooth
23rd September 2005, 14:42
good point.. in the autoencoding scenario, KB does indeed seem to be rather redundant.. going down to KB only makes sense with later muxing in mind and since that's all done in MeGUI.. but is a numeric up/down really preferable over a simple textbox? It may have a disadvantage (that a developer can hide from you): you need to press enter after manually typing in something (to be verified)
You can get the control value when it looses the focus or when typing the value in the box or when clicking the up/down arrows or when clicking the "Encode" button... etc... it there's an incorrect value set, just popup a messagebox with an "incorrect filesize" warning or (better choice) keep the focus on that control (maybe changing the background color to red?) until a correct value is set...
wiak
26th September 2005, 05:11
dude can you make it so it supports x64? to?
64bit encoding is way faster than crapy old 32bit!
here is some 64bit builds by squid_80 (http://forum.doom9.org/member.php?userid=67865) :D
XviD:
http://home.iprimus.com.au/ajdunstan/xvid64.zip
avisynth 2.55
http://home.iprimus.com.au/ajdunstan/avisynth64.zip
dgdecode:
http://home.iprimus.com.au/ajdunstan/dgdecode64.zip
x264 VFW:
http://home.iprimus.com.au/ajdunstan/x264vfw64.zip
x264 CLI:
http://home.iprimus.com.au/ajdunstan/x264cli_x64.zip
decomb:
http://home.iprimus.com.au/ajdunstan/decomb.zip
huffyuv:
http://home.iprimus.com.au/ajdunstan/huffyuv64.zip
undot:
http://home.iprimus.com.au/ajdunstan/undot64.zip
berrinam
26th September 2005, 06:08
@wiak: Can't you simply replace the 32bit binaries with the 64bit binaries?
Doom9
26th September 2005, 08:13
exactly.. there would be no measurable gain in a 64 bit MeGUI build as all the processing is done in AviSynth & filters, DGIndex, mencoder and x264.exe.. those need to be 64 bit, not MeGUI. Launching a commandline program is exactly the same in 32 and 64 bit operating systems
wiak
27th September 2005, 04:27
avs won't open in MeGUI, its why its not 64bit
it opens in VirtualDub-AMD64 :/
jellysandwich
27th September 2005, 05:07
Is it intentional that you can continuously move files up a queue, but not down?
js
Doom9
27th September 2005, 09:27
hmm.. if AVIFile is different on Win64.. somebody with one installed will have to have a look. Until I upgrade, there's no way for me to even have a look at this now.
Is it intentional that you can continuously move files up a queue, but not down?Hmm.. works fine here... that is, the "keep item marked" functionality seems to work improperly so if you move up, it marks jobs that are sent down the line, and then when you do the inverse, it only goes one step down, then up again, etc. But if you select the job you want to move around, then press down, it works every time. I don't know why it marks other jobs that are being moved around (could it be a problem in the listview component?), but I know why moving down without selecting the job each time works the way it works: selectedItems[0] returns the first job from the top, so if your order is job2 job1, you select job2 and press down, then both are marked and the next time you press down, selectedItems[0] is job1, so pressing down again moves that one down, etc.
freshNewB
27th September 2005, 09:37
I like megui very much . but...
thanks to flashget!!
There are many times I try to minimize the window by clicking the "close" bottum = ="
The megui will thoughtfully ask me if I really want to quit the program
however, no matter what I choose the encoding progress will be aborted
I know that I can ignore the message box and wait the encoder to finish its job.
But by this way I can't do anything before the encoding progress finished
I think it is not a good idea.
Could megui change the "close" function to "minimize to tray icon".
In general,we do not need to monitor the encoding progress.
I think that add a function "minimize to tray icon" will be great.
Doom9
27th September 2005, 12:59
Well, the X button kinda has to close the app.. that's what the windows design guidelines say anyway and it's not a good idea to derive from that. And, there's one inactive button in between the minimize button and the close button, and I will not believe that anybody can accidentally hit the close button when he means to hit the minimize button. Those buttons are big. I realize that you can accidentally hit the button that's next to the one you mean to press, but there's at least 1 cm in between those, so if you accidentally hit the wrong button, I'm 150% convinced that you cannot properly work on any PC as you'll do this in tons of other programs, too.
There's in fact a but when clicking X in the main GUI.. it shouldn't abort if you say no to the question asked. And then there's the famous "minimize everything to try" function ;)
freshNewB
27th September 2005, 13:35
Well, the X button kinda has to close the app.. that's what the windows design guidelines say anyway and it's not a good idea to derive from that. And, there's one inactive button in between the minimize button and the close button, and I will not believe that anybody can accidentally hit the close button when he means to hit the minimize button. Those buttons are big. I realize that you can accidentally hit the button that's next to the one you mean to press, but there's at least 1 cm in between those, so if you accidentally hit the wrong button, I'm 150% convinced that you cannot properly work on any PC as you'll do this in tons of other programs, too.
You are right.
All I need is a "minimize everything as a tray icon" function.
It 's not important how I achieve this thing(by clicking X or a menu item).
There's in fact a but when clicking X in the main GUI.. it shouldn't abort if you say no to the question asked. And then there's the famous "minimize everything to try" function ;)
My English is not very good.
I could not understand if you mean that a bu"g" .
and did you mean that there will be such a function soon?
If it's true,I'll look forward to the next release of megui.
thank you very much. very very much.
Doom9
27th September 2005, 15:40
windows adds an icon "minimize every app to the try" to the quicklaunch bar.. it minimized every app you have running, so there's really no need for something like that in megui. Eventually I'll make the progress windows optional, but that's that.
celtic_druid
27th September 2005, 16:18
If you want to minimise everything, just press D + the windows key (shortcut for show desktop).
freshNewB
27th September 2005, 16:34
i mean that minimize the window to the "system tray" (or something near the clock)
not minimize to the task tray (or something that the D + the windows key does)
it is just a suggestion.
jellysandwich
28th September 2005, 13:57
Quick question: For automated 2 pass, by default, where is the 2pass.log file placed? I thought it was in the same directory as x264.exe, but it's not there. I then searched all of my harddrives for it, but it came up empty (r304)...
js
berrinam
28th September 2005, 14:07
0.2.2.5a 09/20/2005
...
changed: stats file are written to the directory of the source and named to correspond to the source they are fromThis means they are now named something like moviename.stats.log and are placed in the movie's directory.
Sharktooth
28th September 2005, 14:09
I'm a bit confused... why 0.2.2.5 is newer than 0.2.2.5a?
What's the newer version?
Doom9
28th September 2005, 14:29
in the 0.2.2.5 zip: megui.exe, dated September 20th, 21:14
in the 0.2.2.5a.zip: MeGUI.exe, dated September 21st, 22:21
It's as it should be, isn't it? The order in which the downloads are displayed in a post is dependant on when they've been added.. the oldest one is on top, the newest one at the bottom.
Sharktooth
28th September 2005, 14:53
0.2.2.5 09/21/2005
changed: dgindex demuxing now only demuxes the chosen audio tracks (unless you select demux all) - this may require an update of dgindex so check the requirements above
changed: the way dgindex is being run has been simplified, this could potentially help people who've been having problems with the indexing function (I know of two people to have reported this). If it doesn't work, please download debugview from sysinternals, and run it while running megui and post the logged output here.
0.2.2.5a 09/20/2005
new: intermediate files can be deleted automatically
new: output of aborted jobs can be deleted automatically
new: aac encoding using faac is now possible
well... as is said 0.2.2.5a is dated 20 sep 2005... while 0.2.2.5 is dated 21 sep 2005... something is wrong.
Doom9
28th September 2005, 15:19
well.. it's always better to look at the actual files than the changelog ;) since everything is compiled on the same machines, those dates are less prone to human error..
jellysandwich
28th September 2005, 18:37
Ahh, I see, thanks berrinam.
js
Kurtnoise
28th September 2005, 19:28
@Doom9 : which values do you use for overhead & interleaving concerning mp4 file in MeGUI ?
nightrhyme
29th September 2005, 03:18
OK I need some newbie help :confused:
Tried this app and have some problems:
1: Why isn't it possible to queue more than one vob in d2v creator ?
(well I just did it manually in DGIndex)
2: Avisynth Script Creator always shows movie preview as 4:3 or stretched no matter what DAR I choose.
Screenshot:
http://img252.imageshack.us/img252/8208/avisynthcreator3tu.th.jpg (http://img252.imageshack.us/my.php?image=avisynthcreator3tu.jpg)
3: It's pretty hard to find a good resize. You have to manually change vertical and horizontal res and preview. Wouldn't it be possible to make it something like GordianKnot with instant preview ?
Doom9
29th September 2005, 08:37
which values do you use for overhead & interleaving concerning mp4 file in MeGUI ?It's all in BitrateCalculator.cs ;) 4.3 bytes/frame without b-frames, 10.4 bytes/frame with b-frames. Since audio is in MP4 already, there's no overhead there and I'm ignoring the small size difference between srt and srts subs muxed into MP4. If you have a formula there, please let me know, likewise for raw aac versus aac in mp4 (in both cases, muxed into mp4 the files get smaller).
1: Why isn't it possible to queue more than one vob in d2v creator ?That was discussed in the development thread. Encoding has basically no postprocessing.. you just do the next job after the encoder/muxer has completed. indexing has tons of postprocessing, starting with force film, locating and loading demuxed audio files, opening the avisynth script creator (all that in the context of the dgindex creator), create audio jobs based on a previously known profile, create avisynth script on a previously known resolution preference (and whether or not you want to keep the original ar or go 1:1), create video and mux job on previously configured container selection, profile selection and desired output size, subtitle and chapter files (all that in the context of the one click creator). And that's a heck of a lot of things you'd have to attach to an index job to allow automatation. I'm working on it now, but it's a long and tedious process.
Avisynth Script Creator always shows movie preview as 4:3 or stretched no matter what DAR I choose. Not correct. You get to see what's there, always the native resolution of the content without any resizing according to AR flags. That's how dgindex does it, and that's how GKnot does it. If you want to see what you get, that's what the preview button in the AviSynth script creator is for ;)
It's pretty hard to find a good resize.Huh? You select your AR (it's even done automatically when DGIndex can detect it from the input scream), then a desired horizontal resolution, then you just have to press auto-crop, and suggest resolution, so basically the only thing you have to set your mind on is the final horizontal resolution. If there is anything wrong with these functions I just mentioned please let us know.
CEC
29th September 2005, 12:26
Does the --no-psnr switch affect quality?
nightrhyme
29th September 2005, 13:54
Thanks for reply Doom9 ;)
D2V Creator:
I'm not sure I understand all the reasons for not being able to load more than one Vob in D2V Creator. But it sure sounds complicated. Good luck with implementing that ;)
I'll just do it manually with DGIndex for now
Regarding Avisynth Script Creator: Yes I see it's the same as DGIndex. I guess I'm just spoiled by GordianKnot and the instant preview of my resize and PAR it offers.
Regarding Resize: I did see a problem with the suggested resolution. However I figured out I had to check SUGGEST RESOLUTION after Crop.
BTW. Why Isn't it possible to go higher than 720 horizontal ?
Should have been 640 x 272
http://img279.imageshack.us/img279/4668/meguiresize4oh.jpg
I never did say thanks for developing this nice gui :p
Doom9
29th September 2005, 15:20
I'm not sure I understand all the reasons for not being able to load more than one Vob in D2V Creator. Now wait, I think I meant something else. There's no need to select more than one VOB.. subsequent vobs are automatically taken into account (as in you select VTS_05_1.VOB, and the dgindex project will be done for VTS_05_1.VOB, VTS_05_2.VOB, etc).
Why Isn't it possible to go higher than 720 horizontal ?The limit is imposed after loading the source.. you cannot go higher than the source resolution, but if you were to load a HDTV source, you'd see that your maximal horizontal resolution is higher. It just doesn't make sense to go higher than the source.
Should have been 640 x 272Could you cut a couple minutes worth of that VOB and upload them someplace for analysis.. according to my calculations that should indeed be a 1:2.35 movie and thus the suggested vertical resolution should be 272. You took that screenshot after applying the proper procedure (auto-crop, then suggest resolution, correct?)
I guess I'm just spoiled by GordianKnot and the instant preview of my resize and PAR it offers.You have the instant preview of cropping as well.. the output resolution really doesn't do much so I don't see any sense in complicating things by dynamically stretching and resizing the dgindex project preview.
Doom9
29th September 2005, 15:21
Does the --no-psnr switch affect quality?the way I read it, x264.exe can compute the PSNR while encoding, but that's of informational nature only.. since those calculations will take a few CPU cycles, I deactivated them for more speed.
nightrhyme
29th September 2005, 17:09
Thanx again for reply Doom9 ;)
Ohh I see that's how D2V creator works :D Didn't know
Resolution: ok 720 is max for pal. I guess It's just me who likes upsizing a bit :)
Resizing: No the resizing function works correctly. The screenshot was taken without cropping before checking SUGGEST RESOLUTION.
locke86
1st October 2005, 08:03
i have some problems with the mkv muxing function once you hit AutoEncode
it gives me no option to select if my .aac is AAC+ ( i understand the option needs to be checked for proper muxing if your .aac is AAC+ )
also the vobsub muxing doesnt work for me.. whenever i select a .sub to mux into the mkv i get an error saying there's a command line error.. i do not get an option to select a .idx - however in mkvmerge gui i have to select the .idx and it works perfectly
Doom9
1st October 2005, 08:42
it gives me no option to select if my .aac is AAC+Well, since MeGUI can create AACs on its own, and always does so in an MP4 container where the HE (I think that's what you mean) marker is already set and can be taken into account by a muxer, it's really no necessity for me, just additional work. And considering that I support not one but two different AAC encoders, it's not so off base thinking that people should use MeGUI for audio encoding as well, or at least provide an MP4 if they want features a raw stream muxer cannot accomodate properly. Then there's the thing that most players can figure out the type of stream regardless of the flags.
also the vobsub muxing doesnt work for methere's no such feature. mp4box doesn't suport vobsub subtitles... there's a text based format that has the extension .sub, I don't recall it's name right now but that is what the muxer supports (it stems from mp4box'es limitations.. it may get vobsub support one day but right now we just don't know)
locke86
1st October 2005, 09:14
Well, since MeGUI can create AACs on its own, and always does so in an MP4 container where the HE (I think that's what you mean) marker is already set and can be taken into account by a muxer, it's really no necessity for me, just additional work. And considering that I support not one but two different AAC encoders, it's not so off base thinking that people should use MeGUI for audio encoding as well, or at least provide an MP4 if they want features a raw stream muxer cannot accomodate properly. Then there's the thing that most players can figure out the type of stream regardless of the flags.
there's no such feature. mp4box doesn't suport vobsub subtitles... there's a text based format that has the extension .sub, I don't recall it's name right now but that is what the muxer supports (it stems from mp4box'es limitations.. it may get vobsub support one day but right now we just don't know)
but i am using mkv not mp4.. mkv supports vobsub subtitles but i get an error while muxing
for the aac i use besweet with dimzon's winamp dlls.. dont like NAAC because it requires nero installed and i hear winamp's dlls provide better quality sound than FAAC
Doom9
1st October 2005, 09:33
but i am using mkv not mp4.. mkv supports vobsub subtitles but i get an error while muxingThat doesn't matter.. the Matroska muxer is based upon the MP4 muxer, and I'm afraid the MP4 featureset in a way dictates the rest. Perhaps if you would share the error you're getting, it could be fixed in a future release ;)
locke86
1st October 2005, 09:59
That doesn't matter.. the Matroska muxer is based upon the MP4 muxer, and I'm afraid the MP4 featureset in a way dictates the rest. Perhaps if you would share the error you're getting, it could be fixed in a future release ;)
ok i will.. in like 10 hours ;)
muxing the .mkv movie file with .aac audio and vobsubs works fine in mkvtoolnix gui though.. thats why i thought it should work in megui as well :)
locke86
2nd October 2005, 20:37
ok i will.. in like 10 hours ;)
muxing the .mkv movie file with .aac audio and vobsubs works fine in mkvtoolnix gui though.. thats why i thought it should work in megui as well :)
Error: 'D:\DVD\Projects\MOVIE_VTS_02_PGC1\MOVIE.sub': Error parsing a MPEG PS packet during the header reading phase. This stream seems to be badly damaged.
thats the error i get everytime i try to mux a .sub into an mkv with megui
Doom9
2nd October 2005, 21:18
however in mkvmerge gui i have to select the .idx and it works perfectlyand there's no option to select a .sub file?
locke86
2nd October 2005, 21:50
and there's no option to select a .sub file?
selection of the sub files is done in a dialog where you can browse for media files
i cant select a .sub file with 'all supported media files' in the dropdown menu for file types but if i switch to 'all files' it is possible to select a .sub
i havent tried if it works though.. all i know is that .sub muxing in megui doesnt work right and if i select .idx in mkvtoolnix it works fine
Doom9
2nd October 2005, 22:06
i havent tried if it works though.Could you give it a shot please?
dbzgundam
3rd October 2005, 03:50
I'm having a problem it seems, with MeGUI... Originally I thought it was a .NET problem
http://x1.putfile.com/10/27420491042.gif
Any causes, solutions?
berrinam
3rd October 2005, 04:05
Not much information, dbzgundam. Perhaps you are running .NET 2? Otherwise, please explain when and how you get this error (eg, when you start the program, or when you press encode, etc).
dbzgundam
3rd October 2005, 04:29
Not much information, dbzgundam. Perhaps you are running .NET 2? Otherwise, please explain when and how you get this error (eg, when you start the program, or when you press encode, etc).
Ahh, sorry.
No... I simply have to execute the program. >> And, no, I have 1.1. In fact, I reinstalled it (twice) to make sure, but no-go.
movax
3rd October 2005, 05:22
Sorry for the obvious question, but any recent system changes/program installation?
locke86
3rd October 2005, 09:49
i tried out muxing .sub into .mkv and this is what i got
http://img291.imageshack.us/img291/739/error8ir.th.gif (http://img291.imageshack.us/my.php?image=error8ir.gif)
dimzon
3rd October 2005, 10:46
Seems like MeGUI trying to read "jobs" folder from current directory (not executable directory)
Doom9
3rd October 2005, 11:12
@locke86: thanks for testing. I suppose the fix will be to simply disallow .sub input and enable .idx subtitle input instead. I'll put that into the next build but I have no release date yet as I'm completely restructuring the dgindex part to allow queueing of multiple one click jobs.
dbzgundam
3rd October 2005, 14:12
Sorry for the obvious question, but any recent system changes/program installation?
Reinstallation of drivers for my mobo, GPU, LAN, and Sound (LAN and Sound are onboard if that matters)... Never caused me a problem before.
Doom9
4th October 2005, 14:58
Seems like MeGUI trying to read "jobs" folder from current directory (not executable directory)Well, according to the .NET class library, Environment.CurrentDirectory points to the directory where the process was started from. So, as far as the megui.exe process is concerned, that's the program directory.
stax76
4th October 2005, 17:33
Well, according to the .NET class library, Environment.CurrentDirectory points to the directory where the process was started from. So, as far as the megui.exe process is concerned, that's the program directory.
IMHO working dir can get you easily into trouble, I always try not to work with it. In fact I've never used it, couldn't even remember this property though I'm confident once I came across.
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpref/html/frlrfSystemWindowsFormsApplicationClassStartupPathTopic.asp
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpref/html/frlrfSystemEnvironmentClassCurrentDirectoryTopic.asp
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpref/html/frlrfsystemwindowsformsapplicationclassexecutablepathtopic.asp
Doom9
4th October 2005, 20:03
well, I'm only reading, not writing, and so far I have yet to see any evidence that it would cause any problems. After all, I'm reading this when generating the main class so I have a hard time anybody could change this, and even if it could be changed, at the point where I make note of it. Loading, saving and deleting is all based on my stored string, not getting the directory from the property again.
FSB-SPY
6th October 2005, 00:19
Okay, just went through 24+ pages of posts in hopes of making it fully clear on how to use this, to no avail...
lol (meaning, please don't scream or post little smiley faces that hold up the sign "SEARCH!")
1. Downloaded latest 315 build of x264
2. Downloaded AviSynth
3. Downloaded DGIndex
4. Downloaded MP4Box
5. Placed all into same directory
6. Write a totally basic AVS loading script off a created d2v project file:
# PLUGINS
LoadPlugin("F:\Apps\x264\DGDecode.dll")
# SOURCE
mpeg2source("F:\here\driven.d2v")
7. I can do everything (set-up codec, matrices, etc), but the pulldown box for Video Profile is empty, and I am guessing this is the problem. Hitting queue and then starting the job does nothing, it does not go anywhere obviously.
P.S. Someone posted a nice screen of the crop by pixel, etc options screen, I have no idea how to get there... but I am assuming this is the next step that I am failing to achieve. :P
P.P.S. Don't attack me too hard! :P
stax76
6th October 2005, 00:28
well, I'm only reading, not writing, and so far I have yet to see any evidence that it would cause any problems. After all, I'm reading this when generating the main class so I have a hard time anybody could change this, and even if it could be changed, at the point where I make note of it. Loading, saving and deleting is all based on my stored string, not getting the directory from the property again.
it's easily possible to launch the process in a working dir different from the startup dir e.g. from a shortcut or some other shell methods, some users have a real talent to screw things up ;)
Doom9
6th October 2005, 08:57
well.. I tried the shortcut but the jobs were still being loaded. Obviously it's easy to change but before I do, I really want to know in which situation the CurrentDirectory doesn't do its job.
but the pulldown box for Video Profile is empty,That's normal.. you need to go into the codec configuration, type a profile name and press the new button to create a profile.. But you can encode without a profile. Which queue button did you press? the one in the main GUI, Input tab in the video section? And there must be some entries in the log regardless of whether the job starts or not as the first thing is done before encoding starts is dumping the commandline used to the log, so where is your log?
Also, for cropping you don't need an AviSynth script.. you need to launch the AviSynth script creator, load your d2v file and do all the cropping and resizing and save the script file. This also requires your dgdecode.dll in the AviSynth plugin path as the readme states.
Sharktooth
6th October 2005, 13:50
@Doom9: Since i have really no time, could you please post the MeGUI-x264 2.2.6 binaries too?
Doom9
6th October 2005, 14:26
I will.. I basically got in the door this morning, had to answer a few voicemails and had a meeting right away so I only managed to post the full version. Now I'm at home with the flu :(
Sharktooth
6th October 2005, 14:46
Damn flu... sorry to bother you:(
FSB-SPY
6th October 2005, 17:54
@Doom9:
Alright! Now I see where the innitial confusion came from. I had previously been only using the x264 build of MeGUI, so it's no wonder I did not know where the AviSynth Script Creator was, etc. ;)
So here is my run-down with MeGUI 0.2.2.6:
I wanted to keep it really simple, and not even resize the video (from standard 720x480). Just crop the blackbars. So I check the "Crop" box, and un-grey the four field boxes of how many pixels I wish to crop vertically and horizontally. But, as soon as I try to change a value from 0, it gives me an error:
************** Exception Text **************
System.NullReferenceException: Object reference not set to an instance of an object.
Hitting AutoCrop, produces the same exact error.
So, I thought, ok... a bug for the time being. I can crop manually, via the AviSynth command Crop, right?
I had come up with a simple script line to get rid of the black bars manually: "Crop(0, 58, 0, -64)"
Hitting preview verifies it looks right, and I can see the video playing back just fine. So I hit Save, name the file and presto, I finally have made progress and have my AVS script ready to go. Time to encode!
Load my AviSynth Script, Video Output defined as an MP4 file, and then hit the Queue button. Click the Queue tab, and then hit Start. Nothing is happening... it is not processing any frames. :(
Next job job1-1 is a video job. encoder commandline:
"x264.exe" --pass 1 --bitrate 700 --stats "G:\Movies\Ripz\Ripz.Driven\preview.stats" --subme 6 --analyse all --8x8dct --progress --no-psnr --output NUL "G:\Movies\Ripz\Ripz.Driven\preview.avs"
successfully set up video encoder and callbacks for job job1-1
Job aborted, deleting output file...Deletion failed.
I even tried to use the most simple AVS, just the one that loads the d2v file and nothing else. Same result.
For the codec settings, I have all the macroblocks options checked, automatic 2-pass, and 6-RDO selected. I wanted the best possible quality, and did not care about encoding speed.
Any ideas? I feel so close, yet so far away. ;)
kurt
6th October 2005, 18:02
@FSB-SPY: did you set x264 as encoder? and place the x264.exe in the MeGUI-Folder?
FSB-SPY
6th October 2005, 18:20
Yep! They're all in the same folder... here's a picture, just in case:
dimzon
6th October 2005, 18:47
just a little suggestion for automatic huffyuv encoding support for slow avs scripts.
the idea is to automate such 3-pass encoding process
1 pass - encode provided AVS to HUFFYUV using mencoder
2 pass - first x264 pass using encoded losless video as input
3 pass - second x264 pass using encoded losless video as input
e.t.c.
Doom9
7th October 2005, 14:25
So I check the "Crop" box, and un-grey the four field boxes of how many pixels I wish to crop vertically and horizontally. But, as soon as I try to change a value from 0, it gives me an error:Did you load your d2v file and do you have a properly working preview of the video? the only reason I can imagine for you getting that error is that the script wasn't properly loaded.. then the image you're trying to crop is null and you get that error.
As far as encoding goes, the only way a statusupdate has the aborted flag set is if somebody presses the abort button. So I figure after waiting you pressed abort. Now your settings.. starts with the default values please.. always backtrack to something known to be working. Also, just in case configure the path to x264.exe (I don't know how you launch megui.. stax mentioned users can mess up paths and so perhaps x264 is actually not found for some wicked reason). Then go to the commandline and run that commandline and see if something happens.
@dimzon: and what about the 80 or so gigs that takes?
fight2win
7th October 2005, 20:55
can i use fielddeinterlace(full=false) in my avs script for use with x264 encoding?
dbzgundam
8th October 2005, 05:11
Still no luck with MeGUI over here... :(
I've done numerous uninstalls/reinstalls of the .NET Framework 1.1 but still nothing...
fight2win
8th October 2005, 07:18
dbzgundam, just use nero 7/recode, it has got awesome avc quality, no .net required, pm me for more details!
and yeah, why the friggin' hell no one answers my questions, are not not senseful mucho?
stax76
8th October 2005, 10:47
I've seen such weird dbzgundam screenshots from many DVX users over the years, that kind of stuff is hard to track. I would suspect it's related to how the application is launched and where it is located (network etc. cause such errors). Good look, if it cannot be solved I'll dig up my forum for those old topics regarding such issues.
dbzgundam
8th October 2005, 17:00
dbzgundam, just use nero 7/recode, it has got awesome avc quality, no .net required, pm me for more details!
and yeah, why the friggin' hell no one answers my questions, are not not senseful mucho?
Not all of us have money right now. :(
haubrija
8th October 2005, 20:59
Doom9,
I'm having an issue with encoding my HD caputres to Xvid using MeGui... First, here's my log:
Generating jobs. Desired size: 2398131200 bytes
Encoded audio file is present: D:\capture.ac3 It has a size of 116818944 bytes.
No audio encoding. Calculating desired video bitrate directly.
Setting video bitrate for the video jobs to 7498 kbit/s
Setting desired size of video to -2013655040 bytes
Next job job1-1 is a video job. encoder commandline:
"C:\MP4 Encoding\Mplayer\mencoder.exe" "D:\1.avs" -ovc xvid -o NUL: -passlogfile "2pass.log" -xvidencopts pass=1:bitrate=7498:max_key_interval=300:vhq=4:qpel:chroma_me:quant_type=mpeg:par=ntsc169:trellis:keyframe_boost=100:kfthreshold=1:kfreduction=20:overflow_control_strength=20:max_overflow_improvement=20:max_overflow_degradation=20
successfully set up video encoder and callbacks for job job1-1
----------------------------------------------------------------------------------------------------------
Log for job job1-1
xvid: bitrate setting is ignored during first pass
----------------------------------------------------------------------------------------------------------
job job1-1 has been processed. This job is linked to the next job: job1-2
Next job job1-2 is a video job. encoder commandline:
"C:\MP4 Encoding\Mplayer\mencoder.exe" "D:\1.avs" -ovc xvid -passlogfile "2pass.log" -xvidencopts pass=2:bitrate=7498:max_key_interval=300:vhq=4:qpel:chroma_me:quant_type=mpeg:par=ntsc169:trellis:keyframe_boost=100:kfthreshold=1:kfreduction=20:overflow_control_strength=20:max_overflow_improvement=20:max_overflow_degradation=20 -o "D:\1.avi" -of avi -ffourcc XVID
successfully set up video encoder and callbacks for job job1-2
----------------------------------------------------------------------------------------------------------
Log for job job1-2
desired video bitrate of this job: 7498 kbit/s - obtained video bitrate: 6251.28895217316 kbit/s
----------------------------------------------------------------------------------------------------------
job job1-2 has been processed. This job is linked to the next job: job1-3
Next job job1-3 is a mux job. mp4box commandline:
"C:\MP4 Encoding\Mplayer\mencoder.exe" "D:\1.avi" -ovc copy -oac copy -audiofile "D:\capture.ac3" -mc 0 -noskip -o "D:\\1-muxed.avi"
successfully set up muxer and callbacks for job job1-3
----------------------------------------------------------------------------------------------------------
Log for job job1-3
MEncoder dev-CVS-050813-01:18-3.4.4 (C) 2000-2005 MPlayer Team
CPU: Advanced Micro Devices Athlon MP/XP/XP-M Barton (Family: 6, Stepping: 0)
Detected cache-line size is 64 bytes
CPUflags: Type: 6 MMX: 1 MMX2: 1 3DNow: 1 3DNow2: 1 SSE: 0 SSE2: 0
Compiled for x86 CPU with extensions: MMX MMX2 3DNow 3DNowEx SSE
86 audio & 201 video codecs
success: format: 0 data: 0x0 - 0x715a4032
AVI file format detected.
AVI: ODML: Building odml index (1 superindexchunks)
AVI_NI: No audio stream found -> no sound.
VIDEO: [XVID] 1280x720 12bpp 23.976 fps 6246.5 kbps (762.5 kbyte/s)
VIDEO: [XVID] 1280x720 12bpp 23.976 fps 6246.5 kbps (762.5 kbyte/s)
libavformat file format detected.
[V] filefmt:65536 fourcc:0x44495658 size:1280x720 fps:23.98 ftime:=0.0417
videocodec: framecopy (1280x720 12bpp fourcc=44495658)
Building audio filter chain for 0Hz/0ch/s16le -> 0Hz/0ch/??...
audiocodec: framecopy (format=2000 chans=0 rate=0 bits=0 bps=0 sample-0)
Writing AVI header...
ODML: Aspect information not (yet?) available or unspecified, not writing vprp header.
ODML: Aspect information not (yet?) available or unspecified, not writing vprp header.
File not found: 'frameno.avi'
Failed to open frameno.avi
----------------------------------------------------------------------------------------------------------
Just to give u my exact procedure.
1. Capture .ts stream using MyHD.
2. Cut commercials using HDTV2MPEG2 and save back to .ts.
3. Demux .ts through Projectx.
4. Index using DGIndex 1.21.
5. Create Avisynth Script using MeGui... Script below
mpeg2source("D:\1.d2v")
SelectEven()
Decimate(cycle=5)
6. Load avs into MeGui for Automated 2pass with Turbo Checked, 2 bframes, Qpel, Overflows set to 20, VHQ 4, VHQ for B Checked, Chroma Motion, Closed GOP.
7. Hit Auto Encode, setting my desired bitrate manually. Check add audio stream and then add the ac3 that ProjectX created.
8. Go to Jobs and Start.
Now the 1st and 2nd Pass seem to go fine. But it crashes at the mux stage. When I open up the resulting .avi that MeGui had created in VirtualdubMod, I get Video Read Errors and no frames are displayed.
I've done dvd encodes using Xvid in MeGui with no problem. But I've tried two HD encodes with the same result. Is there a flaw in my procedure or did I uncover a bug? Thanks for any help.
btw... using MeGui 0.2.2.4... haven't gotten around to upgrading yet but it doesn't seem as if you've changed anything that would affect my problem.
berrinam
9th October 2005, 01:08
"D:\\1-muxed.avi"
From your log, it seems that this filename was suggested by the AutoEncode window. It isn't valid, and I'm guessing that that is what caused the problems. It seems that this illegal file is being suggested when the folder it is in is the root directory. You have two options for a temporary fix:
-override the output MeGUI suggests when you press AutoEncode, or
-don't encode in a root directory.
The bug should hopefully be fixed next version.
haubrija
9th October 2005, 01:18
From your log, it seems that this filename was suggested by the AutoEncode window. It isn't valid, and I'm guessing that that is what caused the problems. It seems that this illegal file is being suggested when the folder it is in is the root directory. You have two options for a temporary fix:
-override the output MeGUI suggests when you press AutoEncode, or
-don't encode in a root directory.
The bug should hopefully be fixed next version.
Thanks for the reply berrinam. But, if I understand you correctly, that the reason MeGui hung upon mux. However, shouldn't the video file (without the audio obviously) that MeGui encoded still be valid? why would it have all the video errors? Upon opening the file in Zoomplayer, the video just sits there at 0:00 and never moves. And like I said above, opening the file in Virtualdubmod just leads to video decode errors. Are these problems two different things or one in the same?
The main reason I ask is because, I'll run my encode again, but like I said its an HD file and I don't want to occupy my computer for 18hours if I don't have to :)
berrinam
9th October 2005, 01:46
Thanks for the reply berrinam. But, if I understand you correctly, that the reason MeGui hung upon mux. However, shouldn't the video file (without the audio obviously) that MeGui encoded still be valid?
Sorry, I didn't realise that the video file was also invalid. I don't know what the problem there is. From what you said in your previous post, MeGUI claims to be fine after the 2nd pass. The log doesn't indicate any failure either, so I'm not sure what is going on. Perhaps you should cut a few minute sample from your video and try re-encoding with that, to see whether it works or not.
berrinam
9th October 2005, 01:50
Setting desired size of video to -2013655040 bytes
There also seems to be something up with this, but according to log it didn't affect anything else.
haubrija
9th October 2005, 02:34
Just wanted to report back on some further testing.
I ran ProjectX on the source again, but only processed 17 second of the file. Created my .d2v on the file and set up the same script as outline above. Added my audio stream also as outlined above and started my queue. I followed Berrinam's advice and saved the output to a different directory.
This time the video output came out clean so Berrinam's quick workaround seems to have solved that problem. However, the muxing stage still did not work. Here's the log for that part of the job.
----------------------------------------------------------------------------------------------------------
job job1-2 has been processed. This job is linked to the next job: job1-3
Next job job1-3 is a mux job. mp4box commandline:
"C:\MP4 Encoding\Mplayer\mencoder.exe" "D:\Test\video.avi" -ovc copy -oac copy -audiofile "D:\capture.ac3" -mc 0 -noskip -o "D:\debug.avi"
successfully set up muxer and callbacks for job job1-3
----------------------------------------------------------------------------------------------------------
Log for job job1-3
MEncoder dev-CVS-050813-01:18-3.4.4 (C) 2000-2005 MPlayer Team
CPU: Advanced Micro Devices Athlon MP/XP/XP-M Barton (Family: 6, Stepping: 0)
Detected cache-line size is 64 bytes
CPUflags: Type: 6 MMX: 1 MMX2: 1 3DNow: 1 3DNow2: 1 SSE: 0 SSE2: 0
Compiled for x86 CPU with extensions: MMX MMX2 3DNow 3DNowEx SSE
86 audio & 201 video codecs
success: format: 0 data: 0x0 - 0xfa078a
AVI file format detected.
AVI_NI: No audio stream found -> no sound.
VIDEO: [XVID] 1280x720 12bpp 23.976 fps 7476.6 kbps (912.7 kbyte/s)
VIDEO: [XVID] 1280x720 12bpp 23.976 fps 7476.6 kbps (912.7 kbyte/s)
libavformat file format detected.
libavformat file format detected.
[V] filefmt:3 fourcc:0x44495658 size:1280x720 fps:23.98 ftime:=0.0417
videocodec: framecopy (1280x720 12bpp fourcc=44495658)
Writing AVI header...
ODML: Aspect information not (yet?) available or unspecified, not writing vprp header.
ODML: Aspect information not (yet?) available or unspecified, not writing vprp header.
Writing AVI index...
Fixing AVI header...
ODML: Aspect information not (yet?) available or unspecified, not writing vprp header.
Video stream: 7476.642 kbit/s (934580 bps) size: 16371526 bytes 17.518 secs 420 frames
----------------------------------------------------------------------------------------------------------
it shows my .ac3 in the commandline but then later says no audio stream found. Mencoder can mux .ac3 streams right? I successfully muxed the stream using Virtualdub mod. So avi muxing is still an issue for me.
haubrija
9th October 2005, 02:44
Just noticed something while looking for something else on the forums.
Could this be my problem on the video end?
http://forum.doom9.org/showthread.php?t=101079
Is that a known issue? My resulting file from my first encode was 1.78 gb.
dbzgundam
10th October 2005, 03:07
Hmm... Is there a registry setting that .NET is not installing perhaps? When I uninstalled the package, nothing actually changed; same error as before. Could this mean the .NET package isn't even being recognized?
dimzon
10th October 2005, 11:22
@dimzon: and what about the 80 or so gigs that takes?
1) This must be optional feature!
2) I have enought HDD space for it :)
leowai
11th October 2005, 06:23
As a request from this post:
http://forum.doom9.org/showthread.php?p=722438#post722438
Yes that was the problem. I think this is very confusing for newbie's like myself. I wish this was made clear in a sticky somewhere.
Would it be nice to made this thread sticky on the AVC main page? Even this thread is linked from Sharktooth daily build, but not many newbies are able to caught this lovely GUI prog from there.
fight2win
11th October 2005, 10:56
get nero 7 from any warez site dude!
sjchmura
12th October 2005, 03:26
So when using the MP4MUX and besweet (to make AAC+AVC) the DELAY -922 SHOULD work - right??? That means it will make the audio start sooner?
This is wrong on my HDTV OTA transport streams. Can I just adjust this by renaming the AAC/MP4 audio file to -0ms???
berrinam
12th October 2005, 08:52
@sjchmura: Please be more clear. You haven't said what is wrong with the delay (whether it is changing at all, being removed, overcompensated, etc), and more importantly, you haven't said what you did which resulted in it not working
As a side note, MeGUI handles delays by fixing them upon encoding the audio. If you didn't set the delay when you encoded the audio, then I believe it won't work.
haubrija
12th October 2005, 18:07
So when using the MP4MUX and besweet (to make AAC+AVC) the DELAY -922 SHOULD work - right??? That means it will make the audio start sooner?
This is wrong on my HDTV OTA transport streams. Can I just adjust this by renaming the AAC/MP4 audio file to -0ms???
sjchmura, for HDTV OTA streams, you should really demux them first using ProjectX... this will give you the best streams and fix any problems you have with audio delay.
zajc
13th October 2005, 13:24
Moving post to http://forum.doom9.org/showpost.php?p=723496&postcount=371
:cool:
max-holz
14th October 2005, 17:36
I have an issue using AutoEncode button since version 0.2.2.6
Generating jobs. Desired size: 1433600 bytes
The second pass job has a desired final output size of 1433600 bytes
and video bitrate of 1637 kbit/s
The size of the first audio track is 135051582 bytes
Desired video size after substracting audio size is -132172
Setting the desired bitrate of the subsequent video jobs to -163 kbit/s
Next job job1-2 is a video job.
encoder commandline: "C:\Programmi\x264\x264.exe" --pass 1 --bitrate -163
--stats "C:\Scambio\Elaborazione Video\Febbre\Febbre_movie.stats"
--ref 5 --mixed-refs --bframes 3 --subme 6 --weightb --analyse all
--8x8dct --me umh --threads 2 --cqmfile "C:\Programmi\x264\eqm_avc_hr.cfg"
--progress --no-psnr --output NUL "C:\Scambio\Elaborazione Video\Febbre\Febbre_movie.avs"
successfully set up video encoder and callbacks for job job1-2
I set the final file size to 1400 MB and the audio track size after compression is 128 MB; I think there is a problem substracting the audio file size to the deisred final file size and this causes the application setting a negative bitrate for the encoding.
berrinam
15th October 2005, 01:11
The fix to the bug max-holz mentioned can be found here (http://forum.doom9.org/showthread.php?p=724251#post724251).
max-holz
15th October 2005, 14:26
Perhaps I have founded another bug; in the audio encoder configuration it seems to be impossible setting a negative value in the delay correction textbox. I suppose that this textbox has a pattern that accept only numeric values but in this case is not possible to digit the sign minus.
stratocaster
15th October 2005, 19:25
Hi,
Am I missing something or it's just MeGUI's rendered H264 files that are NOT COMPATIBLE with QuickTime7 ?
I simply can't play any of the rendered MP4[H.264,AAC] on QuickTime.
Please try to give me some hints, thxs a lot.
Sharktooth
15th October 2005, 19:38
It's not megui and neither x264/h.264 etc...
It's QuickTime fault, coz it doesnt follow the standards.
Liisachan
15th October 2005, 20:38
QuickTime doesn't like some of High Profile things. Try Config->Main->AVC Profiles->Main Profile.
Furthermore, QuickTime doesn't like MPEG-2 AAC (this problem was in QT6 and apparently not fixed in QT7). If you use psytel/faac/foobar2000 and get .aac file. it's not MPEG-4 AAC but MPEG-2 AAC by default. If you are using faac, make sure to output in .mp4 or, if you have to output in .aac for some reason, use "--mpeg-vers 4" to make QT happy.
stratocaster
15th October 2005, 20:56
QuickTime doesn't like some of High Profile things. Try Config->Main->AVC Profiles->Main Profile.
Furthermore, QuickTime doesn't like MPEG-2 AAC (this problem was in QT6 and apparently not fixed in QT7). If you use psytel/faac/foobar2000 and get .aac file. it's not MPEG-4 AAC but MPEG-2 AAC by default. If you are using faac, make sure to output in .mp4 or, if you have to output in .aac for some reason, use "--mpeg-vers 4" to make QT happy.
Thank you guys for replying.
As for the hints you gave me Liisachan, does it mean than I could manage somehow to make an MP4[H.264, AAC] file rendered by meGUI playable on QuickTime an on the new iPod ? or I must simply forget it as mentioned by Sharktooth?
Liisachan
15th October 2005, 21:09
you can. try "Config->Main->AVC Profiles->Main Profile" in megui (x264)
Doom9
16th October 2005, 16:14
Perhaps I have founded another bug; in the audio encoder configuration it seems to be impossible setting a negative value in the delay correction textbox. I suppose that this textbox has a pattern that accept only numeric values but in this case is not possible to digit the sign minus.It's not a bug, it's a feature in a way.. standard textboxes allow any kind of input, I limited it to numeric input only. I'm not much a fan of entering the delays in the first place but a big believer into dgindex's naming scheme that contains the delay.. if you have such a file, even if the delay is negative, it's being properly picked up.
I just got back from my holiday and need to get over the jetlag and lack of sleep first, but for now I have approved berrinam's bugfix build in the development thread: http://forum.doom9.org/showthread.php?t=95863&page=19&pp=20
I'm sorry I disappeared so quickly, but 1.5 days before the start of my holidays I got sick and thus couldn't take proper care of all the details that needed to be taken care of for my absence :/
ChronoCross
16th October 2005, 19:32
I'm not sure if this is a bug or it's already been reported but if you use the X button to close MeGUI after your queue is clear(finished encoding not the clear button) when you reload MeGUI those jobs reappear. If you go to file Exit this does not occur.
haubrija
16th October 2005, 20:40
I finally got around to upgrading to 0.2.2.6 last nite and the latest build of x264. Set up my normal 2 pass mode, doing an auto encode for 1/5 DVD size. My final file however ended up being a 328mb file. Looking through the log, there seems to be some weird oddities (at least to my untrained eye :))
Generating jobs. Desired size: 901120 bytes
Setting desired size of video to 901120 bytes
Generating jobs. Desired size: 901120 bytes
Setting desired size of video to 901120 bytes
Generating jobs. Desired size: 716800 bytes
Setting desired size of video to 716800 bytes
Next job job1-1 is an audio job. besweet commandline:
"C:\MP4 Encoding\BeSweetv1.5b29\besweet.exe" -core( -input "D:\PS\1 AC3 T01 3_2ch 448Kbps DELAY 0ms.ac3" -output "D:\PS\audio.mp4" -logfile D:\PS\audio.besweet.log ) -azid( -c normal ) -bsn( -6chnew -vbr_extreme -codecquality_high -aacprofile_he ) -ota( -d 0 -g max )
successfully set up audio encoder and callbacks for job job1-1
----------------------------------------------------------------------------------------------------------
Log for job job1-1
besweet: "C:\MP4 Encoding\BeSweetv1.5b29\besweet.exe" -core( -input "D:\PS\1 AC3 T01 3_2ch 448Kbps DELAY 0ms.ac3" -output "D:\PS\audio.mp4" -logfile D:\PS\audio.besweet.log ) -azid( -c normal ) -bsn( -6chnew -vbr_extreme -codecquality_high -aacprofile_he ) -ota( -d 0 -g max )
BeSweet v1.5b30 by DSPguru.
--------------------------
[00:00:00:000] Initializing...
[00:00:00:000] -- Initializing...
[01:39:32:128] |
SR: 48000, Table idx: 4 - start 13, stop 10
SR: 48000, Table idx: 4 - start 13, stop 10
SR: 48000, Table idx: 4 - start 13, stop 10
SR: 48000, Table idx: 4 - start 13, stop 10
SR: 48000, Table idx: 4 - start 13, stop 10
SR: 48000, Table idx: 4 - start 13, stop 10
[01:39:32:128] Finalizing...
[01:39:32:128] Conversion Completed !
Visit DSPguru's Homepage at :
http://DSPguru.doom9.net/
----------------------------------------------------------------------------------------------------------
job job1-1 has been processed. This job is linked to the next job: job1-2
this series of jobs starts with an audio job and is followed by regular twopass video jobs
The audio job is named job1-1 the first pass job1-2 and the second pass job1-3
The second pass job has a desired final output size of 901120 bytes and video bitrate of 700 kbit/s
The size of the first audio track is 195056554 bytes
Desired video size after substracting audio size is -191059Setting the desired bitrate of the subsequent video jobs to -262 kbit/s
Next job job1-2 is a video job. encoder commandline:
"C:\MP4 Encoding\x264.exe" --pass 1 --bitrate -262 --stats "D:\PS\1.stats" --bframes 2 --no-b-adapt --b-pyramid --subme 1 --weightb --analyse none --qpstep 1 --me dia --progress --no-psnr --output NUL "D:\PS\1.avs"
successfully set up video encoder and callbacks for job job1-2
----------------------------------------------------------------------------------------------------------
Log for job job1-2
avis [info]: 688x368 @ 23.98 fps (143188 frames)
x264 [info]: using cpu capabilities MMX MMXEXT SSE 3DNow!
x264 [info]: slice I:920 Avg QP:10.01 size: 55101
x264 [info]: slice P:48241 Avg QP:10.00 size: 37746
x264 [info]: slice B:94027 Avg QP:11.50 size: 19958
x264 [info]: mb I I16..4: 25.1% 0.0% 74.9%
x264 [info]: mb P I16..4: 23.4% 0.0% 0.0% P16..4: 73.6% 0.0% 0.0% 0.0% 0.0% skip: 3.1%
x264 [info]: mb B I16..4: 9.1% 0.0% 0.0% B16..8: 53.7% 0.0% 0.0% direct:33.2% skip: 4.1%
x264 [info]: kb/s:5021.0
Actual bitrate after encoding without container overhead: 125055.23
----------------------------------------------------------------------------------------------------------
job job1-2 has been processed. This job is linked to the next job: job1-3
Next job job1-3 is a video job. encoder commandline:
"C:\MP4 Encoding\x264.exe" --pass 2 --bitrate -262 --stats "D:\PS\1.stats" --ref 4 --bframes 2 --no-b-adapt --b-pyramid --subme 6 --weightb --analyse all --8x8dct --qpstep 1 --progress --no-psnr --output "D:\PS\VIDEO.mp4" "D:\PS\1.avs"
successfully set up video encoder and callbacks for job job1-3
----------------------------------------------------------------------------------------------------------
Log for job job1-3
avis [info]: 688x368 @ 23.98 fps (143188 frames)
x264 [info]: using cpu capabilities MMX MMXEXT SSE 3DNow!
mp4 [info]: initial delay 250 (scale 2997)
x264 [info]: slice I:920 Avg QP:22.95 size: 10080
x264 [info]: slice P:48241 Avg QP:25.75 size: 1694
x264 [info]: slice B:94027 Avg QP:27.46 size: 515
x264 [info]: mb I I16..4: 33.9% 55.6% 10.5%
x264 [info]: mb P I16..4: 4.5% 4.7% 0.5% P16..4: 26.1% 3.4% 0.8% 0.1% 0.0% skip:59.9%
x264 [info]: mb B I16..4: 0.4% 0.8% 0.1% B16..8: 14.8% 0.4% 0.4% direct: 0.8% skip:82.2%
x264 [info]: 8x8 transform intra:51.2% inter:51.3%
x264 [info]: ref P 64.4% 17.0% 13.7% 4.9%
x264 [info]: ref B 73.3% 14.3% 8.3% 4.1%
x264 [info]: kb/s:186.8
Actual bitrate after encoding without container overhead: 4655.03
desired video bitrate of this job: -262 kbit/s - obtained video bitrate: 189.230153687069 kbit/s
----------------------------------------------------------------------------------------------------------
job job1-3 has been processed. This job is linked to the next job: job1-4
Next job job1-4 is a mux job. mp4box commandline:
"C:\MP4 Encoding\mp4box.exe" -add "D:\PS\VIDEO.mp4" -add "D:\PS\audio.mp4" -chap "D:\PS\VIDEO_TS\VTS_01 - Chapter Information - OGG.txt" -fps 23.976 -new "D:\PS\PS.mp4"
successfully set up muxer and callbacks for job job1-4
----------------------------------------------------------------------------------------------------------
Log for job job1-4
IsoMedia import - track ID 1 - Video (size 688 x 368)
IsoMedia import - track ID 1 - Audio (SR 48000 - 6 channels) - SBR AAC
IsoMedia import - track ID 2 - media type odsm sub-type odsm
IsoMedia import - track ID 3 - media type sdsm sub-type sdsm
Saving D:\PS\PS.mp4: 0.500 secs Interleaving
----------------------------------------------------------------------------------------------------------
Muxjob ended and deletion of intermediate files is activated
----------------------------------------------------------------------------------------------------------
Log for job job1-4
IsoMedia import - track ID 1 - Video (size 688 x 368)
IsoMedia import - track ID 1 - Audio (SR 48000 - 6 channels) - SBR AAC
IsoMedia import - track ID 2 - media type odsm sub-type odsm
IsoMedia import - track ID 3 - media type sdsm sub-type sdsm
Saving D:\PS\PS.mp4: 0.500 secs Interleaving
an exception ocurred when trying to read from stdout: Object reference not set to an instance of an object.
----------------------------------------------------------------------------------------------------------
It seems that MeGui is trying to set my bitrate at -262 kbit/s which seems odd.
Also, I had two other jobs set up. However, even after this job finished, those two jobs didn't go. Let me know if you need any more info.
berrinam
16th October 2005, 22:10
It looks like you have the same problem described by max-holz here (http://forum.doom9.org/showthread.php?p=724074#post724074) and on the development thread. Try using the version posted here (http://forum.doom9.org/showthread.php?p=724251#post724251)
haubrija
17th October 2005, 18:34
It looks like you have the same problem described by max-holz here (http://forum.doom9.org/showthread.php?p=724074#post724074) and on the development thread. Try using the version posted here (http://forum.doom9.org/showthread.php?p=724251#post724251)
Thanks berrinam, that was one of my problems. I ran an encode with 2.2.6a last nite without any problems.
However, I'm still having an issue with MeGui not going to the next job in the queue. I set up two Automated 2-pass encodes and after the first finished, the second failed to start. Its still in the queue, it just didn't automatically start the second job after the first job.
berrinam
17th October 2005, 22:51
Perhaps the first pass had an error? That would cause the queue to stop. If not, please post a log.
haubrija
18th October 2005, 00:16
Perhaps the first pass had an error? That would cause the queue to stop. If not, please post a log.
I can see now I was extremly unclear from my post above, sorry about that.
Here's my issue.
I use MeGui to generate a set of jobs for one backup, then use MeGui to generate another set of jobs for the next backup. For example, I set my first backup to do a 2 pass AutoEncode for x264. This generates four jobs, labeled (I beleive, not in front of encoding machine right now) 1-1,1-2,1-3 and 1-4. Then, I set up my second backup using the same 2 pass AutoEncode and MeGui set them up as 2-1,2-2,2-3 and 2-4. I then press Start.
Now 1-1, 1-2, 1-3 and 1-4 all finish fine. However, the jobs on my second backup never start. This used to work with 2.2.4 as MeGui would continue processing until all jobs were done.
If you look at the look I posted above, you'll see I generated 3 backups. Now after the first backup was done, MeGui doesn't continue to the jobs for the second set of backups. There does seem to be an error for job 1-4:
an exception ocurred when trying to read from stdout: Object reference not set to an instance of an object. I don't know if that's the issue or not.
I have a log for 2.2.6a that I can post when I get home if necessary. Let me know if I was unclear.
Doom9
18th October 2005, 08:16
I don't know if that's the issue or not. It is.. if a job errors out, the queue is stopped. And since that error happens when mp4box cannot be properly started or exits immediately, something is wrong with the mp4box commandline (or the files you're trying to mux) and the log is a must.. as is running the commandline from a command prompt to see if there are any other messages that point towards the error.
Doom9
19th October 2005, 22:49
alright, the subme 7 support is now included in the latest build.
Doom9
23rd October 2005, 21:51
a new build is up. main features are improvements in the queue, x264 configuration and support for the --crf switch in x264
Sharktooth
23rd October 2005, 22:08
Doom9, the --aq switch was removed in the new patch.
the there are only 2 options now, aq-strenght and aq-sensitivity. setting strenght to something other than 0 just enables AQ.
Doom9
23rd October 2005, 23:00
I've updated the AutoQ feature.
Wishbringer
24th October 2005, 13:30
0.2.2.8a 10/23/2005
new: support for the x264 constant quality feature
I thought it used percentage input and inserted 75 like in AutoGK and got a filesize of 4 MB for a whole 90 mins film.
What range is usefull for that new feature?
Sharktooth
24th October 2005, 14:32
@wishbringer: the quantizer.
@doom9: thanks:)
Rafik
24th October 2005, 17:34
Hello everybody !
First, please excuse my english (I'm from Algeria but live in Tunisia). For two years, i used XviD and Ogg Vorbis for my encodings but i lately discovered this codec (x.264) and i find that it's a very impressive one. Thank you for this codec and for MeGui (i use it with GK).
My problem is that when i encode with High Profile (it can w/MP), MPC 6.4.8.4 cannot read it. i have the latest A/V codecs (and all softs relative).
Merci (Oops !), thank you for your help.
Sharktooth
24th October 2005, 17:40
there are some options of the high profile (like custom quantization matrices) that open source decoders doesnt still support. you need to use Nero (sometimes buggy) or Moonlight/Elecard decoders to playback those HP streams made with custom matrices.
However that support is coming and soon even the opensource decoders will support the custom matrices.
Rafik
24th October 2005, 17:47
I don't think that i have used this type ofcustom matrix. Is it automatically employed with HP ?
Sharktooth
24th October 2005, 18:30
no. then you need the latest CVS build of ffdshow.
Rafik
24th October 2005, 22:50
Thank you M. Sharktooth for replying. Are you the one who create x.264 ? Vous êtes un vrai génie ! I go to sourceforge to bring this CVS build of ffdshow but i haven't understand anything. Can you give me a direct link ? i have downlowded the latest version of ffdshow but it doesn't work anyway ...
other questions :
1. what about AAC vs Ogg ?
2. what about a detailed guide for Megui ? now it becomes a great -little complicated- soft (it pursuit the same way of GK in its evolution).
3. will High Profil give me a significant amelioration of quality ?
Thank you.
Sharktooth
24th October 2005, 23:00
Well, i didnt "create" x264, i just build the sources and make the binaries available for windows users.
Get ffdshow from here: http://www.aziendeassociate.it/cd.asp?dir=/ffdshow
or search the doom9 forum for other builds.
the other questions:
1- it depends if you want to use .mp4 container or not. if you're going to use MKV then use Ogg because from the "blind-tests" it was the best audio codec for quality.
2- i just created a thread that may be of help: http://forum.doom9.org/showthread.php?t=101813
3- Yes it will.
Rafik
25th October 2005, 00:16
thank you a lot !
see you soon.
bob0r
25th October 2005, 02:32
Next job job1 is a video job. encoder commandline:
"x264.exe" --crf 26 --ref 8 --mixed-refs --aq-strength 2.0 --aq-sensitivity 22.0 --bframes 4 --b-pyramid --filter -2,-2 --subme 7 --weightb --analyse all --8x8dct --b-bias 4 --progress --no-psnr --output "I:\cap\_x264\test.mp4" "I:\cap\_x264\cap.avs"
successfully set up video encoder and callbacks for job job1
----------------------------------------------------------------------------------------------------------
Log for job job1
avis [info]: 640x352 @ 25.00 fps (7957 frames)
x264 [info]: using cpu capabilities MMX MMXEXT SSE 3DNow!
mp4 [info]: initial delay 2 (scale 25)
----------------------------------------------------------------------------------------------------------
Can anyone test these settings too?
After the encode Status = error, and the test.mp4 does not play.
Sharktooth
25th October 2005, 03:11
AQ is broken... but not for everyone... bah...
Egh
25th October 2005, 06:44
Seems there's very minor interface bug in last MeGUI version.
If lossless is chosen, Quantizer editbox is disabled, as it should.
But if MeGUI is restarted using same profile, then the editbox is enabled despite "Lossless" being checked. So you can enter value there and thus it's CQ mode now :P
Sharktooth
25th October 2005, 19:27
There's another interface bug. When selecting Main or Baseline Profile, even if 2nd pass or Automated 2-pass is set the Bitrate box gets always resetted to 26.
Selecting High Profile works as expected.
smok3
26th October 2005, 22:40
weird crash on 2nd pass (trying to encode with x264, video only) megui 0.2.2.8, avisynth 2.55, log file:
---------------------------------
Generating jobs. Desired size: 48234496 bytes
No audio encoding. Calculating desired video bitrate directly.
Setting video bitrate for the video jobs to 599 kbit/s
Setting desired size of video to 48164864 bytes
Next job job1-1 is a video job. encoder commandline:
"x264.exe" --pass 1 --bitrate 599 --stats "D:\path\avs.stats" --analyse p8x8,b8x8,i4x4 --progress --no-psnr --output NUL "D:\path\avs.avs"
successfully set up video encoder and callbacks for job job1-1
----------------------------------------------------------------------------------------------------------
Log for job job1-1
avis [info]: 512x384 @ 25.00 fps (16066 frames)
x264 [info]: using cpu capabilities MMX MMXEXT SSE SSE2 3DNow!
x264 [info]: slice I:95 Avg QP:22.51 size: 13430
x264 [info]: slice P:15971 Avg QP:25.90 size: 2916
x264 [info]: mb I I16..4: 32.1% 0.0% 67.9%
x264 [info]: mb P I16..4: 4.5% 0.0% 2.8% P16..4: 39.9% 15.8% 3.0% 0.0% 0.0% skip:34.0%
x264 [info]: kb/s:595.7
Actual bitrate after encoding without container overhead: 595.72
----------------------------------------------------------------------------------------------------------
job job1-1 has been processed. This job is linked to the next job: job1-2
Next job job1-2 is a video job. encoder commandline:
"x264.exe" --pass 2 --bitrate 599 --stats "D:\path\avs.stats" --analyse p8x8,b8x8,i4x4 --progress --no-psnr --output "D:\path\avs.mp4" "D:\path\avs.avs"
successfully set up video encoder and callbacks for job job1-2
----------------------------------------------------------------------------------------------------------
Log for job job1-2
avis [info]: 512x384 @ 25.00 fps (16066 frames)
x264 [info]: using cpu capabilities MMX MMXEXT SSE SSE2 3DNow!
mp4 [info]: initial delay 0 (scale 25)
x264 [error]: More input frames than in the 1st pass
Assertion failed: frame >= 0 && frame < rc->num_entries, file encoder/ratecontrol.c, line 467
This application has requested the Runtime to terminate it in an unusual way.
Please contact the application's support team for more information.
----------------------------------------------------------------------------------------------------------
The current job contains errors. Skipping chained jobs
QuadraQ
27th October 2005, 05:27
I'm trying to get MeGUI up and running, and I downloaded all the necessary software and set up the directories in MeGUI. However, the link for bse_FAAC.dll isn't working because the files have expired. I did a search and found the dll, but I think it's an old version, because when I choose the FAAC option in MeGUI the audio starts to encode, but quits immediately. It works OK when using the Nero encoder. If someone could point me to the latest version of the bse_FAAC.dll I'd appreciate it.
For video, I don't know what's going wrong. It starts the first pass and the status dialog box comes up, but never changes. There's lots of hard drive activity and when I check the task manager it shows that x265.exe is using ninety-some percent of the processor, but even after four hours the pass isn't complete. (I know from using AutoAC that it doesn't take THAT long on my machine.) The status screen hasn't changed, and the x264 app and hard drive activity are just the same, so it seems that it's hanging on something. Any ideas? :confused:
Here is a pic to illustrate what I mean:
http://www.mindspring.com/~quadra2/MeGUI%20Problem.PNG
It just stays like this indefinitely.
Here are my settings:
http://www.mindspring.com/~quadra2/MeGUI%20Settings.PNG
Help! I want to get MeGUI working, so that I can start backing up my DVD collection to mp4 files that I can watch on my xbox. Thanks.
Doom9
28th October 2005, 17:40
@QuadraQ: where is the most important of all, ... the logfile? take the x264 commandline from there, start a command prompt (start - run - type "cmd" and press enter), paste the commandline and press enter, then see what is happening.
QuadraQ
29th October 2005, 02:47
The "logs" directory in my MeGUI directory is empty, so how do I get the command line without a log?
jellysandwich
29th October 2005, 03:54
The "logs" directory in my MeGUI directory is empty, so how do I get the command line without a log?
You can get the command line through MeGUI itself. There's a button that says "Show commandline."
js
QuadraQ
29th October 2005, 08:28
OK here is the command line:
"x264.exe" --pass 2 --bitrate 1129 --stats ".stats" --aq-strength 0.5 --no-cabac --analyse p8x8,b8x8,i4x4 --progress --no-psnr --output "C:\SONY\VIDEO_TS\The Net.mp4" "C:\SONY\VIDEO_TS\The Net.avs"
and the error I'm getting at the command line:
C:\Program Files\x264>"x264.exe" --pass 2 --bitrate 1129 --stats ".stats" --aq-s
trength 0.5 --no-cabac --analyse p8x8,b8x8,i4x4 --progress --no-psnr --output "C
:\SONY\VIDEO_TS\The Net.mp4" "C:\SONY\VIDEO_TS\The Net.avs"
avis [info]: 640x352 @ 0.00 fps (165080 frames)
x264 [error]: ratecontrol_init: can't open stats file
x264_encoder_open failed
I'm not sure if this is what you wanted. I don't use the command line much.
berrinam
29th October 2005, 09:46
avis [info]: 640x352 @ 0.00 fps (165080 frames)
Something's up with your AviSynth file; the framerate should not be 0. See if you get the same framerate with (a) other avisynth files, or (b) other programs, like VirtualDub(mod). Also, if you know what the framerate should be, try adding assumefps(25.0) to the end of your avisynth file, replacing 25.0 with the correct framerate.
x264 [error]: ratecontrol_init: can't open stats file
x264_encoder_open failedThis shouldn't be the problem, because it is just due to the way MeGUI handles stats files.
Doom9
29th October 2005, 12:04
This shouldn't be the problem, because it is just due to the way MeGUI handles stats files.But without a first pass, it'll never work. The framerate is definitely the first thing to look into, but if that doesn't work out, please try a valid first pass commandline (just change encoding mode to 2pass first pass.. your settings won't be changed but if you configure automated 2 or 3 pass.
berrinam
29th October 2005, 12:27
This shouldn't be the problem, because it is just due to the way MeGUI handles stats files.
What I meant was that this problem was caused because of the incomplete commandline given in the x264 config dialog, which isn't actually a problem when it comes to encoding, as the stats file is filled in.
Of course, you're right; a first pass is definitely needed.
QuadraQ
29th October 2005, 21:02
OK, I switched to "2pass - 1st pass" copied the command line and ran it. Still had 0 fps but this time x264 actually launched and started doing something (Although like you said 0 fps is still wrong, and it seems to me that x264 should probably just quit if given that invalid fps.) Basically the disk activity went out the roof and x264 started sucking down all the processor time like I previously described.
What doesn't make sense to me, is that in the bitrate calculator window of MeGUI it said 25 fps when I first opened it up (which is wrong BTW, since this is not a PAL encoded video, or even a "true" NTSC 30 fps, but a film source which should be 23.976 fps). I changed it to 23.976 to reflect that this is a film source, and had it acount for 128 kbps AAC audio and clicked save. I guess those settings didn't reflect in the command line I pulled from the codec configuration window.
Doom9
29th October 2005, 21:24
you do need to fill out the name of the stats file in this case.. the commandline you get in the codec configuration screen is not complete. Did you try all the things berrinam suggested? Also, next time please just copy&paste the contents from the commandline window (and only the part that does matter.. starting with the commandline).
QuadraQ
29th October 2005, 22:38
OK I edited the avs file (didn't realize there was so little in there) and added the line berrinam suggested, so that the contents of my avs file are this:
mpeg2source("C:\SONY\VIDEO_TS\VTS_01_1.d2v")
crop(4,0,-8,-2)
LanczosResize(640,352)
assumefps(23.976)
and then I gave the stats file a name in the command line and this is what I got:
C:\Program Files\x264>"x264.exe" --pass 1 --bitrate 759 --stats "test.stats" --a
q-strength 0.5 --no-cabac --subme 1 --analyse none --me dia --progress --no-psnr
--output NUL "C:\SONY\VIDEO_TS\The Net.avs"
avis [info]: 640x352 @ 23.98 fps (165072 frames)
x264 [info]: using cpu capabilities MMX MMXEXT SSE 3DNow!
encoded frames: 826/165072 (0.5%), 23.42 fps
So it looks like it's working now at least from the command line.
So at least I've learned a few things. Still I'm not sure why the AVS script didn't have the fps information in it in the first place. What else should I try now? I appreciate your help.
berrinam
30th October 2005, 00:59
Well, if it works in the commandline, it should almost definitely work from MeGUI, too.
As to the problem with AviSynth, see if other AviSynth scripts also signal 0fps (I doubt it, considering that it worked when you added assumefps(...)), or try using the same script with VirtualDub. OTOH, perhaps it is just an unusual source.
QuadraQ
30th October 2005, 01:25
I've got MeGUI working on it now. I'll let you know what the results are. Assuming it works, then the next thing is to figure out why the avs script created in MeGUI didn't include the fps...
hpn
30th October 2005, 03:19
A small bug: When I start MeGUI, specify the avs then click "Config", it's initialized with ABR mode with bitrate 26, instead of bitrate 700. Switching to Const.quantizer then back to ABR fixes the bitrate to its normal value.
EDIT: oops, it's been posted above by ST, sorry
QuadraQ
31st October 2005, 00:46
OK, just an update. MeGUI did finish the job of creating the video mp4 file this time using the automated two-pass option and the "fixed" avs script (see previous posts). However the video file is corrrupt or something. When I try to play it I get a garbled scene from the movie, and then Media Player Classic crashes. (Same results for any other media players I've tried.) So I'm going to have to create a small test so that I can quickly test things. (It took all night to finish the encoding job for the entire movie.)
I'm not sure why I'm having so much trouble getting MeGUI Setup. From what I can tell, MeGUI is THE tool for creating x.264 mp4 files, but I guess I'm cursed.
Any suggestions would be appreciated. Thanks.
acidsex
31st October 2005, 01:15
Finally got around to playing with this a little today and I must say, I am VERY impressed with Doom9 and others work on this. Took a couple minutes getting used to the layout and finding where everything is but once that was under control I was off to encoding in no time. Still waiting for encode to finish but if the finished encode comes out well, I may have found my new favorite encode tool.
I am assuming Doom9 is accepting donations for all of this hard work and if so, where do I send?
Awesome work and much appreciation from this user. :)
Blue_MiSfit
31st October 2005, 02:20
So erm... little problem here. I am trying to run an x264 comptest - CQ18 with the following settings:
keyframe interval: 240
6 refs, mixed
3 bframes, pyramid, adaptive
deblock 0,0
cabac
rdo2
weighted prediction, chroma me
all macroblock options
otherwise all defaults
I am using MeGUI 0.2.2.8 downloaded off this forum 5 minutes ago, and the latest x264 package from x264.nl, v348.
My avs script works perfectly fine, tested with vdub and core media player.
The problem is as follows. I queue the job, targeting MP4. input and output files are perfectly valid. When I go to the queue and start the job, it starts for a moment and then exits immediately. Here is the log:
Next job job1 is a video job. encoder commandline:
"C:\Program Files\x264\x264.exe" --qp 18 --keyint 240 --min-keyint 24 --ref 6 --mixed-refs --aq-strength 0.5 --bframes 3 --b-pyramid --subme 7 --weightb --analyse all --8x8dct --progress --no-psnr --output "E:\Movies Work 2\New Jack City\New Jack City.mp4" "E:\Movies Work 2\New Jack City\New Jack City.avs"
successfully set up video encoder and callbacks for job job1
----------------------------------------------------------------------------------------------------------
Log for job job1
unknown option (
wtf? :)
Any ideas? Everything was working perfectly fine before when I had 0.2.2.6, which interestingly enough had the option to DISABLE adaptive quant. I noticed this error before whenever I tried to use adaptive quant, and so I had always just disabled it. Now with 0.2.2.8, there is no option to disable adaptive quant (that I have noticed)
I guess my questions are
1) why is using AQ crashing things?
2) how can I disable it with 0.2.2.8
Just tried manually CLI encoding, it crashes saying something about unknown option. Removing "--aq-strength 0.5" from the commandline makes the encode start normally.
I read also that AQ is broken for some, but not all. What's the latest on this?
Thanks all
~MiSfit
QuadraQ
31st October 2005, 05:41
OK I created a small test d2v file and then opened it up in MeGUI just to test the AviSynth Script Creator function. I load the d2v file and the click the Suggest Resolution check box, which selects a resolution of 640 x 352. I then click the Auto Crop button which checks the crop checkbox and chooses a value of 2 for the right and bottom of the image. (The Input DAR is 16:9 and the Resize Filter is Lanczos (Sharp) which I never changed.) I then click the Edit tab to see what the AVS script will be and this is what I find:
mpeg2source("C:\TWO_WEEKS_NOTICE\VIDEO_TS\Test.d2v")
crop(0,0,-2,-2)
LanczosResize(640,352)
So again the fps is missing. Any ideas why? The d2v project was manually generated from DGIndex 1.4.4.
berrinam
31st October 2005, 05:59
@Blue_MiSfit: bob0r's builds at x264.nl don't support AQ. If you want AQ, try Sharktooth's builds from the sticky. If you want to disable AQ, set strength to 0.0
@QuadraQ: Do you mean that, when you encode it, it signals 0.0fps, as before? There is nothing wrong with the generated script, and you seem to have had the same problem with two films, so there is probably something wrong with either DGIndex or AviSynth on your computer. Try reinstalling them.
Doom9
31st October 2005, 08:54
I am assuming Doom9 is accepting donations for all of this hard work and if so, where do I send?Not for the software specifically, but since it's me doing it in both cases, you can go here: http://www.doom9.org/donate.htm
@QuadraQ: if it's still not clear: adding assumefps to an AviSynth script is a workaround for what you're encountering. It is most likely an issue with your AviSynth installation and is definitely not a MeGUI issue. If you load your script in the main window, then go to the calculator, that's when MeGUI will show what it found out with regards to the framerate.. it uses that for calculations and mp4 muxing (unless you manually specify another framerate). If the fps value in the calculator is wrong (you absolutely must load your AviSynth script before entering the calculator), then that once again hints at an AviSynth problem and you should get the same fps report when opening the script in VirtualDub because both use AviFile to get the file properties.
QuadraQ
1st November 2005, 02:58
@QuadraQ: if it's still not clear: adding assumefps to an AviSynth script is a workaround for what you're encountering. It is most likely an issue with your AviSynth installation and is definitely not a MeGUI issue. If you load your script in the main window, then go to the calculator, that's when MeGUI will show what it found out with regards to the framerate.. it uses that for calculations and mp4 muxing (unless you manually specify another framerate). If the fps value in the calculator is wrong (you absolutely must load your AviSynth script before entering the calculator), then that once again hints at an AviSynth problem and you should get the same fps report when opening the script in VirtualDub because both use AviFile to get the file properties.
I just got back from work, and to give you and update of what I discovered last night, you are right (of course). I'm basically sure that the problem at this point it the DGIndex dll or program. The reason I say that is that if I manually create the d2v file from within DGIndex 1.4.4 and then load it in MeGUI to create the AVS script it works fine. However if I try to create the d2v project file from within MeGUI, then I experience the problems previously described. So I'm going to try downloading the latest version of DGIndex and then make sure that I have the latest version of the dll everywhere it's supposed to be installed.
BTW how exactly does that work, as far as the integration of DGIndex and MeGUI?
vBulletin® v3.8.5, Copyright ©2000-2012, Jelsoft Enterprises Ltd.