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

Zathor
29th January 2011, 17:05
Not addressed yet, but confirmed. That fix is the reason for holding back the recent build.

MOS-Marauder
29th January 2011, 18:46
7 :) - and one at the bottom.

Will be fixed in the next build.


Wow that was fast xD

But one thing.. .Before i could resize the win by dragging. Is it possible to reenable it like it was before ? xD


Thx m8 and good work.

Chris

Zathor
30th January 2011, 04:02
But one thing.. .Before i could resize the win by dragging. Is it possible to reenable it like it was before ?

No, at least for the moment that is not planed. But you can resize the window with the - button.

MOS-Marauder
30th January 2011, 04:13
Oki, thx.

Chris

DruidCtba
3rd February 2011, 17:01
Hi guys I'm new in using the Avisynth Script and I need help from the gurus here on the forum :).

I have to edit a MKV and yesterday I used the following script in MeGUI:

DirectShowSource ("tom.mkv", fps = 23.976, audio = false, convertfps = true)
Trim (0, 42547) + + Trim (42557, 165083)
# deinterlace
# crop
# resize
# denoise

The cut he did but when i went to see the end result I realized that MeGUI put the subtitle on the movie (Hardcoding) :confused:.

As it is only one issue I would like to know some things:

1. What command I use in Avisynth Script for not incorporating the sub-title the film.

2. Is there any way MeGUI not reencoding the video and just run the TRIM?

3. Otherwise, if is not possible to MeGUI run TRIM only with no reencoding, is there any program I can use to make the perfect trim as the Avisynth script as I used SolveigMM AVI Trimmer but it does not make the cut.

4. It is possible to do the TRIM along with the audio, if so, how should I proceed in MeGUI, because I do not know how to include the audio on the issues that I do here in MeGUI, I could never put the audio with the video.

Thank you all for your help ;),

Druid

Sharktooth
3rd February 2011, 20:04
1. do not use DirectShowSource coz it is not frame accurate for your cuts. Also if you have FFDShow with subtitles enabled it will use it to decode the videostreams AND will render the subtitles.
so, if you want to keep DirectShowSource, ensure to disable subs from FFDShow. However it is much more recommended to use FFVideoSurce.

2. no

DruidCtba
3rd February 2011, 20:45
Then is better I use:

FFVideoSource ("tom.mkv", fps = 23.976, audio = false, convertfps = true)
Trim (0, 42547) + + Trim (42557, 165083)
# deinterlace
# crop
# resize
# denoise

in MEGUI?

Sharktooth
3rd February 2011, 20:51
FFVideoSource ("tom.mkv", fpsnum=24000, fpsden=1001)

DruidCtba
3rd February 2011, 21:05
Hi friend, how to know this commands that you put here: FFVideoSource ("tom.mkv", fpsnum=24000, fpsden=1001) ???

Druid®

P.S. Exist one GUI with command's for this one above (sorry my english, is very poor, I'm live in Brasil).

Sharktooth
3rd February 2011, 21:22
have a look at this thread: http://forum.doom9.org/showthread.php?t=127037&highlight=ffvideosource
and here: http://ffmpegsource.googlecode.com/svn/trunk/doc/ffms2-avisynth.html

DruidCtba
3rd February 2011, 21:32
have a look at this thread: http://forum.doom9.org/showthread.php?t=127037&highlight=ffvideosource
and here: http://ffmpegsource.googlecode.com/svn/trunk/doc/ffms2-avisynth.html

Thanks a lot dear friend ;).

Druid®

DruidCtba
3rd February 2011, 22:18
Hi friend, how to know this commands that you put here: FFVideoSource ("tom.mkv", fpsnum=24000, fpsden=1001) ???

Druid®

P.S. Exist one GUI with command's for this one above (sorry my english, is very poor, I'm live in Brasil).

No run, AVS Script Error in MEGUI :helpful:


Druid®

P.S. AVsP 2.02 FFVideoSource not recognize the command.

Sharktooth
4th February 2011, 01:43
load the plugin first (use the LoadPlugin avisynth function). it is usually located in C:\Program Files\MeGUI\tools\ffms\ffms2.dll
change the path according to where you installed MeGUI.

krosswindz
4th February 2011, 17:43
I am using MeGUI to encode a movie using x264 encoder. I noticed that it is picking the vfw4x264.exe, is there a way for me to make it select the normal x264.exe instead of the vfw4x264.exe?

krosswindz
4th February 2011, 17:47
I am using MeGUI to encode a movie using x264 encoder. I noticed that it is picking the vfw4x264.exe, is there a way for me to make it select the normal x264.exe instead of the vfw4x264.exe?

nvm, I had enabled use 64bit x264 which was causing the issue. I have 32bit avisynth.

Out of curiosity what are the two wrappers avs4x264/vfw4x264.

DruidCtba
4th February 2011, 17:58
load the plugin first (use the LoadPlugin avisynth function). it is usually located in C:\Program Files\MeGUI\tools\ffms\ffms2.dll
change the path according to where you installed MeGUI.

Thanxs a lot mate, now run fine :cool::):cool:

Druid®

P.S. Exist in the PDF Manual for this one my friend, MANUAL an GUIDE for use PLUGINS FFDSHOW and COMMANDS for AVISYNTH ???

Sharktooth
5th February 2011, 04:14
@krosswindz: they're just wrappers for using 32bit avisynth concurrently with 64bit x264 since normally they wont work coz you cant make 32bit and 64bit apps "talk" each other if not tru pipes (that's what those wappers do).

@DruidCtba: im not sure if anyone made a PDF but you can find the docs on a wiki here: http://avisynth.org/mediawiki/Main_Page#AviSynth_Wiki

Zathor
5th February 2011, 11:23
I am using MeGUI to encode a movie using x264 encoder. I noticed that it is picking the vfw4x264.exe, is there a way for me to make it select the normal x264.exe instead of the vfw4x264.exe?

You can disable it in the settings - but I do not recommend it.

larrsz
9th February 2011, 14:46
Hi-
Wonder if I could get some help here. I have been using MeGUI for only a few days and I saw on another forum that a few users are converting SD VOB files from 720X480 to 1280X720 which eliminates some difficulty that some hardware extenders have with properly displaying 480i anamorphic content.

Is this possible and how do you do it? I have tried setting the parameters, in the crop and resize portion of the AVISynth Script Creator Dialog box and even entering the values in the script tab (using Lanczos Sharp Resize Filter). Can anyone point me in the correct direction to accomplish this?

Sharktooth
9th February 2011, 14:51
upscaling is pretty much useless.if you have an interlaced source, just deinterlace it.

Lighto
9th February 2011, 14:54
@larrsz
I managed to do some upscaling by checking the resize check box and edit the script tab manually in the past.

larrsz
9th February 2011, 14:57
upscaling is pretty much useless.if you have an interlaced source, just deinterlace it.

It is a progressive source, but my hardware will always try to stretch the 480 source to fill the screen (eliminating black bars if they are needed makes everything look tall and thin). If I convert to 720P, it displays properly.

Can it be done without returning an error?

larrsz
9th February 2011, 14:58
@larrsz
I managed to do some upscaling by checking the resize check box and edit the script tab manually in the past.

I tried that, but I get an AVISynth error. Although, interestingly enough I did get it to work one time and it worked with my hardware.

Sharktooth
9th February 2011, 15:06
the lighto suggestion works. just edit the script in the avs creator (just before saving it).
if you get an error, please post it.

larrsz
9th February 2011, 16:08
the lighto suggestion works. just edit the script in the avs creator (just before saving it in).
if you get an error, plaease post it.

I get
ANISynth Script Error: Invalid Arguments to function "LanczosResize"

Here is the entry in the script tab:

LanczosResize(1280,720) # Lanczos (Sharp)LoadPlugin("C:\Users\admin\Documents\MeGUI_1911_x86_WithoutInstaller\tools\dgindex\DGDecode.dll")
DGDecode_mpeg2source("C:\Users\admin\Desktop\480 test file.d2v", info=3)
LoadPlugin("C:\Users\admin\Documents\MeGUI_1911_x86_WithoutInstaller\tools\avisynth_plugin\ColorMatrix.dll")
ColorMatrix(hints=true, threads=0)
#deinterlace
#crop
LanczosResize(1280,720) # Lanczos (Sharp)
#denoise

And here is the log file after I saved it...

[Information] Log
-[Information] Versions
--[Information] MeGUI Version : 1911 (svn)
--[Information] OS : Windows Vista Premium Edition x64 SP2 (6.0.131072.6002)
--[Information] Latest .Net Framework installed : 4.0 (4.0.30319)
--[Information] Avisynth Version : 2.5.7.0 (12/31/2006 2:16:36 AM)
-[Information] Update detection
--[Information] [2/9/2011 9:58:17 AM] Connecting to server: http://megui.xvidvideo.ru/auto/stable/
--[Information] [2/9/2011 9:58:19 AM] All files are up to date
-[Information] Log for job1 (idx, 480 test file.mpg -> 480 test file.d2v)
--[Information] [2/9/2011 9:58:48 AM] Started handling job
--[Information] [2/9/2011 9:58:48 AM] Preprocessing
--[Information] Job commandline: "C:\Users\admin\Documents\MeGUI_1911_x86_WithoutInstaller\tools\dgindex\dgindex.exe" -SD=< -AIF=<C:\Users\admin\Desktop\480 test file.mpg< -OF=<C:\Users\admin\Desktop\480 test file< -FO=0 -exit -hide -OM=1 -TN=80
--[Information] [2/9/2011 9:58:48 AM] Indexing started
--[Information] Standard output stream
--[Information] Standard error stream
--[Information] [2/9/2011 9:58:51 AM] Running auto force film
---[Information] Film percentage: 99.03
---[Information] [2/9/2011 9:58:51 AM] Applied force film
--[Information] [2/9/2011 9:58:51 AM] Postprocessing
---[Information] Deleting intermediate files
----[Information] [2/9/2011 9:58:51 AM] Successfully deleted C:\Users\admin\Desktop\480 test file.log
--[Information] [2/9/2011 9:58:51 AM] Job completed


:confused:

Sharktooth
9th February 2011, 16:18
the first line is the cause. remove "LanczosResize(1280,720) # Lanczos (Sharp)" from it.

Lighto
9th February 2011, 16:20
I get
ANISynth Script Error: Invalid Arguments to function "LanczosResize"

Here is the entry in the script tab:

LanczosResize(1280,720) # Lanczos (Sharp)LoadPlugin("C:\Users\admin\Documents\MeGUI_1911_x86_WithoutInstaller\tools\dgindex\DGDecode.dll")
DGDecode_mpeg2source("C:\Users\admin\Desktop\480 test file.d2v", info=3)
LoadPlugin("C:\Users\admin\Documents\MeGUI_1911_x86_WithoutInstaller\tools\avisynth_plugin\ColorMatrix.dll")
ColorMatrix(hints=true, threads=0)
#deinterlace
#crop
LanczosResize(1280,720) # Lanczos (Sharp)
#denoise

And here is the log file after I saved it...

[Information] Log
-[Information] Versions
--[Information] MeGUI Version : 1911 (svn)
--[Information] OS : Windows Vista Premium Edition x64 SP2 (6.0.131072.6002)
--[Information] Latest .Net Framework installed : 4.0 (4.0.30319)
--[Information] Avisynth Version : 2.5.7.0 (12/31/2006 2:16:36 AM)
-[Information] Update detection
--[Information] [2/9/2011 9:58:17 AM] Connecting to server: http://megui.xvidvideo.ru/auto/stable/
--[Information] [2/9/2011 9:58:19 AM] All files are up to date
-[Information] Log for job1 (idx, 480 test file.mpg -> 480 test file.d2v)
--[Information] [2/9/2011 9:58:48 AM] Started handling job
--[Information] [2/9/2011 9:58:48 AM] Preprocessing
--[Information] Job commandline: "C:\Users\admin\Documents\MeGUI_1911_x86_WithoutInstaller\tools\dgindex\dgindex.exe" -SD=< -AIF=<C:\Users\admin\Desktop\480 test file.mpg< -OF=<C:\Users\admin\Desktop\480 test file< -FO=0 -exit -hide -OM=1 -TN=80
--[Information] [2/9/2011 9:58:48 AM] Indexing started
--[Information] Standard output stream
--[Information] Standard error stream
--[Information] [2/9/2011 9:58:51 AM] Running auto force film
---[Information] Film percentage: 99.03
---[Information] [2/9/2011 9:58:51 AM] Applied force film
--[Information] [2/9/2011 9:58:51 AM] Postprocessing
---[Information] Deleting intermediate files
----[Information] [2/9/2011 9:58:51 AM] Successfully deleted C:\Users\admin\Desktop\480 test file.log
--[Information] [2/9/2011 9:58:51 AM] Job completed


:confused:

Not sure if this is the cause or not but why are there 2 lines for resize?

Sharktooth
9th February 2011, 16:21
the first parameter for the resize function is the clip, the default is set to "last". if there is no input it will error out since the parameter is invalid.

larrsz
9th February 2011, 16:29
the first line is the cause. remove "LanczosResize(1280,720) # Lanczos (Sharp)" from it.

:thanks:

Works!

However, I wondered the same thing, why were there two entries for resize? It seems that it is permanent now and I have to remove the first one every time I use resize, interesting...

Sharktooth
9th February 2011, 16:35
have you modified the default avisynth profile adding a resize at the begin?

larrsz
9th February 2011, 16:44
have you modified the default avisynth profile adding a resize at the begin?

I guess I did, but quite by accident. I'll redo it.


Thanks again

WILLIS
15th February 2011, 18:08
Hey I use MeGUI a ton and really love it! However I seem to have run into a problem when encoding to mp4...

I am using mp4 input via the file indexer which uses ffvideoindex, and am re-encoding to mp4 output as well. The encode runs smoothly but at about 99% or right before finishing the encode I receive an output error of some sort. I am currently running an encode so I cant paste the error log here right now, but if anyone has any insight on what my problem might be, plz chime in...thx!

Sharktooth
15th February 2011, 18:15
is the destination file name different from the source?

WILLIS
15th February 2011, 20:31
yes i named it differently...I will post my error from the log as soon as this current encode finishes...im hoping it doesn't give me the error tho...

WILLIS
15th February 2011, 21:23
well it happened again after a 4 hour 30 minute encode ughhh!

heres the error log for the job...btw I was outputting in .264 format this time from mp4

--[Information] [2/15/2011 10:50:29 AM] Started handling job
--[Information] [2/15/2011 10:50:29 AM] Preprocessing
--[Information] Avisynth input script
---[NoImage] LoadPlugin("C:\Program Files\MeGUI\tools\ffms\ffms2.dll")
---[NoImage] FFVideoSource("C:\Documents and Settings\Administrator\Desktop\Slam Session_RAW.mp4").AssumeFPS(30000,1001)
---[NoImage] #deinterlace
---[NoImage] #crop
---[NoImage] #resize
---[NoImage] #denoise
--[Information] Job commandline: "C:\Program Files\MeGUI\tools\x264\x264.exe" --preset veryslow --tune fastdecode --crf 1 --threads 2 --keyint 95 --fullrange on --vbv-maxrate 20000 --vbv-bufsize 25000 --level 40 --bframes 3 --qpmax 51 --sar 1:1 --output "C:\Documents and Settings\Administrator\Desktop\Slam Session_RAW.264" "C:\Documents and Settings\Administrator\Desktop\Slam Session_RAW.mp4.avs"
--[Information] [2/15/2011 10:50:32 AM] Encoding started
--[Error] [2/15/2011 3:18:48 PM] Process exits with error code: -1073741819
--[Information] Standard output stream
--[Information] Standard error stream
---[NoImage] avs [info]: 640x360p 1:1 @ 30000/1001 fps (cfr)
---[NoImage] x264 [info]: using SAR=1/1
---[NoImage] x264 [info]: using cpu capabilities: MMX2 Cache64
---[NoImage] x264 [info]: profile High, level 4.0
---[NoImage] x264 [info]: cabac=0 ref=16 deblock=0:0:0 analyse=0x3:0x133 me=umh subme=10 psy=1 fade_compensate=0.10 psy_rd=1.00:0.00 mixed_ref=1 me_range=24 chroma_me=1 trellis=2 8x8dct=1 cqm=0 deadzone=21,11 fast_pskip=1 chroma_qp_offset=-2 threads=2 sliced_threads=0 nr=0 decimate=1 interlaced=0 constrained_intra=0 bframes=3 b_pyramid=2 b_adapt=2 b_bias=0 direct=3 weightb=0 open_gop=0 weightp=0 keyint=95 keyint_min=9 scenecut=40 intra_refresh=0 rc_lookahead=60 rc=crf mbtree=1 crf=1.0000 qcomp=0.60 qpmin=0 qpmax=51 qpstep=4 vbv_maxrate=20000 vbv_bufsize=25000 crf_max=0.0 nal_hrd=none ip_ratio=1.40 aq=1:1.00
---[NoImage] x264 [info]: started at Tue Feb 15 10:50:35 2011
--[Information] [2/15/2011 3:18:49 PM] Job completed

Sharktooth
16th February 2011, 01:30
it would be helpful to know the exact error you get.
from the log it seems x264 exited with an error code.
try using x264 directly from the commandline (using the same options) and see if you can catch the error.

WILLIS
17th February 2011, 20:14
it would be helpful to know the exact error you get.
from the log it seems x264 exited with an error code.
try using x264 directly from the commandline (using the same options) and see if you can catch the error.

how would I go about doing that? Im just not very familiar with using things from CLI and have never used x264 before like that...

Sharktooth
18th February 2011, 03:25
it could be a memory problem too. since 32bit applications are limited to 2GB of ram, check in your task manager if the limit is hit.
before running x264 by command line, please check that.

Tuik
19th February 2011, 14:04
Hello,

In the last update Megui installed a new xvid version (1.3 RC). I usually use Adaptative quantization but now that option was gone. The option of HVS masking was unlocked but now it has 2 options, Lumi and Variance, what should i use? I'm also using Didee's 6of9 HVS with 2 max bframes, with no QPEL and no GMC.

Zathor
19th February 2011, 14:11
The old "AdaptiveQuant" in the GUI is now "lumi" in HVS masking. The settings in your profile have been updated automatically to reflect your old setting of AdaptiveQuant.

Tuik
19th February 2011, 18:45
The old "AdaptiveQuant" in the GUI is now "lumi" in HVS masking. The settings in your profile have been updated automatically to reflect your old setting of AdaptiveQuant.

Thanks, so it's better to use "lumi" than variance, right?

Tuik
19th February 2011, 19:14
Also, i've read something about the -slice option on the new xvid. How do i use it on megui? And since i've been using "-threads 8", what should be the value for "-slice x"?

Thanks a lot

Edit: Also, what about the -metric option?

Sharktooth
20th February 2011, 04:08
variance is definatly better than lumimasking. also, why threads 8? xvid needs 1 thread per CPU core, so unless you have an 8 core CPU or a dual quad, 8 is unappropriate.

Tuik
21st February 2011, 02:20
variance is definatly better than lumimasking. also, why threads 8? xvid needs 1 thread per CPU core, so unless you have an 8 core CPU or a dual quad, 8 is unappropriate.
Thanks, i'll use variance.

My task manager reports 8 threads (intel i7 950) so i thought the value should be 8. What about the slices option? And the metric? Thank a lot!

Sharktooth
21st February 2011, 14:11
ok, in that case 8 is correct. about slices, it's a new option but i dont think all decoders support it, expecially standalones. AFAIK xvid uses slices to enhance multithreaded encoding speed at the cost of some quality.

Tuik
21st February 2011, 14:22
ok, in that case 8 is correct. about slices, it's a new option but i dont think all decoders support it, expecially standalones. AFAIK xvid uses slices to enhance multithreaded encoding speed at the cost of some quality.

I did some experiment with "-slices 4" but the encoded video came with a lot of artifacts, so i guess that for now it's not to be considerated.

Also, i've got a problem with Megui encodings since the update of xvid to 1.3rc. What happens is the output .avi doesn't work neither on media player, vdm or even mediainfo. But then i open it on mpeg4modifier, just saved again and it works perfectly. What is the problem? Any hint?

The command line used is:

Job commandline: "C:\Program Files (x86)\MeGUI\tools\xvid_encraw\xvid_encraw.exe" -i "C:\[...DOWNLOADS...]\[script].avs" -pass2 "C:\[...DOWNLOADS...]\[script].stats" -bitrate 2900 -kboost 100 -ostrength 10 -oimprove 10 -odegrade 10 -chigh 30 -clow 15 -overhead 0 -max_key_interval 240 -vhqmode 4 -qmatrix "D:\Tools\SixOfNine-HVS.xcm" -masking 2 -bvhq -bquant_ratio 162 -bquant_offset 0 -par 1:1 -threads 8 -avi "C:\[...DOWNLOADS...]\[script].avi" -vbvmax 4854000 -vbvsize 3145728 -vbvpeak 2359296 -par 1

Sharktooth
21st February 2011, 14:31
i'll have a look later.

Tuik
22nd February 2011, 17:47
so, have you checked it already? it's really annoying to open all video files encoded on mpeg4modifier and save again.

Sharktooth
22nd February 2011, 18:08
ok, slices option is either broken or not well supported by decoders.
i've also did an encoding with xvid and it worked. ill try to use your exact settings and report back.

Sharktooth
24th February 2011, 16:04
please try with xvid 1.3 FINAL (just released)