Log in

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


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

Tanma
27th February 2007, 02:38
I didn't see any profiles as well.

The last Megui update is working fine now in my system.

The problem is that i'm having oversized encodes with x264, even with options at default, using AutoEncode with profile settings or desired bitrate...

Deckard2019
2nd March 2007, 23:16
Is it possible to use Aften (http://forum.doom9.org/showthread.php?t=113074) directly into MeGUI ?

steve77
3rd March 2007, 00:52
I think I found a script that MeGui doesn't like

DirectShowSource("D:\Work Folder\MySource.wmv")
Lanczos4Resize(512,384)
Import("D:\Work Folder\SeeSaw.avs")
a=last
b=a.degrainmedian(mode=3)
SeeSaw(a,b,sootheS=50)
degrainmedian(mode=4)

The script "SeeSaw" works fine when I'm using Mpeg2Source(). However, SeeSaw in conjunction with DirectShowSource() and any WMV file invariably crash.

It actually pops up the preview window, all is well, I can go play in the bitrate calculator, and even make it to the settings, but after 30 seconds it crashes.

I'm using the same script minus the SeeSaw() funciton and Megui is working fine.

Any thoughts? Any additional info I need to supply?

Adub
3rd March 2007, 01:35
Have you tried playing the script outside of MeGUI, with MPC for example?

steve77
3rd March 2007, 01:44
Yes, it works flawlessly... Very bizzare.

Adub
3rd March 2007, 20:11
I don't think that it is actually MeGUI that is crashing.

Oh, wait, so you haven't started encoding yet, huh? Try turning off the preview window in MeGUI settings and see if that helps at all. I had the same problem a while back, except it was because of a crazy long script that tried to seek to the middle of the video everytime I opened it, causing my whole computer to lock up.

It may also help if you designate the frame rate in your DirectShowSource() function. Sometimes a encoder can't read what the frame rate is, and so is chokes. Maybe the same thing is happening here.

steve77
3rd March 2007, 20:21
I don't think that it is actually MeGUI that is crashing.

Oh, wait, so you haven't started encoding yet, huh? Try turning off the preview window in MeGUI settings and see if that helps at all. I had the same problem a while back, except it was because of a crazy long script that tried to seek to the middle of the video everytime I opened it, causing my whole computer to lock up.

It may also help if you designate the frame rate in your DirectShowSource() function. Sometimes a encoder can't read what the frame rate is, and so is chokes. Maybe the same thing is happening here.

I did try closing the preview window, to no avail. However, I'll try and specify the framerate and see what it gives.

Thanks for the help as always

EDIT: Tried it, it's a no go.... and to make sure that I wasn't hallucinating, I tried it with a Mpeg2Source, and it worked with MeGUi.

For me, Megui, SeeSaw() and DirectShowSource don't play nice. It'd be good if someone else could test it out.

sazoki
25th March 2007, 01:37
plz,,,,

help me to know how to use MeGUI to convert any movies to mp4

which i can put it on my Ipod 5.5

give me the way to,,,,,,,,,,,,,,,plz

check
25th March 2007, 01:48
try the mewiki, which is actually alive again :)

sazoki
25th March 2007, 01:53
thanks

put do y know the way to convert with an arabic subtitle


for any ,,,,,,,,,,,

Adub
25th March 2007, 05:10
Ah well now, that is good to hear, check.
I was getting worried.
Here is the link sazoki,
http://mewiki.project357.com/index.php?title=Guides:Ipod_Conversion_Guide

Also, if you want to overlay a subtitle on to the video you are converting, you should look into Avisynth and the Textsub plugin.
I have updated my sig.

check
25th March 2007, 12:18
It's 100% back now, the 'correct' urls are /wiki/articlename, but the 'real' urls of index.php?title=articlename also work fine. All links forward to the former type, so it's fully compatible.

lucassp
26th March 2007, 15:55
guys, i've got a small problem:

a=DirectShowSource("D:\1.EVO",fps=23.976,audio=false)
b=DirectShowSource("D:\2.EVO",fps=23.976,audio=false)
VC1=a+b
crop(VC1, 0, 144, 0, -136)
trim(VC1, 25000, 25500)


ok...under Windows Media Player 6.4 everything plays fine. but, when i'm trying to encode this in MeGUI the output is 1920x1080 instead of 1920x800...it's skipping the crop procedure and I don't know why!

check
26th March 2007, 16:45
try this:
VC1 = crop(VC1, 0, 144, 0, -136)

lucassp
26th March 2007, 17:45
are there any other ways to import VC-1 into AVISynth+MeGUI??

Edit: 10x, it works!

check
26th March 2007, 18:40
nope, fraid not.

gordonwatts
2nd April 2007, 04:58
I've not run MeGUI in a while, but I did update everything before I did this test.

I created a avs script and pointed MeGUI at ot. amd tjem selected a single auido info (a .ac3 file). I used the ND ACC encoder, and the NDAAC-HE-64Kbps profile. The job starts encoding the audio and runs for about an hour or so before crashing. The crash is correct -- there is no .mp4 file left behind as output. But the command seems like it must have done something since it ran for an hour (nor can I find the mp4 file in some other location).

Have I done something dumb here?

--> Tried out the LAME MP3 encoder too -- and had the same problem. No .mp3 file seems to have been produced where the jobs expected it. It looks like this is run directly from within the MeGUI.exe -- I'll try staring at the source code...


Processor found!
Starting job job1-1 at 7:18:21 PM
Starting preprocessing of job...
Preprocessing finished!
encoder commandline:

successfully started encoding
Generating jobs. Desired size: 734003200 bytes
Setting desired size of video to 734003200 bytes
Processing ended at 7:53:52 PM
----------------------------------------------------------------------------------------------------------

Log for job job1-1

Channels=2, BitsPerSample=16, SampleRate=48000Hz
C:\Program Files\megui\tools\neroaacenc\neroAacEnc.exe -ignorelength -he -br 64000 -if - -of "Z:\Ninth Configuration\Ninth Configuration T01 2_0ch 192Kbps DELAY 0ms.mp4"Error:
System.IO.FileNotFoundException: Could not find file 'Z:\Ninth Configuration\Ninth Configuration T01 2_0ch 192Kbps DELAY 0ms.mp4'.
File name: 'Z:\Ninth Configuration\Ninth Configuration T01 2_0ch 192Kbps DELAY 0ms.mp4'
at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
at System.IO.FileInfo.get_Length()
at MeGUI.AudioEncoder.sendStatusUpdateToGUI(StatusUpdate su)
at MeGUI.AviSynthAudioEncoder.raiseEvent(StatusUpdate e)
at MeGUI.AviSynthAudioEncoder.setProgress(Double n, Int32 currentSample)
at MeGUI.AviSynthAudioEncoder.encode()
*************************************************************
* *
* Nero Digital Audio Reference MPEG-4 & 3GPP Audio Encoder *
* Copyright (C) 2006 Nero AG *
* All Rights Reserved Worldwide *
* *
* Package build date: Feb 12 2007 *
* *
* See -help for a complete list of available parameters. *
* *
*************************************************************

Processed 1591 second

----------------------------------------------------------------------------------------------------------
The current job contains errors. Skipping chained jobs

ChronoCross
3rd April 2007, 06:50
it analyses the file beforehand and makes selected adjustments. I'm wondering if you manually set the parameters of the encoder. Nero is quirky and has lots of presets on what it will and will not let you do. If you changed anything about the profile you used including bitrate or anything please let us know. I don't think the default profile would error out like that

Lele-brz
17th April 2007, 13:01
Hi all,
I'd like to use MeGUI to encode a h264 video that should be streamed on the net, is there a particular profile to use in order to have the header at the beginning of the file so to start playing it as soon as the first kilobytes are downloaded?
thanks

bye

Zhelkus
20th April 2007, 04:43
Hi everybody! I'm not sure if this is the thread to post MeGUI bugs or not. If not then please tell or move my post, either one is fine.

I'm not sure if this is something really important but I'm sure it wasn't present in previous releases:

When trying to choose the output file, no matter what is typed into the text field, it won't take it into consideration unless the file is manually saved via the [...] button. Now this sucks. It's been so much easier to simply type where we want the file to go.
On the queue tab, when pressing the button to load a particular job's settings....it won't load it!


And on another note, how long will it be for another release? I read in another thread that Sharktooth is having issues with his ISP but can't somebody else upload the files? I mean, if he can log into a computer and post on this forum...then....right?

maja_ldm
20th April 2007, 23:19
the nod32 alert says x264 created a virus (there was also another in the non temporary file) and it cancelled the files so 1click process stopped displaying 'error' in the second pass, what has happend?


Log for job job2-3

avis [info]: 576x576 @ 25.00 fps (370654 frames)
x264 [info]: using cpu capabilities MMX MMXEXT SSE 3DNow!
x264 [warning]: VBV maxrate specified, but no bufsize.
x264 [error]: ratecontrol_init: can't open stats file
x264 [error]: x264_encoder_open failed

-----------------------------------------------------------
The current job contains errors. Skipping chained jobs



is it better askin in a x264 thread?

check
21st April 2007, 00:14
it's just nod32 failing :) someone else had the same issue yonks ago, I think they just added the extension .stats to the NOD32 ignore list.

Tanma
24th April 2007, 03:11
What's the problem of megui with vsfilter/textsub?

The encode finishes, but while playing the video, in some ending karaokes it shows "avisynth: unknown exception" on the top, and the screen turns black.

Now I have encoded other video, and a correct line (timing OK, it's not commented), is just missing from the video.

With Virtuadub I had no errors. In fact, I never had problems using textsub in Virtualdub. The scripts are .ass, made with Aegisub. The VSFilter version is 1.0.1.3.

I'm using Windows XP SP1, Pentium 2.53GHz, 1GB ram.

maja_ldm
24th April 2007, 10:34
thank you to check

DarkNite
24th April 2007, 12:22
@Tanma

I've never had an issue using SSA/ASS subtitles in my AviSynth script and running it through MeGUI (a little typesetting, some proper sign placing, and a few effects here and there makes things a lot more pleasant to look at on a large screen LCD). I've also been using Aegisub since it was first released for public consumption as well.

Could you share any more information? Were any of the lines in your script merged using something other than "Merge(keep first)"? Have you changed the video sizing or line break setup for your script since you first edited it in Aegisub? Etc...

check
25th April 2007, 13:37
I've killed my mirror for the time being, I just realised it wasn't updating properly by itself. Since nothing has been updated recently it didn't send out old files to clients thankfully.

SacredCultivator
26th April 2007, 21:09
hmmm I am not sure what happened but whenever I do an encode and it is nearing 100% I get this:
http://img386.imageshack.us/img386/8708/untitledvc4.th.jpg (http://img386.imageshack.us/my.php?image=untitledvc4.jpg)

And this happens for every script I load into MeGUI, my scripts mainly consist of:
MPEG2Source("Filepath.d2v")
tfm(pp=5,cthresh=3,mode=0).tdecimate()
Crop(4,0,-2,-0)
Spline36Resize(640,480)
Removegrain(2)

So not too sure if anyone knows what might be the problem... thanks.
EDIT:
Log for job job1

xvid_encraw - raw mpeg4 bitstream encoder written by Christoph Lampert 2002-2003

Trying to retrieve width and height from input header
Input colorspace is YV12
xvidcore build version: xvid-1.2.0-dev
Bitstream version: 1.2.-127
Detected CPU flags: ASM MMX MMXEXT SSE SSE2 3DNOW 3DNOWEXT TSC
Detected 1 cpus, using 1 threads.

Tot: enctime(ms) =1321395.00, length(bytes) = 143152740
Avg: enctime(ms) = 194.92, fps = 5.13, length(bytes) = 21117
I frames: 567 frames, size = 42936/24344822, quants = 3 / 3.00 / 3
P frames: 1495 frames, size = 24345/36396592, quants = 3 / 3.00 / 3
B frames: 2889 frames, size = 9251/26727005, quants = 5 / 5.00 / 5
S frames: 1825 frames, size = 30511/55684321, quants = 3 / 3.00 / 3

----------------------------------------------------------------------------------------------------------
The current job contains errors. Skipping chained jobs

EDIT: Nvm.. Find out the reason... It is due to it being a .avi, as .vob scrips work.
Example:
AVIFileSource("D:\Music Videos\Other\Maki Goto - Some Boys Touch.avi")
That is what I have for .AVI's (Made with AVSEdit)

So not too sure what to change it to, to allow me to process the .avi

PS: Also I can't seem to update my MeGUI to the latest CORE version... I update it and restart and well it is the same version again...

check
27th April 2007, 02:20
to your updating question, just download the correct core & update.xml from megui.org/auto

SacredCultivator
27th April 2007, 03:25
thanks for the update link.

check
29th April 2007, 16:21
Hi all, due to the lack of movement in terms of MeGUI's development, I have created an alternate update cache.
http://mewiki.project357.com/auto2/
If you would like to use this cache, make sure you set it as the ONLY source, it will not be synchronised with the official cache. So far, I have just updated some of the external files, but if time allows I hope to begin poking around in MeGUI and starting work on it as well.
The updated files are all the bleeding edge versions I use, if anyone runs into problems with them, please post a problem report here. If you know of a newer version of a file in the cache, please also PM me.

Sharktooth, berrinam, doom9: are any of you still interested in workin on MeGUI? I know ST is probably still moving house and waiting for internets, but berrinam hasn't posted in years or replied to PMs and doom9 is obviously far busier than he used to be.

michaelhill
30th April 2007, 14:46
@check

Thanks, i recieved 13 updates. Right now I am making a Anime backup, if i encounter any problems i will let you know

michaelhill
30th April 2007, 14:57
I hope, that megui will continue to develop. I have tried staxrip today and had nottin else then errors and warning. Megui has never failed on me (yet) , lets see if it stays working fine with these 13 updates

SacredCultivator
6th May 2007, 21:45
Hmm for some reason... whenever I try to do anything with MeGUI the program just exits... So then when I load a script in it shows the preview and then once I click on 'Enqueue' the program quits...

Dunno what it might be... If the source is .avi which should be used.
AVISource
AVIFileSource
DirectDrawSource
Not sure if that may be causing it...

check
7th May 2007, 03:18
are you using vista? megui doesn't work properly on vista.

SacredCultivator
7th May 2007, 03:59
Nopes using Win XP SP2... Vista is too bleh right now...

ALso... Not only that problem but when it DOESN'T exit and i do an encode I get the same error message I got in my above post but the file is encoded (And can be played) but that message pops up and even when I quit the program that occurs as well... So I have no idea what may be causing this... When checking the log I always get that same message.

PS: So yeah if using .avi as the source,
Which is the most recommended of the following:
-AVISource
-AVIFileSource
-DirectDrawSource

homerpez
8th May 2007, 02:18
First post since my waiting period... it's been hell. :devil:

Anyway, I wanted to run this by someone, I'm very new to this... currently I'm trying to encode HD-DVD to a smaller h264 (x264?) stream, with 5.1 ac3 audio, and packaging it all into an .mkv. I don't like fumbling with discs...

Following a couple other threads (over 100+ pages worth, ouch) I did finally get some success... I figured out how to resize an hd-dvd stream to 720p, I figured out (finally!) how to convert the 7.1 DD+ stream to 5.1 ac3... and I even stumbled onto MeGUI, which seems to be my best chance to do most of this one one prog.

I have to ask, though... is it normal for a 2-pass x264 stream to take DAYS to encode in MeGUI? :confused:

The source being a 2-hour film, resized to 1280x500-some (cropped), avs file into MeGUI. The first pass took roughly 5 hours. The second pass was estimated at 1 DAY, 14 hours.

My machine is a dual core (AMD 4200 64 x2) with 2GB RAM. This seems REALLY long to me. CPU is running with both cores blazing between 50% (when set to priority "low") to near 100% (set to "high").

Is this normal?...

Secondly, and not as important, what kind of bitrate can i get away with on a ~720p re-encode? I'm thinking with 2-pass I can get away with 5000 or maybe even 4000. I did one encode at 8000 CBR (and it only took about 7 hours total), but I think that's overkill on bitrate.

Thanks in advance for help/comments/answers... great forum! :thanks:

check
8th May 2007, 04:06
As to your first question: it depends on the source and the encoder options. If you have a complex avisynth script it will be slower. If you use high x264 settings it will be slower. If you want to speed it up remember saggitaire's mantra: "use of x264 is not obligation to use of high quality settings"! ;) Personally your encoding time is shorter than mine, I generally use options so that mine will run from when I start it in the evening for about 40hrs total.
As to your second question: it depends on the source, and on what quality you find acceptable. You can easily find the answer to these questions if you follow this method:
o trim() out a few thousand frames of your movie, and encode them with x264 --crf (aka constant quality) changing the ratefactor until you find the setting you like that balances quality with filesize (the range you should look at is 18-24 probably).
o remove the trim() and replace with selectrangeevery(600,12). Then encode the video to your target ratefactor from above in constant quality again. The output filesize will be around 1/51th of what it would be had you encoded the full thing.
o Remove the selectrageevery() and use the information collected above to work out a good bitrate.

Tanma
9th May 2007, 21:54
Has vobsub or dvobsub anything related to x264 or megui functionality, that would cause bugs during encode like the one i've specified before?

check
10th May 2007, 04:47
They are subtitle filters that can be used in avisynth through the textsub() command. If you are using them, make sure you have the latest 2.37 version (the patched copy in the latest CCCP betas fixes a few more bugs).

tecxx
14th May 2007, 16:58
hy, i've changed to the alternate update server and downloaded the updates for the external files, encoding so far worked fine, but when i try to start the mkvmerge tool (i use it for mkv muxing) i get the error:

the application has failed to start because wxbase26u_gcc_custom.dll was not found.

in the mkvmerge directory these dlls are present:
wxbase253u_gcc_custom.dll
wxmsw253u_core_gcc_custom.dll
wxmsw253u_html_gcc_custom.dll

should i install the newest mkvtoolnix package or can anyone fix this via autoupdate?

spstax
14th May 2007, 18:39
Hi
I'd like to have some information about the capabilities of megui to directly convert a .dv (sony) into a .mkv(using of course the x264 codec and if possible a good aac audio compression).

I have already consulted the pages dedicated to the .dv ripping but I have not found the answers to my questions.
I really want to use Megui because it is the most powerful and comprehensive ripping program I know and because it uses the x264 codec which is for me the best video codec.

I know how to rip DVDs and re-encode videos but I have not found how to do so with a DV file. I have failed to find a solution with google that is why I ask it in this post.

The program refuses to process the .dv from the first step, when creating a avisynth script.

When I select the video input, the following message appears :

DIRECT SHOW ERROR
Unable to render the file.
You probably don't have the correct filters installed

My problem seems to be that this .dv is not readable by directshow, so avisynth cannot open it, and I should try to find a filter reading the .dv
I can't read these files with media player classic which uses the directshow filters (I have installed the K lite mega codec pack), although I can read them with VLC that uses built in filters.
so maybe could I find the proper filter in VLC and import it in Avisynth??

I have already tried to search for such a filter all over the internet but I have found nothing. All that I know is that the .dv video is coming from a sony handy cam.

To conclude:
- is the finding of a .dv directshow filter the proper solution, and if yes do such a filter exist or not?


Thanks answers of your answers

Dr.Khron
15th May 2007, 14:52
Trying to find and download individual codecs is a fools errand. IMHO, FFDShow is the only way to go. If you already have a recent version of FFDShow installed, you might already have what you need installed.

Also IMHO, the CCCP Codec pack is far superior to KLite.

My recomendation is to completely uninstall all codecs, codec packs, filters and spliters, and do a clean install of CCCP with Media Player Classic. This is now my standard recomendation for EVERYONE, even friends and family of limited technical knowledge.

This might fix your problem right away, or you might have to configure FFDShow. Either way, you correctly diagnosed your problem: you need a DV decoder.

killerhex
16th May 2007, 04:33
i cant update to the latest core of megui in the update windows it doesnt appear

berrinam
16th May 2007, 05:45
Make sure that you are using the default servers, not check's auto2 one. That is no longer available.

check
16th May 2007, 07:40
My entire server's DNS was updated late last night, It won't be back until the nameservers propogate through the interwebs to your ISPs' DNS server and it rerequests records.

OverlordQ
18th May 2007, 07:34
MeGUI wont check past the first successful hit, and in mine the first in the list is:

http://megui.org/auto/stable/

which hasn't been updated since 27-Mar-2007

So either take the stable off or wait for another stable release.

foxyshadis
18th May 2007, 17:58
If you change the top dropdown from stable to development, it'll use the others. (Admittedly I didn't realize it would happen until I played with it a bit.)

edekba
28th May 2007, 00:42
Hey guys, I've been wondering how do I get the vobsubber to work? I run the vob file through it and it gives me a .vobsub file. What do i do to this, so i can mux it into a mkv w/the audio and video?

I looked at using DVDsubEdit & SubRip using .sup files but mkvmerge doesnt seem to recongize .sup files.

thanks!

Pingachevsky
28th May 2007, 04:20
I'm at my wits end with this updating business...I got the latest build, I try to update it, and these 13 files never get updated correctly...
http://img.photobucket.com/albums/v34/lord_of_the_ping/OHGODWHYMEWHYME.png
I note that they seem to be avisynth plugins...but when I actually was able to get megui working last (months ago) you didn't need to install avisynth seperately so unless something has changed I can't rightly figure out what I'm doing wrong...I tried updating the core manually and put "upgrade.xml" in the megui directory but nothing helps at all. Help please?

check
28th May 2007, 06:07
you always need avisynth installed :) It's basically a useless program without avisynth.