View Full Version : MeGUI: General Questions and Troubleshooting Thread


Pages : 1 2 3 4 5 [6] 7 8 9 10

Inspector.Gadget
11th November 2009, 18:38
Deblocking is one of the most useful, most visually powerful features in x264. Disabling it is a fool's errand and often won't net you a great decrease in encoding time because deblocking is turned on and off at the decoder level as well.

Inspector.Gadget
11th November 2009, 18:39
Like I said in a previous post, I can't find the option to set the fps in AVI Mux GUI

Thanks

You SHOULDN'T NEED TO. If AMG (USED MANUALLY, WITHOUT USING MEGUI AT ALL) can't detect the FPS from the input, then either xvid_encraw is breaking the AVI header or AMG has a bug.

rapscallion
12th November 2009, 00:51
Deblocking is one of the most useful, most visually powerful features in x264. Disabling it is a fool's errand and often won't net you a great decrease in encoding time because deblocking is turned on and off at the decoder level as well.
Thanks again Mr Gadget. No, I don't intend disabling it. However for quite some time , month's ago, it was disabled. (AVCHD preset).

When I caught it, it seemned like the 2 pass processing took longer. Where a 2hr movie used to take ~3 hr 1st pass, now takes ~4 hr. 2nd Pass 7 hr> 8hr. The only change I made was enabling the deblock . This is on ver 1051.

I've pulled some of the earlier avchd's and watched them again on my SA BD player and I don't see any problems with the vid. And, I didn't remember any problems/artifacts when I originally watched others.

I'd like to upgrade Megui to a newer ver but don't have a clue what kind of presets to use for either standalone bluray or standalone avchd.

Inspector.Gadget
12th November 2009, 00:54
Have you checked with MediaInfo to make sure that deblocking is actually off in the encoded files? If not, it's yet another MeGUI bug. If so, then it's a bug in the presets.

MeGUI's presets are generally outdated in view of the new tuning system. Simply preserve the limitations for hardware compatibility and set everything else to your preference.

rapscallion
12th November 2009, 01:00
I hate to admit it but I never knew that MI had that info.
I will check for sure.

If it was off during those encodes what should I look for as far as artfacts, etc ?Thanks

Inspector.Gadget
12th November 2009, 01:06
At high enough bitrates, nothing. At lower bitrates, blocking.

rapscallion
12th November 2009, 04:12
Ok then, I guess I had high enough bitrates on those encodes so that I didn't see any blocking.
I normally encode an avchd @ 1280*720 and burn to DVD-9

I looked at a current encode, with deblocking enabled, @ 0/0 and MI shows deblock=1:0:0

An earlier encode, with it disabled, shows deblock=0:0:0 So, I'm assuming that there was no deblocking ?

Inspector.Gadget
12th November 2009, 04:55
0:0:0 is disabled. 1:0:0 is on (default). Even at high bitrates, turning off deblocking harms picture quality by sucking up bits otherwise allocated elsewhere (I believe).

rapscallion
12th November 2009, 05:09
Thanks again ! (I'm , of course ,leaving it on all the time now)...the end -:)

rapscallion
13th November 2009, 22:41
Maybe a stupid question, but I am curious.

If I encode an mkv with deblocking set to , let's say :-3:-3 and then mux to a m2ts and re encode via Megui , with deblocking disabled, will the resulting video have the deblocking from the first encode carry over, after I remux it ?

Inspector.Gadget
13th November 2009, 23:10
The deblocking is a codec feature, not a pre-pass algorithm. It works internally within x264 to improve quality rather than making a deblocking pass to blur or discard edge data before compression. So no, it won't be "preserved" by re-encoding: the decoder will apply deblocking before the data is fed to the second encoder. Remuxing won't affect it, though.

Also, according to x264 devs, -3:-3 is really overkill: not even --tune grain goes that far.

rapscallion
13th November 2009, 23:18
Thanks again ! :thanks:

The (-3) was just an example. I don't/wouldn't ever use that.

The more I learn about this, the more I realize how little I know.
So, I really appreciate your, and others, informative responses.

Inspector.Gadget
14th November 2009, 07:17
Since so many people are complaining about broken versions and incompatibility, here's what I know for certain to work:

Core 1056, Libs 1056, Data 1053, AVS Wrapper 1056, STx264 85, TXviD 10, AVS 01, Tx264 01. Everything else shouldn't break compatibility unless there's an API change; I've dropped in the latest x264 builds from x264.nl and had no problems. I'm not yet manually using weightp, but the problems there seem to be only with a select few decoders and anyway are unrelated to MeGUI itself.

mozzle
14th November 2009, 07:37
Since so many people are complaining about broken versions and incompatibility, here's what I know for certain to work:

Core 1056, Libs 1056, Data 1053, AVS Wrapper 1056, STx264 85, TXviD 10, AVS 01, Tx264 01. Everything else shouldn't break compatibility unless there's an API change; I've dropped in the latest x264 builds from x264.nl and had no problems. I'm not yet manually using weightp, but the problems there seem to be only with a select few decoders and anyway are unrelated to MeGUI itself.

Thanks for the info, Gadget. I hope Kurtnoise is still around. And I especially hope Sharktooth is doing well. I know he's had some health issues in the past. Best to all three of you!

-mozzle

LigH
14th November 2009, 11:58
@LigH

could you try the deinterlace test from hdc ? is mutuated from berrinam tool too .. but should be a little less aggressive

thanks

BHH

Sorry for the late reply, I was kept from returning home for a while.

Your analysis appears to be better (but especially the 2nd pass is a lot slower, half playback speed for my machine - AM2 3800+).

Source is declared tff by a margin of 690/41.
Analyzed 1757 sections of five frames
Found Interlace Sections: 1184 67.39%
Found progressive Sections:482 27.43%
Found Telecined Sections: 91 5.18%
Found Zero Mov: 27.43% 482
Found One Mov: 7.63% 134
Found Two Mov: 5.18% 91
Found Three Mov: 9.73% 171
Found Four Mov: 7.17% 126
Found Five Comb: 42.86% 753

The Movie is declared to interlaced


I agree to this result.

Rodger
15th November 2009, 01:35
I strongly advise everybody to use Jeebīs Rev.1336 of x264 with Megui as I had issues with one of my players.

Pioneer BDP-LX52 didnīt play anything created with Jeebīx Rev.1309 but again everything with the new Rev.

Seems there was something wrong with Megui builds for quite a while.

HiTM4N
15th November 2009, 11:10
Hi,

* I'm using i7 860 P55 Quad Core Hyper-Threading CPU, My Question is in meGUI config option in thread to what number I should set for Xvid encoding? as i7 860 is HT CPU?

I have heard that leave it to "0" it will be auto, but i can't get to "0" it get change back to "1".

* And also for x264, how to set it?

I have tried to search all over the net but couldn't find solution to my question.

Regards

szabi
15th November 2009, 14:30
No, I wouldn't recommend using old x264

I understood you, propable the newer can be better.
I wrote if someone prefer using the profiles in that case.
Anyway your encoding time increasing.

Otherwise I did a test for comparing the encoding time.

1.
Dvd PAL mpg2 encoding to mkv by x264 using the "unrestricted 2pass HQ" profile
used avs script:
crop( 0, 76, -4, -76)
LanczosResize(704,288)

megui.v1056 x264r1183 => 00:16:51
megui.v1056 x264r1309 => 00:21:45
megui.v1057 x264r1339 => 00:23:09

2.
Same dvd PAL mpg2 encoding to mp4 by x264 using the "Device Cellphones_PDAs-Level1.3" profile
used avs script:
crop( 0, 76, -4, -76)
LanczosResize(320,128)

megui.v1056 x264r1183 => 00:07:50
megui.v1056 x264r1309 => 00:08:23
megui.v1057 x264r1339 => 00:08:36

3.
I did not have any HD rip now, so I used uncompressed ingame video recorded by fraps. Info:1680x1050@25fps.
x264 "DXVA HD HQ" profile
used avs script:
Trim(18,3570)
ConvertToYV12()

megui.v1056 x264r1183 => 00:14:53
megui.v1056 x264r1309 => 00:21:54
megui.v1057 x264r1339 => 00:22:22

You see encoding time increasing if I use newer and newer x264 with old profile collection.
Especially the last high resolution encoding. Time almost duplicated.
Also there can be a little difference between megui 1056 and 1057.
But it is also possible the newer x264 can be slower. Is not it?

bye
szabi

Dark Shikari
15th November 2009, 14:34
That's because the defaults in x264 changed, so the same commandline won't necessarily do the same thing in both cases.

XhmikosR
15th November 2009, 14:38
It's the new features of x264 that are enabled by default, like mb-tree and weightp, that slow down the encoding. But you do gain in quality. Try using the newest x264 and use --no-mbtree and --weightp 0 in the cmd and see what speeds you'll get.

szabi
15th November 2009, 15:02
I am not familiar the correct settings of x264 especially the cmd usage.
That is why I am using these profiles.

The STx264v85 profile collection in megui was created for x264r1181.
It looks like outdated, but I do not have better way how to set up newer x264.


EDIT: I mean these profiles. click (http://forum.doom9.org/showthread.php?p=1162196#post1162196)

bye
szabi

HiTM4N
15th November 2009, 16:46
can I get help here http://forum.doom9.org/showthread.php?p=1344041#post1344041

Thanks in Advance

Carpo
16th November 2009, 12:53
to get around the profiles issue - untick 1057 and Tx264 - as its these two files that mess things up

szabi
16th November 2009, 14:14
I am using megui 1057 without any profile problem.
Install and update megui but excluding profile update.
Use these profiles (http://www.mediafire.com/?udmmwzn2nyi) modified by ncatt (http://forum.doom9.org/showthread.php?p=1338462#post1338462).
Incompability was fixed and it is working just little bit outdated.

bye
szabi

Carpo
17th November 2009, 00:45
when i tried it 1057 borked every thing, if i left that off the list everything worked fine :)

szabi
17th November 2009, 22:05
It's the new features of x264 that are enabled by default, like mb-tree and weightp, that slow down the encoding. But you do gain in quality. Try using the newest x264 and use --no-mbtree and --weightp 0 in the cmd and see what speeds you'll get.

I tried it, but no major difference in encoding time.

my setting:
x264.exe" --profile high --level 4.1 --preset slow --pass 2 --bitrate 11702 --stats "F:\x.stats" --thread-input --deblock -1:-1 --ref 4 --vbv-bufsize 50000 --vbv-maxrate 50000 --subme 7 --sar 1:1 --output "F:\x.mkv" "F:\x.avs"

"my settings": 00:39:24
"no-weightb": 00:36:19
"no-mbtree": 00:36:14
"no-weightb" "no-mbtree": 00:36:09


Unfortunately I run into an annyoing problem.
If I use DXVA HD HQ profile with new megui and x264 the parameters not going to x264 correctly.

This parameters should be sent to x264, from DXVA HD HQ profile :
program --profile high --level 4.1 --preset fast --pass 2 --bitrate 11702 --stats ".stats" --thread-input --deblock -1:-1 --ref 4 --vbv-bufsize 50000 --vbv-maxrate 50000 --me umh --direct auto --partitions p8x8,b8x8,i4x4,i8x8 --trellis 2 --output "output" "input"

and it is which really sent:
program --profile high --level 4.1 --preset fast --pass 2 --bitrate 11702 --stats ".stats" --thread-input --vbv-bufsize 50000 --vbv-maxrate 50000 --output "output" "input"

Does anyone else meet this?

bye
szabi

XhmikosR
17th November 2009, 22:18
I don't see anywhere in your command line to disable mb-tree and weightp, so of course the speed will be the same since they are enabled by default. Take a look here (http://mewiki.project357.com/wiki/X264_Settings) to see a few info regarding x264's settings. That's just for testing the speed, you are advised to keep those features enabled since they improve the quality.
As for the other issue, just stop using MeGUI until it gets fixed.

szabi
17th November 2009, 22:35
I usually use them both.
After my setting was changed by no-weightb there was 3 minutes drop. Also if no-mbtree was used almost same 3 minutes drop for my settings.
If I disabled both the gain reamin 3 minutes, not 6 as I expected.

EDIT: Ok, I did not copy-paste the entire commandline when I changed it. Only the modification switch to compare the encoding time.

by
szabi

XhmikosR
17th November 2009, 23:21
No one said that the speed gain would be proportional to the number of the default settings disabled. Anyway, use a faster preset then, or try to see which settings where exactly used by that old x264 version and try to use them.

rapscallion
18th November 2009, 06:19
to get around the profiles issue - untick 1057 and Tx264 - as its these two files that mess things up
*Do you mean 1057 core only, or data and libs as well ?

Also, should I be using the profiles via the update or the ones by ncatt (post #5025, above)
for best results via SA AVCHD and SA Bluray??

In other words, which profile is compatible w/ x264 1309? (v 1056 core)

Edit : *I since have unticked all 3

Edit#2: When installing 1056 the speed preset bar defaults to "fast" when the Wiki pg states "medium" is the default. Which one should I use ?

rudiev
18th November 2009, 12:21
On page 251 from this thread i read that people are using megui v1057, but at the download page, http://sourceforge.net/projects/megui, you only can download v1056 and i also read about x264.exe v R1339, where can i download this new version? If i use the auto updater it says that everything is updated, but i still have megui v1056 with x264.exe v R1183 Jeeb's patched build.

OroSaiwa
18th November 2009, 12:26
@rudiev You might wanna switch update servers to development if you want built 1057

rudiev
18th November 2009, 14:32
@rudiev You might wanna switch update servers to development if you want built 1057

I haven't thought off this that it is a development version. Changed it and there are updates for me. But I prefer to stay at the tested stable version or can you, and others, recommend this newer version?

:thanks: for the tip :)

rapscallion
18th November 2009, 17:58
Since so many people are complaining about broken versions and incompatibility, here's what I know for certain to work:

Core 1056, Libs 1056, Data 1053, AVS Wrapper 1056, STx264 85, TXviD 10, AVS 01, Tx264 01. Everything else shouldn't break compatibility unless there's an API change; .

When I try to update 1056, via Development, I see the following vers :

Core -OK
libs- existing 1051, latest 1057
Data-existing 1051, latest 1057
AVS wrapper-existing 1006, latest 1006

What ver of x264 do you have along w/this list, 1309?

Inspector.Gadget
18th November 2009, 23:45
Latest from x264.nl. I don't update from MeGUI 1056, at all. I simply don't use autoupdate.

rapscallion
19th November 2009, 01:31
Thanks....but, for people like me that depend on presets, that's a little too advanced.

I'm kind of in a quandry, with 1056 and x264 v1183, what are the valid prests to be using?
The ones that are installed during 1056 setup or the ncatt ones ?

Inspector.Gadget
19th November 2009, 01:34
Don't use MeGUI presets at all, they are outdated. Use x264's built-in presets and profiles, subject to limitations for non-PC devices, until the profiles are updated.

rapscallion
19th November 2009, 05:15
Then it may be back to 1051 for me because I only us non PC devices.

What about the presets mentioned in this post, they're dated 10/27/09 :

I am using megui 1057 without any profile problem.
Install and update megui but excluding profile update.
Use these profiles (http://www.mediafire.com/?udmmwzn2nyi) modified by ncatt (http://forum.doom9.org/showthread.php?p=1338462#post1338462).
Incompability was fixed and it is working just little bit outdated.

bye
szabi

Something has to be entered in the "encoder settings" box on the Megui main page ?
So, I don't quite understand how to use 264's "built in" presets and profiles.(and believe me, I searched)

Inspector.Gadget
19th November 2009, 05:35
Just use the options that are --tune whatever and --preset whateverelse. They're in the rev. 1056 config panel. You can enforce on that same page a profile and a level per your device's specs. If you require advanced settings, they're still there and will be exposed when you check the appropriate box right in the middle of the panel. If you load an old preset, and THEN check the advanced settings box, all the old defaults will still be applied to the command line (but you may now want to use MB-Tree, etc., whereas they weren't available before).

rudiev
19th November 2009, 13:03
Something has to be entered in the "encoder settings" box on the Megui main page ?
So, I don't quite understand how to use 264's "built in" presets and profiles.(and believe me, I searched)
Normally the 'encoder settings' come with a drop down box with a lot of presets. The presets should be saved in the directory 'C:\Program Files (x86)\megui\allprofiles' , where i have 13 subdirectories containing .xml files which are the presets. The presets are for audio and video. For video i have two subdirectories called 'x264' and 'XviD', these two directories contains lots of .xml files with encoding presets. These presets can i choose in the 'encoder settings' drop down box. I have attached a picture of this, but it can take some time before it's approved.
Can you check that you have these presets? In your megui installation directory, subdirectory 'allprofiles' with again subdirectories containing these .xml files.

These profile also should be updated, check the updater under 'profile collection'. STx264 should be version 85, STAudio version 16, TXviD version 10 and AVS version 01. At least this is megui showing on my pc(megui version 1056).

rapscallion
19th November 2009, 15:35
Thanks rudiev, I know all that, but other posters are saying those presets/profiles are out of date (see Inspector Gadget's post above my previous-#5038). He's saying to use x264's built in profiles/presets. Thus, my question re the main pg.

rudiev
19th November 2009, 18:31
Thanks rudiev, I know all that, but other posters are saying those presets/profiles are out of date (see Inspector Gadget's post above my previous-#5038). He's saying to use x264's built in profiles/presets. Thus, my question re the main pg.

Yeah, x264.exe have build-in profile. Run 'x264.exe --longhelp' to see all option and profiles. Also if you download the newest x264.exe (eg from x264.nl), this version has again updated profiles. I think that is what he meant.

Ow, in the newer version of x264.exe it's 'x264.exe --fullhelp'.

rapscallion
19th November 2009, 18:41
The more answers I get, the more confused I become. How does that affect the "encoder settings" box on Megui main pg ? And, the ST x264...where does that come from. Megui or x264?

And where do the ncatt profiles fit in ? My head really hurts now !

All I want to do is run 1056 w/r1183 and good/valid sa_avchd/sa_bluray presets.

Inspector.Gadget
19th November 2009, 19:08
Then use the old MeGUI profiles (what you have now), check the advanced settings box in the config window to get those options applied, and optionally apply MB-Tree by enabling it in MeGUI. You won't get the advantage of x264 developer-tuned settings, but you'll get known hardware compliance and you can always change the options not relevant to hardware compatibility to conform to the x264 presets and tunings if you wish.

szabi
19th November 2009, 19:28
Profile collection which coming with update was created in this topic: New MeGUI x264 presets (http://forum.doom9.org/showthread.php?p=1162196#post1162196) creator is Sharktooth.
Last version is v85. It is called STx264 on update list.

But these profiles were not modified for new x264.
That is why it is outdated.

In addition I wrote in previous page the settings from profile are not sent correctly to x264.

I chose DXVA HD HQ profile, sent calculated bitrate and start encoding.
When I checked the logfile encoding parameters was not from the profile, instead of that the encoder was running with in-built fast preset.
It is quite far from HQ profile settings.

Also I saw the ncatt modified profiles have same name as Sharktooth profiles but have different settings.

It is I have realized into so far.

EDIT:
Then use the old MeGUI profiles (what you have now), check the advanced settings box in the config window to get those options applied, and optionally apply MB-Tree by enabling it in MeGUI.

You are right, if you select advanced setting the parameters will be from profiles instead of preset.

bye
szabi

rapscallion
19th November 2009, 19:49
@IG and @szabi...Thank you, those were the answers I was looking for.

(btw, the Sharktooth profiles are what I've been using all along, since May, in ver 10XX>1051 )
Am still using 1051 until I was able to figure out the settings in 1056.

szabi
19th November 2009, 20:04
I also used Sharktooh profile collection so far until incompatibily with megui 1057.
In your picture I see you prefer using insane profile.
Did you check the logfile x264 really running with this settings or just fast preset?

rapscallion
19th November 2009, 22:22
Not my picture....another poster, rudiev.

szabi
20th November 2009, 07:12
Sorry for my mistake.

mallb
20th November 2009, 12:24
Which x264 version is compatible with MeGUI 1056 and STx264 v85 profiles? I'm using "1309 - Jeeb's patched build".

Carpo
20th November 2009, 16:47
that version will work fine :)

rapscallion
20th November 2009, 20:22
@carpo...although a poster mentioned a few pgs back that he had a compatibilty issue with a sa Panasonic BD player using 1309.
He changed to 1336 and said it was fine. Not tested by me.
____________________________________________________

I have a 1080i source that I tested a small clip with.
"encode interlaced" box is checked and I get this warning in the first pass :
"[warning]:interlace+direct=temporal is not implemented"

I don't see temporal anywhere in the command line, so why is this warning being generated ? (1056/r1309)

Is it better to deinterlace the source before encoding, rather than Megui is there a good program to do this that anyone can recommend?

Carpo
20th November 2009, 23:27
I use the pc and MPC-HC so i wouldn't know bout issues with that player

usmando
21st November 2009, 09:40
I'm having a strange and irritating issue with encoded x264 videos. i encode my clips for mobile occasionally.
I was using a slightly old version of megui and i noticed it stopped updating, so i downloaded the new installer and deleted my old megui folder. Now i see that the videos encoded with latest version of x264 have a strange blockiness in them... i'm quite sure it is not because of bit-rate because it occurs even with fairly high bit-rates and moderate motion scenes. I have attached a sample of encoded video...with high motion just to emphasize the effect..

http://www.divshare.com/download/9440248-9dd

i first used the patched build of x264 which comes with megui update, then tried with latest unpatched build from x264.nl but alll results are the same. plus i have to turn off "Keep some B-frames as reference" otherwise it gives error.


here is my mediainfo:
General
Complete name : C:\Users\Administrator\Desktop\tstt\testclip.mkv
Format : Matroska
File size : 2.02 MiB
Duration : 28s 160ms
Overall bit rate : 600 Kbps
Encoded date : UTC 2009-11-21 08:27:31
Writing application : mkvmerge v2.9.7 ('Tenderness') built on Jul 1 2009 18:43:35
Writing library : libebml v0.7.7 + libmatroska v0.8.1

Video
ID : 1
Format : AVC
Format/Info : Advanced Video Codec
Format profile : High@L1.3
Format settings, CABAC : Yes
Format settings, ReFrames : 5 frames
Muxing mode : Container profile=Unknown@1.3
Codec ID : V_MPEG4/ISO/AVC
Duration : 28s 160ms
Bit rate : 588 Kbps
Width : 320 pixels
Height : 176 pixels
Display aspect ratio : 16:9
Frame rate : 25.000 fps
Resolution : 24 bits
Colorimetry : 4:2:0
Scan type : Progressive
Bits/(Pixel*Frame) : 0.418
Stream size : 1.98 MiB (98%)
Language : English

Dark Shikari
21st November 2009, 09:47
I'm having a strange and irritating issue with encoded x264 videos. i encode my clips for mobile occasionally.
I was using a slightly old version of megui and i noticed it stopped updating, so i downloaded the new installer and deleted my old megui folder. Now i see that the videos encoded with latest version of x264 have a strange blockiness in them... i'm quite sure it is not because of bit-rate because it occurs even with fairly high bit-rates and moderate motion scenes. I have attached a sample of encoded video...with high motion just to emphasize the effect..

http://www.divshare.com/download/9440248-9dd (http://www.divshare.com/do?wnload/9440248-9dd)Let me guess, you're using CoreAVC or an otherwise broken decoder? The video plays just fine here.

rapscallion
21st November 2009, 14:13
+1, plays fine here as well.

Flux
21st November 2009, 14:33
I have couple videos as Avisynth scripts and each of them have different resize methods and other stuff, but the video format like frame rate, color space and final resolution are identical for all. How I can combine these scripts the way that MeGUI see them as one single video? I could encode all these scripts as lossless videos and then merge them with DirectShowSource + DirectShowSource, etc. but is it really necessary to do that?

usmando
21st November 2009, 20:53
Ummm.... yes CoreAVC. whats wrong with CoreAVC? I thought it was the best decoder around. Even on my phone i use CorePlayer to watch these videos so i guess that is the issue.

stax76
21st November 2009, 21:04
There is a bug somewhere, I think related the new --weightp feature which is enabled by default. A alternative decoders from Microsoft, DivX or ffdshow might help.

usmando
21st November 2009, 22:13
So this means if i want to convert videos for my smartphone (which uses Coreplayer), i should use an older version of x264. Thanks for the help guys.

stax76
21st November 2009, 22:20
Or use --weightp 0 but I'm not sure.

Dark Shikari
21st November 2009, 22:32
Or --weightp 1. It's only 2 that's broken.

n0an
23rd November 2009, 04:49
Hello,

The bitrate calculator in meGUI calculates a value and feeds it right in the config, but the video turns out to be either really big or smaller than it was calculated to be.

For example, it calculated bitrate for a 1hr24min as 1033 kbps + 128 kbps audio, but the encoded video was at 811 kbps. That is, ~200 kbps less than what it was supposed to be.

Codec ID/Hint : XviD
Duration : 1h 24mn
Bit rate : 811 Kbps
Width : 656 pixels
Height : 272 pixels
Display aspect ratio : 2.40:1
Frame rate : 23.976 fps

Earlier on a friend's PC, the calculator calculated bitrate for a 1/3DVD video, but the resulting file size was 2.23GB or so. I re-encoded with same bitrate thrice, but still same 2.23 size. There are no updates available at the moment as well.

Is this a known bug?

P.S. I think someone had posted this in the troubleshooting thread earlier, but it went unnoticed.

n0an
23rd November 2009, 04:49
Sorry, pc froze and I double clicked :|.

rudiev
23rd November 2009, 12:36
I also used Sharktooh profile collection so far until incompatibily with megui 1057.
In your picture I see you prefer using insane profile.
Did you check the logfile x264 really running with this settings or just fast preset?

That was me using the insane profile, here the log:


--[NoImage] Job commandline: "C:\Program Files (x86)\megui\tools\x264\x264.exe" --profile high --level 4.1 --preset fast --pass 1 --bitrate 14400 --stats "X:\file001.stats" --slow-firstpass --thread-input --output NUL "X:\file001.avs"
--[Information] [20-11-2009 11:49:18] Encoding started
--[NoImage] Standard output stream
--[NoImage] Standard error stream
---[NoImage] avis [info]: 1920x1080 @ 24.00 fps (172066 frames)
---[NoImage] x264 [info]: using cpu capabilities: MMX2 SSE2Fast SSSE3 FastShuffle SSE4.1 Cache64
---[NoImage] x264 [info]: profile High, level 4.1
---[NoImage]
---[NoImage] x264 [info]: slice I:1388 Avg QP:13.16 size:201802
---[NoImage] x264 [info]: slice P:67076 Avg QP:15.31 size:114394
---[NoImage] x264 [info]: slice B:103602 Avg QP:17.18 size: 44682
---[NoImage] x264 [info]: consecutive B-frames: 6.8% 32.3% 13.3% 47.6%
---[NoImage] x264 [info]: mb I I16..4: 49.0% 19.0% 32.0%
---[NoImage] x264 [info]: mb P I16..4: 14.2% 16.6% 8.9% P16..4: 15.8% 9.4% 2.6% 0.0% 0.0% skip:32.4%
---[NoImage] x264 [info]: mb B I16..4: 8.1% 0.0% 0.0% B16..8: 27.9% 2.3% 1.6% direct:14.2% skip:45.9% L0:28.6% L1:27.7% BI:43.7%
---[NoImage] x264 [info]: final ratefactor: 19.11
---[NoImage] x264 [info]: 8x8 transform intra:31.3% inter:28.4%
---[NoImage] x264 [info]: coded y,uvDC,uvAC intra:87.2% 70.8% 28.6% inter:28.3% 23.9% 0.6%
---[NoImage] x264 [info]: ref P L0 76.9% 23.1%
---[NoImage] x264 [info]: kb/s:14040.1
--[Information] [20-11-2009 17:54:39] Postprocessing
---[Information] Deleting intermediate files
--[Information] [20-11-2009 17:54:39] Job completed

Profile high, preset fast. Is this right or wrong? And if wrong, how to fix it? Using megui v1056, x264 1183m.

djesteban
23rd November 2009, 18:59
Profile collection which coming with update was created in this topic: New MeGUI x264 presets (http://forum.doom9.org/showthread.php?p=1162196#post1162196) creator is Sharktooth.
Last version is v85. It is called STx264 on update list.

But these profiles were not modified for new x264.
That is why it is outdated.

In addition I wrote in previous page the settings from profile are not sent correctly to x264.

I chose DXVA HD HQ profile, sent calculated bitrate and start encoding.
When I checked the logfile encoding parameters was not from the profile, instead of that the encoder was running with in-built fast preset.
It is quite far from HQ profile settings.

Also I saw the ncatt modified profiles have same name as Sharktooth profiles but have different settings.

It is I have realized into so far.

EDIT:


You are right, if you select advanced setting the parameters will be from profiles instead of preset.

bye
szabi

1057 seems to be completely broken when trying to use any form of encoder settings (i tried with the ncatt profiles).
For example:
- First, install the ncatt profiles.
- Choose a profile in the Encoder Settings drop down menu and click the Config button.
- Now, usually, to activate the custom commands of the profile you have just selected, you only need to check Advanced Settings in the x264 configuration dialog... but this time, in 1057, only b-pyramid and vbv-maxrate seems to appear.
- Now, try something else. Stay in the x264 configuration dialog, and select a profile in the Presets drop down menu at the bottom of this window... be sure to recheck Advanced Settings. Nice! Now we have the correct advanced settings listed in the command dialog for this particular profile.
- Now, click OK to confirm the changes and immediately go back in Config to see if everything stayed as-is. Unfortunately, you will notice that everything was reset to the basic command plus b-pyramid and vbv-maxrate (but no sign of the actual custom setting for the profile).

So obviously, if you don't know that and start encoding, your output will look like garbage.

1057 is broken, PLEASE fix it as it is impossible to save/create or use profile presets. PLEEEEEEEASE :(

Thanks

szabi
24th November 2009, 09:14
That was me using the insane profile, here the log:
.
.
.

Profile high, preset fast. Is this right or wrong? And if wrong, how to fix it? Using megui v1056, x264 1183m.

Hi

You have the same situation like me.
That is the correct DXVA-HD-Insane parameters:

program --profile high --level 4.1 --preset fast --pass 2 --bitrate 1000 --stats ".stats" --thread-input --deblock -1:-1 --ref 4 --vbv-bufsize 50000 --vbv-maxrate 50000 --merange 32 --me tesa --direct auto --subme 8 --partitions p8x8,b8x8,i4x4,i8x8 --trellis 2 --no-dct-decimate --output "output" "input"

In this profile red marked parameters are responsible for DXVA compatibility.
You can reach this if follow what Inspector.Gadget wrote (http://forum.doom9.org/showthread.php?p=1345529#post1345529).

Click to Config of encoder settings.
Choose your profile here from drop down box menu below.
Activate advanced settings.
Insert your bitrate.
Click OK (save or not depends on you)
Enqueue

After you start encoding go to log and mark Job commandline.
Right click on it and Edit Text -> Node
Now you can check whether parameters were sent correctly.
Hopefully yes. :)

But do not forget x264r1183 and Sharktooth profiles quite old.
Much better if you create your own profile based on new x264r1342 in-built presets.
Actually I did it.
http://img214.imageshack.us/img214/8137/meguiconfig2.gif

Bye
szabi

szabi
24th November 2009, 09:31
1057 seems to be completely broken when trying to use any form of encoder settings (i tried with the ncatt profiles).
For example:
- First, install the ncatt profiles.
- Choose a profile in the Encoder Settings drop down menu and click the Config button.
- Now, usually, to activate the custom commands of the profile you have just selected, you only need to check Advanced Settings in the x264 configuration dialog... but this time, in 1057, only b-pyramid and vbv-maxrate seems to appear.
- Now, try something else. Stay in the x264 configuration dialog, and select a profile in the Presets drop down menu at the bottom of this window... be sure to recheck Advanced Settings. Nice! Now we have the correct advanced settings listed in the command dialog for this particular profile.
- Now, click OK to confirm the changes and immediately go back in Config to see if everything stayed as-is. Unfortunately, you will notice that everything was reset to the basic command plus b-pyramid and vbv-maxrate (but no sign of the actual custom setting for the profile).

So obviously, if you don't know that and start encoding, your output will look like garbage.

1057 is broken, PLEASE fix it as it is impossible to save/create or use profile presets. PLEEEEEEEASE :(

Thanks

If you go back the Config it will not display what you set up.
An other issue which should be fixed.
I see you found the same solution like me. :)
As I wrote above ckeck the Job commandline whether parameters was sent correctly or not.
Anyway experts wrote much better if you use MB-Tree instead of B-pyramid.
Supposedly you get better quality.
But do not use them together.
Anyway which profile you would like to use if B-pyramid active?

Bye
szabi

rudiev
24th November 2009, 12:27
...
But do not forget x264r1183 and Sharktooth profiles quite old.
Much better if you create your own profile based on new x264r1342 in-built presets.
Actually I did it.
<image>

Bye
szabi

Thanks for your reply! But how did you build your own profiles based on the new x264r1342 built-in presets, now r1347 at x264.nl. I know simply to replace the x264.exe with a new one, but what else do i have to do for this. Where did you get the extra information for those new profiles?

szabi
24th November 2009, 13:43
Thanks for your reply! But how did you build your own profiles based on the new x264r1342 built-in presets, now r1347 at x264.nl. I know simply to replace the x264.exe with a new one, but what else do i have to do for this. Where did you get the extra information for those new profiles?

I forgot to check whether there is a new x264. I did not know it.
Thnx for notify me.

Info about presets is here (http://mewiki.project357.com/wiki/X264_Settings)

I am not expert that is why I used in-built presets.
I chosed preset slower and modified it to have DXVA compatibility.
You need red marked settings for it.
Also deblock was changed for little sharper picture
Finally I got this:
program --profile high --level 4.1 --preset slower --pass 2 --bitrate 10000 --stats ".stats" --thread-input --deblock -1:-1 --ref 4 --vbv-bufsize 50000 --vbv-maxrate 50000 --output "output" "input"

If gui can not read preset correctly go to Misc and click preset settings.
MeGui set up --subme 10 for preset slower but with this it should be 9. It also megui issue. That was I changed also back to 9 under Analysis button => Subpixel Refinement.
--deblock -1:-1 available under Frame-Type => deblocking Strenght: -1 and Treshold: -1 also.
--ref 4 is controlled Number of Reference Frames: 4.
--vbv-bufsize 50000 --vbv-maxrate 50000 are under Rate Control.
VBV Buffer Size: 50000 and VBV Maximum Bitrate: 50000

If you finished click new button below and create your own profile.
But do not forget if you want to use it follow the choosing step I wrote it in previous reply.

Bye
szabi

rudiev
24th November 2009, 17:54
@szabi
I'm gonna try to make this new profile. Till now i got the nasty problem that when i made a new profile and saved it and then quit megui i get an error "There was an error clearing the profile folder before deletion: The directory is not empty". After this all my profiles are gone! I have to import them again for them sharktook presets v85 zip-file.
I let you know when it done..

prOnorama
24th November 2009, 18:10
I'd just use

--level 4.1 --preset veryslow --bitrate xxxx ---vbv-bufsize 50000 --vbv-maxrate 50000

You can add --tune film, --tune grain or --tune animation for specific content

Or use --preset placebo, but that's really really slow

rudiev
24th November 2009, 18:27
@szabi
Finally got my new profile saved, played around with some setting based on the DXVA-HD-Insane:
program --profile high --level 4.1 --preset slower --pass 2 --bitrate 14400 --stats ".stats" --slow-firstpass --thread-input --deblock -1:-1 --bframes 3 --b-adapt 2 --direct auto --b-bias 0 --scenecut 40 --ref 4 --vbv-bufsize 50000 --vbv-maxrate 50000 --rc-lookahead 40 --aq-mode 1 --aq-strength 1.0 --merange 32 --me tesa --subme 9 --partitions all --trellis 2 --psy-rd 1.0:0 --no-dct-decimate --output "output" "input"

First pass take more than 2 days for 90 minutes source
Have to tune it some way :)

szabi
24th November 2009, 20:03
This is your profile:

program --profile high --level 4.1 --preset slower --pass 2 --bitrate 14400 --stats ".stats" --slow-firstpass --thread-input --deblock -1:-1 --bframes 3 --b-adapt 2 --direct auto --b-bias 0 --scenecut 40 --ref 4 --vbv-bufsize 50000 --vbv-maxrate 50000 --rc-lookahead 40 --aq-mode 1 --aq-strength 1.0 --merange 32 --me tesa --subme 9 --partitions all --trellis 2 --psy-rd 1.0:0 --no-dct-decimate --output "output" "input"

According to X264 Settings on MeWiki (http://mewiki.project357.com/wiki/X264_Settings) red marked parameters are not needed to write to commandline because they are the default settings of x264.
Green marked are default of slower preset so if you use slower preset you do not have to write to commandline them.

If you would use merange and me from slower preset instead of your own, your encoding time will increase.

EDIT: bframes 3 is also default of slower, I missed it first.

bye
szabi

prOnorama
24th November 2009, 20:48
@ szabi: you don't need to set --ref 4, it gets handled by the --level 4.1 switch, also --profile high is not needed (default) and rc-lookahead for profiles slower and up is 60 (not 40 that's for faster profiles, of course if you want that in slower profiles it's correct to specify it)

@ rudiv: --me tesa is the real speed killer here, I'd use --me uhm

szabi
24th November 2009, 22:16
If I set preset slower --ref 8 are used, I have to change back to 4 for DXVA compatibility. Unless you have smaller resolution. :cool:
Anyway I also would use default rc-lookahead 60 and me umh which is from slower profile as you wrote.

Finally I went back to my profile I wrote above. :)

bye
szabi

szabi
25th November 2009, 09:09
So this means if i want to convert videos for my smartphone (which uses Coreplayer), i should use an older version of x264. Thanks for the help guys.

For my mobile I have to use Baseline Profile with Level 1.3.
I use preset slow.
I can not use CABAC.
Reference Frames is 2.
VBV Buffer Size 2000.
VBV Maximum Bitrate 768.

program --profile baseline --level 1.3 --preset slow --pass 2 --bitrate 450 --stats ".stats" --thread-input --deblock -1:-1 --ref 2 --vbv-bufsize 2000 --vbv-maxrate 768 --output "output" "input"

It is working for me.
As I see in your info:
Video
ID : 1
Format : AVC
Format/Info : Advanced Video Codec
Format profile : High@L1.3
Format settings, CABAC : Yes
Format settings, ReFrames : 5 frames
Muxing mode : Container profile=Unknown@1.3
Codec ID : V_MPEG4/ISO/AVC
Duration : 28s 160ms
Bit rate : 588 Kbps
Width : 320 pixels
Height : 176 pixels
Display aspect ratio : 16:9
Frame rate : 25.000 fps
Resolution : 24 bits
Colorimetry : 4:2:0
Scan type : Progressive
Bits/(Pixel*Frame) : 0.418
Stream size : 1.98 MiB (98%)
Language : English

Red marked one break the compatibility for my mobile.
Check this for your device: click (http://spreadsheets.google.com/pub?key=tYGTjNd0dG6P_A9z-YkFzFg&output=html)

bye
szabi

quantum5uicid3
27th November 2009, 01:14
1. use Megui 1056 from sourceforge
http://sourceforge.net/projects/megui/

2. put this as your update server
http://megui.org/auto/

3. uncheck the box to update the core, because 1057 is broken. update everything else

4. put the latest version of x264 in the \megui\tools\x264 directory overwriting the old
http://x264.nl/

5. here is the info you need to make your own megui presets
http://mewiki.project357.com/wiki/X264_Settings
http://forum.doom9.org/showthread.php?t=149711

6. The only problem I've encountered with 1056 is:
b-pyramid checkbox is broken, don't check the box that says "Keep some B-Frames for reference"


7. THIS IS WHAT YOU NEED TO DO IF YOUR STUCK USING OLD COREAVC

weightp is new and has not been implemented into megui at all yet, the x264 default of --weightp 2 doesn't play properly on CoreAVC

add either of these to the custom command line field in the Misc tab of the x264 configuration dialog
--weightp 0
--weightp 1




UNLESS YOU KNOW WHAT YOUR DOING, YOU DON'T NEED TO DO THIS PART. THE DEFAULT OF NONE IS GOOD.


the syntax for --b-pyramid changed, this is how you change the default now.

add either of these two to the custom command line field in the Misc tab of the x264 configuration dialog
--b-pyramid normal
--b-pyramid strict

Schra
29th November 2009, 02:34
Maybe it is helpful:
http://forum.doom9.org/showthread.php?p=1349678

Create a backup of your complete megui files and copy these new files into your megui directory. Beside the main program file I have included the latest x264 (r1352, patched) and one of my x264 profile files.

0.3.1.1057
- [x264Config] add support for weighted P prediction. Requires x264 revision 1327 or higher.
- [x264Config] fix issues with weighted B prediction
- [264Config] fix an issue where custom profile settings may be lost
- [x264Config] very minor cosmetic changes
- removed the UAC elevation prompt. If required please run the program as administrator
- [Util] + [FileUtil] incompatible xml files (e.g. profiles) will be moved to a backup dir
- fixed the problem of the incompatible x264 profiles. As a result the old B-Pyramid setting will be disabled
- [OSInfo] fixed a problem with the .NET detection
- [MuxStreamControl] preselect language if the filename contains the language name

I did not change the version number for obvious reasons. Hopefully kurtnoise/sharktooth/... will continue their work on this great program. Kudos to them!

Patch code is included, full source code can be requested if necessary (I do not know the GPL in every detail. If this is not sufficient please drop me a line and I will upload the full source files).

This quick fix solves not all problems regarding the x264ConfigPanel. For example the preset values are not up to date with the latest x264 version, wrong/old profiles will not be updated, ...

Create a backup of your files!

WARNING: In these few hours I could not understand the whole program code. Therefore the fix may be incomplete or new problems may arise. Nevertheless it worked for me.

By the way - joinded since 2001 and my first post has been today...

stax76
29th November 2009, 03:15
It crashes in DotNetVersionFormated.

Schra
29th November 2009, 03:35
It crashes in DotNetVersionFormated.

Right at the beginning? Strange and unwelcome start :confused:

What kind of OS/.NET do you use? I tried it only on Windows 7 x64 but this works (at least for me)

Did you put it in a 1057 directory? Please try to put it in a clean directory (only the megui.exe). It should start with no problems.

EDIT: Added a little debug code. Please download it again.

stax76
29th November 2009, 04:06
It's a array bounds issue, if you make a debug build and include the pdb file with it and write the stack trace to a log file (a stack trace should not be shown to the user with a message box) then I could tell you the exact line number where it throws since the stack trace contains line numbers then. My system is Win 7 32bit .NET 2.0, 3.5, 4.0 beta 2, I've copied your build on top of 1056.

lnatan25
29th November 2009, 07:21
If I remember correctly, the problem was due to some logger accessing something wrong. Just comment the lines of "iLogger" or whatever it was called, and it will not throw the exception. :)

Schra
29th November 2009, 14:08
It's a array bounds issue, if you make a debug build and include the pdb file with it and write the stack trace to a log file (a stack trace should not be shown to the user with a message box) then I could tell you the exact line number where it throws since the stack trace contains line numbers then. My system is Win 7 32bit .NET 2.0, 3.5, 4.0 beta 2, I've copied your build on top of 1056.

Sorry, too late yesterday and only a quick workaround. Here you can find the debug build:
removed Reason: The problem has been fixed in the newest build

If I remember correctly, the problem was due to some logger accessing something wrong. Just comment the lines of "iLogger" or whatever it was called, and it will not throw the exception. :)

Yes, you are right. It is not necessary for the program itself. At least I can find no reference beside this log entry.

edtee
30th November 2009, 06:33
Thanx, Schra, I'll give your modded code a go. Also big thanks to kurtnoise, Sharktooth, and the whole team who make megui possible. I love this tool as a great mix between power/control and ease of use. Many other tools hide more than I like. I'd rather learn, even if it means messing up an encode. Worse case is I lose some time, and gain a little knowledge.


Schra, I did a quick try of you code. Really not more than a start, and quick look around. It fails on close with a error about saving to a profile. I saw that error and your note on UAC and immediately thought that was the issue... Sure enough giving MeGui Admin on startup seems to resolve the issue for me.

Not too big a deal except... the only way I could close/exit MeGui was to open Window's task manager and end the process. Of course this all is unneeded once admin rights are given to the shortcut. Still this could be an issue to some users. I'm using Win7 64bit Pro for my OS. Let me know if you'd like more info.

Schra
30th November 2009, 19:14
It fails on close with a error about saving to a profile. I saw that error and your note on UAC and immediately thought that was the issue... Sure enough giving MeGui Admin on startup seems to resolve the issue for me.
[....]
Still this could be an issue to some users. I'm using Win7 64bit Pro for my OS. Let me know if you'd like more info.
Yes, removing UAC could cause some problems for inexperienced users. Nevertheless I am no fan of an application which demands administrative permissions on every start. In my opinion a program should run with as low permissions as possible and request admin access only if necessary. At the moment I have found two main places where admin access is required when installed to a protected directory (e.g. program files): update + program closing (write log files and profiles). Nevertheless there are a few other actions which require such an access. So the easiest thing would be to add the mandatory UAC prompt back to the program. Otherwise the complete file writing action has to be moved to a directory with write access (e.g. commonappdata for profiles/log/settings) and the update manager has to be a separate process with UAC prompt. Or - as a workaround - I could add a message box at program start indicating that the program does not have full access to the required files and folders and that it should be started with UAC. What do you prefer?



Not too big a deal except... the only way I could close/exit MeGui was to open Window's task manager and end the process.
It's a general issue with the error handling. I do not know if this works as designed. On the other hand it will require some work to change all the error handlers to a more user-friendly and common way.

lnatan25
1st December 2009, 01:57
The easiest way to fix would be to move all the updates/tools/profiles to %appdata%, one of which (Roaming or LocalLow) doesn't require Admin privileges. "But still, in order to update the main application, a UAC pop should come out. Not that it's very difficult to implement.

edtee
1st December 2009, 06:45
Regarding UAC/admin rights... Personally I have a known workaround, but you asked my opinion. I'm not a coder, so I don't truly know what the easiest programming fix is. Also I'm not confident I speak for a large number of users, but... For now, I'd say just put back in the old mandatory UAC pop-up, to escalate access.*

I agree with your philosophy of how a program should behave. However given that there have been some relatively large changes to x264's relationship to MeGui, and we seem to have lost(hopefully temporarily) some of the main coders. I'd prefer your time(generously given, thank you) go to addressing these areas first. After the app. gets back to what the community considers it's older level of some stability, these other changes could be done/addressed. Of course I don't know how much effort you want(can afford) to put into this. However if you plan to put alot of effort into this then it might make more sense for you to cleanup the code, so you can more easily improve it. In the long run I like the idea of moving out the code(ie updates) that needs a higher privilege and relocating stored data to a dir with lower restrictions. I think people would understand an update needing admin rights(via standard Windows UAC pop-up), as it's basically a program installation process(from a user's point of view).

*I ran your options by my wife, as a test of a less tech. savvy user(no reflection on my wife's intellect;) ). The message box idea didn't seem to help the confusion, as she wasn't sure she needed to give admin rights, and a wrong answer leads to the issue of not closing cleanly. I know it's a small thing, but I think people are just used to Windows pop-ups and way of doing things. Hence, it's less confusing to them, even if they may technically be doing the same thing, just asked differently.

stax76
1st December 2009, 08:59
What can be done is detecting if the startup dir is writable and restart with elevated privileges if it's not. That don't fix the issue that the application should not require admin privileges but it would be a easy fix until the admin requirements are removed. It works as follows:


[STAThread()]
public static void Main()
{
Application.SetCompatibleTextRenderingDefault(false);
Application.EnableVisualStyles();

try {
// 'Contains' is a LinQ extension method shipped with .NET 3.5 and upwards
if (!Environment.GetCommandLineArgs().Contains("-elevate"))
File.Create(Application.StartupPath + "\\writeCheck");

Application.Run(new MainForm());
} catch {
try {
Process p = new Process();
p.StartInfo.FileName = Application.ExecutablePath;
p.StartInfo.Arguments = "-elevate";
p.StartInfo.Verb = "runas";
p.Start();
} catch {
}
}
}


Download features require much work and often cause problems. I would try to avoid such features but if I had to download applications I would start a process with elevated privileges downloading it to the startup dir. It would not be a separate application but simply restarting with a command line like '-update'. It could be a second instance and if necessary the first instance could hide and block until the second instance performing the admin work terminates or the first instance terminates and the second instance take over. Things often seem difficult but aren't and there is a simple solution.

The write check is a file IO operation which slows down the startup, file IO operations should be done either after the main form was shown (there is a 'Shown' event) or with separate thread.

The users dir and the program data dir should not contain executables. Settings should be in the app data dir or in a custom dir. Microsoft has guidelines for everything. What helps much is looking at other applications, Firefox, Visual Studio, the good ones.

quantum5uicid3
1st December 2009, 10:08
.....

quantum5uicid3
1st December 2009, 10:14
.....

livetolove92
1st December 2009, 12:15
What does it mean " invalid argument b-pyramid = --b bias " ? Somebody help me plz :D. I use megui1056, x264 revision 1354 and Avisynth 2.5.7.

Kurtnoise
1st December 2009, 13:09
why you want to remove UAC ? that's not a good thing imo...


@Shra : I cannot download your patch...could you put it somewhere else ?

MatLz
1st December 2009, 13:47
@Livetolove92
It's because Megui 1056 is outdated compared to the X264 build you use.
I think you must disabled b-pyramid in the settings and write the custom command line ' --b-pyramid normal ' instead of.

Carpo
1st December 2009, 14:25
in 1056 - do people leave the profile they have selected (if the new ones p6, p7 etc) as is, or do you change the avc profiles and avc levels from auto guess to what you like, or do you leave them?

Being someone who likes the best quality i can get based on the system i have i norm use high and 4.1 - or is that overkill?

MatLz
1st December 2009, 15:48
I see a lot of users in trouble with X264 parameters.
Why not an option which completely disable the Megui codec settings to prevent the incompatibility with the often updated X264 builds?
By that I mean a 'total custom command-line' (input and output excepted)
The users could simply copy/paste the right command-line found on the forum in waiting the Megui update.
Is a stupid suggestion?

Schra
1st December 2009, 16:21
why you want to remove UAC ? that's not a good thing imo...
First of all: Great to see that you are still around and are not mad that I have (mis)compiled the source code. :)
Hopefully I have not annoyed you- my only intention was to fix a few things in order to keep this great project up and running.

Back to the UAC topic: UAC itself is a great and good thing and it should be used. But if an application demands every time administrative access even if it is not required, it would bother the user and they may disable UAC completely. I have installed MeGUI + the AviSynth plugin folder for example in locations where no admin access is necessary in order to write files. Therefore the UAC prompt is not necessary for me. It would be no problem if I could remove this prompt myself for this program only, but this is not possible because it's hard coded in the program/manifest itself.

On the other hand based upon the software design guides from Microsoft a program should not require administrative access during normal operation. Beside the update process I would declare all other operations (writing log files, profiles, ...) as "normal operation". The only - and recommended - solution is to move these files to a not protected directory like appdata. Sadly I have at the moment no link the MS software design guide to clarify which path is recommended in such a case. A drawback would be to have the files in different locations (program files, appdata, ...) which may be problematic if a user would like to have different versions of the program installed.

Nevertheless the easiest way will be to leave the program as it is (with UAC prompt). But the other solution mentioned by stax76 is a nice solution between security and coding effort.


@Schra : I cannot download your patch...could you put it somewhere else ?
I send you a PM.

prOnorama
1st December 2009, 20:29
@ Schra: I get the following error when trying to insert values for VBV Buffer Size and VBV Max Bitrate:

http://thumbnails21.imagebam.com/5824/22362a58236376.gif (http://www.imagebam.com/image/22362a58236376)


When I click it away I can enter the VBV values but I can't change the value for --rc-lookahead anymore (doesn't show up in command line). I use WinXP SP3.

Schra
1st December 2009, 23:45
@ Schra: I get the following error when trying to insert values for VBV Buffer Size and VBV Max Bitrate:

http://thumbnails21.imagebam.com/5824/22362a58236376.gif (http://www.imagebam.com/image/22362a58236376)


When I click it away I can enter the VBV values but I can't change the value for --rc-lookahead anymore (doesn't show up in command line). I use WinXP SP3.

As a workaround please do not enter any VBV values beside digits and do not delete the value.

--rc-lookahead is working if you press enter or change the focus after changing the value.

Found the problems, but I have no time to fix this now.

Carpo
2nd December 2009, 04:45
ok what with all the problems with megui not being updated atm (devs need time off too) can someone tell me if this is a good enough profile to use till everything is sorted?

--profile high --level 4.1 --preset veryslow --bitrate 1309 --thread-input --deblock 0:0 --bframes 3 --b-bias 0 --scenecut 40 --ref 4 --rc-lookahead 40 --aq-mode 1 --aq-strength 1.0 --merange 16 --subme 7 --partitions all --trellis 1 --psy-rd 1.0:0 --b-pyramid normal --output "output" "input"

All other settings in the p7 - very slow profile have been left alone, all i have changed is the level, profile, ref frame and the pyramid options (obviously the bitrate will change)

Also i notice in this version it doesnt add an analysis pass like in the 1051 version i was using, is this by design or something i am missing?

quantum5uicid3
2nd December 2009, 04:59
What you have to ask yourself is the following?
1. What is your target device?
2. How much time/cpu cycles do you have to dedicate to encoding?
3. What is the highest crf you can use to achieve satisfactory results? or do you need to have specific file size?(2pass)

nurbs
2nd December 2009, 08:07
These values are defaults, automatically set or part of preset veryslow anyway and therefore useless:
--profile high --level 4.1 --thread-input --deblock 0:0 --b-bias 0 --scenecut 40 --aq-mode 1 --aq-strength 1.0 --partitions all --psy-rd 1.0:0
These values override settings in the preset you use:
--bframes 3 --ref 4 --rc-lookahead 40 --merange 16 --subme 7 --trellis 1

Also --b-pyramid normal doesn't do anything because you didn't deactivate mb-tree RC (which you shouldn't).

All in all not that bad, but I have no idea why you use profile veryslow and then change almost everything manually back to profile medium / the defaults again. (I understand the refs and b-frames). You should also use a tuning depending on your content. (--tune film; --tune animation)

You could actually use
--bitrate 1309 --b-adapt 2 --ref 4 --partitions all --me umh --direct auto --output "output" "input"
which would be the same as your settings.

Carpo
2nd December 2009, 12:27
What you have to ask yourself is the following?
1. What is your target device?
2. How much time/cpu cycles do you have to dedicate to encoding?
3. What is the highest crf you can use to achieve satisfactory results? or do you need to have specific file size?(2pass)

1. PC - Mac - Laptop
2. As much time as it needs, i prefer quality over speed
3. I normally do 2 passes depending on the length of the movie, but if there is a better way im all for it :)

These values are defaults, automatically set or part of preset veryslow anyway and therefore useless:
--profile high --level 4.1 --thread-input --deblock 0:0 --b-bias 0 --scenecut 40 --aq-mode 1 --aq-strength 1.0 --partitions all --psy-rd 1.0:0
These values override settings in the preset you use:
--bframes 3 --ref 4 --rc-lookahead 40 --merange 16 --subme 7 --trellis 1

Also --b-pyramid normal doesn't do anything because you didn't deactivate mb-tree RC (which you shouldn't).

All in all not that bad, but I have no idea why you use profile veryslow and then change almost everything manually back to profile medium / the defaults again. (I understand the refs and b-frames). You should also use a tuning depending on your content. (--tune film; --tune animation)

You could actually use
--bitrate 1309 --b-adapt 2 --ref 4 --partitions all --me umh --direct auto --output "output" "input"
which would be the same as your settings.

All i did was change the 4 things listed in the profile already (after you tick advanced option which seems to load a lot of extra settings), most of the settings i posted above were already in p7 slow apart from the ones i changed, as to mb-tree - this says it should be enabled by default and is recommended, although i had to tick that.

Basically i am trying to get a profile that will give me great results for film and anime, of course when you know nothing about profiles and are trying to learn you are going to mess things up along the way :D

So based on the fact that i am going to be using a computer to watch it, im after best quality i can get based on the two types of genre i mainly watch, what would be an advised and/or amended profile to use?

rudiev
2nd December 2009, 13:17
I forgot to check whether there is a new x264. I did not know it.
Thnx for notify me.

Info about presets is here (http://mewiki.project357.com/wiki/X264_Settings)

I am not expert that is why I used in-built presets.
I chosed preset slower and modified it to have DXVA compatibility.
You need red marked settings for it.
Also deblock was changed for little sharper picture
Finally I got this:
program --profile high --level 4.1 --preset slower --pass 2 --bitrate 10000 --stats ".stats" --thread-input --deblock -1:-1 --ref 4 --vbv-bufsize 50000 --vbv-maxrate 50000 --output "output" "input"

If gui can not read preset correctly go to Misc and click preset settings.
MeGui set up --subme 10 for preset slower but with this it should be 9. It also megui issue. That was I changed also back to 9 under Analysis button => Subpixel Refinement.
--deblock -1:-1 available under Frame-Type => deblocking Strenght: -1 and Treshold: -1 also.
--ref 4 is controlled Number of Reference Frames: 4.
--vbv-bufsize 50000 --vbv-maxrate 50000 are under Rate Control.
VBV Buffer Size: 50000 and VBV Maximum Bitrate: 50000

If you finished click new button below and create your own profile.
But do not forget if you want to use it follow the choosing step I wrote it in previous reply.

Bye
szabi

The problem is when i want to add those extra option you mentioned i have to enable the advanced settings checbox which adds a whole lot of extra options to the command line of x264.exe. You also mentioned some settings for DXVA settings, but are these really necessary? Because I have made .mkv with only a few option:

program --profile high --level 4.1 --preset fast --pass 2 --bitrate 14400 --stats ".stats" --slow-firstpass --thread-input --output "output" "input"

When i play this file with media player classic - home cinema and check the taskmanager for the mpc-hc.exe process, is ee that i uses only a few % of cpu time. While with a .wvc file this can be up to say about 35%. CPU is a intel E8200 @ 3.2 GHz. So i'm sure it already uses DXVA without those extra settings.

MediaInfo say this about the video

Video
ID : 1
Format : AVC
Format/Info : Advanced Video Codec
Format profile : High@L4.1
Format settings, CABAC : Yes
Format settings, ReFrames : 2 frames
Muxing mode : Container profile=Unknown@4.1
Codec ID : V_MPEG4/ISO/AVC
Duration : 2h 25mn
Bit rate : 14.1 Mbps
Nominal bit rate : 14.4 Mbps
Width : 1 920 pixels
Height : 1 080 pixels
Display aspect ratio : 16:9
Frame rate : 23.976 fps
Resolution : 24 bits
Colorimetry : 4:2:0
Scan type : Progressive
Bits/(Pixel*Frame) : 0.283
Stream size : 14.3 GiB (85%)
Writing library : x264 core 79 r1347 5ddd61b
Encoding settings : cabac=1 / ref=2 / deblock=1:0:0 / analyse=0x3:0x113 / me=hex / subme=6 / psy=1 / psy_rd=1.0:0.0 / mixed_ref=1 / me_range=16 / chroma_me=1 / trellis=1 / 8x8dct=1 / cqm=0 / deadzone=21,11 / chroma_qp_offset=-2 / threads=3 / nr=0 / decimate=1 / mbaff=0 / constrained_intra=0 / bframes=3 / b_pyramid=0 / b_adapt=1 / b_bias=0 / direct=1 / wpredb=1 / wpredp=2 / keyint=250 / keyint_min=25 / scenecut=40 / rc_lookahead=30 / rc=2pass / mbtree=1 / bitrate=14400 / ratetol=1.0 / qcomp=0.60 / qpmin=10 / qpmax=51 / qpstep=4 / cplxblur=20.0 / qblur=0.5 / ip_ratio=1.40 / aq=1:1.00
Language : English

73ChargerFan
4th December 2009, 17:42
I see a lot of users in trouble with X264 parameters.
Why not an option which completely disable the Megui codec settings to prevent the incompatibility with the often updated X264 builds?
This change is major, beforehand imho the parameters didn't change that frequently. I relied on Sharktooth to understand them and create profiles, and all I'd do is change the bitrate. With him out of action, I don't know what to do. When I tried the new version, encoding was sped up by a factor of 4 and the resultant quality was lower than I desired.

Sharktooth, I'm grateful to all you've done and wish you health and happiness. Happy Holidays.

Schra
5th December 2009, 12:46
@ Schra: I get the following error when trying to insert values for VBV Buffer Size and VBV Max Bitrate:

When I click it away I can enter the VBV values but I can't change the value for --rc-lookahead anymore (doesn't show up in command line). I use WinXP SP3.

Fixed:
http://forum.doom9.org/showthread.php?p=1349678

forum king
5th December 2009, 20:04
guys i have been using the 1051 version of megui and i have not updated it at all since ...
i have a few questions if you guys can help out ..
1.. i have been using 1183 build of x264 ... which of the later builds are compatible with 1051 version and have positive results in terms of sp[eed and quality of encoding.
2.. i use unrestricted 2 pass to encode my DVDs but i donno the edges are still blurred , do you guys suggest some custom tweaks in the profiles to make the encode look sharper and with clear edges ( off course no blocks ).. i know its kinna vague , but still i would love to have a general idea.
3.. i have a quad core with 8gb ram .. what filters i should use so that the encodes give better qulaity ..
4.. any other input would be appreciated .... like which filters improve picture quality and how to apply them. whats the basic thing one should keep in mind while ripping a DVD and a HD source.

bluebebe
5th December 2009, 20:40
moin,

i think the problem with the latest dev build 0.3.1.1057 was already discussed here, but i cant find a solution for this problem:
http://img248.imageshack.us/img248/9726/megui.jpg


how can i fix the problem, that megui always delete all profiles on startup? i tried several new installations of the app, no chance to get this problem fixed. knows anyone a solution for that, because new megui builds arent forseeable in the next time.

thanks for help.

floz23
6th December 2009, 01:34
Ok, Can anyone help? I need a link to download 1051...

Thanks.

Zathor
6th December 2009, 02:19
how can i fix the problem, that megui always delete all profiles on startup? i tried several new installations of the app, no chance to get this problem fixed. knows anyone a solution for that, because new megui builds arent forseeable in the next time.

thanks for help.

Please have a look here:
http://forum.doom9.org/showthread.php?p=1349678

talen9
6th December 2009, 02:27
guys i have been using the 1051 version of megui and i have not updated it at all since ...
i have a few questions if you guys can help out ..
1.. i have been using 1183 build of x264 ... which of the later builds are compatible with 1051 version and have positive results in terms of sp[eed and quality of encoding.
2.. i use unrestricted 2 pass to encode my DVDs but i donno the edges are still blurred , do you guys suggest some custom tweaks in the profiles to make the encode look sharper and with clear edges ( off course no blocks ).. i know its kinna vague , but still i would love to have a general idea.
3.. i have a quad core with 8gb ram .. what filters i should use so that the encodes give better qulaity ..
4.. any other input would be appreciated .... like which filters improve picture quality and how to apply them. whats the basic thing one should keep in mind while ripping a DVD and a HD source.

Being still on version 1051 of MeGUI is not very smart (it's more than 8 months old, 5-6 revisions ago!); anyway, since you're already using 1051, why do you ask, in your next post, where to download it?!?

Your other questions have nothing to do with MeGUI (and they are so vague that I'm not even sure if they go along well with the forum rules (http://forum.doom9.org/forum-rules.htm)), so this is not the right place to ask them; go to Newbies forum, take your time to read some good threads and :search: ;)

Inspector.Gadget
6th December 2009, 03:21
1.. i have been using 1183 build of x264 ... which of the later builds are compatible with 1051 version and have positive results in terms of sp[eed and quality of encoding.
2.. i use unrestricted 2 pass to encode my DVDs but i donno the edges are still blurred , do you guys suggest some custom tweaks in the profiles to make the encode look sharper and with clear edges ( off course no blocks ).. i know its kinna vague , but still i would love to have a general idea.
3.. i have a quad core with 8gb ram .. what filters i should use so that the encodes give better qulaity ..
4.. any other input would be appreciated .... like which filters improve picture quality and how to apply them. whats the basic thing one should keep in mind while ripping a DVD and a HD source.

1. All of them
2. More bits and starting with basic settings reviewed by x264 devs. Try CRF 20 and --tune film.
3. None. Unless you can identify a specific problem with a source in the original, you don't need filters. MeGUI allows you to deinterlace/IVTC, crop, resize, fix the colors on some incorrectly authored MPEG-2 sources (usually unnecessary), and apply light to medium denoising (also usually unnecessary).
4. See number 3. If you have acceptable visual quality for your purposes after using enough bits and reasonable settings, you're done.

forum king
6th December 2009, 06:08
1. All of them
2. More bits and starting with basic settings reviewed by x264 devs. Try CRF 20 and --tune film.
3. None. Unless you can identify a specific problem with a source in the original, you don't need filters. MeGUI allows you to deinterlace/IVTC, crop, resize, fix the colors on some incorrectly authored MPEG-2 sources (usually unnecessary), and apply light to medium denoising (also usually unnecessary).
4. See number 3. If you have acceptable visual quality for your purposes after using enough bits and reasonable settings, you're done.

Thanks a lot mate thats a great reply :)
BTW i had used 1056 which had the latest x264 build and i had noticed that the resultant video was severly blocky , but when i reverted to 1051 which has 1183 build the video was decent with same profile and similar bit rates.. thats what has got me confused about upating megui now...
could u be kind enough to point me to the most recent totally stable build of megui as well as x264...

i have come to realise that the best version atm and totally stable without any bugs ( that coreavc incompatibility thing - The new builds after 1318 add a new version of something called weighted p frame prediction which actually breaks CoreAVC codec 1.9.5 decoding.) is 1294 of x264.

i ll be thankful for the help..

regards

Glenn :)

Inspector.Gadget
6th December 2009, 06:29
Well, no, 1294 isn't "better". Newer versions are more efficient and more feature-rich. If you're going to use a decoder with a known incompatibility, either disable weightp or (I think) you can just use --weightp 1 (but test it to see if you get any artifacts). As far as MeGUI, Schra's new 1057 build (use search) works perfectly for me. Use these instructions to configure: http://forum.doom9.org/showpost.php?p=1347626&postcount=5079

forum king
6th December 2009, 06:36
Well, no, 1294 isn't "better". Newer versions are more efficient and more feature-rich. If you're going to use a decoder with a known incompatibility, either disable weightp or (I think) you can just use --weightp 1 (but test it to see if you get any artifacts). As far as MeGUI, Schra's new 1057 build (use search) works perfectly for me. Use these instructions to configure: http://forum.doom9.org/showpost.php?p=1347626&postcount=5079
o Right , i am gonna give it a shot then.
will trouble you again dear :P
god bless
Glenn :)


EDIT 1 :

well i did the following

downloaded 1056 and installed it
updated it fully ( it didnt update to 1057 , so didnt have to do anything )
later i got the 1360 build from x264.nl and replaced it in megui directory
tried to do a rip but it showed the b pyramid error >
so deselected the keep some b frames as reference.
also added --weightp 1 in my profile.

is it all correct ? why do some people say that new profiles have to be added.
and what about 1057 patched build that u were saying , couldnt find it actually.

what do you think about this :
http://forum.doom9.org/showthread.php?p=1349678 ( coz this didnt work with me :P )


EDIT 2 :

Damn the above 1056 bresulted in a crappy blocky result.
i have reverted back to 1051
the only change i have done is i have added the latest x264 in it
using unrestricted 2 pass for encoding > deselected b pyramid option in it
and added --weightp 1 in the commandline.
is this good enough ?
if not what should i do so that i can reap the benefits of new x264 builds as they are said to be faster and produce more quality.




Ok, Can anyone help? I need a link to download 1051...

Thanks.

LOL use this link
http://nchc.dl.sourceforge.net/project/megui/megui-stable/0.3.1.1028/megui-0_3_1_1028.exe

remove the existing megui from ur PC and install this update , dont touch the update servers or anything.
you ll be back to megui 1051 after update with 1183 jeebs build for x264 ( its good ).

_Sagan
6th December 2009, 17:47
Hi,
I have a problem with the encoding. I`m starting the job and it's about 10-20 seconds and my PC shutdown. The speed of the encoding was about 0,8-1,6 FPS, normally I got on this script over 45-50 FPS. I haven`t any protection that shutdown the PC, when the usage of CPU is 100% or the temperature is very high.
What can be the problem? It crashed on every avs scripts (no meaning short, easy or hard, long). Oh yeah, I would forget, first the PC freezes for 10 sec and then shutdown.

Thanks for help.

szabi
8th December 2009, 08:46
The problem is when i want to add those extra option you mentioned i have to enable the advanced settings checbox which adds a whole lot of extra options to the command line of x264.exe.
Probably one profile was already chosen, try to start your settings this way:
Config -> choose scratchpad -> advanced settings -> Misc -> click to default settings.
Now you can start your settings clearly.

You also mentioned some settings for DXVA settings, but are these really necessary? Because I have made .mkv with only a few option:
Originally Posted by log
program --profile high --level 4.1 --preset fast --pass 2 --bitrate 14400 --stats ".stats" --slow-firstpass --thread-input --output "output" "input"

When i play this file with media player classic - home cinema and check the taskmanager for the mpc-hc.exe process, is ee that i uses only a few % of cpu time. While with a .wvc file this can be up to say about 35%. CPU is a intel E8200 @ 3.2 GHz. So i'm sure it already uses DXVA without those extra settings.

MediaInfo say this about the video
Originally Posted by MediaInfo
Video
ID : 1
Format : AVC
Format/Info : Advanced Video Codec
Format profile : High@L4.1
Format settings, CABAC : Yes
Format settings, ReFrames : 2 frames
Muxing mode : Container profile=Unknown@4.1
Codec ID : V_MPEG4/ISO/AVC
Duration : 2h 25mn
Bit rate : 14.1 Mbps
Nominal bit rate : 14.4 Mbps
Width : 1 920 pixels
Height : 1 080 pixels
Display aspect ratio : 16:9
Frame rate : 23.976 fps
Resolution : 24 bits
Colorimetry : 4:2:0
Scan type : Progressive
Bits/(Pixel*Frame) : 0.283
Stream size : 14.3 GiB (85%)
Writing library : x264 core 79 r1347 5ddd61b
Encoding settings : cabac=1 / ref=2 / deblock=1:0:0 / analyse=0x3:0x113 / me=hex / subme=6 / psy=1 / psy_rd=1.0:0.0 / mixed_ref=1 / me_range=16 / chroma_me=1 / trellis=1 / 8x8dct=1 / cqm=0 / deadzone=21,11 / chroma_qp_offset=-2 / threads=3 / nr=0 / decimate=1 / mbaff=0 / constrained_intra=0 / bframes=3 / b_pyramid=0 / b_adapt=1 / b_bias=0 / direct=1 / wpredb=1 / wpredp=2 / keyint=250 / keyint_min=25 / scenecut=40 / rc_lookahead=30 / rc=2pass / mbtree=1 / bitrate=14400 / ratetol=1.0 / qcomp=0.60 / qpmin=10 / qpmax=51 / qpstep=4 / cplxblur=20.0 / qblur=0.5 / ip_ratio=1.40 / aq=1:1.00
Language : English

If you use in-bulid preset fast --ref 2 is used which will not brake DXVA compatibility.
Also if your average bitrate is 14400, probably the values of VBV can not reach the limit of DXVA.
But I think it is better to control VBV's rather than a bad surprise might occur after long time encoding.

EDIT: Fix by Zathor (http://forum.doom9.org/showthread.php?p=1350501#post1350501)

bye
szabi

Recalled2Life
9th December 2009, 23:20
Hello,

I have been using MeGUI for 6 Encodes now with no issues. Now I am receiving an error:

"Cannot find audio or video data. Ensure that your PIDs are set correctly in the Stream menu. Refer to the User Manual for details"

I am trying to make a D2V file as the first part of the Encoding process I use. The file(s) I am working with are .m2ts Blue-Ray files. I have MeGUI v 0.3.1.1056.

http://i46.tinypic.com/xarmmd.jpg

Inspector.Gadget
10th December 2009, 00:35
How did you rip your source files? Normal Blu-ray MPEG-2 - in - M2TS content works well with DGIndex. Try making your index file with DGIndex directly and setting audio to "Demux all tracks" to rule out any typos on the audio list.

Recalled2Life
10th December 2009, 02:45
Inspector.Gadget How did you rip your source files? Normal Blu-ray MPEG-2 - in - M2TS content works well with DGIndex. Try making your index file with DGIndex directly and setting audio to "Demux all tracks" to rule out any typos on the audio list.

I used AnyDVD HD's built in ripper to rip the file. After loading the file into DGIndex Version 1.5.7, I am receiving the same error. I looked at the online manual but I was unsure on how to set the PID's even after reading it and trying.
As stated I have not encountered this problem until a few days ago.
I have tried the previous .m2ts that worked and it does still. I have 3 different .m2ts files that all seem 2 to be doing this.

Inspector.Gadget, thanks for the reply:thanks:

Inspector.Gadget
10th December 2009, 03:09
Are you sure the M2TS in question is MPEG-2 and not VC-1 or H.264?

Recalled2Life
10th December 2009, 03:17
Are you sure the M2TS in question is MPEG-2 and not VC-1 or H.264?
It is VC-1. Is this bad?

Video #1
ID : 4113 (0x1011)
Menu ID : 1 (0x1)
Format : VC-1
Format profile : AP@L3
Duration : 2h 58mn
Width : 1 920 pixels
Height : 1 080 pixels
Display aspect ratio : 16:9
Frame rate : 23.976 fps
Colorimetry : 4:2:0
Scan type : Progressive

Inspector.Gadget
10th December 2009, 03:44
You can't use DGIndex for VC-1. You must use DirectShowSource() [least preferred], Haali's DSS2() [better], ffmpegsource() [better], or Neuron2's DGIndexNV and DGMultiSource() [most flexible with force film and two hardware deinterlacers, but requires a recent NVIDIA graphics card and a nominal license fee].

Recalled2Life
10th December 2009, 05:20
You can't use DGIndex for VC-1. You must use DirectShowSource() [least preferred], Haali's DSS2() [better], ffmpegsource() [better], or Neuron2's DGIndexNV and DGMultiSource() [most flexible with force film and two hardware deinterlacers, but requires a recent NVIDIA graphics card and a nominal license fee].

Sorry but I'm rather new at this so can you please elaborate on this further. ffmpegsource()

Inspector.Gadget
10th December 2009, 05:25
It's an avisynth plugin, use search to get the relevant thread. In MeGUI, you would call it (in its most basic form) in the AVS text area as:

LoadPlugin("FFMS2.dll")

FFVideoSource("Something.m2ts")

N.B.: Won't work with some weird field stuff in VC-1, but for 23.976fps progressive you'll be fine.

rudiev
11th December 2009, 15:39
I see a lot of users in trouble with X264 parameters.
Why not an option which completely disable the Megui codec settings to prevent the incompatibility with the often updated X264 builds?

Isn't this accomplished by just NOT enabling the 'advanced setting' checkbox in the encoder settings config windows?
With 'advanced settings' enabled i get the following:

program --profile high --level 4.1 --preset slow --tune film --pass 2 --bitrate 14400 --stats ".stats" --slow-firstpass --thread-input --deblock -1:-1 --bframes 3 --b-adapt 2 --direct auto --b-bias 0 --scenecut 40 --ref 8 --vbv-bufsize 50000 --vbv-maxrate 50000 --rc-lookahead 60 --aq-mode 1 --aq-strength 1.0 --merange 16 --me umh --subme 10 --partitions all --trellis 2 --psy-rd 1.0:0 --no-dct-decimate --output "output" "input"


If i uncheck the advanced setting checkbox i get the following:

program --profile high --level 4.1 --preset slow --tune film --pass 2 --bitrate 14400 --stats ".stats" --slow-firstpass --thread-input --output "output" "input"

This are only a few x264.exe presets, no special settings from megui, allthough some extra settings which are set with the 'advanced settings' checkbox enabled could be default and also enabled.

Nightshiver
11th December 2009, 18:48
It doesn't matter if you uncheck it. Those options are still enabled, you just can't see them.

Zathor
12th December 2009, 01:03
It doesn't matter if you uncheck it. Those options are still enabled, you just can't see them.

At least in the unpatched 1057 this is wrong. Only the parameters you can see will be passed to the encoder.

Carpo
14th December 2009, 20:26
You could actually use
--bitrate 1309 --b-adapt 2 --ref 4 --partitions all --me umh --direct auto --output "output" "input"
which would be the same as your settings.

@nurbs

so your saying something like this?

x264.exe --profile high --level 4.1 --preset veryslow --tune film --pass 2 --bitrate 9132 --stats ".stats" --thread-input --b-adapt 2 --ref 4 --partitions all --me umh --direct auto -o D:\test.mkv D:\gran.torino.avs 1280x720

Obviously changing the bitrate and tuning for animation when i do an anime.

All this is being done from cmdline atm as megui and dgindenv don't play nice and i have a few vc-1 movies to do

forum king
15th December 2009, 09:57
hey folks :)

ummm.. i have run into another freaky scenario:(
i donno from yesterday when i am trying running megui it just wont run..
although the megui.exe process is running in task manager but there is nothing on the desktop no user interface whatsoever

i didnt do anything no updates no upgrdaes no windows stuff
only installed and uninstalled limewire thats it then turned the system off next day whenh i opened it this started to happen.

any clues
also which version of .net frame work is required for megui i mean 2 or 2 with sp1 of 3 or 3.5..
i am thinking of reinstalling .net as well.

please guide

SeeChestlickRun
15th December 2009, 19:13
I've looked at several pages trying to find similar problem I have right now, but I can't find anything.

Everytime I start a x264 encoding, MeGUI will reach to 100 percent and stop. It never finish... why?

http://i388.photobucket.com/albums/oo329/Jhcheslik/MeGUI/untitled.jpg

Old x264 perhaps?

rapscallion
16th December 2009, 22:14
Did you look in the log ?

ariefjuga
17th December 2009, 11:53
hi, i encounter some problem while using megui
i don't know exactly what the problem is but i think its related to codec or something (like i said my friend, i dont know exactly :) )

this is the log of my job


[Error] An error occurred
-[NoImage] Exception message
--[NoImage] Error initializing audio stream decompression:
--[NoImage] The requested conversion is not possible.
--[NoImage] Check to make sure you have the required codec.
-[NoImage] Stacktrace
--[NoImage] at MeGUI.AviSynthClip..ctor(String func, String arg, AviSynthColorspace forceColorspace, AviSynthScriptEnvironment env)
--[NoImage] at MeGUI.AviSynthAudioEncoder.encode()
-[NoImage] Inner exception: null



its said that apparently i don't have the required codec, but i already install klite mega codec for it. And again it doesn't work.

i already try to change the audio encoder, but its just the same. the error still appear.

Carpo
17th December 2009, 12:13
klite is NOT a good thing to have installed so i hear, most use cccp or ffdshow

ariefjuga
17th December 2009, 12:40
klite is a good thing to have installed so i hear, most use cccp or ffdshow

so, there should be no problem isn't it? but why it's not working? :confused:

nurbs
17th December 2009, 12:47
I think Carpo made a typo. It should be "klite is not at good thing to have installed". Most people here would recommend against using codec packs in general and prefer haali splitter + ffdshow.

Carpo
17th December 2009, 14:39
indeed i did make a typo, never post before you have had your first coffee ;) fixed now though

ariefjuga
17th December 2009, 15:47
indeed i did make a typo, never post before you have had your first coffee ;) fixed now though

then what do you suggest me to do? uninstal it?

Carpo
17th December 2009, 19:33
yes and install cccp or ffdshow

_Sagan
17th December 2009, 21:46
Yo,
i wrote a few days ago:
Hi,
I have a problem with the encoding. I`m starting the job and it's about 10-20 seconds and my PC shutdown. The speed of the encoding was about 0,8-1,6 FPS, normally I got on this script over 45-50 FPS. I haven`t any protection that shutdown the PC, when the usage of CPU is 100% or the temperature is very high.
What can be the problem? It crashed on every avs scripts (no meaning short, easy or hard, long). Oh yeah, I would forget, first the PC freezes for 10 sec and then shutdown.

I resolved the problem with the shutdown of the PC, but could someone tell my why the speed of the encoding is by far slower than it normally was.
Come on, guys.
I`m counting on you.

Carpo
17th December 2009, 23:29
sounds like a hardware issue to me, something is getting upset, turns itself off or freezes so windows thinks its not there and shuts the pc down

_Sagan
18th December 2009, 00:36
Thanks Carpo,
I think maybe you have right, because recently I changed my CPU from a old Pentium 4 to a Dual-Core. I wouldn`t have even though that this could be a hardware issue. I will check the BIOS and see if everything is fine.

deng17
18th December 2009, 08:53
I have a problem when playing encoded XVIDs to my DVD player. I don't know if my player or the encoding is at fault.

I've turned off QPel and GMC. I've only turned on Packed Bitstream and Trellis Quant. I'm also sure that the audio is compatible. It's in LAME MP3 downmixed to Stereo.

Here's the problem. The video plays, yes, but it skips to the next video, which also skips, after 5 seconds.

Recalled2Life
19th December 2009, 00:31
Yo,
i wrote a few days ago:


I resolved the problem with the shutdown of the PC, but could someone tell my why the speed of the encoding is by far slower than it normally was.
Come on, guys.
I`m counting on you.
I just had this happen to me and it turned out to be the RAM. As soon as I put some new sticks in, the problem stop. I would give this a try.

Carpo
19th December 2009, 17:45
I am trying to back up my copy of mock the week too hot for tv 2, when making the avs and getting megui to scan the source its says

source type: hybrid film/interlaced. mostly interlaced
field order: top field first
deinterlace: tivtc

and it gives me this as the avs

DGDecode_mpeg2source("D:\too.hot.for.tv.2-bits.that.wont.be.broadcast.d2v", info=3)
ColorMatrix(hints=true, interlaced=true, threads=0)
tfm(order=1).tdecimate(hybrid=3)

when it has encoded the file i can still see some interlaced frames, mainly when peope are speaking or moving their hands, looks like they have lines going through their teeth and hands. Is megui not picking everything up or is this an issue with the pluggin? Do i need to change the vaules in the avs? if so what do people suggest?

heffalump
20th December 2009, 18:16
MeGUI prompted me for several updates, a couple of days ago. After updating, I am having some corrupted video problems. The original videos all play, without any error. After running through MeGUI for resizing and x264 encoding, the video looks corrupted.

The original files are 1920x1080 h.264 videos, played back using CoreAVC 1.9.5.

Here's the AviSynth script that I'm using...
DirectShowSource("E:\BDRIP\Firefly\01x05\T2_Video - .mkv", audio=false)
LanczosResize(1280,720)
ConvertToYV12()


Attached is my MeGUI log and a screen shot.

Lastly, here's the product of the above...
http://rapidshare.com/files/323557425/corrupted_video.mp4.html

Any assistance would be appreciated! Thanks! :)

nurbs
20th December 2009, 18:33
CoreAVC 1.9.5 has a bug (unsupported feature) and can't play files encoded with --weightp 2, which is the default in the current x264 versions, correctly. You can upgrade to CoreAVC 2.0 (if you don't mind paying), use a different decoder (ffdshow for instance) or encode with --weightp 1.

I downloaded your file and it plays fine.
Personally I'd recommend reducing the number of reference frames you use to 9 so you can ensure compatibility with standalone devices.

lnatan25
20th December 2009, 18:57
I think any value of --weightp that is not 0 will produce visual artifacts in CoreAVC < 2.0. :\

heffalump
20th December 2009, 19:51
CoreAVC 1.9.5 has a bug (unsupported feature) and can't play files encoded with --weightp 2, which is the default in the current x264 versions, correctly. You can upgrade to CoreAVC 2.0 (if you don't mind paying), use a different decoder (ffdshow for instance) or encode with --weightp 1.

I downloaded your file and it plays fine.
Personally I'd recommend reducing the number of reference frames you use to 9 so you can ensure compatibility with standalone devices.

I think any value of --weightp that is not 0 will produce visual artifacts in CoreAVC < 2.0. :\

You guys were right! It was the "P-frame Weighted Prediction." I disabled that and everything is right as rain, again. I've been trying to figure that problem out for several hours. I never would've thought to steer clear of the default values.

Thank you for the speedy replies! Thank you, both! :D

Kraise
20th December 2009, 21:32
I just updated megui to 1059 from 1030 or so, I'd been using the old version for a long time, quick simple noob question for the new version (I couldn't find the answer anywhere)

What do tunings do exactly? And what is this slider thing? If I leave the slider in the middle and use advance settings will it overide it? lol

nurbs
20th December 2009, 22:02
What do tunings do exactly? And what is this slider thing?
"x264 --fullhelp" will show you the description of the presets and tunings. Other command line options are applied after the presets and tunings and thus override them. Level flag restricts presets and tunings (e.g. by lowering number of reference frames), but not custom options.

There are also plenty of threads in the AVC subforum.

Dark Shikari
21st December 2009, 02:34
I think any value of --weightp that is not 0 will produce visual artifacts in CoreAVC < 2.0. :\--weightp 1 will work fine.

consultant
23rd December 2009, 18:51
Newbie here coming from using Handbrake and Staxrip and having frustrations with them so moved on to MeGui. I just want simple. In Handbrake and Staxrip I just had to set a few settings. Mainly I focused on cRF (setting it at 20 for very high quality). In the one-click encoding on MeGui (which appears to be the closest equivalent to these other two programs), I don't see a way to set -cRF? How do I set it?

Thanks!

panark
24th December 2009, 12:34
I'm using MeGUI 0.3.1.1056 with Nero Digital AAC Encoder 1.3.3.0.

Is it recommended/allowed to manually update Nero encoder to the latest version (1.5.1.0)?
Is MeGUI compatible with this latest version of Nero encoder?

Thanx in advance.

Alf Bundy
24th December 2009, 13:03
Well, I don't know with the old rev 1056.
But I've just downloaded the latest NeroAACenc (http://www.nero.com/eng/downloads-nerodigital-nero-aac-codec.php) and it works fine with the latest Megui 0.3.1.1059 (http://85.230.118.136/showthread.php?t=151159) ...

tebasuna51
24th December 2009, 18:35
NeroAacEncoder v1.5.1.0 have the same parameters than precedent version, then work without problems with MeGUI, BeHappy, eac3to, BeLight, ...

consultant
24th December 2009, 18:48
I'm wondering if MeGui is capable of this and if so, where is the documentation that explains exactly how to do it?

I've got a whole bunch of music video DVDs already ripped into chapter VOB files. I want to queue them all up to be transcoded. I want them to all be transcoded using the same encoder setting which produced a hiqh quality file that is about 1/4th the size of the VOB (I've found this equates in other programs to a cRF=10, Speed=Medium). I want meGui to automatically encode the best audio track, so if there is a stereo track and a 5.1 track, I want it to include the 5.1 track not the stereo track. I want to just load a profile and point at all the VOBs to add to the queue and hit start and let it chug away for the day.

Is this possible? I think the audio encode choice may be the sticking point. My guess is I can only do this one DVD at a time as the audio tracks vary from DVD to DVD so I assume I need to add all the VOBs to the queue for one DVD, set the audio settings and then do the same for the next DVD?

quantum5uicid3
24th December 2009, 20:37
I'm wondering if MeGui is capable of this and if so, where is the documentation that explains exactly how to do it?

I've got a whole bunch of music video DVDs already ripped into chapter VOB files. I want to queue them all up to be transcoded. I want them to all be transcoded using the same encoder setting which produced a hiqh quality file that is about 1/4th the size of the VOB (I've found this equates in other programs to a cRF=10, Speed=Medium). I want meGui to automatically encode the best audio track, so if there is a stereo track and a 5.1 track, I want it to include the 5.1 track not the stereo track. I want to just load a profile and point at all the VOBs to add to the queue and hit start and let it chug away for the day.

Is this possible? I think the audio encode choice may be the sticking point. My guess is I can only do this one DVD at a time as the audio tracks vary from DVD to DVD so I assume I need to add all the VOBs to the queue for one DVD, set the audio settings and then do the same for the next DVD?

yes, it's possible.

here's roughly how, i dunno if there's documentation on doing exactly what you're doing.
http://mewiki.project357.com/wiki/MeGUI/Basic_DVD_Ripping_Guide

consultant
24th December 2009, 20:53
I'll look at that documentation but it says in bold:

It does not cover:

* Using any of the automated features of MeGUI for video encoding.

I want to just load a profile I created with all the settings, select all the VOBs, and hit "start"

quantum5uicid3
24th December 2009, 20:59
try a different program

pdexdee
25th December 2009, 14:36
i use winxp sp3 but won't work and latest neroaac

dolphinjet
25th December 2009, 22:57
Merry x'mas everyone!

---

Recently,
I noted a problem with build 1056 (after a long time without encoding)

The megui interface become unresponsive immediately after starting the queue,
sometimes it will become responsive again after finishing the first task,
sometimes it will not even start the first task,
sometimes it crashes firefox v3.5.6 instead of itself (when megui is responsive, the two apps seems to be fighting with each other)

I think I should modify to a simpler description.

megui would crash the topmost application.

I rolled back windows to a earlier installation but the problem still persists.

I am using winXP SP3
I have re-install megui for a few times already. I've also tested build 1058 but got errors so reverted back to stable build.

megui settings:
priority low
disabled open progress window

pdexdee
26th December 2009, 16:50
as first: Merry x'mas to all people here!
what means:
when i put file says:Unable to render the file. You probably don't have the correct filters installed ....
but when i put other file first create dgindex and all other work correct,what u suggest to me?
i have version 3.1.1051 installed.
would be good to fine version with all profiles!?
i have windows xp sp3 also k lite codec full pack!

ariefjuga
27th December 2009, 12:13
just want to ask why my megui say there is no update available. But, in above i see there is people who already have the latest version of megui. My megui still 3.1.1051. Is it because there is not yet any stable upgrade version?

XhmikosR
27th December 2009, 12:22
@ariefjuga: Use this (http://forum.doom9.org/showthread.php?t=151159) build.

ariefjuga
27th December 2009, 12:36
@ariefjuga: Use this (http://forum.doom9.org/showthread.php?t=151159) build.

MeGUI: Patched Build? :confused:

Is it some kind of new MeGUI?

XhmikosR
27th December 2009, 12:42
It's the same old MeGUI except that it should work much better since Zathor has fixed a lot of bugs. Read through that topic for more details.

ariefjuga
28th December 2009, 11:28
do i have to uninstall my old megui first?

rapscallion
1st January 2010, 20:09
do i have to uninstall my old megui first?
No, you can install to a different dir and then run either ver.

FlezZ
1st January 2010, 21:00
I don't know if this is a bug but it's definitely very weird behaviour.

I set a default output directory in the settings and then enqueued 2 separate passes of encodings and started the queue.
Both of processes then started at once. However, if I removed the default directory, the processes start in sequence.

Anyone else have this?

Edit:

Ok, I don't know if these things are actually connected to each other, but I am still having the problem with the processes starting at once.
There's an error for the second encoding process in the queue:

-[Error] An error occurred: x264 [error]: ratecontrol_init: can't open stats file
-[Error] An error occurred: x264 [error]: x264_encoder_open failed

This is obviously the result of the problem, not the cause, because the 2 encoding processes start at once, and the second pass encode cant open the stats file as the first one is already using it.

Zathor
3rd January 2010, 10:52
I set a default output directory in the settings and then enqueued 2 separate passes of encodings and started the queue.
Both of processes then started at once. However, if I removed the default directory, the processes start in sequence.


Which build of MeGUI do you use?

FlezZ
3rd January 2010, 12:07
Up to this point, the newest I believe: 0.3.1.1060

Dogway
3rd January 2010, 14:17
Ive been having problems with megui since I updated the driver of the chipset on my laptop (I was having blue screens). It's a Mobile PM45 Express Chipset.
Im not totally sure that's the problem, the fact is I dont see why MeGUI should have a problem with this. I already re-installed and updated to the latest version.

I attach a picture with the problem (the stats are not showing):

http://img300.imageshack.us/img300/860/megui.th.gif (http://img300.imageshack.us/img300/860/megui.gif)

Zathor
3rd January 2010, 18:45
Ive been having problems with megui since I updated the driver of the chipset on my laptop (I was having blue screens). It's a Mobile PM45 Express Chipset.
Im not totally sure that's the problem, the fact is I dont see why MeGUI should have a problem with this. I already re-installed and updated to the latest version.


Please post your log and the avs file.

Dogway
3rd January 2010, 19:20
The avs is whatever, just a load call. This time I just used this as a dummy:

ImageSource ("D:\Rip\vlgame008106.jpg")
trim(0,5000)
Addborders(0,1,0,0)
ConvertToYV12()

*I aborted the encoding

[Warning] Log
-[Information] Versions
--[NoImage] MeGUI Version : 0.3.1.1060
--[NoImage] OS : Windows XP Professional x86 SP2 (5.1.131072.2600)
--[NoImage] Latest .Net Framework installed : 3.5 (3.5.30729.01)
--[NoImage] Avisynth Version : 2.5.8.5
-[Warning] Log for job1 (video, si.avs -> )
--[Information] [03/01/2010 18:14:35] Started handling job
--[Information] [03/01/2010 18:14:35] Preprocessing
--[NoImage] Job commandline: "C:\Archivos de programa\megui\tools\x264\x264.exe" --profile high
--preset slower --tune touhou --pass 1 --bitrate 3000 --stats "D:\Rip\si.stats" --slow-firstpass --thread-input
--threads 2 --scenecut 30 --ref 8 --aq-strength 1.0 --sar 876:875 --output NUL "D:\Rip\si.avs"
--[Information] [03/01/2010 18:14:36] Encoding started
--[NoImage] Standard output stream
--[NoImage] Standard error stream
--[Warning] Deleting aborted output
---[NoImage] Delete aborted ouptut set: True
---[NoImage] File to delete
---[Warning] Error deleting file
----[NoImage] Exception message: La ruta de acceso no tiene un formato válido.
----[NoImage] Stacktrace
-----[NoImage] en System.IO.Path.NormalizePathFast(String path, Boolean fullCheck)
-----[NoImage] en System.IO.Path.NormalizePath(String path, Boolean fullCheck)
-----[NoImage] en System.IO.Path.GetFullPathInternal(String path)
-----[NoImage] en System.IO.File.Delete(String path)
-----[NoImage] en MeGUI.core.gui.JobWorker.markJobAborted()
----[NoImage] Inner exception: null
--[Information] [03/01/2010 18:14:54] Job completed
--[Information] [03/01/2010 18:14:54] Current job was aborted

Max_Cady
11th January 2010, 11:40
crop( 2, 12, -2, -12)

Spline36Resize(720,384) # Spline36 (Neutral)

import("c:\program files\avisynth 2.5\plugins\LSFmod.v1.9.avs")

LSFMod(defaults="fast", Lmode=1, Soothe=false, strength=200)

[Error] Log
-[Information] Versions
--[NoImage] MeGUI Version : 0.3.1.1061
--[NoImage] OS : Windows XP Professional x86 SP3 (5.1.196608.2600)
--[NoImage] Latest .Net Framework installed : .x (..)
--[NoImage] Avisynth Version : 2.5.7.0
-[Information] Log for job1 (video, VTS_07_1.avs -> )
--[Information] [11.01.2010 00:39:00] Started handling job
--[Information] [11.01.2010 00:39:00] Preprocessing
--[NoImage] Job commandline: "C:\Program Files\megui\tools\xvid_encraw\xvid_encraw.exe" -i "C:\Documents and Settings\Unforgiven\Desktop\BUKOWSKİ\VTS_07_1.avs" -pass1 "C:\Documents and Settings\Unforgiven\Desktop\BUKOWSKİ\VTS_07_1.stats" -bitrate 1937 -kboost 100 -chigh 30 -clow 15 -overhead 0 -turbo -max_key_interval 250 -nopacked -vhqmode 4 -qmatrix "C:\Documents and Settings\Unforgiven\Desktop\cx\matrix\heini_mr.xcm" -imin 1 -pmin 1 -max_bframes 1 -bvhq -bquant_ratio 162 -bquant_offset 0 -bmin 1 -par 1:1 -threads 1
--[Information] [11.01.2010 00:39:06] Encoding started
--[NoImage] Standard output stream
---[NoImage] xvid_encraw - raw mpeg4 bitstream encoder written by Christoph Lampert 2002-2003
---[NoImage] Tot: enctime(ms) =18656528.00, length(bytes) = 1828671656
---[NoImage] Avg: enctime(ms) = 138.88, fps = 7.20, length(bytes) = 13613
---[NoImage] I frames: 792 frames, size = 72402/ 57342540, quants = 2 / 2.00 / 2
---[NoImage] P frames: 67152 frames, size = 20913/ 1404396207, quants = 2 / 2.00 / 2
---[NoImage] B frames: 66134 frames, size = 5548/ 366930895, quants = 3 / 3.00 / 3
---[NoImage] N frames: 252 frames, size = 7/ 2014
--[NoImage] Standard error stream
---[NoImage] Trying to retrieve width and height from input header
---[NoImage] xvid [info]: Avisynth detected
---[NoImage] xvid [info]: Input colorspace is YV12
---[NoImage] xvid [info]: Input is 720 x 384, 25.000fps (25/1), starting from frame 0
---[NoImage] xvid [info]: Number of frames to encode: 134330, Bitrate = 1937kbps
---[NoImage] xvid [info]: xvidcore build version: xvid-1.2.2
---[NoImage] xvid [info]: Bitstream version: 1.2.2
---[NoImage] xvid [info]: Detected CPU flags: ASM MMX MMXEXT SSE SSE2 TSC
---[NoImage] xvid [info]: Detected cpus = 2, threads requested = 1, threads in use = 1
--[Information] [11.01.2010 05:50:23] Postprocessing
---[Information] Deleting intermediate files
--[Information] [11.01.2010 05:50:24] Job completed
-[Error] Log for job2 (video, VTS_07_1.avs -> VTS_07_1.avi)
--[Information] [11.01.2010 05:50:25] Started handling job
--[Information] [11.01.2010 05:50:25] Preprocessing
--[NoImage] Job commandline: "C:\Program Files\megui\tools\xvid_encraw\xvid_encraw.exe" -i "C:\Documents and Settings\Unforgiven\Desktop\BUKOWSKİ\VTS_07_1.avs" -pass2 "C:\Documents and Settings\Unforgiven\Desktop\BUKOWSKİ\VTS_07_1.stats" -bitrate 1937 -kboost 100 -chigh 30 -clow 15 -overhead 0 -max_key_interval 250 -nopacked -vhqmode 4 -qmatrix "C:\Documents and Settings\Unforgiven\Desktop\cx\matrix\heini_mr.xcm" -imin 1 -pmin 1 -max_bframes 1 -bvhq -bquant_ratio 162 -bquant_offset 0 -bmin 1 -par 1:1 -threads 1 -avi "C:\Documents and Settings\Unforgiven\Desktop\BUKOWSKİ\VTS_07_1.avi"
--[Information] [11.01.2010 05:50:35] Encoding started
--[Error] An error occurred: xvid [error]: Couldn't init AVI file for writing (C:\Documents and Settings\Unforgiven\Desktop\BUKOWSKİ\VTS_07_1.avi)
--[NoImage] Standard output stream: xvid_encraw - raw mpeg4 bitstream encoder written by Christoph Lampert 2002-2003
--[NoImage] Standard error stream
---[NoImage] Trying to retrieve width and height from input header
---[NoImage] xvid [info]: Avisynth detected
---[NoImage] xvid [info]: Input colorspace is YV12
---[NoImage] xvid [info]: Input is 720 x 384, 25.000fps (25/1), starting from frame 0
---[NoImage] xvid [info]: Number of frames to encode: 134330, Bitrate = 1937kbps
---[NoImage] xvid [info]: xvidcore build version: xvid-1.2.2
---[NoImage] xvid [info]: Bitstream version: 1.2.2
---[NoImage] xvid [info]: Detected CPU flags: ASM MMX MMXEXT SSE SSE2 TSC
---[NoImage] xvid [info]: Detected cpus = 2, threads requested = 1, threads in use = 1
---[NoImage] AVIOutputFile::Init Error: Unable to open file "C:\Documents and Settings\Unforgiven\Desktop\BUKOWSKY\VTS_07_1.avi" for write: Sistem belirtilen yolu bulamıyor.
--[Information] [11.01.2010 05:50:45] Job completed


any help guys.:confused:

stax76
11th January 2010, 12:45
---[NoImage] AVIOutputFile::Init Error: Unable to open file "C:\Documents and Settings\Unforgiven\Desktop\BUKOWSKY\VTS_07_1.avi" for write: Sistem belirtilen yolu bulamıyor.

Please translate.

Max_Cady
11th January 2010, 12:52
system can not find the path specified

sorry about that.

LigH
11th January 2010, 14:08
Compare "BUKOWSKİ" with "BUKOWSKY" ... seems that some system function tried to substitute a regional Unicode character with the nearest possible ANSI character.

Avoid accented characters in file and directory names. I believe the "İ" is the problem. (Is that turkish?)

tebasuna51
11th January 2010, 14:10
system can not find the path specified
Seems a bug with chars:
...
-avi "C:\Documents and Settings\Unforgiven\Desktop\BUKOWSKİ\VTS_07_1.avi"
...
Error: Unable to open file "C:\Documents and Settings\Unforgiven\Desktop\BUKOWSKY\VTS_07_1.avi"

Until solve the problem try using paths with international chars only.

stax76
11th January 2010, 14:22
What is a international char? :)

Max_Cady
11th January 2010, 14:42
@LigH

Never before encountered such an error.Thanks for advice mate i try later and yup Turkish caracter.

MrVideo
11th January 2010, 19:37
MeGUI version 0.3.1.1056

When presented with NTSC DVD 4:3 video, MeGUI wants to use a SAR value of 28481:31250 with x264. I do not know how MeGUI comes up with that value, as that would translate to 656.20224 instead of 640. It seems as if it is working with 704 instead of 720. Even then the SAR would be 10:11, to get exactly to the required 640. For 720x480, the SAR should be 8:9.

I'm not cropping the video.

Any idea why the SAR is wrong?

Thanks

MrVideo
11th January 2010, 19:40
What is a international char? :)

I'm guessing characters that do not have the special emphasis above them.

Zathor
11th January 2010, 22:07
MeGUI version 0.3.1.1056

When presented with NTSC DVD 4:3 video, MeGUI wants to use a SAR value of 28481:31250 with x264. I do not know how MeGUI comes up with that value, as that would translate to 656.20224 instead of 640. It seems as if it is working with 704 instead of 720. Even then the SAR would be 10:11, to get exactly to the required 640. For 720x480, the SAR should be 8:9.

I'm not cropping the video.

Any idea why the SAR is wrong?

There are a few defined constants for DAR in MeGUI:
ITU16x9PAL = 1.823361
ITU4x3PAL = 1.367521
ITU16x9NTSC = 1.822784
ITU4x3NTSC = 1.367088

So your 4:3 NTSC source has a DAR value of 1.367088.

SAR will be calculated as DAR * vres / hres and that's 28481:31250 in this case.

But I am only repeating the internal code - I do not understand DAR and SAR calculations fully. It would be great if someone can point me to a site where this particullary problem is described in more detail and tell me which value is correct in this case - the one from MeGUI or MrVideo.

stax76
11th January 2010, 22:15
You are lucky you are german so you can read Brother John's Encodingwissen. His site and support helped me a lot building image related things in StaxRip.

MrVideo
11th January 2010, 22:38
So your 4:3 NTSC source has a DAR value of 1.367088.

SAR will be calculated as DAR * vres / hres and that's 28481:31250 in this case.

Is that: (DAR * vres) / hres
or: DAR * (vres / hres)

I know, they're both the same :cool:

But I am only repeating the internal code - I do not understand DAR and SAR calculations fully. It would be great if someone can point me to a site where this particullary problem is described in more detail and tell me which value is correct in this case - the one from MeGUI or MrVideo.

DAR is the Display Aspect Ratio

I forget exactly what SAR abbreviates from.

In the case of NTSC and PAL, the aspect ratios are 4:3 (1.333333) or 16:9 (1.777777). They are not what is listed. With your formula, it makes sense that the SAR comes out wrong.

Filling in the formula with the correct values results in: 1.333333 * 480 / 720 = 639.99984 / 720 = .888888666 = 8/9

The better, and more accurate way to get the SAR is not to do the math on the 4:3 first but to do: ((vres / 3) * 4) / hres

That will result in exactly .888888888888, or 8/9

Make sense?

Mizzle
12th January 2010, 09:08
Hi, I just converted my very first avi file to an mkv to test it out on Youtube.
Are there any recommended settings for the best quality or anything to get in HD there...?
(btw, atm I'm getting the 'An error occurred...' message for that video aswell)

Zathor
12th January 2010, 21:21
In the case of NTSC and PAL, the aspect ratios are 4:3 (1.333333) or 16:9 (1.777777). They are not what is listed. With your formula, it makes sense that the SAR comes out wrong.

Filling in the formula with the correct values results in: 1.333333 * 480 / 720 = 639.99984 / 720 = .888888666 = 8/9

The better, and more accurate way to get the SAR is not to do the math on the 4:3 first but to do: ((vres / 3) * 4) / hres

That will result in exactly .888888888888, or 8/9

Make sense?

Please read here:
http://forum.doom9.org/showthread.php?s=&threadid=42708

Dogway
14th January 2010, 01:11
Just bumping my question. Does anybody know how to make megui show statistics while encoding? Im using the last x264 build.

Ruriko
14th January 2010, 01:52
Does anyone know how I can make megui run on linux?

nurbs
14th January 2010, 10:53
Just bumping my question. Does anybody know how to make megui show statistics while encoding? Im using the last x264 build.
x264 doesn't show any statistics during encoding apart from bitrate, which MeGUI indicates with the projected filesize, and the encoding speed, which MeGUI already shows.

Dogway
14th January 2010, 20:10
x264 doesn't show any statistics during encoding apart from bitrate, which MeGUI indicates with the projected filesize, and the encoding speed, which MeGUI already shows.

Yes, that's why I post here, MeGUI doesn't show projected filesize, nor encoding speed.

Alf Bundy
14th January 2010, 20:22
Yes it does ... Unless you unchecked "open progress window" in Options -> Settings.

Dogway
14th January 2010, 20:41
http://img5.imageshack.us/img5/860/megui.gif

I posted this on previous page showing the problem. Everything is blank.

Zathor
14th January 2010, 20:55
Do you have the problem with other tools in MeGUI as well (like converting an audio file)?

Please post the log and execute the commandline in a cmd manually. Do you see a progress there?

Dogway
14th January 2010, 22:08
Yes, audio is ok. The log is posted in page 259, and yes command line shows progress, eta, kbps, everything.

Now I dont know if the problem is x264, or MeGui which isn't capable of translating the (last build) x264 statistics.

Zephyr_Truesdale
15th January 2010, 02:31
I'm having a problem encoding an old video with x264 and I haven't had a problem before but I think its something that the current version 0.3.1.1061 that's the problem.

nurbs
15th January 2010, 08:39
Will you tell us what the problem is or do we have to guess?

Nikolausr
16th January 2010, 11:30
Is there a way to get logs be more informative?

[Error] Log
-[Information] Versions
--[NoImage] MeGUI Version : 0.3.1.1051
--[NoImage] OS : Windows Seven x64 (6.1.0.7600)
--[NoImage] Framework used : 2.0 SP1 (2.0.50727.4927)
-[Information] Hardware
--[NoImage] CPU : Pentium(R) Dual-Core CPU E6300 @ 2.80GHz
-[Error] Log for job1 (video, VTS_05_1.avs -> )
--[Information] [1/16/2010 2:28:02 AM] Started handling job
--[Information] [1/16/2010 2:28:02 AM] Preprocessing
--[NoImage] Job commandline: "C:\Program Files (x86)\megui\tools\x264\x264.exe" --profile high --pass 1 --bitrate 1000 --stats "H:\Misc\Ripped Movies\IDIOCRACY_SIDEA\VIDEO_TS\VTS_05_1.stats" --ref 1 --no-mixed-refs --b-adapt 2 --b-pyramid --direct auto --deblock -1:-1 --subme 2 --trellis 0 --partitions none --me dia --thread-input --sar 1:1 --output NUL "H:\Misc\Ripped Movies\IDIOCRACY_SIDEA\VIDEO_TS\VTS_05_1.avs"
--[Information] [1/16/2010 2:28:03 AM] Encoding started
--[Error] An error occurred: x264 [error]: could not open input file 'H:\Misc\Ripped Movies\IDIOCRACY_SIDEA\VIDEO_TS\VTS_05_1.avs'
--[NoImage] Standard output stream
--[NoImage] Standard error stream
--[Information] [1/16/2010 2:28:03 AM] Job completed

Zathor
16th January 2010, 12:26
What do you think is missing?

Zathor
16th January 2010, 12:35
Yes, audio is ok. The log is posted in page 259, and yes command line shows progress, eta, kbps, everything.

Now I dont know if the problem is x264, or MeGui which isn't capable of translating the (last build) x264 statistics.
Because you are the only one (at least that I know) I assume that your client / software is the problem. One thing that I have noticed is that you are using Windows XP SP2. Please update to SP3 - I do not believe that this is the problem, but the support for SP2 from Microsoft will end soon (ok, 13th of July...) and there wont be security updates for SP2 anymore. Regarding the problem you could try to use other builds of x264 like the unpatched builds from x264.nl or other patched builds like from here http://komisar.gin.by/.

Dogway
16th January 2010, 12:49
Thanks for the feedback I will try to fiddle with it. About OS, I think that everything above SP2 is overdo, if I update I would to linux, but once where software pushes me to abandon XP.

msaadn
16th January 2010, 21:44
Updated to MeGUI 0.3.2.0
Win Vista Ultimate SP2

When I load an avisynth script MeGUI freezes then responds after a long time with an error.

Avisynth Script error:
DirectShowSource : Timeout waiting for graph to start.
(C:\video.avs, line1)

Taddeusz
17th January 2010, 01:58
I seem to be having a problem with the anamorphic encoding. The calculations seem to be slightly off. Not by a whole lot but by enough to be noticeable. I'm comparing MeGUI to Handbrake. MeGUI definitely gives me the better quality video but Handbrake calculates the cropped anamorphic AR properly.

I have a 16:9 DVD video that I'm cropping to 720x368. The proper display width should be 853 but MeGUI is calculating it as 875. So the video appears a bit shorter than it really should be. I can correct this by using mp4box, but I shouldn't have to.

Any way we can get this fixed? Thank you.

Inspector.Gadget
17th January 2010, 02:01
That's not actually incorrect, MeGUI has just picked sides in the ITU debate...

Taddeusz
17th January 2010, 02:02
That's not actually incorrect, MeGUI has just picked sides in the ITU debate...

Regardless, the output looks wrong in any player compared to the same video encoded using Handbrake, or compared to the original for that matter.

Edit: Ok, I see what's going on now and am now using a true 16:9 input AR. How can there be a debate about math? 16/9 equals 1.7777778 no matter how you calculate it. What new math is the ITU using to figure this stuff out?

Inspector.Gadget
17th January 2010, 02:43
Search is your friend, but basically NTSC 16:9 isn't actually perfect 16:9, and a lot of DVDs are encoded as a true 720w of content rather than a 704w + 16w padding, resulting in ambiguity,

stax76
17th January 2010, 02:50
@Taddeusz

MeGUI just defines ITU Input DAR's, that works for most common sources but gives wrong values for uncommon sources like 704x576. MeGUI allows you to enter a custom DAR and this get's persisted so it's no problem not using ITU. Regardless of what you want to use up-scaling is IMO a very bad idea.

Taddeusz
17th January 2010, 03:10
All DVD's I've ever seen, at least here in the United States, are encoded 720x480 regardless of whether they are 4:3 or 16:9. I've never seen one encoded at 704x.

stax76
17th January 2010, 03:16
You shouldn't have than any problems with MeGUI, just enter 1,777 and 1,333 as custom input DAR if you don't want to use the ITU DAR's.

Taddeusz
17th January 2010, 03:19
You shouldn't have than any problems with MeGUI, just enter 1,777 and 1,333 as custom input DAR if you don't want to use the ITU DAR's.

Yea, I finally figured that out.

Inspector.Gadget
17th January 2010, 03:53
All DVD's I've ever seen, at least here in the United States, are encoded 720x480 regardless of whether they are 4:3 or 16:9. I've never seen one encoded at 704x.

But you've likely seen plenty encoded at 704 of content and 16 of black bars, which is what I was referring to - this creates the ambiguity.

Taddeusz
17th January 2010, 04:05
But you've likely seen plenty encoded at 704 of content and 16 of black bars, which is what I was referring to - this creates the ambiguity.

Ah, so what you're saying is that the decoders automatically translate the 704 to 720 before it gets displayed? Kind of like how 1080p H.264 is actually 1088 lines but gets cropped upon playback?

Inspector.Gadget
17th January 2010, 04:49
No, I mean the actual movie is encoded at 720px width but only 704 of that is the film transfer: the other 16 pixels are padding. That's generally an easy case: crop 8 from each side, resize or retain to PAR to get about 853x480. The problem comes in when the actual content of the film takes up all 720px of width: it is unknown to the end user what process was used and whether the full 720px should occupy only ~853px, or whether with the "bonus" of an additional 16px the correct display dimensions allocate 853px of width to the innermost 704px and the rest may be displayed in addition. MeGUI simply opts to treat uncropped NTSC DVD content as allocating 704px of width to the "correct" 853w frame and any uncropped areas to outside that frame. There are better explanations in other threads.

Zathor
17th January 2010, 14:43
Updated to MeGUI 0.3.2.0
Win Vista Ultimate SP2

When I load an avisynth script MeGUI freezes then responds after a long time with an error.

Avisynth Script error:
DirectShowSource : Timeout waiting for graph to start.
(C:\video.avs, line1)
Are you able to open the file e.g. in VirtualDub? Please post your avs file.

Taddeusz
17th January 2010, 16:16
No, I mean the actual movie is encoded at 720px width but only 704 of that is the film transfer: the other 16 pixels are padding. That's generally an easy case: crop 8 from each side, resize or retain to PAR to get about 853x480. The problem comes in when the actual content of the film takes up all 720px of width: it is unknown to the end user what process was used and whether the full 720px should occupy only ~853px, or whether with the "bonus" of an additional 16px the correct display dimensions allocate 853px of width to the innermost 704px and the rest may be displayed in addition. MeGUI simply opts to treat uncropped NTSC DVD content as allocating 704px of width to the "correct" 853w frame and any uncropped areas to outside that frame. There are better explanations in other threads.

Ok then, regardless, whether the video is blocked a certain way on the encode the video itself, whether it be NTSC or PAL (720x480 or 720x576), is still encoded at 16:9 or 4:3. I just don't know how you can calculate those to be any different than 1.777778 and 1.333333. Math is math.

After cropping is another story, but before cropping 16:9 is 16:9 and 4:3 is 4:3.

stax76
17th January 2010, 16:45
Difficult topic! Search google for Aspect Ratio ITU-R BT.601

sneaker_ger
17th January 2010, 18:39
Here's a simple table if you only want to know the factors:
http://www.abload.de/img/itudar1vo7.png
left column: "commonly known" DAR
right column: ITU defined DAR

Cyberpro60
17th January 2010, 20:20
Megui fatal error. Version 0.3.2.0 [0.3.1.1-56]
I downloaded the latest version of Megui from Sourceforge to install on a Windows 2000 platform. Every time I go to run the application I get a series of the same error messages. The first one says 'Error: Could not load previous settings'. When I click 'OK' on that error message I get the following Fatal Error 'Megui encountered a fatal error and may not be able to proceed. Reason: unable to find an entry point named "IsWow64Process" in DLL kernel32.dll'. Does anybody know how to fix this error?

Inspector.Gadget
17th January 2010, 21:12
Use an OS other than W2K.

Cyberpro60
18th January 2010, 04:37
Nice but not possible in this case Inspector Gadget. Windows 2000 happens to be my network server and we are not about to change it whilst it performs everything we require of it. This server has provided me with a useful "offline" rendering platform that doesn't restrict my work on my own pc.
Besides that, I should also point out that Megui was working just fine on this platform until the most recent update a few days ago!

quantum5uicid3
18th January 2010, 05:19
security updates are going to stop in about 6 months, so you should probably start preparing for migration

Cyberpro60
18th January 2010, 09:24
Microsoft have been saying that for some time now and yet they keep extending the deadline. Meanwhile .... Megui is still not working! Anybody have some practical suggestions for fixing this problem?

lucamark
18th January 2010, 09:40
i don't think you can fix your problem without migration to another os.. There are many function (api calls) that are available only in xp, vista, 7.. like IsWow64Process (http://msdn.microsoft.com/en-us/library/ms684139%28VS.85%29.aspx).. (see Requirements..)

quantum5uicid3
18th January 2010, 10:48
there havent been any changes to windows 2000 extended support schedule, 2010 was always end of lifecycle. xp/2003 is significantly better and i'm sure you could find them dirt cheap.

Mizzle
18th January 2010, 15:24
Hi, I just converted my very first avi file to an mkv to test it out on Youtube.
Are there any recommended settings for the best quality or anything to get in HD there...?
(btw, atm I'm getting the 'An error occurred...' message for that video aswell)


Just bumping my question, hoping it'll be answered.:)
My video is playing on youtube but there isn't an HD option nor is it in great quality either...?

Pfc Joker
18th January 2010, 15:40
I'm running MeGUI 3.2.0 on Win 7 x64 and really like it. I've only had one small issue with avi muxing.
I have to either set MeGUI to run in WinXP SP3 compatibility mode, or set just avimux_gui to WinXP SP3 compatibility mode. Soon as I do either everything works like a charm.

Inspector.Gadget
18th January 2010, 16:30
AVIMux_GUI is known not to work by default on Vista and W7. At one point Kurtnoise rolled back the version by one revision to one that did; I've no idea as to whether it has since been updated again.

Abradoks
18th January 2010, 18:03
Zathor
Can you please make it possible again to change "update_cache" location? It's quite useful to keep updates separately.

trevmar
18th January 2010, 21:55
I downloaded the latest version of Megui from Sourceforge to install on a Windows 2000 platform. Every time I go to run the application I get a series of the same error messages .. unable to find an entry point named "IsWow64Process" in DLL kernel32.dll'.
.
I just got the same problem today, when I updated.
I have a decades worth of software locked to my hard drive and hardware signatures (etc) and really can't move from Win2K without spending an awful lot of time on the transition.

So I restored my old copy of MeGUI from last night's backup :)
.

Zathor
18th January 2010, 23:25
Megui fatal error. Version 0.3.2.0 [0.3.1.1-56]
I downloaded the latest version of Megui from Sourceforge to install on a Windows 2000 platform. Every time I go to run the application I get a series of the same error messages. The first one says 'Error: Could not load previous settings'. When I click 'OK' on that error message I get the following Fatal Error 'Megui encountered a fatal error and may not be able to proceed. Reason: unable to find an entry point named "IsWow64Process" in DLL kernel32.dll'. Does anybody know how to fix this error?
Sorry, did not notice before that XP SP2 is required for IsWow64Process. Will be hopefully fixed soon, but I have no Win2000 so you have to test it :rolleyes:
And to follow the oftopic discussion - anyone with Win 2000 in a productive environment should really concider an upgrade or a different OS. If MS is not extending the lifecycle you will surely have problems after the 13th of July.

Zathor
19th January 2010, 00:06
Switch to the development server or replace your megui.exe with this file:
http://megui.org/auto/megui-core_0_3_2_1_1.zip
Please report back if the problem has been fixed with this update.

trevmar
19th January 2010, 01:47
.
Yes, that replacement file worked well, Zathor. Thanks :)
.

Zephyr_Truesdale
19th January 2010, 04:08
Apparently someone else had a similar problem that I had when it couldn't find the ".avs" file. I was wondering if that problem has been fixed, sorry about my late response about the problem in an early post.

Cyberpro60
19th January 2010, 14:24
Thanks for the patch Zathor ... it did appear to work. I can now start MeGui without the previously reported error messages. I do have a new problem with DGIndex.exe though. When I try to run DGIndex I get the following message:

'The procedure entry point AttachConsole could not be located in the dynamic link library KERNEL.dll'.

Any thoughts on how to address this issue?

Zathor
19th January 2010, 17:15
When I try to run DGIndex I get the following message:
'The procedure entry point AttachConsole could not be located in the dynamic link library KERNEL.dll'.
Any thoughts on how to address this issue?
http://forum.doom9.org/showthread.php?p=1357662#post1357662

As a workaround you can use an older build od DGmpg

Zephyr_Truesdale
19th January 2010, 18:47
Is it possible to set what audio track for Nero AAC codec? Whenever I'm using VirtualDubMod 1.6.0.0 Surround to set what language each track are and I don't seem to see that option in MeGUI.

LigH
19th January 2010, 18:59
In the german doom9/Gleitz board, we got reports that with the latest MeGUI update the encoding speed went down to between 2/3 and 1/3 of the previous speed, between ~ 14th Jan and 16th Jan. Unfortunately, the users reporting this slowdown are not very experienced in reporting all technically interesting details... At least there are two distinct reports.

Of course, different settings are possible - but not very probable: There are users which don't experiment a lot, they chose a preset which works and prefer to keep it.

Are there any different defaults?

nurbs
19th January 2010, 19:21
I just looked through some of the profiles and they don't use excessively slow settings, although I don't have the old ones to compare to. Hard to tell what the issue without knowing exactly what profile they are using but there are some possibilities.
a) They still use profiles from the previous version of MeGUI which were made for x264 even before mb-tree and the preset and tuning system was in. The defaults changed since then which could explain the slowdowns. (I don't actually know if the old profiles still work with MeGUI and if the new profiles have the same name as the old ones. I think the names are different.)
b) While the new profiles don't use slow options some of them, like DXVA Insane, use low CRF values (17 in that case). Since the encoding time is proportional to the bitrate that can cause slowdowns.

Can you tell them to post the log of one of the encodes so we can take a look at the command line and speed. They should also encode their CPU speed. Alternatively a mediainfo from one of the old and one of the new encodes. (One of the old ones would be useful to know how their settings changed anyway.)

Zathor
19th January 2010, 19:29
The stable branch has been updated from x264 1183 to x264 1376. There have been a lot of new features (e.g. mbtree) which can cause a slowdown.

ZZZERO
20th January 2010, 04:30
After the latest MEGUI updates my encodes are ending up much smaller than expected although I haven't changed any settings in my profile. I compared my command lines from the logs both before and after the updates and they're quite different even though as I said I haven't changed anything in my profile.

Here's the command line as it is since the update:

C:\Program Files\megui\tools\x264\x264.exe" --profile high --crf 20 --thread-input --threads 4 --b-adapt 2 --ref 5 --subme 5 --trellis 0 --sar 1:1 --aud --output

Here's how it used to be:

"C:\Program Files\megui\tools\x264\x264.exe" --profile high --crf 20 --ref 5 --no-fast-pskip --b-adapt 2 --b-pyramid --subme 6 --trellis 0 --partitions p8x8,b8x8,i4x4,i8x8 --threads 4 --thread-input --sar 1:1 --aud --output

I really don't understand what's going on with this update and why I'm seeing such a dramatic change in my encodes. I did a 3 hour movie and it ended up about 500MB less than I would have expected and doesn't look as nice as my typical encode.

I'm using MEGUI 0.3.2.1 and x264 Jeeb's 1376 patched build v2

nurbs
20th January 2010, 08:41
Smaller size at the same crf is what happens with many sources since mb-tree was introduced half a year ago. The only thing that makes a difference for quality is subme 5 (6 activates psy-rd and 7 is the new default) and --no-fast-pskip (which shouldn't matter at all for quality since it's only activated in the placebo preset) One question do you still use an old preset or a new one that came with the updates?

ZZZERO
20th January 2010, 13:26
I use a custom profile based on one of the presets but don't use any of the presets. My file size reduction and quality loss has happened within the past week, not since six months ago. With the completely new x264 settings interface, it seems clear that MEGUI is not carrying over one's previous settings.

nurbs
20th January 2010, 13:42
If you didn't use development versions of MeGUI and you didn't replace x264 yourself then the version you have been using until last week was about 6 months old. A lot has changed since then and not all of the old settings apply anymore. You should look into the preset and tuning system and make a new profile. There is now the preset slider using presets implemented within x264 itself that lets control the speed/quality tradeoff and there are tunings for different content (film, animation, ect.) Lower the CRF value if you are not satisfied with the quality. Personally I think CRF 20 with the new defaults is fast and looks good for SD content.

If you want the same as your old version take the profile you have, turn mb-tree off, turn weighted p-prediction off and change all the other settings so they match your old profile. Turning this off will of course result in lower quality at any given bitrate. Heres a list of everything you used thats different from the defaults: --crf 20 --ref 5 --no-fast-pskip --b-adapt 2 --b-pyramid normal --subme 6 --trellis 0 --sar 1:1 --aud
Note that the b-pyramid option has changed and there are now two modes. You most likely want "normal".

Elbart_
21st January 2010, 13:44
Today, out of boredom, I encoded a tv-recording (DVB-T MPEG2 with ~3,5Mbit/s, 25fps) with both the "Iphone 2-pass" and the "Bluray 2-pass" x264-preset, and the Bluray-preset encoded almost twice as fast. Is that supposed to be the case or have I got some misconfiguration on my side?

MeGUI 0.3.3.0, Jeeb's x264 1376 v2, desired resolution 624x352

LigH
23rd January 2010, 04:12
Thank you for your guessing, nurbs; I just don't believe that MBTrees got introduces exactly between 14th and 16th Jan 2010, but a little earlier. One reported that he updated several times during the last week, but ony the last update made it slower.

But we have similar reports for StaxRip now too.

If it is true that especially x264 was not updated too regularly, then this may indeed be the reason. Quite surprising how much everything is related in a whole converting environment like MeGUI.

Unfortunately there are no useful replies so far. We will poke them again...

J-Wo
26th January 2010, 06:44
Just started to use this program to convert my DVD rips to H.264 MKV. If my audio source is 5.1 AC3, how can I tell MeGUI to do a direct stream copy of the AC3 without converting the audio?

blsbball
26th January 2010, 06:50
Does anyone notice any decrease in quality with the latest updated build and presets? It seems that even with the highest profiles quality seems to be lower than before. Im using the unrestricted DXVA profile and am seeing a definite lack in quality.

Inspector.Gadget
27th January 2010, 05:24
Just started to use this program to convert my DVD rips to H.264 MKV. If my audio source is 5.1 AC3, how can I tell MeGUI to do a direct stream copy of the AC3 without converting the audio?

Add the original AC3 to the MKV Muxer along with your newly encoded video.

kuttichan
27th January 2010, 09:50
I am having some trouble with megui ever since I bought my new system which is win 7 64bit based. One of the lines in my avs script is 'LimitedSharpenfaster()' and when I hit preview AVS script, I am getting an error which says 'there is no function named removegrain (line 70)' even though I have removegrain.dll in my plugin folder. Any help would be appreciated.

Taurus
27th January 2010, 10:41
@kuttichan
This is not related to MeGui.
But nevermind,
Is your avs script playing in Virtualdub or any Directshow Mediaplayer (MPC?).
If yes, I can not help you further on.
If no, make sure you got the right removegrain.dll combination for your PC.
First unpack the files from the removegrain 09 package to your Avisynth\Plugins folder.
Next step, unpack removegrain 1.0 package to same folder, overwriting previous versions.
There are so many clones of the script floating around with different plugins needed.....
Post your avs if the trouble remains.

kuttichan
28th January 2010, 10:36
Thanks Taurus, that worked!

Zephyr_Truesdale
28th January 2010, 11:35
Is there any possible way to convert videos that are encoded in WMV format and convert them into current formats?

Alf Bundy
28th January 2010, 11:48
Is there any possible way to convert videos that are encoded in WMV format and convert them into current formats?
Menu Tools -> AVS script Creator.

Drag&drop your .wmv file, and build your script easily ...

Zephyr_Truesdale
28th January 2010, 11:56
Menu Tools -> AVS script Creator.

Drag&drop your .wmv file, and build your script easily ...

What about the audio? How do I add the audio track so I can convert them to MP4 with AAC?

Alf Bundy
28th January 2010, 13:47
In the tab SCRIPT, you can see DirectShowSource(".../path to your file.wmv", audio=false).
Delete audio=false or modify it to audio=true.

Save your script. Now it's auto-loaded in the video part of the main window.
In the folder of your WMV source file, you can see your script with the same name.avs.
Just drag& drop it to the audio part of the main window.

Zephyr_Truesdale
3rd February 2010, 16:05
Thanks for the info about that. There seems to be a problem when it comes to subtitles, as MeGUI requires VobSub to be installed and well the current version is outdated but the VSFilter and DirectVobSub files are updated so why is VobSub still required to create the subtitles? Also, for those who have a 64-bit OS they would have to manually copy and paste the files into the System 32 folder as they are installed into the SysWOW64 folder. Is there anyway around this problem?

nkk
4th February 2010, 09:31
What x264 encoding preset may be compatible with Nokia 5800?
http://www.forum.nokia.com/devices/5800_XpressMusic/

Mtz
4th February 2010, 12:15
Megui 0.3.3.2
X264: 1416 Komisar

Error:
[NoImage] Standard error stream
-[NoImage] avs [info]: 1920x816p 1:1 @ 10000000/417083 fps (cfr)
-[NoImage] x264 [info]: using SAR=1/1
-[NoImage] x264 [info]: using cpu capabilities: MMX2 SSE2Fast SSSE3 Cache64
-[NoImage] x264 [info]: profile Main, level 4.1
-[NoImage] Assertion failed: dpb_output_delay < pow( 2, sps->vui.nal_hrd_parameters.i_dpb_output_delay_length ), file encoder/set.c, line 679
-[NoImage] This application has requested the Runtime to terminate it in an unusual way.
-[NoImage] Please contact the application's support team for more information.

enjoy,
Mtz

DiGG
5th February 2010, 03:21
Using MeGui 0.3.3.0, ever since last core update, there have been some differences that... I'd like to change.

First of all, ever since I've been using MeGui (~2 years now I guess), when I use the 'HD Streams Extractor' the default is set on 'Folder' and I never ever need it on folder... any way to make 'File' the default?

Secondly, since last patch, the default FILE mask is set to Matroska (MKV), and if I'm not mistaken the default mask was set to .TS/.M2TS (or maybe "all supported formats", not sure anymore). I'd like it to be set on "Transport" or "All supported", NOT "MKV". Can I change that?

I capture ALOT and encode ALOT, and those little changes would mean alot to me. Thanks.

7ekno
5th February 2010, 03:35
I capture ALOT and encode ALOT, and those little changes would mean alot to me. Thanks.

Edit the XML files that contains the details of each window default ..

If not know the names, just go thru the XML files looking for the paramters you want changed ...

XML editable defaults has been a feature since version 0.0.1.0 ...

7ek

DiGG
5th February 2010, 04:10
Edit the XML files that contains the details of each window default ..

If not know the names, just go thru the XML files looking for the paramters you want changed ...

XML editable defaults has been a feature since version 0.0.1.0 ...

7ek

Ok, thanks... but I've opened every XML files in \program files\megui\ folder, and I can't find the settings to edit. :confused: Anyone else knows exactly what I'm looking for?

fabiospark
5th February 2010, 21:32
As in the title, where are stored the presets created with Avisynth Creator?
Are they all in a single file?
If yes, which one?

Thanks.

HeadlessCow
5th February 2010, 22:42
It looks like they're all in code.

cheer
6th February 2010, 20:50
OK, I've done some searching here but only found snippets here and there, some of which are fairly old.

I've been using MeGUI for a long time on 32-bit systems with much success. 97% of my encodes are fairly straightforward: DVD rips with x264 video, original audio (AC3/DTS) and subs (ripped with subrip into .srt) into a Matroska container.

On my XP 32-bit system (Core2Duo P8600 @2.4Ghz, 4GB RAM) I get about 30-35 fps on each pass (using automated 2-pass encoding, bit rate set to 1000, everything else at default).

On my new Win7 64-bit system (Core2Duo P8700 @2.53Ghz, 4GB RAM) I get about 20-25 fps on each pass (same settings).

I realize there are multiple variables present, so it's entirely possible that it's something unrelated causing the slower performance, but I want to rule out whatever I can. The XP system has the latest ffdshow-tryouts installed; the Win7 system has both 32-bit and 64-bit versions of ffdshow-tryouts installed. I'm wondering if the problem is a 32bit->64bit issue, and here's why I say that:

On my XP system when an encode is running, task manager shows x264.exe running at (or near) full CPU. On my Win7 system, I see x264_64.exe running with anywhere from 70-85% CPU, then vfw4x264.exe*32 taking anywhere from 10-20%. The vfw4x264.exe process also takes up the vast majority of ram; x264_64.exe is only taking 35-40meg (based on task manager, which I know is a crude tool at best).

Am I correct in assuming that vfw4x264.exe*32 is something that's serving the video up from 32-bit Avisynth to the 64-bit x264 encoder, or am I totally misunderstanding how this works? Is there a more efficient way to do this? I realize that MeGUI itself probably doesn't need to be 64-bit, but what about Avisynth and DGIndex? Or, alternatively, would I get better results by going completely 32-bit (somehow getting MeGUI to use a 32-bit version of x264)?

Again, none of this may matter; it's a brand new laptop and it could be that some of the Asus CrapWare(tm) is just slowing things down, though I don't see anything grabbing CPU in task manager.

Thanks in advance for any tips; I'll meanwhile try some more experimentation.

firewolf
8th February 2010, 04:39
hi friends can someone say how to add watermark image to MEGUI rips?i heard tat there is sum codes for tat,which can be added in Megui itself during ripping.
Also how can we create .idx Subtitle Files using MEGUI?

mandeep145
8th February 2010, 05:00
how to solve MeGUI very large Audio Delay . when i create d2v file . i got a message very large Audio Delay. plz tell me how to solve this problem .

firewolf
8th February 2010, 06:18
how to solve MeGUI very large Audio Delay . when i create d2v file . i got a message very large Audio Delay. plz tell me how to solve this problem .

you shuld click yes option:devil:

Zathor
8th February 2010, 17:06
Megui 0.3.3.2
X264: 1416 Komisar
Error:
[code][NoImage] Standard error stream
-[NoImage] avs [info]: 1920x816p 1:1 @ 10000000/417083 fps (cfr)
-[NoImage] x264 [info]: using SAR=1/1
-[NoImage] x264 [info]: using cpu capabilities: MMX2 SSE2Fast SSSE3 Cache64
-[NoImage] x264 [info]: profile Main, level 4.1
-[NoImage] Assertion failed: dpb_output_delay < pow( 2, sps->vui.nal_hrd_parameters.i_dpb_output_delay_length ), file encoder/set.c, line 679
-[NoImage] This application has requested the Runtime to terminate it in an unusual way.

1416 can not be downloaded anymore from the dev update server. I have changed this a few days ago but I have not forced a downgrade because I do not have problems with 1416.


Secondly, since last patch, the default FILE mask is set to Matroska (MKV), and if I'm not mistaken the default mask was set to .TS/.M2TS (or maybe "all supported formats", not sure anymore). I'd like it to be set on "Transport" or "All supported", NOT "MKV". Can I change that?
This has been changed since build 0.3.3.2. Switch to the development update server or wait for build 0.3.4.

As in the title, where are stored the presets created with Avisynth Creator?
They are in the MeGUI\allprofiles\AviSynth folder

Am I correct in assuming that vfw4x264.exe*32 is something that's serving the video up from 32-bit Avisynth to the 64-bit x264 encoder[...]?
Yes

Or, alternatively, would I get better results by going completely 32-bit (somehow getting MeGUI to use a 32-bit version of x264)?
You can try it. Delete vfw4x264.exe before starting an encoding (but after the update check has been performed - otherwise it will be reported missing).

mandeep145
8th February 2010, 22:36
how to solve MeGUI very large Audio Delay . when i create d2v file . i got a message very large Audio Delay. plz tell me how to solve this problem .

LigH
9th February 2010, 16:49
@ mandeep145:

Extract the main movie PGC from the wholesome DVD rip. DGIndex can only handle single PGCs with single camera angles.

If you failed using your DVD ripper correctly, try PGCDemux on your IFOs on harddisk.

If that fails too ... don't rip structurally copy protected DVDs.

msaadn
10th February 2010, 04:56
0.3.3.4
Win 7 32bit

So my source file was an MKV with subtitles muxed. I just did what I always do, encoded normally, but then this happened, the subtitles which were muxed got hardsubbed. Any ideas what is the mess?

RustiX
10th February 2010, 15:32
I'm using MeGUI 0.3.3.0 with CCCP, Nero Audio and AviSynth 2.5.8 on Windows 7. This is the first time I tried encoding a video (an mkv) after reinstalling Windows 7. Unlike earlier (before the reinstall of windows 7 and with MeGUI 0.3.1.1056) the audio preprocessing takes a very long time. When the audio encoding begins it shows Preprocessing... ***PLEASE WAIT*** for well over 10 minutes before the encoding actually begins. I also have MeGUI 0.3.1.1056 on my desktop running Windows XP SP3 but the audio preprocessing doesn't take more than a few seconds (the desktop has lower specs too).

Why does it take so long with Windows 7? Could I be doing wrong or is this a known issue? :stupid:

msaadn
10th February 2010, 23:32
NVM to my previous post. It was K-lite. Donno what was the pro but I used an alternative.

Steffi
11th February 2010, 10:33
Hi!

Just downloaded MeGUI, installed all, did all updates.

Now, I want to convert 4 vobfiles to one movie, but after using One-Click Encoding, the *.d2v gets created, but then, the program crashes:

AppName: megui.exe AppVer: 0.3.3.0 ModName: dgdecode.dll
ModVer: 1.5.7.0 Offset: 0000c844.

Where can I find a log file, where I can see, what was the reason? Or, what could be the reason?

msaadn
11th February 2010, 23:10
Where can I find a log file, where I can see, what was the reason? Or, what could be the reason?

C:\Program Files\megui\logs

Select the log in which it crashed.

anubhavrocker
12th February 2010, 21:29
I am getting this while previewing my avs script : Script error: there is no function named "Load_Stdcall_Plugin". Is there any solution to this ?

Regards

Zathor
12th February 2010, 21:35
I am getting this while previewing my avs script : Script error: there is no function named "Load_Stdcall_Plugin". Is there any solution to this ?
Load_Stdcall_Plugin has been added in avisynth build 2.5.6 so I assume you are using an older version. Which avisynth version do you use?

msaadn
12th February 2010, 21:54
Okay, I need to use klite due to something. But this problem occurs, the muxed subtitles in a container, when the container as the source selected and encoded, the subtitles get hardsubbed. Why is this happening?

It didn't happen before. I'm not sure but maybe updating something in megui caused this.

Edit: found out finally, turn off autoload VSfilter in haali media splitter.

anubhavrocker
13th February 2010, 14:19
Load_Stdcall_Plugin has been added in avisynth build 2.5.6 so I assume you are using an older version. Which avisynth version do you use?
Working fine now thanks :)

Zephyr_Truesdale
16th February 2010, 18:33
For Windows 7 users you need to install "Preferred Tweaker for Windows 7" as would seem that the pre-installed codecs would cause interference and won't work with MeGUI.

Dogway
22nd February 2010, 07:10
-simple question I have. If my avs is listed in jobs, and I change my avs, do I have to reload it?

-in avs scripts, I see many people add AudioDub filters. How do you encode audio in an avs script in megui? Does it mean "muxing", wouldnt be easier to just mux on Megui internal muxer?

-in Windows 7 + megui 0.3.3 I cant grab+drop avs scripts, I need to browse them. Is it megui or a windows 7 thing?

Zathor
22nd February 2010, 07:31
-If my avs is listed in jobs, and I change my avs, do I have to reload it?
In most cases: no. It may be needed e.g. if you are targeting a specific file size and are changing the number of frames in your script.

-in Windows 7 + megui 0.3.3 I cant grab+drop avs scripts, I need to browse them. Is it megui or a windows 7 thing?
Both... move the MeGUI folder to a place without UAC (e.g. c:\tools\MeGUI)

HeadlessCow
22nd February 2010, 15:53
Both... move the MeGUI folder to a place without UAC (e.g. c:\tools\MeGUI)

Also make sure you run the MeGUI executable directly. When the auto-updater finishes and restarts MeGUI it starts with full admin privs and drag and drop is blocked.

shinjico
23rd February 2010, 06:38
win2003 32bit
MeGUI 0.3.3 / 0.3.7
x264 1376 / 1442

Megui keeps on running when 1-pass achived 100% and I have to use CLI for 2-pass. Why?

.................

It seems the problem is caused by x264.exe
I set a bat file like this


"x264.exe" --profile high --level 4.1 --pass 1 --bitrate 1000 --stats "C:\x264.stats" --thread-input --deblock 1:1 --bframes 6 --ref 6 --no-mbtree --aq-mode 0 --me umh --direct auto --psy-rd 0.0:0 --no-dct-decimate --sar 1:1 --output NUL %1
"x264.exe" --profile high --level 4.1 --pass 2 --bitrate 1000 --stats "C:\x264.stats" --thread-input --deblock 1:1 --bframes 6 --ref 6 --no-mbtree --aq-mode 0 --me umh --direct auto --psy-rd 0.0:0 --no-dct-decimate --sar 1:1 --output %1.mp4 %1

It allways stoped at the end of the 1-pass mode

Ruriko
25th February 2010, 08:17
I just updated megui to the latest version and now when ever my avi is going to mux it askes if I should check if the audio is CBR. I clicked yes but I don't want to click yes for every muxing especially when I queue videos. How can I make it remember? cause this never happened in the previous version

sub24ox7
27th February 2010, 17:31
I am sorry this is probably a silly question but I would like to know the answer to it. I had a computer crash during the night during the second job, I assume this is the second pass of the encode and therefore the first job completed before the crash. So I restarted the computer and fired up megui again and saw within the queue tab 1st job done second job waiting so i started the second job again and it asked if i wanted to overwrite the raw incomplete .264 file since i didn't change the output directory nor the file name and i did and it is encoding now. So can you restart the 2nd job (second pass) after the computer crash like i mentioned and will it encode properly if all else goes right?

rapscallion
27th February 2010, 19:25
Yes, you're fine.

msaadn
4th March 2010, 00:32
I'm on a totally new system.
I installed megui and avisynth.
updated to development 0.3.4.2

I'm getting the complete green screen.
It wasn't like this on my previous system.
I'm using the same file as the source which I used on my previous system.

Max_Cady
4th March 2010, 01:48
i start use win7 32 bit but megui do not use the full capacity my cpu so encode really slow going. What can i do guys :(

poisondeathray
4th March 2010, 04:50
i start use win7 32 bit but megui do not use the full capacity my cpu so encode really slow going. What can i do guys :(

what kind of source?
what settings?
avs script?
any filters used?

any could be potential bottlenecks

Max_Cady
4th March 2010, 10:16
problem is i do not think about them.Because much better results with the same settings was receiving the same source when using xp

Dogway
5th March 2010, 12:03
sorry if it had been stated before but I cant find a way to output detailed logs from megui. Like those VirtualDub outputs. How can I do this?

poisondeathray
5th March 2010, 23:42
sorry if it had been stated before but I cant find a way to output detailed logs from megui. Like those VirtualDub outputs. How can I do this?

on the 3rd tab. right click and save log

also in the "logs" file folder in the megui directory, they are automatically archived

Dogway
6th March 2010, 03:58
But those logs never tell me anything, only it had an error, which I already know. I mean a more detailed debug log, in which conditions did it fail, which dll's, which frame, etc etc etc

craziplaya21
7th March 2010, 07:17
I am pretty noobie when it comes to encoding. I am having trouble with getting accurate color when encoding to H264 with Megui.

Source video with Logarith codec: http://dl.dropbox.com/u/2340974/Sequence%2001_1.avi_snapshot_00.00_%5B2010.03.06_21.43.27%5D.jpg
Encode to H264: http://dl.dropbox.com/u/2340974/Sequence%2001_1.mp4_snapshot_00.00_%5B2010.03.06_21.43.10%5D.jpg

AVS file: http://dl.dropbox.com/u/2340974/Sequence%2001_1.avs

Encode settings: http://dl.dropbox.com/u/2340974/megui_encode_settings.jpg

Does anyone know what is wrong? (I am probably making a very noob mistake somewhere)

mariush
7th March 2010, 11:47
Source video (Lagarith) uses one color space to compress lossless your video, probably RGB or YUV2. When you encode to h264, the colorspace is change to YV12 where it's normal to lose a bit of color (but it shouldn't be that noticeable).

In your case, I suspect it's an issue of the decoder in the player which ouputs the video on screen in 16-235 range instead of 0-255.

Check the codec settings in your player to force output 0-255 or if you use MPC-HC, go to Shaders and enable 16-235 -> 0 - 235

J_Darnley
7th March 2010, 15:19
That looks like a mismatch between 601 and 709 matrices instead of a levels issue. Since you have HD video I would suggest that you try using: ConvertToYV12(matrix="Rec709")

Alternatively, you can signal the stream correctly with --colormatrix when you encode it and hope that your decoder listens.

craziplaya21
7th March 2010, 19:23
That looks like a mismatch between 601 and 709 matrices instead of a levels issue. Since you have HD video I would suggest that you try using: ConvertToYV12(matrix="Rec709")

Alternatively, you can signal the stream correctly with --colormatrix when you encode it and hope that your decoder listens.

Great, your first solution worked perfectly. Thanks!

@mariush: I would rather do it within the encoder so I can upload to Youtube with the correct colors. Thanks for trying to help though.

Zephyr_Truesdale
8th March 2010, 06:11
I was wondering if possible to take any DVD and convert them into HD videos? Also, I want to convert "The Rocketeer" and its supposed to be widescreen but it says its 4:3. Is there any way to convert it into HD without loosing quality?

nurbs
8th March 2010, 11:54
While MeGUIs avisynth script generator doesn't integrate this functionality you can write your own script, resize the video to a resolution higher (I think NNEDI can be used to provide good upscaling) maybe than the source and use LSFMod or some other sharpening software to make it look a little better, but good processing takes a lot of time and most people don't consider it worth the effort since the benefits over simply encoding it (maybe with sharpening) are marginal since you can't reconstruct detail that isn't already in the source and an upscaled video would need even more bitrate so it's kind of a waste of space for little benefit.

Robertus
9th March 2010, 22:04
with 0.3.4.0 when i open bitrate calculator and i set a size, when i close and reopen bitrate calculator , the size disappears... why!?

old version didn't have this problem... someone have a solution?

gargantua
9th March 2010, 23:02
Hello !

I'm new using MeGUI and i have an error that i don't understand :

-[Error] Log for job1 (video, 1_2_video.avs -> 1_2_video.mkv)
--[Information] [09/03/2010 22:50:37] Started handling job
--[Information] [09/03/2010 22:50:37] Preprocessing
--[NoImage] Job commandline: "C:\Program Files (x86)\MeGUI\tools\x264\vfw4x264.exe" --profile high --level 4.1 --preset slower --pass 2 --bitrate 9060 --stats "I:\1_2_video.stats" --thread-input --bframes 5 --sar 1:1 --output "I:\1_2_video.mkv" "I:\FILM\reencode\1_2_video.avs"
--[Information] [09/03/2010 22:50:37] Encoding started
--[Error] An error occurred: x264 [error]: ratecontrol_init: can't open stats file
--[Error] An error occurred: x264 [error]: x264_encoder_open failed


I don't have stats file in so...of course it crash.
But what is this stats file ? How can i generate it ?

I need some help.
Thx.

nurbs
9th March 2010, 23:16
By running a first pass. The most convenient thing is probably to choose "automated 2-pass" in the codec configuration.

gargantua
10th March 2010, 08:39
Indeed, thx ! :)

osgZach
12th March 2010, 20:35
Wow this thread is huge.. Apologies if this has been asked 100 times before.

I'm currently working with Avisynth x64 MT (see JoshyD's thread in AviSynth Dev Forum). I haven't tried to do anything through MeGUI yet, and I've got some concerns.

How can I ensure my encoding pipe is staying proper x64 all the way through ? Is there an x64 version of MeGUI I need to look for (since it seems Avisynth will feed you x32 or x64 based on the application loading the script being 32/64-bit and MeGUI does open previews) or is it not an issue since its only loading a preview?, and regarding x264_x64 - I've got a patched 32-bit build that recognizes all the generated CLI tags properly.. But not sure if I have an x64 version.. I can't find the correct thread (there seem to be a few of them) with the most recent patched builds, if anyone could clue me in on that. It's been a while since I've had to get it.. and MeGUIs updater has never produced a working x264 for me in the past..

rapscallion
12th March 2010, 21:13
@osgZach

Here's the patched build thread : http://forum.doom9.org/showthread.php?t=151159&goto=newpost

osgZach
13th March 2010, 02:26
I'll be honest.. I have no idea what I was supposed to glean from that thread.. I think I read through it a long time ago, and used those update servers, but got that funny error window with all the xml errors or whatever that the one guy posted a few down on the first page.. Since then I just reinstalled, and used the updater as it was updated.. but I manually changed the x264 to one I had gotten from another thread around here.. I dunno, maybe the issues have been worked out w/MeGUI now ?

Anyhow.. I just got a CLI x264_64-bit from http://x264.nl/

Is that the latest? Seems a little confusing about where the "official" source for x264 is.. there is the site I just linked, plus the x264 section on the VideoLAN site that doesn't seem to have any links or docs for it. There is a thread on Doom10 with multiple distros from different people, the thread here for Sharktooth's stuff (seems old, or is it just the title?) etc..

So many versions it makes me wonder which one to use.. I'm assuming Jarod's (x264.nl) are multithreaded as it seems to be doing well so far..

I'm growing used to the CLI now anyway.. although I can't seem to find a confirmed up-to-date source with all the switches available.. or any writings on how MeGUI does its turbo first pass (is it always turbo unless "slow-firstpass" is used? does it still change other settings but not reflect that under its CLI generator display??) etc..

By the way.. Is there any info on Avisynthwrapper? I can find a couple downloads but NO documentation.. I'm trying to figure out what I would need to do to load AVS scripts (is that what Avisynthwrapper does?)in my own Frontend I might start working on for personal use..

Nightshiver
17th March 2010, 13:00
Error for me when using NeroAAC now for some reason. Didin't use to happen before:

--[NoImage] Output from encoder via stdout: ERROR: error while encoding frame
--[Information] [3/17/2010 7:43:18 AM] Job completed
-[Error] Log for job1 (audio, twist T8b DELAY -16ms.dts -> twist T8b DELAY 0ms.mp4)
--[Information] [3/17/2010 7:55:46 AM] Started handling job
--[Information] [3/17/2010 7:55:46 AM] Preprocessing
--[NoImage] Avisynth script
---[NoImage] LoadPlugin("F:\megui\tools\avisynth_plugin\NicAudio.dll")
---[NoImage] NicDtsSource("D:\Movies\TWISTER\twist T8b DELAY -16ms.dts")
---[NoImage] DelayAudio(-16.0/1000.0)
---[NoImage] return last
--[NoImage] Commandline used: -ignorelength -he -br 496000 -if - -of "{0}"
--[Information] [3/17/2010 7:55:46 AM] Encoding started
--[Information] [3/17/2010 7:55:46 AM] Encode thread started
--[Information] [3/17/2010 7:55:46 AM] Avisynth script environment opened
--[Information] [3/17/2010 7:55:47 AM] Script loaded
--[Information] Output Decoder
---[NoImage] Channels: 6
---[NoImage] Bits per sample: 32
---[NoImage] Sample rate: 48000
--[NoImage] Commandline: F:\megui\tools\neroAacEnc.exe -ignorelength -he -br 496000 -if - -of "D:\Movies\TWISTER\twist T8b DELAY 0ms.mp4"
--[Information] [3/17/2010 7:55:47 AM] Encoder process started
--[Error] An error occurred
---[NoImage] Exception message: The pipe has been ended.
---[NoImage] Stacktrace
----[NoImage] at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
----[NoImage] at System.IO.FileStream.WriteCore(Byte[] buffer, Int32 offset, Int32 count)
----[NoImage] at System.IO.FileStream.Write(Byte[] array, Int32 offset, Int32 count)
----[NoImage] at MeGUI.AviSynthAudioEncoder.encode()
---[NoImage] Inner exception: null
--[NoImage] Output from encoder via stderr

Lyle_JP
17th March 2010, 19:43
Error for me when using NeroAAC now for some reason. Didin't use to happen before:


This happens randomly with some 6-channel encodes when using NeroAAC 1.5.1.0. I found that by reverting to NeroAAC 1.3.3.0 this stops completely.

The other thing you can try is introducing a very small delay (say 2ms). For some reason, encodes that would crash every time would go through okay if the delay value was slightly changed. Still, it's better just to revert to version 1.3.3.0.

tebasuna51
18th March 2010, 03:08
Error for me when using NeroAAC now for some reason. Didin't use to happen before:

-he -br 496000


AAC-HE at 496 Kb/s ???

pball
18th March 2010, 04:01
I've recently installed win7 ultimate 64bit and then installed avisynth and then megui. I let megui update then I tried to encode using x264.

When I try to run my encode the normal progress window doesn't pop up and the following is the error megui logs.

[Information] Log for job1 (video, 1.avs -> 1.mp4)
-[Information] [3/17/2010 10:51:25 PM] Started handling job
-[Information] [3/17/2010 10:51:25 PM] Preprocessing
-[NoImage] Job commandline: "C:\Program Files (x86)\MeGUI\tools\x264\vfw4x264.exe" --profile high --crf 20.0 --thread-input --bframes 12 --b-adapt 2 --ref 12 --qcomp 1.0 --me umh --direct temporal --subme 5 --partitions all --trellis 0 --sar 1:1 --output "F:\Encoding Projects\1.mp4" "F:\Encoding Projects\1.avs"
-[Information] [3/17/2010 10:51:25 PM] Encoding started
-[NoImage] Standard output stream
-[NoImage] Standard error stream
-[Information] [3/17/2010 10:51:25 PM] Job completed

I have no clue why megui is having a problem. I copied the options and used x264.exe and it encoded it just fine. I also know someone else on win7 64 who's encoding without problem.
Thanks for any help

Inspector.Gadget
18th March 2010, 04:12
Post your entire AVS script, pball.

Nightshiver
18th March 2010, 12:45
Thanks Lyle, reverting back with NeroAAC worked. And yes, HE at 496, it's not that hard to comprehend...

Robertus
18th March 2010, 16:47
no one know the solution for my problem?

LDevil
20th March 2010, 17:44
After last update I can't use One-Click encode function.
MeGUI crashes shortly after starting new job:

[Error] Log
-[Information] Versions
--[NoImage] MeGUI Version : 0.3.4.0
--[NoImage] OS : Windows XP Professional x86 SP3 (5.1.196608.2600)
--[NoImage] Latest .Net Framework installed : 3.5 (3.5.30729.01)
--[NoImage] Avisynth Version : 2.5.8.5
-[Information] Log for job1 (idx, VTS_01_1.VOB -> VTS 01 1.d2v)
--[Information] [2010-03-20 16:39:40] Started handling job
--[Information] [2010-03-20 16:39:41] Preprocessing
--[NoImage] Job commandline: "C:\Program Files\MeGUI\tools\dgindex\dgindex.exe" -SD=< -AIF=<C:\!do.domu\fil\VIDEO_TS\VTS_01_1.VOB< -OF=<C:\!do.domu\film\VIDEO_TS\VTS 01 1< -FO=0 -exit -hide -OM=1 -TN=81
--[Information] [2010-03-20 16:39:41] Indexing started
--[NoImage] Standard output stream
--[NoImage] Standard error stream
--[Information] [2010-03-20 16:42:44] Running auto force film
---[NoImage] Film percentage: -1
--[Information] [2010-03-20 16:42:44] Postprocessing
-[Error] Unhandled error
--[NoImage] Exception message: Object reference not set to an instance of an object.
--[NoImage] Stacktrace
---[NoImage] at MeGUI.JobUtil.GenerateMuxJobs(VideoStream video, Nullable`1 framerate, MuxStream[] audioStreamsArray, MuxableType[] audioTypes, MuxStream[] subtitleStreamsArray, MuxableType[] subTypes, String chapterFile, MuxableType chapterInputType, ContainerType container, String output, Nullable`1 splitSize, List`1 inputsToDelete, String deviceType, MuxableType deviceOutputType)
---[NoImage] at MeGUI.VideoUtil.GenerateJobSeries(VideoStream video, String muxedOutput, AudioJob[] audioStreams, MuxStream[] subtitles, String chapters, Nullable`1 desiredSize, Nullable`1 splitSize, ContainerType container, Boolean prerender, MuxStream[] muxOnlyAudio, LogItem log, String deviceType)
---[NoImage] at MeGUI.OneClickPostProcessor.postprocess()
---[NoImage] at MeGUI.OneClickPostProcessor.postprocess(MainForm mainForm, Job job)
---[NoImage] at MeGUI.core.gui.JobWorker.postprocessJob(Job job)
---[NoImage] at MeGUI.core.gui.JobWorker.<>c__DisplayClass8.<UpdateGUIStatus>b__5()
---[NoImage] at System.Threading.ThreadHelper.ThreadStart_Context(Object state)
---[NoImage] at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
---[NoImage] at System.Threading.ThreadHelper.ThreadStart()
--[NoImage] Inner exception: null

kthxbye
21st March 2010, 19:37
With the newest update, when I try to disable MBtree and run an encode, it's still using MBtree although I did uncheck it in the settings!

It creates an .stats.mbtree file, yet does not show it in the commandline. When I open the .mkv file, mediainfo shows "mbtree=1" though. I did not check MBtree in the settings. Any info on this?

-edit- adding "--no-mbtree" to the commandline fixes this problem temporarily, but I didn't have to use this before...

Zathor
21st March 2010, 20:02
After last update I can't use One-Click encode function.
MeGUI crashes shortly after starting new job:

I have tried it now and had no problems. But I have used the most recent development version (0.3.4.6). Maybe you can update, too (backup your complete folder so that you can revert back).

ArcticFox
22nd March 2010, 11:58
In the XviD VFW codec you can change the pixel shape to square, i cant find this option in Megui, is there one?

Inspector.Gadget
22nd March 2010, 14:26
The pixels will be square unless you explicit select anamorphic encoding in the first tab of the AVS Script Creator window.

LDevil
23rd March 2010, 17:58
I have tried it now and had no problems. But I have used the most recent development version (0.3.4.6). Maybe you can update, too (backup your complete folder so that you can revert back).

I have updated meGui to latest development version (0.3.4.7), but unfortunatelly meGUI still crashes shortly after postprocessing phase:
Faulting application name: MeGUI.exe, version: 0.3.4.7, time stamp: 0x4ba67a63
Faulting module name: unknown, version: 0.0.0.0, time stamp: 0x00000000
Exception code: 0xc0000005
Fault offset: 0x04bd5ff3
Faulting process id: 0x1070
Faulting application start time: 0x01cacaa8d807a23f
Faulting application path: C:\Program Files (x86)\megui\MeGUI.exe
Faulting module path: unknown
Report Id: 9074c3aa-369c-11df-a038-001bdc0fa5cf

theshadow12345
24th March 2010, 14:36
Hey Guys.

Any Ideas why i am only getting half load encoding on an OC I7 920? I am encoding a Blu-ray to MKV and using a preset HD-INSANE on a 2.5 hour long video with a bitrate of 13200.

http://www.hdimage.org/viewer.php?file=u1hmt3rmqpaobaivlpnf.bmp

Zathor
24th March 2010, 17:06
I have updated meGui to latest development version (0.3.4.7), but unfortunatelly meGUI still crashes shortly after postprocessing phase:

If possible please upload a short clip of your video. Please try to reproduce the problem with this short clip before your upload the file.

Jerethi
28th March 2010, 21:38
Hi all,

I'm having a problem with audio conversion in MeGUI. I am using the latest development version. I am trying to convert a 5 channel ac3 file to Nero AAC. For some reason, MeGUI seems to get a stuck on the pro-processing and won't budge. I don't seem to be experiencing this problem when I am converting a 2 channel ac3 file.

Any thoughts or suggestions on how to fix this are appreciated!

Lyle_JP
29th March 2010, 00:25
Hi all,

I'm having a problem with audio conversion in MeGUI. I am using the latest development version. I am trying to convert a 5 channel ac3 file to Nero AAC. For some reason, MeGUI seems to get a stuck on the pro-processing and won't budge. I don't seem to be experiencing this problem when I am converting a 2 channel ac3 file.

Any thoughts or suggestions on how to fix this are appreciated!

By five channel do you mean a 5.0 track (no LFE)? If so I think you have to create a dummy lfe track since the Nero AAC encoder will only take 1, 2, or 6 channels.

collado
29th March 2010, 05:59
I have been a GKnot user for the last 8 years but due to its lack of in depth development I decided to start learning to use MEGui. I am amazed the first 5 films i have encoded! I did Casino a 2hr 50min film that was always a hard one to do and MEGui made a great job, admittedly it was smoothed out a lot but the playback was exceptional using the x264 codec in a MKV container...However, I always seem to have problems when i want to experiment with the audio encoding. When i use the AAC codec there are no problems it just with any MP3 i try to make. Here is the log, if anyone can shed light upon it then please do:

[Error] Log
-[Information] Versions
--[NoImage] MeGUI Version : 0.3.4.0
--[NoImage] OS : Windows Seven Ultimate Edition x64 (6.1.0.7600)
--[NoImage] Latest .Net Framework installed : 3.5 SP1 (3.5.30729.4926)
--[NoImage] Avisynth Version : 2.5.8.5
-[Information] Log for job4 (video, little miss sunshine.avs -> )
--[Information] [28/03/2010 19:58:35] Started handling job
--[Information] [28/03/2010 19:58:35] Preprocessing
--[NoImage] Job commandline: "C:\Program Files (x86)\MeGUI\tools\x264\vfw4x264.exe" --pass 1 --bitrate 862 --stats "C:\Users\foilio\Videos\little miss sunshine.stats" --slow-firstpass --thread-input --trellis 0 --profile high --level 4.1 --bframes 3 --ref 4 --slices 4 --aud --nal-hrd --b-pyramid strict --keyint 24 --min-keyint 2 --vbv-maxrate 14000 --vbv-bufsize 14500 --sar 1:1 --output NUL "C:\Users\foilio\Videos\little miss sunshine.avs"
--[Information] [28/03/2010 19:58:35] Encoding started
--[NoImage] Standard output stream
--[NoImage] Standard error stream
---[NoImage] x264 [info]: 712x424 @ 25.00 fps
---[NoImage] x264 [info]: using SAR=1/1
---[NoImage] x264 [info]: using cpu capabilities: MMX2 SSE2Fast SSSE3 FastShuffle SSE4.1 Cache64
---[NoImage] x264 [info]: profile High, level 4.1
---[NoImage]
---[NoImage] x264 [info]: frame I:6759 Avg QP:21.38 size: 27256
---[NoImage] x264 [info]: frame P:63956 Avg QP:25.59 size: 5367
---[NoImage] x264 [info]: frame B:76816 Avg QP:28.47 size: 1334
---[NoImage] x264 [info]: consecutive B-frames: 9.2% 46.7% 22.7% 21.5%
---[NoImage] x264 [info]: mb I I16..4: 11.3% 64.7% 23.9%
---[NoImage] x264 [info]: mb P I16..4: 1.1% 5.1% 1.1% P16..4: 43.3% 15.2% 8.6% 0.0% 0.0% skip:25.5%
---[NoImage] x264 [info]: mb B I16..4: 0.1% 0.4% 0.1% B16..8: 41.8% 1.0% 1.3% direct: 1.4% skip:54.0% L0:37.5% L1:57.0% BI: 5.5%
---[NoImage] x264 [info]: final ratefactor: 22.28
---[NoImage] x264 [info]: 8x8 transform intra:67.0% inter:60.6%
---[NoImage] x264 [info]: coded y,uvDC,uvAC intra: 74.9% 70.9% 39.1% inter: 9.4% 9.0% 0.3%
---[NoImage] x264 [info]: i16 v,h,dc,p: 43% 17% 8% 31%
---[NoImage] x264 [info]: i8 v,h,dc,ddl,ddr,vr,hd,vl,hu: 27% 15% 16% 5% 6% 10% 6% 9% 7%
---[NoImage] x264 [info]: i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 33% 13% 12% 5% 7% 11% 5% 8% 4%
---[NoImage] x264 [info]: Weighted P-Frames: Y:2.5%
---[NoImage] x264 [info]: ref P L0: 63.1% 11.0% 22.5% 3.1% 0.3%
---[NoImage] x264 [info]: ref B L0: 88.8% 11.2%
---[NoImage] x264 [info]: ref B L1: 94.9% 5.1%
---[NoImage] x264 [info]: kb/s:854.06
---[NoImage] encoded 147531 frames, 30.14 fps, 854.06 kb/s
--[Information] [28/03/2010 21:20:10] Postprocessing
---[Information] Deleting intermediate files
--[Information] [28/03/2010 21:20:10] Job completed
-[Information] Log for job5 (video, little miss sunshine.avs -> little miss sunshine.mkv)
--[Information] [28/03/2010 21:20:10] Started handling job
--[Information] [28/03/2010 21:20:36] Preprocessing
--[NoImage] Job commandline: "C:\Program Files (x86)\MeGUI\tools\x264\vfw4x264.exe" --pass 2 --bitrate 862 --stats "C:\Users\foilio\Videos\little miss sunshine.stats" --thread-input --trellis 0 --profile high --level 4.1 --bframes 3 --ref 4 --slices 4 --aud --nal-hrd --b-pyramid strict --keyint 24 --min-keyint 2 --vbv-maxrate 14000 --vbv-bufsize 14500 --zones 139954,147530,q=40 --sar 1:1 --output "C:\Users\foilio\Videos\little miss sunshine.mkv" "C:\Users\foilio\Videos\little miss sunshine.avs"
--[Information] [28/03/2010 21:20:36] Encoding started
--[NoImage] Standard output stream
--[NoImage] Standard error stream
---[NoImage] x264 [info]: 712x424 @ 25.00 fps
---[NoImage] x264 [info]: using SAR=1/1
---[NoImage] x264 [info]: using cpu capabilities: MMX2 SSE2Fast SSSE3 FastShuffle SSE4.1 Cache64
---[NoImage] x264 [info]: profile High, level 4.1
---[NoImage]
---[NoImage] x264 [info]: frame I:6759 Avg QP:22.11 size: 26106
---[NoImage] x264 [info]: frame P:63956 Avg QP:25.72 size: 5582
---[NoImage] x264 [info]: frame B:76816 Avg QP:29.32 size: 1332
---[NoImage] x264 [info]: consecutive B-frames: 9.2% 46.7% 22.7% 21.5%
---[NoImage] x264 [info]: mb I I16..4: 8.7% 67.7% 23.6%
---[NoImage] x264 [info]: mb P I16..4: 1.1% 5.2% 1.2% P16..4: 42.9% 15.5% 8.9% 0.0% 0.0% skip:25.2%
---[NoImage] x264 [info]: mb B I16..4: 0.1% 0.4% 0.1% B16..8: 41.3% 1.0% 1.3% direct: 1.4% skip:54.5% L0:36.9% L1:57.5% BI: 5.5%
---[NoImage] x264 [info]: 8x8 transform intra:68.7% inter:60.5%
---[NoImage] x264 [info]: coded y,uvDC,uvAC intra: 74.8% 71.6% 38.7% inter: 9.7% 9.2% 0.4%
---[NoImage] x264 [info]: i16 v,h,dc,p: 38% 20% 6% 36%
---[NoImage] x264 [info]: i8 v,h,dc,ddl,ddr,vr,hd,vl,hu: 27% 15% 17% 5% 6% 9% 6% 9% 7%
---[NoImage] x264 [info]: i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 33% 13% 12% 5% 7% 11% 5% 8% 4%
---[NoImage] x264 [info]: Weighted P-Frames: Y:2.7%
---[NoImage] x264 [info]: ref P L0: 63.2% 11.0% 22.8% 2.7% 0.2%
---[NoImage] x264 [info]: ref B L0: 89.3% 10.7%
---[NoImage] x264 [info]: ref B L1: 95.0% 5.0%
---[NoImage] x264 [info]: kb/s:861.91
---[NoImage] encoded 147531 frames, 30.38 fps, 861.91 kb/s
--[Information] Final statistics
---[NoImage] Video Bitrate Desired: 862 kbit/s
---[NoImage] Video Bitrate Obtained (approximate): 863 kbit/s
--[Information] [28/03/2010 22:41:51] Postprocessing
---[Information] Deleting intermediate files
----[Information] [28/03/2010 22:41:51] Successfully deleted C:\Users\foilio\Videos\little miss sunshine.stats
----[Information] [28/03/2010 22:41:51] Successfully deleted C:\Users\foilio\Videos\little miss sunshine.stats.mbtree
--[Information] [28/03/2010 22:41:51] Job completed
-[Error] Log for job6 (audio, little miss sunshine T80 3_2ch 448Kbps DELAY 0ms.ac3 -> little miss sunshine T80 3_2ch 448Kbps DELAY 0ms.mp3)
--[Information] [28/03/2010 22:41:51] Started handling job
--[Information] [28/03/2010 22:41:51] Preprocessing
--[NoImage] Avisynth script
---[NoImage] LoadPlugin("C:\Program Files (x86)\MeGUI\tools\avisynth_plugin\NicAudio.dll")
---[NoImage] NicAc3Source("C:\Users\foilio\Videos\little miss sunshine T80 3_2ch 448Kbps DELAY 0ms.ac3")
---[NoImage] Normalize()
---[NoImage] ResampleAudio(last,48000)
---[NoImage] 32==Audiobits(last)?ConvertAudioTo16bit(last):last
---[NoImage] 6==Audiochannels(last)?last:GetChannel(last,1,1,1,1,1,1)
---[NoImage] return last
--[NoImage] Commandline used: - "{0}" --q 1 --raw {1}
--[Information] [28/03/2010 22:41:51] Encoding started
--[Information] [28/03/2010 22:41:51] Encode thread started
--[Information] [28/03/2010 22:41:51] Avisynth script environment opened
--[Information] [28/03/2010 22:41:51] Script loaded
--[Information] Output Decoder
---[NoImage] Channels: 6
---[NoImage] Bits per sample: 16
---[NoImage] Sample rate: 48000
--[NoImage] Commandline: C:\Program Files (x86)\MeGUI\tools\encaudxcli\enc_AudX_CLI.exe - "C:\Users\foilio\Videos\little miss sunshine T80 3_2ch 448Kbps DELAY 0ms.mp3" --q 1 --raw 48000
--[Information] [28/03/2010 22:41:51] Encoder process started
--[Error] An error occurred
---[NoImage] Exception message: Abnormal encoder termination -1
---[NoImage] Stacktrace: at MeGUI.AviSynthAudioEncoder.encode()
---[NoImage] Inner exception: null
--[NoImage] Output from encoder via stdout
---[NoImage] ##################################################################
---[NoImage] Aud-X multichannel encoder CLI frontend
---[NoImage] this algorithm has been prepared by: [Aud-X Team www.aud-x.com]
---[NoImage] ##################################################################
---[NoImage] System.BadImageFormatException: An attempt was made to load a program with an incorrect format. (Exception from HRESULT: 0x8007000B)
---[NoImage] at enc_AudX_CLI.initEncoding(Int32 quality)
---[NoImage] at enc_AudX_CLI.Main(String[] args)
--[Information] [28/03/2010 22:43:54] Job completed



I have all the latest codecs and MEGui is up to date. Is there something im missing here?

thanks for any help

coll

tebasuna51
29th March 2010, 11:57
...
---[NoImage] System.BadImageFormatException: An attempt was made to load a program with an incorrect format. (Exception from HRESULT: 0x8007000B)
---[NoImage] at enc_AudX_CLI.initEncoding(Int32 quality)
...

I have all the latest codecs and MEGui is up to date. Is there something im missing here?

Work here with XP SP3, maybe your OS can't load audxlib.dll:
/**
* Initializes audx encoding
* Input:
* quality - values: 0 (STRQ 80 kbps), 1 (STDQ 128 kbps), 2 (HGHQ 192 kbps) or 3 (SPBQ 192 kbps)
*/
[DllImport("audxlib", CallingConvention=CallingConvention.Cdecl, ExactSpelling=true, SetLastError=false)]
private static extern int initEncoding(int quality);

BTW, do you know what is the AudX mp3 encoder?. To play these mp3 like surround you need the AudX DirectShow Filter installed in your system (not always possible/recommended).

To obtain standard mp3 use the Lame encoder.

collado
29th March 2010, 12:33
Thanks tebasuna51 for your helpful reply. I did not know about the AudX filter. I have downloaded it but was not sure if to install it. I guess I'll leave it in case it does create problems. I was going to install the Win7DSFilterTweaker by Clsid but again did not want to mess up my video and audio codec config, until i know how to use it wisely with Windows 7!

I have not tried the LAME MP3 option yet? I know the LAME is installed so i'll give it a go. I know that AAC works fine, and really well.
Thanks again for your help

regards

Coll:thanks:

collado
29th March 2010, 14:48
Hi tebasuna51

I just tried LAMe and works a treat, doing it at 192kps produces a good enough filewith quality sound. thanks again for your help.

Collado:thanks:

pball
31st March 2010, 02:51
I've recently installed win7 ultimate 64bit and then installed avisynth and then megui. I let megui update then I tried to encode using x264.

When I try to run my encode the normal progress window doesn't pop up and the following is the error megui logs.

I have no clue why megui is having a problem. I copied the options and used x264.exe and it encoded it just fine. I also know someone else on win7 64 who's encoding without problem.
Thanks for any help

quoting my previous post as to not restate stuff. was asked to post avs and I forgot about this thread since it doesn't auto notify like some forums

[Information] Log
-[Information] Versions
--[NoImage] MeGUI Version : 0.3.4.0
--[NoImage] OS : Windows Seven Ultimate Edition x64 (6.1.0.7600)
--[NoImage] Latest .Net Framework installed : 3.5 SP1 (3.5.30729.4926)
--[NoImage] Avisynth Version : 2.5.8.5
-[Information] Log for job10 (video, 1.avs -> 1dfgdf.mp4)
--[Information] [3/30/2010 9:47:40 PM] Started handling job
--[Information] [3/30/2010 9:47:40 PM] Preprocessing
--[NoImage] Job commandline: "C:\Program Files (x86)\MeGUI\tools\x264\vfw4x264.exe" --profile high --crf 22.0 --thread-input --bframes 6 --b-adapt 2 --ref 6 --qcomp 1.0 --me umh --direct temporal --subme 5 --partitions all --trellis 0 --sar 1:1 --output "F:\Encoding Projects\Nadesico\jpn vobs\1\1dfgdf.mp4" "F:\Encoding Projects\Nadesico\jpn vobs\1\1.avs"
--[NoImage] Standard output stream
--[NoImage] Standard error stream
--[Information] [3/30/2010 9:47:41 PM] Job completed
-[NoImage] Error starting job
--[NoImage] Exception message: starting encoder failed with error 'Process has exited'
--[NoImage] Stacktrace: at MeGUI.core.gui.JobWorker.startEncoding(TaggedJob job)
--[NoImage] Inner exception: null

LoadPlugin("C:\Program Files (x86)\MeGUI\tools\dgindex\DGDecode.dll")
DGDecode_mpeg2source("F:\Encoding Projects\Nadesico\jpn vobs\1\1.d2v")
crop( 2, 2, -2, -2)
Spline64Resize(720,480) # Spline64 (Sharp)

there is the full log and avs file I used

Anakunda
2nd April 2010, 21:51
Hi I read several tutorials. I want to rip DVD. I don't need to use DVD decrypter. How to make MeGUI to encode from more VOB files while I only can select one?

mkv
3rd April 2010, 00:52
@dr_sdaa7: verify your idx was muxed correctly. in that case you need a suitable subtitle filter.
you cant "add subtitles" with avisynth. hardsubbing requires re-encoding.

@mkv: check your system for hardware failures. also, encoders included with megui do not use any VGA card...

I was changed my VGA card it's working fine now.

it was hardware issue.

nakTT
3rd April 2010, 02:19
Good day to all.

Anyone know how can I join two video files (of the same spec) using MeGUI in these to ways:

1) Joining 2 files that has already been encoded earlier (using x264 - MeGUI)

2) Joining 2 files + encoding it in the same task (don't care if MeGUI join them first and then encode or the other way around).


Thank you in advance.
:thanks:

Guest
3rd April 2010, 04:19
1. Binary concatenate if the streams are compatible.

2. Join them in your Avisynth script.

nakTT
3rd April 2010, 05:09
1. Binary concatenate if the streams are compatible.

2. Join them in your Avisynth script.
Sorry, but I can't seems to find the option in MeGUI menu.


BTW, does this method works in both of the situations that I gave in my earlier post?

1) With two files that are going to be encoded.
2) With two files that are already being encoded earlier.


P/S: "streams are compatible" meaning I encoded both files with the same x264 setting?

Anakunda
3rd April 2010, 07:26
Please how to convert DVD contained from more VOB files?
I really dont find any tool or joiner within MeGUI UI

Zathor
3rd April 2010, 10:56
Please how to convert DVD contained from more VOB files?
I really dont find any tool or joiner within MeGUI UI

The VOB files will automatically be joined if using DGIndex - either by using it manually in the "File Indexer" or automatically in One-Click mode.

Anakunda
3rd April 2010, 12:50
The VOB files will automatically be joined if using DGIndex - either by using it manually in the "File Indexer" or automatically in One-Click mode.

How joined automatically?
Can you please give me a link to step by step tute for ripping DVD of more than one VOB files?
:thanks::thanks:

Zathor
3rd April 2010, 13:21
http://forum.doom9.org/showthread.php?t=112496

Like the D2V creator, if you have multiple VOB files, just select the first one, and the rest will be added later.

Robertus
3rd April 2010, 18:54
hi everybody, i have a little question

1) with megui 0.3.3.0 how is possible generate .avs file, that it contain directshowsource and not avssource?

because if i use avssource, the video encoded have some problems.

everytime i must open avs file and change avs to directshowsource, so is very boring

2) and i have another question, how is possible to use haali media splitter only for other program, and not with megui?

because when i open a mkv with adobe audition, ffdshow can't open mkv video( i don't know if there is an option in fddshow to open mkv video with adobe audition ), but with haali, works.

but when i encode with megui, ffdshow and haali works in the same times and are very slowly, so is better that works only ffdshow with megui, and haali with adobe audition

i hope that someone know a solution for these two problems.

thanks a lot, bye

invy
5th April 2010, 19:34
Can someone tell me what is up with the x264 profiles? I just updated my megui files recently for the first time in a month or two, and now, the '2pass extra quality' profile that used to take 8-10 hours for the 2nd pass (~12x), now takes about 24 hours at a measly speed of only 1-2x.

What's going on here?

akombakom27
7th April 2010, 00:40
Hi! I have a problem! I am using MeGUI to rip my BluRays to x264 DXVA 1080p MKV files. It worked perfectly till now. I have update MeGUI (but what for???). Before (core 0.3.1.1056) this took 6-7 hours for a 90 min movie. I have using the x264_dp_ DXVA-HD-Insane profile. The speed and the quality was OK for me. Now, after the latest update the x264_dp_ DXVA-HD-Insane profile gone, and the major problem is, that with the UNRESTRICTED (DXVA) Insane the encoding of a 90 min movie take almost 24 hours!!! I have read, somewhere that this is because of the 0.3.3 or 0.3.4 core and I am not alone with this problem. So I have installed a previous version (core 0.3.1.something) and updated everything except the core and copied the x264_dp_ DXVA-HD-Insane profile to MeGUI, but now I have errors all the time. Even the first pass wont start.

I just want to use the x264_dp_ DXVA-HD-Insane profile (or anything similar) and rip a movie in 6-7 hours again. What should I do?

Thank you! And sorry for my poore english!

Soliloquy
10th April 2010, 17:46
Can someone help me with the Audio cutter? What I want to do is to cut out two pieces from an audio clip and join them. I made this .clt:

<?xml version="1.0"?>
<Cuts xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<Framerate>23.975985652770184</Framerate>
<Style>FADE</Style>
<AllCuts>
<CutSection>
<startFrame>2133</startFrame>
<endFrame>31349</endFrame>
</CutSection>
<CutSection>
<startFrame>33508</startFrame>
<endFrame>33744</endFrame>
</CutSection>
</AllCuts>
</Cuts>

I input my audio file, this .clt and then start the task. It says done on both the split and join part, but the audio file isn't playable. Moreover, I can't delete the resulting file since it's apparently being used by something.

Am I doing something wrong?

tebasuna51
11th April 2010, 11:42
What is your audio file input?

Soliloquy
11th April 2010, 13:00
It is a .wav file i extracted from a .m2ts with eac3to.

Just to clarify...


Audio file |--------------------|
I want |-------| |-------|


Basically, cut out a part in the middle and join the resulting parts.

Nightshiver
11th April 2010, 15:03
Why not just use Audacity, save as a wav, and then encode? Lot less hassle.

Soliloquy
11th April 2010, 15:15
And then cut at frame_amount * fps? That does sound easy. Not as cool as letting the program do it, but why not.

tebasuna51
12th April 2010, 00:23
It is a .wav file i extracted from a .m2ts with eac3to.
...
Yep, seems BeSplit join don't work with wav files.

Soliloquy
12th April 2010, 00:25
Oh. >.>

What formats can it join? FLAC?

tebasuna51
12th April 2010, 10:33
Nope, FLAC is not supported.
Of course don't support WAV files is a bug in BeSplit (abandoned, without public source code, then never can be solved)

The benefit of use BeSplit method is don't recode compressed streams like:
AC3/AAC/MPA/MP3/MP2/MP1/DTS

If your source is AC3/DTS extract the stream without decode and use BeSplit.
If your source is lossless you can create an avs file like that:

########################################
# [Source: WavSource], use RaWavSource if file is > 4GB
########################################
WavSource("x:\your_path\your.wav")

########################################
# Create fictive 23.975985652770184 fps video for triming
########################################
AudioDubEx(BlankClip(length=Int(23.975985652770184*AudioLengthF(last)/Audiorate(last)), width=32, height=32, pixel_type="RGB24", fps=23.975985652770184), last)

trim(2133,31349) + trim(33508,33744)
and use BeHappy to output WAV or FLAC

EDIT: I don't know for what MeGUI don't offer lossless output (WAV or/and FLAC)

Soliloquy
12th April 2010, 13:56
Wow. I had no idea audio could be such a hell. So I got BeHappy (source was LPCM). Well... wavsource couldn't load my .wav. Fun! I mean... wav... if you can't even load that, then something is bad.

Luckily for me some other guy had this problem (http://www.videohelp.com/forum/archive/avisynth-s-wavsource-won-t-load-wave-pcm-files-t357581.html), so I did the same registryhaxxing as he did and I CAN LOAD WAV. FINALLY.
And then behappy worked flawlessly making me happy.

Thanks! xD

daberti
13th April 2010, 12:42
I've just bought this standalone and I'm trying to encode from DVD->XVID. 1500kbps is the only mod allowed. I keep original AC3 audio.
I use the Home Theater Fast profile, yet when I play the movie, it stops when nearly at the end or so.
Any idea would be hotly appreciated.

Thanks in advance

akombakom27
13th April 2010, 17:33
daberti, I have noticed the same thing. I think it's because MeGUI do the muxing with AviMuxgUI. I resolved the problem with virtualdub. Open your movie with virtualdub. Set the Full Processing Mode at the Video tab, and hit the Save as segmented avi at the File tab. Virtualdub remuxing helped me.

Nightshiver
13th April 2010, 18:30
Well, I'm also having the "long encode" time problem. Encodes used to take much less, but now on the second pass, they are taking 26+ hours. This shouldn't be happening.

daberti
13th April 2010, 19:00
daberti, I have noticed the same thing. I think it's because MeGUI do the muxing with AviMuxgUI. I resolved the problem with virtualdub. Open your movie with virtualdub. Set the Full Processing Mode at the Video tab, and hit the Save as segmented avi at the File tab. Virtualdub remuxing helped me.

Huge thanks :)
Do you mean the muxed avi (audio included) or just the encoded video?

Zathor
13th April 2010, 19:26
Well, I'm also having the "long encode" time problem. Encodes used to take much less, but now on the second pass, they are taking 26+ hours. This shouldn't be happening.

Do you have changed the x264 profiles between the old and new encodings? Very likely the settings have changed.

Nightshiver
14th April 2010, 02:04
No, the settings haven't changed, I'm not that novice of a user.

Zathor
14th April 2010, 05:23
And what has changed beside the source file and the encoding time?

Try executing the command line outside of MeGUI. If the problem persists swtch back to the x264 build used for your fast encodes.

akombakom27
14th April 2010, 16:57
daberti: Yes, the muxed avi, including the audio. I don't know why this helps, but after remuxing with virtualdub, the size will increase with less than 1 meg. Anyway, this helped me, hope will work for you too.

Zathor: I have the same problems with the encoding time. Also I have saved the "old" MeGUI's whole folder. But if I starting that "old" MeGUI I'm getting error message at the first pass. On the other hand I tried to change the new preset's setting to the same as the old presets, but still no luck. If a downgrade can help, please tell me how to do it.

Zathor
14th April 2010, 17:31
I have the same problems with the encoding time. Also I have saved the "old" MeGUI's whole folder. Which build number (MeGUI / x264) has the old version?

But if I starting that "old" MeGUI I'm getting error message at the first pass. Which error? Please post the log.

On the other hand I tried to change the new preset's setting to the same as the old presets, but still no luck. If possible please post the command lines used for both encodings (old/new) for x264.

daberti
14th April 2010, 20:28
daberti: Yes, the muxed avi, including the audio. I don't know why this helps, but after remuxing with virtualdub, the size will increase with less than 1 meg. Anyway, this helped me, hope will work for you too.


Thanks :)
I guess I'll go the AutoGK way and keep using MeGui for x264, as I suspect I should also setup video compression under VirtualDub.....

icon
15th April 2010, 16:21
I hope someone can help me out with this audio sync issue I am having. I'm using the latest megui with all programs updated. Using a DVD source which mediainfo claims is 29.970, megui/avisynth/x264 gives me a video that mediainfo claims is 23.976. I assume this difference in framerate is what is making the auio out of sync. It is out of sync by seconds not ms. This is hard to test since I am not encoding the audio. Anyhow, here is the avisync script. Hope someone can help. BTW - handbrake didn't seem to have any problems with the video and kept everything in sync.

LoadPlugin("C:\Program Files (x86)\MeGUI\tools\dgindex\DGDecode.dll")
DGDecode_mpeg2source("\VIDEO_TS\VTS_01_1.d2v", info=3)
LoadPlugin("C:\Program Files (x86)\MeGUI\tools\avisynth_plugin\ColorMatrix.dll")
ColorMatrix(hints=true, interlaced=true, threads=0)
LoadPlugin("C:\Program Files (x86)\MeGUI\tools\avisynth_plugin\TIVTC.dll")
tfm(order=1).tdecimate(hybrid=1)
crop( 0, 2, 0, 0)

#resize
#denoise

Guest
15th April 2010, 19:27
G:\downloads\movies\MainMovie\Frank...

@icon

We cannot help you with downloaded movies per rule 6 and if you ask again you'll get struck.

@others

Do not respond to the post.

icon
15th April 2010, 20:05
@icon

We cannot help you with downloaded movies per rule 6 and if you ask again you'll get struck.

@others

Do not respond to the post.

Why would you assume that it is a downloaded movie. Ironically enough it's MY MOVIE, that I purchased.

Regardless - I think I am narrowing down the problem to DGindexing the audio of the vobs before it should. I don't understand why it does this, since playing the vobs are insync and as I mentioned before Handbrake encodes them fine.

I wish I knew that there was going to be a sync problem before I waste 4 hours encoding. Any easy way of finding how much the a/v are out of sync now with out re-indexing/re-enocding the whole thing again (without the begining of the movie where the silence is suppose to be).

Edit - I see, because my script directly has 'downloads' in it. I use that for all my temp files regardless if they are downloaded from the net, copied from another PC or ripped from my DVD drive. As I mentioned before, its my movie. I will clear up the script so there is no ambiguity.

Guest
15th April 2010, 23:22
I see, because my script directly has 'downloads' in it. I use that for all my temp files regardless if they are downloaded from the net, copied from another PC or ripped from my DVD drive. As I mentioned before, its my movie. I will clear up the script so there is no ambiguity. I'll give you the benefit of the doubt here but in the future please do not raise spurious red flags like that.

@all

Feel free to respond to icon's issue.

Now, about your problem...

Your script specifies IVTC, so 23.976 is correct. That will NOT affect audio sync.

Possibly the issue is that the stream has a starting blank section. If that is the case, you need to skip over that when setting the project range in DGIndex. Step in using the > button until real video appears. Then hit [ and save project. I do not know enough about MEGUI to know how you would do that using MEGUI.

icon
16th April 2010, 00:32
Thanks Neuron2 for clearing me. Also, nice program. As I later found out by experimenting, it was DGIndex and the begining black causing the problem. I guess I don't need to know why it does that, but does it do that often or anyway to prevent it or know if it's going to happen? As you probably tell by my directory structure, I am using DVD Fab and normally just rip the main movie.

Guest
16th April 2010, 01:03
I guess I don't need to know why it does that, but does it do that often or anyway to prevent it or know if it's going to happen? It happens because DGIndex determines the audio delay based on the difference in the audio and video timestamps at the start of the project, the assumption being that it is constant throughout. But for these sources the timestamps are reset to zero after the black spell at the beginning, and so the calculated delay is wrong. You can tell by dumping the timestamps and looking at them but that takes more savvy than many casual users possess. So my advice is to develop the habit of always skipping over leading black video. It has no useful information so nothing is lost.

Rashik
17th April 2010, 10:47
Hello everybody

Megui isn't reading mkv container. It says
"Avisynth script error:
DirectShowSource: RenderFile, the filter graph manager won't talk to me"

What is wrong?

Archer
17th April 2010, 13:57
Hi everyone. I have a problem. I have Win 7 x64, avisynth 2.5.8 and CCCP installed, but my megui crashes without any errors, it simply stops working and the system is "searching for a solution". I've tried many things, but I failed to get megui working. I will be really grateful for any kind of help.

Soliloquy
17th April 2010, 19:36
Why does MEGUI -> AVS Script creator's video preview say that my movie clip has one frame less than if i open the same video clip through the main MEGUI window?

nurbs
17th April 2010, 19:42
Maybe one of them starts counting frames at 0, the other starts at 1.

Soliloquy
17th April 2010, 19:52
That's... confusing. >_>

Zathor
17th April 2010, 20:28
Why does MEGUI -> AVS Script creator's video preview say that my movie clip has one frame less than if i open the same video clip through the main MEGUI window?
Please post more details how to reproduce this.

Maybe one of them starts counting frames at 0, the other starts at 1.No, both count the same way.

Soliloquy
17th April 2010, 20:33
Then why do they differ by one frame?

Chumbo
18th April 2010, 15:22
I searched the thread for an answer but didn't find one. Basically the encoder is blowing up after it's done which, on multiple passes, never gets to the nth pass. I ran the command line and this is what I got (which explained the error in the log):
http://img210.imageshack.us/img210/2307/win7crash.png (http://img210.imageshack.us/i/win7crash.png/)

I tried setting the executables to run as Administrator and to Win XP Sp3 compatibility mode without success. I also ran the command line as administrator with no success. Any ideas? Thank you.

I'm running Win7 Ultimate 64 bit

Soliloquy
18th April 2010, 15:59
Nevermind, the differing frame count was
DirectShowSource("x", fps=23.976, audio=false, convertfps=true)
vs
DirectShowSource("x")

Still, was kinda funny when script creator said 3021 frames, main window 3022 frames and the encoder process reported 3023 frames.

LigH
19th April 2010, 08:50
@ Rashik:

To read the content of an MKV movie, MeGUI has two options:

a) It may rely on DirectShow filters installed in your Windows system. If you installed any. Especially a "Splitter" filter which is able to extract the video and audio (etc.) content from inside the MKV container. Without such filters, basic Media Player applications (like the MS Windows Media Player) - relying on the DirectShow system - won't know how to read MKV files; and MeGUI neither. One possible filter is the "Haali Media Splitter" (MatroskaSplitter). Advantage: You don't need to know much about it. Disadvantage: You may not know which decoder is used, and if it has high quality, accuracy, reliability (e.g. some DirectShow decoders are able to skip frames, which would ruin a 2-pass conversion).

b) You extract the content manually, prepare it if required (e.g. build an index file for contained AVC video) and open that in MeGUI. Advantage: AviSynth plugins with high quality and reliability can be used for loading the content. Disadvantage: You need to learn how to do it.

fabiospark
19th April 2010, 20:14
I'm doing some tests to see what are the best settings to convert my family DV videos to x264 with Megui.

For now I just want to deinterlace the source but I've been asked to convert to YV12 so this is my .avs:

AVISource("P:\DV aggregati\Good for testing 2.avi", audio=false)
ConvertToYV12()
Load_Stdcall_Plugin("C:\Programmi\megui\tools\yadif\yadif.dll")
Yadif(order=0)

When the video encoding process ends and the .mp4 file is created I'm getting an x264 crash report: is it something I'm doing wrong?

Thanks.

By the way: where should I look to learn how to best convert my DVs (not HDVs) to mp4?
I tried Google but it's not easy to know in advance which link will not waste your time).

Thanks again.

akombakom27
19th April 2010, 20:56
Zathor: I'm such a noob, so I don't know how to get all that info you required. But I did the next thing instead. Here is a link, I zipped the old megui to the "old" folder and some screens in the "new" folder. I did everything the same way as on the pictures with the "old" megui, just with the x264_dp_ DXVA-HD-Insane profile and I changed the default settings to Automated 2pass, everything else was untouched.

http://www.megaupload.com/?d=N5C00V2C

And yet another thing. This happens with all versions of MeGUI. When I try to rip 1080p or 720p mkv source to an SD XviD (resizing to 720x304 or 720x400) with "XviD: 2pass HQ (no Qpel)" and I set the bitrate to 2000 in the Birate Calculator the bitrate I choose is OK just for the first 5 or 6 encodings. After that the bitrate changes randomly from 1300 to 3600 depending on movie. A reinstallation of MeGUI didn't solve this problem, just the reinstallation of the whole PC.

I'm using Win7 Ultimate.

Chumbo
23rd April 2010, 00:29
I searched the thread for an answer but didn't find one. Basically the encoder is blowing up after it's done which, on multiple passes, never gets to the nth pass. I ran the command line and this is what I got (which explained the error in the log):
http://img210.imageshack.us/img210/2307/win7crash.png (http://img210.imageshack.us/i/win7crash.png/)

I tried setting the executables to run as Administrator and to Win XP Sp3 compatibility mode without success. I also ran the command line as administrator with no success. Any ideas? Thank you.

I'm running Win7 Ultimate 64 bit
Am I the only one who has this problem? Would appreciate any help please. I've searched and searched and have not found any solutions here or on the web.

Zathor
23rd April 2010, 05:48
Please post the log.

Try running the commandline you found there regarding vfw4x264 manually in a cmd window - any error output / same problem? Try renaming avs4x264.exe and x264.exe to vfw4x264 (copy & rename so that the original files are still available).

akombakom27
23rd April 2010, 13:16
Zathor: Sorry, I don't know how to run vfw4x264 manually in a cmd window. And I don't know what to rename. In the "new" properly updated MeGUI there already are the next files:

avs4x264.exe
vfw4x264.exe
x264.exe
x264_64.exe

Here is the "old" MeGUI's log, here I'm getting error all the time:

[Information] Log
-[Information] Versions
--[NoImage] MeGUI Version : 0.3.1.1056
--[NoImage] OS : Windows Seven x86 (6.1.0.7600)
--[NoImage] Latest .Net Framework installed : 2.0 (2.0.50727.0)
-[Information] Hardware
--[NoImage] CPU : Intel(R) Core(TM)2 Duo CPU P7350 @ 2.00GHz
-[Information] Log for job1 (video, test.avs -> )
--[Information] [2010.04.23. 14:03:44] Started handling job
--[Information] [2010.04.23. 14:03:44] Preprocessing
--[NoImage] Job commandline: "C:\Program Files\MeGui\tools\x264\x264.exe" --profile high --level 4.1 --preset fast --pass 1 --bitrate 4500 --stats "D:\TEST\test_.stats" --thread-input --deblock -1:-1 --bframes 3 --b-adapt 2 --direct auto --b-bias 0 --scenecut 40 --ref 4 --vbv-bufsize 50000 --vbv-maxrate 50000 --rc-lookahead 40 --no-mbtree --aq-mode 1 --aq-strength 1.0 --merange 32 --me tesa --subme 9 --partitions p8x8,b8x8,i4x4,i8x8 --trellis 2 --psy-rd 1.0:0 --no-dct-decimate --output NUL "D:\TEST\test.avs"
--[Information] [2010.04.23. 14:03:45] Encoding started
--[NoImage] Standard output stream
--[NoImage] Standard error stream: C:\Program Files\MeGui\tools\x264\x264.exe: unrecognised option `--rc-lookahead'
--[Information] [2010.04.23. 14:03:45] Job completed

Really sorry that my knowledge is just basic with the command line stuff and other things. :(

gino25
23rd April 2010, 17:56
today megui updater doesn't work... Is it normal?

Chumbo
24th April 2010, 00:59
Please post the log.

Try running the commandline you found there regarding vfw4x264 manually in a cmd window - any error output / same problem? Try renaming avs4x264.exe and x264.exe to vfw4x264 (copy & rename so that the original files are still available).
I'm not sure if your response is to my inquiry or not, but I did run it via the command line and tried the rename trick with the same results. The encoding finishes successfully and it seems to crash after that when it attempts to do its clean up and close or something like that.

Here's the log if it'll help.[Information] Log
-[Information] Versions
--[NoImage] MeGUI Version : 0.3.4.0
--[NoImage] OS : Windows Seven Ultimate Edition x64 (6.1.0.7600)
--[NoImage] Latest .Net Framework installed : 3.5 SP1 (3.5.30729.4926)
--[NoImage] Avisynth Version : 2.5.8.5
-[Information] Log for job3 (video, 216.avs -> )
--[Information] [4/23/2010 6:55:36 PM] Started handling job
--[Information] [4/23/2010 6:55:36 PM] Preprocessing
--[NoImage] Job commandline: "D:\Program Files (x86)\megui\tools\x264\vfw4x264.exe" --pass 1 --bitrate 3204 --stats "E:\Media\Video\work\temp\216.stats" --slow-firstpass --thread-input --vbv-maxrate 31250 --sar 1:1 --output NUL "E:\Media\Video\work\temp\216.avs"
--[Information] [4/23/2010 6:55:36 PM] Encoding started
--[NoImage] Standard output stream
--[NoImage] Standard error stream
---[NoImage] yuv [info]: 1280x720p 1:1 @ 30000/1001 fps (cfr)
---[NoImage] x264 [warning]: VBV maxrate specified, but no bufsize, ignored
---[NoImage] x264 [info]: using SAR=1/1
---[NoImage] x264 [info]: using cpu capabilities: MMX2 SSE2Fast SSSE3 FastShuffle SSE4.2
---[NoImage] x264 [info]: profile High, level 3.1
---[NoImage]
---[NoImage] x264 [info]: frame I:1 Avg QP:18.56 size: 22222
---[NoImage] x264 [info]: frame P:79 Avg QP:15.51 size: 12133
---[NoImage] x264 [info]: frame B:121 Avg QP:14.62 size: 3230
---[NoImage] x264 [info]: consecutive B-frames: 18.5% 2.0% 1.5% 78.0%
---[NoImage] x264 [info]: mb I I16..4: 53.3% 32.6% 14.1%
---[NoImage] x264 [info]: mb P I16..4: 11.2% 2.9% 2.0% P16..4: 21.2% 6.4% 4.3% 0.0% 0.0% skip:52.0%
---[NoImage] x264 [info]: mb B I16..4: 1.1% 0.2% 0.1% B16..8: 13.1% 1.7% 0.4% direct: 1.7% skip:81.8% L0:43.3% L1:45.8% BI:10.9%
---[NoImage] x264 [info]: final ratefactor: 10.92
---[NoImage] x264 [info]: 8x8 transform intra:18.1% inter:63.6%
---[NoImage] x264 [info]: coded y,uvDC,uvAC intra: 16.1% 56.1% 36.5% inter: 6.0% 11.7% 5.2%
---[NoImage] x264 [info]: i16 v,h,dc,p: 44% 53% 2% 1%
---[NoImage] x264 [info]: i8 v,h,dc,ddl,ddr,vr,hd,vl,hu: 16% 16% 58% 1% 1% 2% 1% 2% 2%
---[NoImage] x264 [info]: i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 23% 45% 23% 1% 2% 2% 1% 1% 1%
---[NoImage] x264 [info]: Weighted P-Frames: Y:0.0%
---[NoImage] x264 [info]: ref P L0: 67.8% 19.3% 5.9% 7.0%
---[NoImage] x264 [info]: ref B L0: 80.8% 16.2% 3.0%
---[NoImage] x264 [info]: ref B L1: 95.8% 4.2%
---[NoImage] x264 [info]: kb/s:1636.08
---[NoImage] encoded 201 frames, 33.50 fps, 1636.08 kb/s
--[Information] [4/23/2010 6:55:56 PM] Job completed

Ruriko
26th April 2010, 12:07
I can't open up any video files it gives a error saying there is no function named directshowsource. I have the latest avisynth installed and I checked if directshowsource.dll is in the plugin folder which it is. How can I fix this problem?

LigH
26th April 2010, 12:36
@ fabiospark:

- Yadif is not the most intelligent deinterlacer. Only a very fast one. Some people don't recommend it if quality is an important matter.
- DV usually has "Bottom Field First" order, so "order=0" is probably correct.
- ConvertToYV12() without using the parameter "interlaced=true" for interlaced material may produce false colors each second pair of lines - except AVISource() returned YV12 already (then it does nothing).
- Try to request YV12 already in AVISource via pixel_type (depends on the VfW codec if supported, and possibly on your video norm: PAL DV is already close to YV12, NTSC DV is not - IIRC).

Your crash can have many reasons. Like e.g. the stability of your codec handling aborted video streams. Because one pass ran to the end, it is probably not your script's fault.
__

@ Ruriko:

What is your exact operating system? (There might be quirks making the 16/32 bit AviSynth run on 64 bit systems...)

And is your plugin directory registered correctly in the Registry?

And does it work when you explicitly use LoadPlugin() with DirectShowSource.dll?

Ruriko
27th April 2010, 12:27
My server is 64bit but I installed in the 86x programs folder. It doesn't work when I try to use LoadPlugin() it says unable to open. It seems to work if the dll file is located outside of program files. Is there a way to set the path to directshowsource in megui? Where is it registered in the registry?

Vincent Vega
27th April 2010, 15:35
this has been discussed in this forum many times, but what's the current rule with latest build of megui + x264 interlaced encoding from interlaced (tff) source. by simply checking "Encode Interlaced" i end up with dvavcindex reporting frame struct mbaff for my encode. i tried adding --tff to custom command line but still same mbaff encode as result.

btw i also tried feeding the same video deinterlaced to x264 in megui (tivtc according to megui analyze function), resultant supposedly progressive video also showed up as mbaff in dgavcindex.

Vincent Vega
28th April 2010, 09:16
hello..
anybody here?

nurbs
28th April 2010, 10:29
So you wanted to encode an interlaced stream, told x264 to encode interlaced and dgavcindex tells you the result is interlaced. Then you took a progressive stream, told x264 to encode it as interlaced and dgavcindex again tells you the result is encoded interlaced. What's the problem?

Vincent Vega
28th April 2010, 11:13
1) i took interlaced source (frame struct: fields/tff) fed it to x264 in megui as interlaced (only avcsource() in the script), checked interlaced encoding in x264 config. resulting encode is frame struct MBAFF. why source was fields/tff and result is MBAFF? these are not the same stream types, right?

2) the progressive encoding problem was my mistake, i just rechecked, sorry

nurbs
28th April 2010, 11:43
In the H.264 standard there are 2 different methods for encoding interlaced content. One of them, the only one x264 supports, is MBAFF (macroblock-adaptive frame-field). If a stream was encoded with the MBAFF method dgavcindex will display that it was encoded with MBAFF, because each macroblock in the frame can be encoded either in frame or in field mode. Since generally you can have a mix of both there is no point in displaying Frame, Fields (TFF) or Fields (BFF) as the frame structure since each frame can be a mix of those.
In practice x264s MBAFF isn't really adaptive, all blocks are encoded in field mode, but since dgavcindex is supposed to display the properties of H.264 streams in general and not x264 encoded ones in particular it wouldn't make sense to display anything else.

Vincent Vega
28th April 2010, 15:49
many thanks nurbs

Takenover83
29th April 2010, 03:57
I am not sure this is the proper place to ask this. I thought of creating a new thread, but decided to give this a shot first. Will we be seeing iPad profiles? I have been tinkering with the iPhone profiles, but I am just a novice, and many of the settings are best left to people who know more then I do. I know the AVC Level can be changed to 3.1, and the number of reference frames can change quiet a bit based on resolution (7 I think for 1024x*). But that's about all I tinkered with. This is the official info, but I know it goes much deeper then these simple specs. I am looking to stick to 1024x* for the best quality vs size. (screen size is 1024x768)

iPad Supported Video/Movie Formats

* H.264 video (up to 720p, 30 frames per second; main profile level 3.1 with AAC-LC audio up to 160 Kbps, 48kHz, stereo audio in .m4v, .mp4, and .mov file formats)
* MPEG-4 video (up to 2.5 Mbps, 640 by 480 pixels, 30 frames per second, simple profile with AAC-LC audio up to 160 Kbps, 48kHz, stereo audio in .m4v, .mp4, and .mov file formats).

iPad Supported Music & Audio Formats

# AAC (16 to 320 Kbps)
# protected AAC (from iTunes Store)
# MP3 (16 to 320 Kbps), MP3 VBR
# Audible (formats 2, 3, and 4)
# Apple Lossless
# AIFF
# WAV.

Vincent Vega
2nd May 2010, 16:48
all the latest updates and everything worked fine i think a few weeks ago :confused:

now i get this log with source dts-ma, lpcm and wav samples:
[Error] Log
-[Information] Versions
--[NoImage] MeGUI Version : 0.3.4.13
--[NoImage] OS : Windows XP Professional x86 SP2 (5.1.131072.2600)
--[NoImage] Latest .Net Framework installed : 3.5 (3.5.30729.01)
--[NoImage] Avisynth Version : 2.5.8.5
-[Error] Log for job2 (audio, source_dts-ma_5.1_16bit_48khz.dts -> source_dts-ma_5.1_16bit_48khz.ac3)
--[Information] [5/2/2010 7:31:44 PM] Started handling job
--[Information] [5/2/2010 7:31:44 PM] Preprocessing
--[NoImage] Avisynth script
---[NoImage] LoadPlugin("C:\Program Files\megui\tools\avisynth_plugin\NicAudio.dll")
---[NoImage] NicDtsSource("E:\My Documents\multiAVCHD\source_dts-ma_5.1_16bit_48khz.dts")
---[NoImage] return last
--[NoImage] Commandline used: -readtoeof 1 -b 448 - "{0}"
--[Information] [5/2/2010 7:31:45 PM] Encoding started
--[Information] [5/2/2010 7:31:45 PM] Encode thread started
--[Information] [5/2/2010 7:31:45 PM] Avisynth script environment opened
--[Information] [5/2/2010 7:31:47 PM] Script loaded
--[Information] Output Decoder
---[NoImage] Channels: 6
---[NoImage] Bits per sample: 32
---[NoImage] Sample rate: 48000
--[NoImage] Commandline: C:\Program Files\megui\tools\aften\aften.exe -readtoeof 1 -b 448 - "E:\My Documents\multiAVCHD\source_dts-ma_5.1_16bit_48khz.ac3"
--[Information] [5/2/2010 7:31:47 PM] Encoder process started
--[Error] An error occurred
---[NoImage] Exception message: The pipe has been ended.
---[NoImage] Stacktrace
----[NoImage] at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
----[NoImage] at System.IO.FileStream.WriteCore(Byte[] buffer, Int32 offset, Int32 count)
----[NoImage] at System.IO.FileStream.Write(Byte[] array, Int32 offset, Int32 count)
----[NoImage] at MeGUI.AviSynthAudioEncoder.encode()
---[NoImage] Inner exception: null
--[Information] [5/2/2010 7:31:55 PM] Job completed
-[Error] Log for job3 (audio, eac3to_lpcm_5.1_16bit_48khz.lpcm -> eac3to_lpcm_5.1_16bit_48khz.ac3)
--[Information] [5/2/2010 7:31:55 PM] Started handling job
--[Information] [5/2/2010 7:31:55 PM] Preprocessing
--[NoImage] Avisynth script: return last
--[NoImage] Commandline used: -readtoeof 1 -b 448 - "{0}"
--[Information] [5/2/2010 7:31:56 PM] Encoding started
--[Information] [5/2/2010 7:31:56 PM] Encode thread started
--[Information] [5/2/2010 7:31:56 PM] Avisynth script environment opened
--[Error] An error occurred
---[NoImage] Exception message: The script's return was not a video clip.
---[NoImage] Stacktrace
----[NoImage] at MeGUI.AviSynthClip..ctor(String func, String arg, AviSynthColorspace forceColorspace, AviSynthScriptEnvironment env)
----[NoImage] at MeGUI.AviSynthAudioEncoder.encode()
---[NoImage] Inner exception: null
--[Information] [5/2/2010 7:31:58 PM] Job completed
-[Error] Log for job4 (audio, eac3to_wav_5.1_16bit_48khz.wav -> eac3to_wav_5.1_16bit_48khz.ac3)
--[Information] [5/2/2010 7:31:58 PM] Started handling job
--[Information] [5/2/2010 7:31:58 PM] Preprocessing
--[NoImage] Avisynth script
---[NoImage] LoadPlugin("C:\Program Files\megui\tools\avisynth_plugin\NicAudio.dll")
---[NoImage] RaWavSource("E:\My Documents\multiAVCHD\eac3to_wav_5.1_16bit_48khz.wav")
---[NoImage] return last
--[NoImage] Commandline used: -readtoeof 1 -b 448 - "{0}"
--[Information] [5/2/2010 7:31:58 PM] Encode thread started
--[Information] [5/2/2010 7:31:58 PM] Encoding started
--[Information] [5/2/2010 7:31:58 PM] Avisynth script environment opened
--[Information] [5/2/2010 7:32:01 PM] Script loaded
--[Information] Output Decoder
---[NoImage] Channels: 6
---[NoImage] Bits per sample: 16
---[NoImage] Sample rate: 48000
--[NoImage] Commandline: C:\Program Files\megui\tools\aften\aften.exe -readtoeof 1 -b 448 - "E:\My Documents\multiAVCHD\eac3to_wav_5.1_16bit_48khz.ac3"
--[Information] [5/2/2010 7:32:01 PM] Encoder process started
--[Error] An error occurred
---[NoImage] Exception message: The pipe has been ended.
---[NoImage] Stacktrace
----[NoImage] at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
----[NoImage] at System.IO.FileStream.WriteCore(Byte[] buffer, Int32 offset, Int32 count)
----[NoImage] at System.IO.FileStream.Write(Byte[] array, Int32 offset, Int32 count)
----[NoImage] at MeGUI.AviSynthAudioEncoder.encode()
---[NoImage] Inner exception: null
--[Information] [5/2/2010 7:32:03 PM] Job completed

Taurus
2nd May 2010, 17:17
@Vincent Vega
Maybe related to this:http://forum.doom9.org/showthread.php?p=1395842#post1395842

Vincent Vega
2nd May 2010, 17:58
maybe Taurus..

i'm also on AthlonXP, but using only one worker always


Edit: my other machine at work is E4500+P35, no probs there, that's where i did all the latest encodes with the same megui version.

Zathor
2nd May 2010, 20:58
maybe Taurus..

i'm also on AthlonXP, but using only one worker always
Please use this aften build:
http://megui.org/auto/aften_r832.zip

I cannot switch it on the update server because I am not at home these days and do not have the password for the ftp account with me. I should be able to switch it in the next days.

Vincent Vega
2nd May 2010, 22:00
thank you Zathor, it worked.

so is there any hope for a revised latest aften build that will be also usable on old amd computers?

pygo
12th May 2010, 23:17
MeGUI 0.3.4.0 appcrash midway through encoding? Can anyone help me out tried two times and got the same occurance. File i am encoding is H264 ts. I have encoded with MeGUI previously but this is a new notebook for me. OS is Windows 7 x64. I have tried running as admin with the same results. I'm stumped Any ideas??

kartman_canada
14th May 2010, 02:11
I've been using MeGUI for a while but on WinXP 32-bit. This week, I took the plunge and bought a new workstation and have decided (stupid?) to wade into a new OS (Win7) and the world of 64-bit so I can access more RAM.

Today, I got MeGUI installed but I seem to be having issues with ffdshow and Haali. Basically, I'm just trying to duplicate the setup I had under WinXP but on the newer, faster machine.

Specifically, x264 seems to die as I can't make ffdshow feed it YV12 colorspace when encoding. I don't know much about this as it 'just worked' on the old box. I've tried adjusting the supported outputs on ffdshow but this doesn't seem to do the trick.

Also, my input video stream is in an MKV container... even though Haali is technically installed correctly, the AVS script creator seems to think there is no support for MKV.

In general, is the a good resource for making MeGUI and the necessary supporting tools/filters go under Win7 64-bit? I seem to see lots of people online that are having success but I seem to be digging myself a deep hole. :( I realize that my post is rather open ended but I'm really stumped.

Help?

rapscallion
14th May 2010, 02:59
Well, I guess the first question we'd ask is are you sure you're using the 64 bit ver of x264 ?

Taurus
14th May 2010, 07:08
@kartman_canada:
You did not tell us how and what you installed.

1.: everything in 32bit or 64bit?
This means Aviynth, FFDShow, Megui, Haali in 64 or 32bit.
Stick with the 32bit programs to get started and dont mix both.

2.: did you use the preferred filter tweaker tool to make sure ffdshow is used in a directshow environment?
Plain Win7 is using its new media foundation codecs as compared to the older directshow codecs used in XP or even Vista.

3.: Which version of the Haali Splitter did you install?

4.: Try to install MeGui outside of the protected program files folder.

All this tips have been discussed a many times and a little search should have shown you the right direction

There should be a sticky for all the poor Win7 64bit switchers...

vickynash
25th May 2010, 18:48
hey guys whn i am tryin to add a VOB file in the avisynth i am gettin this error , can anyone help me plzzzzzzzzz
http://yfrog.com/87sdfvj

Buggle
25th May 2010, 20:32
hey guys whn i am tryin to add a VOB file in the avisynth i am gettin this error , can anyone help me plzzzzzzzzz
http://yfrog.com/87sdfvj
That's because you first need to index that file using DGIndex (look under "Tools" in MeGUIs main window). You can load the resulting project file (*.d2v , this is only the video part) in the script creator. DGIndex will also demux the AC3 file(s) for you which you can transcode if you like.

Edit: I looked at the picture you attached, it actually says in the error what you need to do.

Lyle_JP
2nd June 2010, 01:40
Nevermind. I found the problem. PEBKAC.

adrianmak
2nd June 2010, 07:52
any plan to support VP8 encoding ?

Lighto
4th June 2010, 07:44
Is there some way to write a avisnyth template so that MeGUI uses DirectShowSource all the time?
My output turns out weird when AVISource is used in the script and I don't like the idea of manually editing the script every time I encode.

Inspector.Gadget
4th June 2010, 15:38
The developers (back when it was primarily Kurtnoise & co) decided against doing that because of some problems specific to DirectShowSource(). What do you mean by "weird"? Perhaps it's a common problem with a known solution. As a general rule, decoding using ffdshow's VFW interface through AVISource() should work pretty well except with certain incorrectly written (?) packed bitstream MPEG-4 ASP AVIs.

Lighto
6th June 2010, 15:13
The developers (back when it was primarily Kurtnoise & co) decided against doing that because of some problems specific to DirectShowSource(). What do you mean by "weird"? Perhaps it's a common problem with a known solution. As a general rule, decoding using ffdshow's VFW interface through AVISource() should work pretty well except with certain incorrectly written (?) packed bitstream MPEG-4 ASP AVIs.

By weird I meant this.

Before resize:
http://i49.tinypic.com/2e6g4dc.png

After resize :
http://i45.tinypic.com/zxwjo.png

Inspector.Gadget
6th June 2010, 17:18
Whatever decoder you're using through VFW (AviSource) for that format is broken. Use ffdshow instead and disable all effects in the VFW decoder config (you must explicitly select "VFW decoder" during ffdshow installation to enable it).

[ReX]
6th June 2010, 23:27
By weird I meant this.

Before resize:
http://i49.tinypic.com/2e6g4dc.png

After resize :
http://i45.tinypic.com/zxwjo.png

I came across the same problem today with a video file and was about to ask here, then I saw Inspector.Gadget's post and did what he told you to do.

I changed video decoder for XviD (which is the file codec), DivX 4/5/6 and Other MPEG4 (just in case) from libavcodec to Xvid on ffdshow options and it solved the problem, hope it works for you.

Lighto
7th June 2010, 02:56
Whatever decoder you're using through VFW (AviSource) for that format is broken. Use ffdshow instead and disable all effects in the VFW decoder config (you must explicitly select "VFW decoder" during ffdshow installation to enable it).

Thanks for the help but how do I go about disabling all effects in the VFW decoder config?
I have K-Lite Mega Codec pack installed and when I got to the VFW interface window, there are tab, encoder and decoder.

;1406094']I came across the same problem today with a video file and was about to ask here, then I saw Inspector.Gadget's post and did what he told you to do.

I changed video decoder for XviD (which is the file codec), DivX 4/5/6 and Other MPEG4 (just in case) from libavcodec to Xvid on ffdshow options and it solved the problem, hope it works for you.

Did you do the settings on 'ffdshow decoder' or 'ffdshow VFW interface'?

Inspector.Gadget
7th June 2010, 03:24
You only need to work with VFW for AviSource(). In fact, you can safely uninstall any and all codec packs and do just fine with Haali + ffdshow tryouts plus your favorite DShow front-end. Basically you need to go to the VFW decoder tab and disable all functions such as Crop, Resize, Aspect, Deinterlacing, Picture Properties....everything with a checkbox in that left-hand column needs to be cleared. It should be safe to leave everything at the default in Output and Decoder options ... the relevant thing is to make sure that in addition to having the transform filters disabled you have the VFW decoder set to decode whatever codec was used to compress your source. If, as [ReX] says, there's a libavcodec bug for MPEG-4 ASP, then if your source is DivX, etc. make sure to set XviD as the decoder.

Lighto
7th June 2010, 12:06
You only need to work with VFW for AviSource(). In fact, you can safely uninstall any and all codec packs and do just fine with Haali + ffdshow tryouts plus your favorite DShow front-end. Basically you need to go to the VFW decoder tab and disable all functions such as Crop, Resize, Aspect, Deinterlacing, Picture Properties....everything with a checkbox in that left-hand column needs to be cleared. It should be safe to leave everything at the default in Output and Decoder options ... the relevant thing is to make sure that in addition to having the transform filters disabled you have the VFW decoder set to decode whatever codec was used to compress your source. If, as [ReX] says, there's a libavcodec bug for MPEG-4 ASP, then if your source is DivX, etc. make sure to set XviD as the decoder.

Still having problems after setting the VFW.....
I will try uninstalling the codec pack sometime later....
Can I assume Haali + ffdshow + quicktime + real alternative installed in my PC will allow MeGUI to re-encode avi, flv, mp4, mkv, and rmvb files?

Edit: Could get it to work, probably a bad .avi...

Edit2: MeGUI is working perfectly on my XP which I dual boot with the same avi file!!!

movq
10th June 2010, 12:49
I use windows 2008 server,64 bit OS.
megui doesnt work after installed,megui ver. megui-0.3.3

LigH
10th June 2010, 13:06
doesnt work
is a pretty useless statement, as there are so many different ways how an application may "not work". More details please.

If there are any error messages, post them as exact as possible (many error message dialogs allow a Ctrl+C to grab their text, so you can paste it with Ctrl+V).

If there are no error messages at all, thell us that fact as well.

Watch the "Processes" area of your task manager while trying to start it.

Ensure that your system meets all minimum requirements (e.g. having .NET installed in a version required by MeGUI).

JK1974
12th June 2010, 00:17
I am trying to get MeGUI (downloaded and updated today) working with the following setup: The video (1920x1080i50) is being frameserved with the Debugmode frameserver from Sony Vegas 9.0e to VirtualDub. VirtualDub is being used for deshaking the video with the Deshaker plugin. The result is frameserved again, this time from VirtualDub, and should be reencoded with MeGUI again to AVCHD. The AVISynth script for wrapping the VirtualDub .vdr file is of course quite basic:
AVISource("C:\Users\jk\Desktop\temp.vdr", audio=true)
ConvertToYV12()


Unfortunately, I canīt get the encoding to work with MeGUI correctly. Opening the AVS file with VirtualDub gives no error, I also get no error and see the preview windows correctly when setting the AVS file als input file for video in MeGUI.
However, using e.g. the x264 AVCHD - 2pass profile as well as Aften AC-3 for audio gives the following error:
[Error] Log
-[Information] Versions
--[NoImage] MeGUI Version : 0.3.4.0
--[NoImage] OS : Windows Seven Ultimate Edition x86 (6.1.0.7600)
--[NoImage] Latest .Net Framework installed : 3.5 SP1 (3.5.30729.4926)
--[NoImage] Avisynth Version : 2.5.8.5
-[Information] AutoEncode job generation log
--[NoImage] Split Size : null
--[Information] Eliminating duplicate filenames
---[NoImage] Video output file: C:\Users\jk\Desktop\temp.264
---[NoImage] Muxed output file: C:\Users\jk\Desktop\temp-muxed.mkv
---[NoImage] Encodable audio stream 0: C:\Users\jk\Desktop\temp.ac3
-[Error] Log for job5 (audio, temp.vdr -> temp.ac3)
--[Information] [12.06.2010 00:59:00] Started handling job
--[Information] [12.06.2010 00:59:00] Preprocessing
--[NoImage] Avisynth script: return last
--[NoImage] Commandline used: -readtoeof 1 -b 256 - "{0}"
--[Information] [12.06.2010 00:59:00] Encoding started
--[Information] [12.06.2010 00:59:00] Encode thread started
--[Information] [12.06.2010 00:59:00] Avisynth script environment opened
--[Error] An error occurred
---[NoImage] Exception message: The script's return was not a video clip.
---[NoImage] Stacktrace
----[NoImage] bei MeGUI.AviSynthClip..ctor(String func, String arg, AviSynthColorspace forceColorspace, AviSynthScriptEnvironment env)
----[NoImage] at MeGUI.AviSynthAudioEncoder.encode()
---[NoImage] Inner exception: null
--[Information] [12.06.2010 00:59:00] Job completed


However, removing the audio encoding cue entry starts the first pass video encoding without any error message.
When starting the second video encoding pass, I once again get an error message, that no video can be found. Resetting the status of this cue entry from "error" to "waiting" and starting it manually, it works again - at least until 99% when the final file already has been generated. Then again, I get an error message about missing video data.

It looks to me as if there is some kind of timeout problem - that the data is not being frameserved in time for MeGUI.
Any ideas or workarounds to get this long videoserver cue working (without the need of generating an intermediate file)? Using Premiere CS4 instead of Vegas is a no-go as the renderer/frameserving is awful slow.

Thanks a lot in advance!

Inspector.Gadget
12th June 2010, 02:48
JK1974, can you export from Vegas as WAV and then feed that through MeGUI to Aften? I assume your DeShaker work doesn't alter the length or starting sync of the audio.

JK1974
12th June 2010, 09:52
This indeed might work, however, there is still the problem that the automatic 2-pass video encoding does not work - maybe because of the same reason. BTW: The AVS Script Creator also does not work with the same error report.
For me, it seems to be a problem with the source detector. Starting one of the encoding passes manually, there seems to be a break of around 8 seconds until the encoding progress in being displayed - maybe this takes too long when reloading the AVS file.
Furthermore, there is always a little break when playing back the AVS with a second VirtualDub on frames 50, 100 etc. - maybe also something that makes problems to the source detector.

Lighto
19th June 2010, 19:11
I am having troubles getting audio delay to work in MP4 Muxer of MeGUI, there isn't any delay in the audio even when I set it to 1000 or 3000 ms.
The only way I got it to work so far is to re-encode everything...

Any idea what's wrong?:thanks:

Lyle_JP
19th June 2010, 20:16
I am having troubles getting audio delay to work in MP4 Muxer of MeGUI, there isn't any delay in the audio even when I set it to 1000 or 3000 ms.
The only way I got it to work so far is to re-encode everything...

Any idea what's wrong?:thanks:

When you set delay in the muxer, you are just assigning a delay value to the audio in the file's header, which stand-alone and software players may or may not respect or ignore. The best place to compensate for delay is when you transcode the audio file to aac. When you fix it there, you know it's fixed.

Lighto
20th June 2010, 05:58
When you set delay in the muxer, you are just assigning a delay value to the audio in the file's header, which stand-alone and software players may or may not respect or ignore. The best place to compensate for delay is when you transcode the audio file to aac. When you fix it there, you know it's fixed.

Thanks for the clarification mate.:)

Beak
23rd June 2010, 01:08
Hello. I just updated to the latest stable build, I used the same two pass AVCHD profile nI always use and got the following error


[Error] Log
-[Information] Versions
--[NoImage] MeGUI Version : 0.3.5.0
--[NoImage] OS : Windows Seven x64 (6.1.0.7600)
--[NoImage] Latest .Net Framework installed : 3.5 SP1 (3.5.30729.4926)
--[NoImage] Avisynth Version : 2.5.8.5
-[Information] Log for job1 (audio, 00002.track_4352.dts -> Cut Audio.ac3)
--[Information] [6/22/2010 7:45:32 PM] Started handling job
--[Information] [6/22/2010 7:45:32 PM] Preprocessing
--[NoImage] Avisynth script
---[NoImage] LoadPlugin("C:\Program Files (x86)\MeGUI\tools\avisynth_plugin\NicAudio.dll")
---[NoImage] NicDtsSource("C:\Users\Brendan\Videos\The Boondock Saints\00002.track_4352.dts")
---[NoImage] SSRC(48000)
---[NoImage] return last
--[NoImage] Commandline used: -readtoeof 1 -b 640 - "{0}"
--[Information] [6/22/2010 7:45:32 PM] Encoding started
--[Information] [6/22/2010 7:45:32 PM] Encode thread started
--[Information] [6/22/2010 7:45:32 PM] Avisynth script environment opened
--[Information] [6/22/2010 7:45:32 PM] Script loaded
--[Information] Output Decoder
---[NoImage] Channels: 6
---[NoImage] Bits per sample: 32
---[NoImage] Sample rate: 48000
--[NoImage] Commandline: C:\Program Files (x86)\MeGUI\tools\aften\aften.exe -readtoeof 1 -b 640 - "C:\Users\Brendan\Videos\The Boondock Saints\Cut Audio.ac3"
--[Information] [6/22/2010 7:45:32 PM] Encoder process started
--[NoImage] Output from encoder via stderr
---[NoImage] Aften: A/52 audio encoder
---[NoImage] Version SVN
---[NoImage] (c) 2006-2007 Justin Ruggles, Prakash Punnoor, et al.
---[NoImage] input format: Microsoft WAVE Floating-point 32-bit little-endian 48000 Hz 5.1-channel
---[NoImage] output format: 48000 Hz 3/2 + LFE
---[NoImage] SIMD usage: MMX SSE SSE2 SSE3
---[NoImage] Threads: 8
---[NoImage] progress: 100% | q: 332.6 | bw: 58.0 | bitrate: 640.0 kbps
--[Information] [6/22/2010 7:48:11 PM] Postprocessing
---[Information] Deleting intermediate files
--[Information] [6/22/2010 7:48:11 PM] Job completed
-[Error] Log for job2 (video, 00002.avs -> )
--[Information] [6/22/2010 7:48:11 PM] Started handling job
--[Information] [6/22/2010 7:48:11 PM] Preprocessing
--[NoImage] Job commandline: "C:\Program Files (x86)\MeGUI\tools\x264\vfw4x264.exe" --tune film --pass 1 --bitrate 9315 --stats "C:\Users\Brendan\Videos\The Boondock Saints\00002.stats" --profile high --level 4.1 --bframes 3 --ref 4 --slices 4 --aud --nal-hrd --b-pyramid strict --keyint 24 --min-keyint 2 --vbv-maxrate 14000 --vbv-bufsize 14500 --sar 1:1 --output NUL "C:\Users\Brendan\Videos\The Boondock Saints\00002.avs"
--[Information] [6/22/2010 7:48:12 PM] Encoding started
--[Error] An error occurred: x264 [error]: invalid argument: nal-hrd = --b-pyramid
--[NoImage] Standard output stream
--[NoImage] Standard error stream
--[Warning] Deleting aborted output
---[NoImage] Delete aborted ouptut set: True
---[NoImage] File to delete
---[Warning] Error deleting file
----[NoImage] Exception message: The path is not of a legal form.
----[NoImage] Stacktrace
-----[NoImage] at System.IO.Path.NormalizePathFast(String path, Boolean fullCheck)
-----[NoImage] at System.IO.Path.NormalizePath(String path, Boolean fullCheck)
-----[NoImage] at System.IO.Path.GetFullPathInternal(String path)
-----[NoImage] at System.IO.File.Delete(String path)
-----[NoImage] at MeGUI.core.gui.JobWorker.markJobAborted()
----[NoImage] Inner exception: null
--[Information] [6/22/2010 7:58:21 PM] Job completed
--[Information] [6/22/2010 7:58:21 PM] Current job was aborted

Can anyone tell me the problem and how to correct it?
Thanks in advance for any help.

Zathor
23rd June 2010, 06:01
Replace --nal-hrd with --nal-hrd vbr

Lighto
23rd June 2010, 06:39
After updating to 0.3.5.0, when I open a .mkv through

File > Open

a "Please choose your weapon" popup appears instead of a AviSynth Script Creator window which would appear in the past.

Is this suppose to happen after the update?

Beak
23rd June 2010, 12:29
Replace --nal-hrd with --nal-hrd vbr

Thanks!

pelle412
23rd June 2010, 17:03
I've used MeGUI for years (currently 0.3.5.0) and about 25% of the time when a job tries to mux SRT subtitles into a MKV output file I get this dialog box that says:

Error parsing idx file
<name of file>
Input string was not in a correct format

This stops the job queue until I click OK in this dialog box, after which it muxes the output just fine. My question is, is there something in a SRT file (created by Subrip) that causes this error so that I can try and avoid it?

invy
23rd June 2010, 23:57
why does it seem that megui encoding of x264 is constantly getting slower and slower. last week i was able to encode at around 200 FPS. now this week using the same profile i can only encode at 70-80 FPS.

whats with the constant change of profiles? it's annoying.

Zathor
24th June 2010, 06:08
why does it seem that megui encoding of x264 is constantly getting slower and slower. last week i was able to encode at around 200 FPS. now this week using the same profile i can only encode at 70-80 FPS.

There are at least two things to check if the encoding is slow:
- the build of x264 which MeGUI is using could be not optimized for your CPU. You can find and try different builds here:
http://forum.doom9.org/showthread.php?t=130364
But I believe that such a big drop in speed is not related to it.
- the parameters passed to x264 have changed as have the profiles. To verify if the problem is located in these changes I need the parameters passed to x264 before and after the change. You can find these information in the log file (megui\log). It looks for example like:
--[NoImage] Job commandline: "D:\MeGUI\tools\x264\x264.exe" --crf 16.0 --sar 1:1 --output "E:\TEMP\video.mkv" "E:\TEMP\video.avs"

Have you tried to switch to a faster preset in the x264 config menu?

whats with the constant change of profiles? it's annoying.
You can follow the profile discussion and take part here:
http://forum.doom9.org/showthread.php?t=154334

If it's annoying for you just do what the default is - discard the importation of new profiles and just use your own profiles.

chipzoller
24th June 2010, 17:37
I'm having a problem with mkv output display values and have asked in the mkvtoolnix thread. Since this seems like something gone wrong with my megui installation, can anyone point me in the right direction to fix this?

http://forum.doom9.org/showthread.php?p=1411677#post1411677


EDIT: Problem solved. Not a MeGUI problem.

drob
24th June 2010, 19:02
When encoding for a NMT, should i use the Bluray/AVCHD preset, or unrestricted?

Lighto
28th June 2010, 12:00
After updating to 0.3.5.0, when I open a .mkv through

File > Open

a "Please choose your weapon" popup appears instead of a AviSynth Script Creator window which would appear in the past.

Is this suppose to happen after the update?

Still looking for answers, suggestions are welcome.:)

I also noticed that there is a new non-installer package on sourgeforge, I downloaded it and found new profile updates for various components of MeGUI which could not be found in the updates of my MeGUI installed using the 0.3.3 installer.

My question is why isn't my installed MeGUI unable to detect the profile updates?
Also, is it safe to assume I can stick to installer or non-installer version of MeGUI based on personal preference as they are essentially the same?
:thanks:

Zathor
28th June 2010, 12:11
Still looking for answers, suggestions are welcome.:)
Suggestion: Index the mkv with the file indexer and open this with the Script Creator.
And open a bug report at the SourceForge page so that the developer will have a look at it. :)

I also noticed that there is a new non-installer package on sourgeforge, I downloaded it and found new profile updates for various components of MeGUI which could not be found in the updates of my MeGUI installed using the 0.3.3 installer. My question is why isn't my installed MeGUI unable to detect the profiles update?
There are the same profiles available. You can force the download again in the update window (right click on the profiles).

Also, is it safe to assume I can stick to installer or non-installer version of MeGUI based on personal preference as they are essentially the same?
:thanks:
Yes. There will be a new installer for 0.3.5 soon.

Lighto
28th June 2010, 12:28
@Zathor : Thanks for the suggestion, made a report on sourgeforge.

-2/7/10 Edit:
Informed that the choose your weapon window is a new feature of MeGUI.
However, when indexing a .mkv, DGAVCIndex freeze on windows 7 and crash on windows xp.
FFMSIndex works fine though, however the user will need to manually select the audio for muxing before doing auto encode.

Any ideas on why DGAVCIndex is not working for me or suggestions on how to fix the issue?
:thanks:

rica
4th July 2010, 22:34
guys i'm locked.

Please help me to create an avs script for this graph; what i wanna do is to reencode just audio on MeGui:

here is the source graph:

http://www.freeimagehosting.net/uploads/a4a85927c9.png (http://www.freeimagehosting.net/)

drob
5th July 2010, 11:56
My source is 1080i 29.97fps from a BD nature video, MeGUI analysis identifies it as interlaced top field, if i force it to be run as if it was a telecined material, would i gain some space? how bad would be the smoothness of the motion?

Sharktooth
5th July 2010, 12:55
@Zathor : Thanks for the suggestion, made a report on sourgeforge.

-2/7/10 Edit:
Informed that the choose your weapon window is a new feature of MeGUI.
However, when indexing a .mkv, DGAVCIndex freeze on windows 7 and crash on windows xp.
FFMSIndex works fine though, however the user will need to manually select the audio for muxing before doing auto encode.

Any ideas on why DGAVCIndex is not working for me or suggestions on how to fix the issue?
:thanks:
DGAvcIndex is no longer updated unless neuron2 finds some time. if it crashes or causes problems then try with ffms2.
there is no workaround except getting a nvidia video card and dgnvtools for few bucks.

Sharktooth
5th July 2010, 12:57
My source is 1080i 29.97fps from a BD nature video, MeGUI analysis identifies it as interlaced top field, if i force it to be run as if it was a telecined material, would i gain some space? how bad would be the smoothness of the motion?
interlaced and telecine are 2 different things. have a google search and get documented about them. you cant deinterlace a telecined source and you cant inverse telecince an interlaced source.

Sharktooth
5th July 2010, 13:00
guys i'm locked.

Please help me to create an avs script for this graph; what i wanna do is to reencode just audio on MeGui:

here is the source graph:

http://www.freeimagehosting.net/uploads/a4a85927c9.png (http://www.freeimagehosting.net/)
rica the avs script is very simple:
DirectShowSource("complete path\filename.ext")
save it and give it a name.
once you did that, load it into the audio encoding part as source, chose a preset and an output folder/name and enqueue. then start you queue.
you may want to add the "video=false" option to directshowsource but it's not mandatory since you're just encoding audio...

quantum5uicid3
5th July 2010, 14:33
When encoding for a NMT, should i use the Bluray/AVCHD preset, or unrestricted?

i think just --level 4.1 is required

it may vary between devices though. bluray preset would prob be a safe bet and more universally compatible.

drob
5th July 2010, 19:05
@quantum5uicid3 thank you ill use bluray as a bases.

@Sharktooth I am aware of the deference, i just thought (mistakingly) that all 29.97 sources can be reduced to 23.976.

interlaced and telecine are 2 different things. have a google search and get documented about them. you cant deinterlace a telecined source and you cant inverse telecince an interlaced source.

Mitsosraf
5th July 2010, 21:28
Hi! how can i index and interlaced video?

rica
5th July 2010, 22:54
rica the avs script is very simple:
DirectShowSource("complete path\filename.ext")
.......you may want to add the "video=false" option to directshowsource but it's not mandatory since you're just encoding audio...

Thanks a lot shark.

But i got always error in encoding on megui unless selecting "video=false" option.
Here is my working script:

DirectShowSource("C:\users\rica\desktop\test\test_thd.grf",video=false)

FYI: Arcsoft decoder doesn't match with any encoder even i can use it with reclock renderer for playing reasons. (with arcsoft hack-TMT 3.0.1.180 filters on seven 64)
So my working graph's workflow was MPC-mpeg source > ffdshow audio decoder.
It's a pity i can not use arcsoft audio decoderHD for decoding DTS-HD on graph.(for re-encoding)

:thanks: again.

tebasuna51
6th July 2010, 00:46
...
Any ideas on why DGAVCIndex is not working for me or suggestions on how to fix the issue?
Try extract first the .h264 video from .mkv (with HD streams extractor - eac3to) and then open the .h264 with DGAVCIndex.

Sharktooth
6th July 2010, 14:32
Hi! how can i index and interlaced video?
The same way you index a non interlaced video

@rica: i dont know. i dont use arcsoft DS filters.

FBX
7th July 2010, 13:15
I'm currently having some issues with the muxing process in MeGUI. When I mux my mp4 video file with an mp4 AAC audio file, I'm getting mixed results depending on the player I use to view the final product. In WMP, the audio will not play for a few seconds and starts out of sync while the video is already rolling. On my PS3, the first ten seconds of video will be blank while the audio is rolling, then the video comes up ten seconds into the file and is in perfect sync with the audio. In VLC, both the audio and video start normally and are in perfect sync. Any ideas as to what is going wrong and why VLC manages to handle it while the other players don't?

Much appreciated for help on this!

Sharktooth
7th July 2010, 13:18
uhm... post your encoding logfile. maybe some encoding options may screw players that does not support them. also try to remux the streams in MKV and look if using the same players the behaviour is still the same.

FBX
7th July 2010, 13:50
uhm... post your encoding logfile.

Did you want my muxing log or also my encoding log of the separate files?

Here's the muxing log to start with:


[Information] Log
-[Information] Versions
--[NoImage] MeGUI Version : 0.3.5.0
--[NoImage] OS : Windows Vista Ultimate Edition x64 SP2 (6.0.131072.6002)
--[NoImage] Latest .Net Framework installed : 4.0 (4.0.30319)
--[NoImage] Avisynth Version : 2.5.8.2
-[Information] Log for job1 (mux, TF_S1_01.mp4 -> Final-muxed.mp4)
--[Information] [7/7/2010 7:43:45 AM] Started handling job
--[Information] [7/7/2010 7:43:45 AM] Preprocessing
--[NoImage] Job commandline: "C:\MeGUI\tools\mp4box\mp4box.exe" -add "C:\Users\Wolff\TF videos\TRANSFORMERS_S1_D1\TF_S1_01.mp4#trackID=1:fps=23.976" -add "C:\Users\Wolff\TF videos\TRANSFORMERS_S1_D1\TF_S1_01 T80 2_0ch 192Kbps DELAY 0ms.mp4#trackID=1" -tmp "C:\Users\Wolff\TF videos\TRANSFORMERS_S1_D1" -new "C:\Users\Wolff\TF videos\TRANSFORMERS_S1_D1\Final-muxed.mp4"
--[Information] [7/7/2010 7:43:45 AM] Muxing started
--[NoImage] Standard output stream
---[NoImage] IsoMedia import - track ID 1 - Video (size 720 x 540)
---[NoImage] IsoMedia import - track ID 1 - Audio (SR 48000 - 2 channels)
---[NoImage] Saving C:\Users\Wolff\TF videos\TRANSFORMERS_S1_D1\Final-muxed.mp4: 0.500 secs Interleaving
--[NoImage] Standard error stream
--[Information] [7/7/2010 7:44:01 AM] Postprocessing
---[Information] Deleting intermediate files
--[Information] [7/7/2010 7:44:01 AM] Job completed

Sharktooth
7th July 2010, 13:56
i meant the encoding log coz a new x264 option (open-gop) may not be supported by all players.
However from the log i see you're using the stable version of MeGUI, so the x264 version that comes with it is not so up to date... however your encoding log may be useful

FBX
7th July 2010, 14:01
Yeah, just tried muxing into MKV and that file didn't even work at all in WMP.

Here's the logfile of the video encode:

[Information] Log
-[Information] Versions
--[NoImage] MeGUI Version : 0.3.5.0
--[NoImage] OS : Windows Vista Ultimate Edition x64 SP2 (6.0.131072.6002)
--[NoImage] Latest .Net Framework installed : 4.0 (4.0.30319)
--[NoImage] Avisynth Version : 2.5.8.2
-[Information] Log for job1 (video, TF_S1_01.avs -> TF_S1_01.mp4)
--[Information] [7/7/2010 6:56:47 AM] Started handling job
--[Information] [7/7/2010 6:56:47 AM] Preprocessing
--[NoImage] Job commandline: "C:\MeGUI\tools\x264\vfw4x264.exe" --preset slower --crf 16.0 --level 4.2 --vbv-bufsize 31250 --vbv-maxrate 31250 --aud --sar 1:1 --output "C:\Users\Wolff\TF videos\TRANSFORMERS_S1_D1\episode 01\TF_S1_01.mp4" "C:\Users\Wolff\TF videos\TRANSFORMERS_S1_D1\episode 01\TF_S1_01.avs"
--[Information] [7/7/2010 6:56:47 AM] Encoding started
--[NoImage] Standard output stream:
--[NoImage] Standard error stream
---[NoImage] yuv [info]: 720x540p 1:1 @ 24000/1001 fps (cfr)
---[NoImage] x264 [info]: using SAR=1/1
---[NoImage] x264 [info]: using cpu capabilities: MMX2 SSE2Fast SSSE3 Cache64
---[NoImage] x264 [info]: profile High, level 4.2
---[NoImage]
---[NoImage] x264 [info]: frame I:388 Avg QP:13.07 size: 65876
---[NoImage] x264 [info]: frame P:11089 Avg QP:15.88 size: 20566
---[NoImage] x264 [info]: frame B:21472 Avg QP:18.54 size: 5381
---[NoImage] x264 [info]: consecutive B-frames: 6.7% 8.6% 22.3% 62.4%
---[NoImage] x264 [info]: mb I I16..4: 7.8% 56.2% 36.0%
---[NoImage] x264 [info]: mb P I16..4: 2.7% 10.0% 3.2% P16..4: 44.4% 22.1% 7.4% 0.6% 0.5% skip: 9.0%
---[NoImage] x264 [info]: mb B I16..4: 0.5% 1.2% 0.4% B16..8: 42.0% 10.1% 2.4% direct: 5.7% skip:37.8% L0:44.0% L1:46.6% BI: 9.4%
---[NoImage] x264 [info]: 8x8 transform intra:61.0% inter:43.7%
---[NoImage] x264 [info]: direct mvs spatial:100.0% temporal:0.0%
---[NoImage] x264 [info]: coded y,uvDC,uvAC intra: 68.7% 83.1% 63.1% inter: 22.4% 32.1% 6.7%
---[NoImage] x264 [info]: i16 v,h,dc,p: 43% 19% 11% 26%
---[NoImage] x264 [info]: i8 v,h,dc,ddl,ddr,vr,hd,vl,hu: 15% 15% 23% 6% 7% 7% 8% 8% 11%
---[NoImage] x264 [info]: i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 18% 15% 10% 7% 10% 10% 10% 9% 10%
---[NoImage] x264 [info]: i8c dc,h,v,p: 41% 26% 22% 12%
---[NoImage] x264 [info]: Weighted P-Frames: Y:5.8%
---[NoImage] x264 [info]: ref P L0: 65.8% 9.2% 14.0% 3.5% 2.3% 1.9% 1.6% 1.3% 0.4% 0.0%
---[NoImage] x264 [info]: ref B L0: 82.2% 11.1% 3.4% 1.2% 0.8% 0.7% 0.5%
---[NoImage] x264 [info]: ref B L1: 93.9% 6.1%
---[NoImage] x264 [info]: kb/s:2148.96
---[NoImage] encoded 32949 frames, 15.09 fps, 2148.96 kb/s
--[Information] Final statistics
---[NoImage] Constant Quality Mode: Quality 16 computed...
---[NoImage] Video Bitrate Obtained (approximate): 2151 kbit/s
--[Information] [7/7/2010 7:33:11 AM] Postprocessing
---[Information] Deleting intermediate files
--[Information] [7/7/2010 7:33:11 AM] Job completed

Sharktooth
7th July 2010, 14:07
install the latest haali media splitter and see if it fixes the MKV/MP4 issue in WMP.
consider using MPC-HC as your default player, coz WMP... well... sux ;)
however i dont see any special options used (except --aud that is required for the PS3).
try updating to the development version of MeGUI. But, be warned all the x264 presets will be lost and replaced with default ones.

FBX
7th July 2010, 14:26
The main thing is PS3 compatibility as my goal is to archive my restoration projects on blu-ray for PS3 media playback. I personally couldn't care less about WMP since I prefer using VLC anyway. I'll try updating MeGUI as you suggest. Thanks for your help!

maohsama
7th July 2010, 14:31
I've been using megui to encode anime episodes into mp4 for my psp, but since the last update, not a single encoded video has worked on my psp.
i get different errors depending on the source:
a) playing with mpc, at the beginning it's out of sync for a few seconds, because the audio is missing in these few seconds, so the video gets fastforwarded. but then it plays normally with audio in proper sync.
b) the video won't start, so i have to press stop and play button in order to get the it start playing, then i have the same problem as above, but plays fine afterwards as well.
c) the first half of the video is cut, so the video starts playing on the second half, but the audio is at normal length.
in all these cases my psp refuses to play the video. i have installed megui, avisynth and cccp for encoding. i always use the psp preset for the video and nero (LC-AAC) for audio. i have tried to change a few options, but always get the same results.
is there any way to downgrade megui?

Sharktooth
7th July 2010, 15:04
first: what version are you using NOW?
second: what was your previous WORKING version?

FBX
7th July 2010, 15:42
Glad to see it wasn't just me experiencing the same issues! The "a)" maohsama listed is EXACTLY what happens to my muxed mp4 files in WMP (well except my audio starts up out of sync there).

Anyway, just an update in that I found that the "quality number" in the PS3 preset options seems to have an effect on whether or not the video will start properly on my PS3. Before I had tried 16, but this time I tried 15 and the video now starts properly when I try it on my PS3.

Sharktooth
7th July 2010, 15:45
what is the "quality number"? is it something on the PS3?
also maohsama problem is probably due to a wrong preset. i've just updated them in the Dev version of MeGUI.

maohsama
7th July 2010, 18:12
i've updated haali media splitter and now the playback errors are gone on media player classic.
but still my psp won't play the file :(
I'm using the latest version 0.3.5.0 atm. preset is "x.264: device-psp".
on the previous version, I had about 80& success that it worked on the psp, depending on the source.


what is the "quality number"? is it something on the PS3?
also maohsama problem is probably due to a wrong preset. i've just updated them in the Dev version of MeGUI.

how do i get the new preset? or can you post it plz?

MNCvn
7th July 2010, 19:20
I've been using megui to encode anime episodes into mp4 for my psp, but since the last update, not a single encoded video has worked on my psp.
i get different errors depending on the source:
a) playing with mpc, at the beginning it's out of sync for a few seconds, because the audio is missing in these few seconds, so the video gets fastforwarded. but then it plays normally with audio in proper sync.
b) the video won't start, so i have to press stop and play button in order to get the it start playing, then i have the same problem as above, but plays fine afterwards as well.
c) the first half of the video is cut, so the video starts playing on the second half, but the audio is at normal length.
in all these cases my psp refuses to play the video. i have installed megui, avisynth and cccp for encoding. i always use the psp preset for the video and nero (LC-AAC) for audio. i have tried to change a few options, but always get the same results.
is there any way to downgrade megui?

Hi....

I'm not sure about anything else, but with PSP, you can read this thread. I have the same problem as your with new meGUI profile and according to the help i solved it.

PSP thread (http://forum.doom9.org/showthread.php?p=1413502#post1413502)

I hope it helpful.
MNCvn.

FBX
7th July 2010, 19:41
Ok, I've done some more testing with my video files and I think I've figured out the issue as far as the PS3 is concerned. It turns out it wasn't the quality number within the encoding process, but rather that my source file was a previously encoded and compressed H.264 video. I made a new source file that was lossless and tried that instead. This did the trick for allowing the video to start properly on the PS3 when I encoded with MeGUI. I can only conclude that somehow double-encoding a video file causes an initial loss of frame-timing during the first few seconds of footage. That's the best that I can figure out anyway. WMP still plays the file incorrectly though, so I'm still not sure what's going on there. I may try using a different lossless format for my source file like uncompressed AVI and seeing how that turns out.

maohsama
7th July 2010, 21:23
Hi....

I'm not sure about anything else, but with PSP, you can read this thread. I have the same problem as your with new meGUI profile and according to the help i solved it.

PSP thread (http://forum.doom9.org/showthread.php?p=1413502#post1413502)

I hope it helpful.
MNCvn.

yes that's it. now it works again! thanks :)

FBX
7th July 2010, 23:40
Hi....

I'm not sure about anything else, but with PSP, you can read this thread. I have the same problem as your with new meGUI profile and according to the help i solved it.

PSP thread (http://forum.doom9.org/showthread.php?p=1413502#post1413502)

I hope it helpful.
MNCvn.

On a hunch I tried the same fix of disabling b-pyramid in the PS3 profile and that FINALLY fixed the sped-up video problem when played in WMP. The sound, however, still plays out of sync as it takes about 5 seconds to kick in.

I did some research and found out indeed the PS3 (just like the PSP) CANNOT handle b-pyramid, so whoever developed these presets really dropped the ball and gave some of us severe headaches trying to troubleshoot these strange problems.

CodecUnknown
8th July 2010, 00:12
I'm having a problem where I can't change the psy-rd value no matter what it's set on.
" --subme 8 --trellis 1 --psy-rd 0,60:0 " that's what it's set on when I start the encode, however the final encode always seems to give "subme=8 / psy=1 / psy_rd=0.00:10.00 / ".
I tried --trellis 2 and setting the psy-rd on random values but no matter what it still goes to psy_rd=0.00:10.00 on the final encode.

~

Also this might be or might not be related but MeGUI can't seem to recognize the DAR.
When I input a 16/9 video file it gives me an error saying " MeGUI encountered an error, Value of '23980,8153477218' is not valid for 'Value'. 'Value' should be between 'Minimum' and 'Maximum'. Value should be between minimum and maximum."
The DAR gets set to ITU 16/9 PAL automatically and gives me errors with the AVS script. I have to set it to 16/9 manually to fix that error.
Not only does it not recognize the DAR it doesn't recognize the fps either, it's just set at "fps=0,001". When I want to save the AVS script it gives me an error saying "The argument fps was passed more than once",so before I can save the script I have to remove "fps=0,001" manually, which can't be right.
This is what the log says

-[Error] Unhandled error
--[NoImage] Exception message
---[NoImage] Value of '23980,8153477218' is not valid for 'Value'. 'Value' should be between 'Minimum' and 'Maximum'.
---[NoImage] Parameter name: Value
--[NoImage] Stacktrace
---[NoImage] at System.Windows.Forms.NumericUpDown.set_Value(Decimal value)
---[NoImage] at MeGUI.AviSynthWindow.openVideo(String videoInput, String textBoxName, Boolean inlineAvs)
---[NoImage] at MeGUI.AviSynthWindow.openDirectShow(String fileName)
---[NoImage] at MeGUI.AviSynthWindow.openVideoSource(String videoInput)
---[NoImage] at MeGUI.AviSynthWindow.input_FileSelected(FileBar sender, FileBarEventArgs args)
---[NoImage] at MeGUI.FileBar.triggerEvent()
---[NoImage] at MeGUI.FileBar.setFilename(String filename)
---[NoImage] at MeGUI.FileBar.openButton_Click(Object sender, EventArgs e)
---[NoImage] at System.Windows.Forms.Control.OnClick(EventArgs e)
---[NoImage] at System.Windows.Forms.Button.OnClick(EventArgs e)
---[NoImage] at System.Windows.Forms.Button.OnMouseUp(MouseEventArgs mevent)
---[NoImage] at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
---[NoImage] at System.Windows.Forms.Control.WndProc(Message& m)
---[NoImage] at System.Windows.Forms.ButtonBase.WndProc(Message& m)
---[NoImage] at System.Windows.Forms.Button.WndProc(Message& m)
---[NoImage] at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
---[NoImage] at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
---[NoImage] at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
--[NoImage] Inner exception: null

Inspector.Gadget
8th July 2010, 00:43
I did some research and found out indeed the PS3 (just like the PSP) CANNOT handle b-pyramid, so whoever developed these presets really dropped the ball and gave some of us severe headaches trying to troubleshoot these strange problems.

No. The Blu-ray spec mandates a particular form of b-pyramid invoked by --b-pyramid strict. The PS3 can certainly handle B-pyramid. That also has nothing to do with WMP; chances are there you're using a broken decoder.

FBX
8th July 2010, 00:45
Just an update in that I further tweaked the PS3 preset by completely disabling B frames and this fixed the final problem of the sound starting out of sync in WMP. The video file now plays properly in all three media formats: VLC, WMP, and PS3.

So once again that's with completely disabling B-Frames setting the number of B-Frames to ZERO.

FBX
8th July 2010, 00:48
No. The Blu-ray spec mandates a particular form of b-pyramid invoked by --b-pyramid strict. The PS3 can certainly handle B-pyramid. That also has nothing to do with WMP; chances are there you're using a broken decoder.

I'm of course referring to the PS3 media player, NOT the actual Blu-Ray specification that it handles independently of the media player. As for the subject of B-pyramid, I can give the link of the article I read stating it must be turned off for PS3 media playback:

http://www.digital-digest.com/articles/PS3_H.264_Conversion_Guide_page4.html

Inspector.Gadget
8th July 2010, 01:19
That guide appears to have been written before the strict pyramid was an available option in x264, so I'm not sure it's reliable.

Lyle_JP
8th July 2010, 03:09
Also, I use b-pyramid all the time, the loose format, in my encodings,- and they all play flawlessly on my PS3. Of course, I play everything from a USB HD. I don't know why that would be different than streaming; the same h.264 decoder should be in use.

Sharktooth
8th July 2010, 03:09
On a hunch I tried the same fix of disabling b-pyramid in the PS3 profile and that FINALLY fixed the sped-up video problem when played in WMP. The sound, however, still plays out of sync as it takes about 5 seconds to kick in.

I did some research and found out indeed the PS3 (just like the PSP) CANNOT handle b-pyramid, so whoever developed these presets really dropped the ball and gave some of us severe headaches trying to troubleshoot these strange problems.
That's the reason im updating the presets in the Development build (actually 0.3.5.2).

@maohsama: the new presets are included in the development build of megui and they're not compatible with the stable build.

Sharktooth
8th July 2010, 03:10
I'm having a problem where I can't change the psy-rd value no matter what it's set on.
" --subme 8 --trellis 1 --psy-rd 0,60:0 " that's what it's set on when I start the encode, however the final encode always seems to give "subme=8 / psy=1 / psy_rd=0.00:10.00 / ".
I tried --trellis 2 and setting the psy-rd on random values but no matter what it still goes to psy_rd=0.00:10.00 on the final encode.

~

Also this might be or might not be related but MeGUI can't seem to recognize the DAR.
When I input a 16/9 video file it gives me an error saying " MeGUI encountered an error, Value of '23980,8153477218' is not valid for 'Value'. 'Value' should be between 'Minimum' and 'Maximum'. Value should be between minimum and maximum."
The DAR gets set to ITU 16/9 PAL automatically and gives me errors with the AVS script. I have to set it to 16/9 manually to fix that error.
Not only does it not recognize the DAR it doesn't recognize the fps either, it's just set at "fps=0,001". When I want to save the AVS script it gives me an error saying "The argument fps was passed more than once",so before I can save the script I have to remove "fps=0,001" manually, which can't be right.
This is what the log says

-[Error] Unhandled error
--[NoImage] Exception message
---[NoImage] Value of '23980,8153477218' is not valid for 'Value'. 'Value' should be between 'Minimum' and 'Maximum'.
---[NoImage] Parameter name: Value
--[NoImage] Stacktrace
---[NoImage] at System.Windows.Forms.NumericUpDown.set_Value(Decimal value)
---[NoImage] at MeGUI.AviSynthWindow.openVideo(String videoInput, String textBoxName, Boolean inlineAvs)
---[NoImage] at MeGUI.AviSynthWindow.openDirectShow(String fileName)
---[NoImage] at MeGUI.AviSynthWindow.openVideoSource(String videoInput)
---[NoImage] at MeGUI.AviSynthWindow.input_FileSelected(FileBar sender, FileBarEventArgs args)
---[NoImage] at MeGUI.FileBar.triggerEvent()
---[NoImage] at MeGUI.FileBar.setFilename(String filename)
---[NoImage] at MeGUI.FileBar.openButton_Click(Object sender, EventArgs e)
---[NoImage] at System.Windows.Forms.Control.OnClick(EventArgs e)
---[NoImage] at System.Windows.Forms.Button.OnClick(EventArgs e)
---[NoImage] at System.Windows.Forms.Button.OnMouseUp(MouseEventArgs mevent)
---[NoImage] at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
---[NoImage] at System.Windows.Forms.Control.WndProc(Message& m)
---[NoImage] at System.Windows.Forms.ButtonBase.WndProc(Message& m)
---[NoImage] at System.Windows.Forms.Button.WndProc(Message& m)
---[NoImage] at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
---[NoImage] at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
---[NoImage] at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
--[NoImage] Inner exception: null
Post your problematic avisynth script.
also post the commandline generated with the preset you're using (you can find it in the encoder config window).

nurbs
8th July 2010, 07:35
I'm of course referring to the PS3 media player, NOT the actual Blu-Ray specification that it handles independently of the media player. As for the subject of B-pyramid, I can give the link of the article I read stating it must be turned off for PS3 media playback:

http://www.digital-digest.com/articles/PS3_H.264_Conversion_Guide_page4.html

The guide is wrong. The PS3 handles --b-pyramid normal fine and it also doesn't have problems with p4x4.
The only consistent problem I had is that it won't play files encoded to .mp4 with x264 directly even if I mux them with audio later. When I encode to .264 and mux it works fine. I don't know if they ever fixed that since I now encode to raw in every case.
I also use level 4.1 because you can't really expect a blu-ray player to handle 4.2 and I set VBV accordingly.

FBX
8th July 2010, 09:44
After some more experimenting with the frame settings, I found that having too low an I-Frame sensitivity setting caused the video to start improperly on the PS3. Turning the sensitivity up fixed playback on the PS3. So basically WMP can't handle B-Frames and the PS3 is picky about I-Frames. Using a setting of 100 I-Frame sensitivity and zero B-Frames made the video file work perfect on both players. A sort of maximum compatibility setting if you will.

nurbs
8th July 2010, 09:59
Again there is something wrong on your end.
WMP handles b-frames and b-pyramid fine as does the PS3. The PS3 also handles the defaults of x264 fine so there should be no reason to play with i-frame sensitivity. The only thing I can think of is that you are encoding to .mp4 instead of .264 which could upset the PS3 and that you are using --level 4.2 which will result in a lot of players refusing to play your file without even looking at it although your settings are within --level 4.1 constraints.

CodecUnknown
8th July 2010, 12:03
Post your problematic avisynth script.
also post the commandline generated with the preset you're using (you can find it in the encoder config window).


LoadPlugin("C:\Program Files (x86)\Haali\MatroskaSplitter\avss.dll")
dss2("C:\A.mkv")
#deinterlace
#crop
LanczosResize(848,480) # Lanczos (Sharp)
#denoise

ConvertToYV12()



program --pass 2 --bitrate 250 --stats ".stats" --deblock 1:2 --bframes 6 --ref 6 --vbv-bufsize 14000
--vbv-maxrate 17500 --me umh --direct auto --subme 8 --psy-rd 0,60:0 --output "output" "input"

And this is what I get according to Media Info


cabac=1 / ref=6 / deblock=1:1:2 / analyse=0x3:0x113 / me=umh / subme=8 / psy=1 / psy_rd=0.00:10.00 /
mixed_ref=1 / me_range=16 / chroma_me=1 / trellis=1 / 8x8dct=1 / cqm=0 / deadzone=21,11 /
fast_pskip=1 / chroma_qp_offset=-2 / threads=12 / sliced_threads=0 /
nr=0 / decimate=1 / interlaced=0 / constrained_intra=0 / bframes=6 / b_pyramid=2 / b_adapt=1 / b_bias=0 / direct=3 / weightb=1 /
open_gop=0 / weightp=2 /
keyint=250 / keyint_min=25 / scenecut=40 / intra_refresh=0 / rc_lookahead=40 / rc=2pass / mbtree=1 /
bitrate=250 / ratetol=1.0 / qcomp=0.60 / qpmin=10 / qpmax=51 / qpstep=4 / cplxblur=20.0 / qblur=0.5 /
vbv_maxrate=17500 / vbv_bufsize=14000 / ip_ratio=1.40 / aq=1:1.00 / nal_hrd=none

Guest
8th July 2010, 12:52
@all

CodecUnknown is discussing a torrent download in violation of forum rule 6. Do not respond further to his issue.

quantum5uicid3
8th July 2010, 13:40
On a hunch I tried the same fix of disabling b-pyramid in the PS3 profile and that FINALLY fixed the sped-up video problem when played in WMP. The sound, however, still plays out of sync as it takes about 5 seconds to kick in.

I did some research and found out indeed the PS3 (just like the PSP) CANNOT handle b-pyramid, so whoever developed these presets really dropped the ball and gave some of us severe headaches trying to troubleshoot these strange problems.

the presets were based kurtnoise's device settings thread (http://forum.doom9.org/showthread.php?t=149711) and updated as problems came in. the idea was to make the device settings current, not rely on outdated misinformation posted elsewhere. fixes have always came fast, but i don't think zathor is psychic.

Zathor
8th July 2010, 18:03
but i don't think zathor is psychic.
Are you sure? :rolleyes:

Sharktooth
8th July 2010, 18:05
New presets are coming... Including Blu-Ray for different FPS and resolutions (8 different presets), BD5 and BD9 for 1080p24 and 720p24, DivX Plus HD and more...
Enjoy ;)

EDIT: Obviously they're included in the autoupdate for the megui dev version...

Sharktooth
8th July 2010, 18:57
Updated again... it's a work in progress, so bear with me...

LeXXuz
8th July 2010, 20:18
That's the reason im updating the presets in the Development build (actually 0.3.5.2).

Haven't followed this thread for a while. Nice to see you back in business. :)


@maohsama: the new presets are included in the development build of megui and they're not compatible with the stable build.

Guess thats why megui just kicked out all my x264 profiles. Is there a way to make them work with the latest 0.3.5.2 by editing them in any way? Would take me quite some time to recreate all my profiles though.

Zathor
8th July 2010, 20:34
Is there a way to make them work with the latest 0.3.5.2 by editing them in any way? Would take me quite some time to recreate all my profiles though.

The part has already been commited and will be in the next build:
http://megui.svn.sourceforge.net/viewvc/megui?view=rev&revision=1674

Until then just replace the true/false in the X264Nalhrd attribute with 1/0.

Sharktooth
8th July 2010, 20:44
ill make a new build tonight, have a few changes to the code to commit first.

LeXXuz
8th July 2010, 20:49
Thanks guys. I only need 2 profiles at the moment so I just change them manually and wait for the next build with my other profiles. No problem. :)

Lyle_JP
8th July 2010, 21:17
Okay, got the 4.7 profiles now and... are we sure the ipod Touch is limited to only one reference frame? Does it really have worse video capabilities than the Nanos and Classics that were available at the same time?

Sharktooth
8th July 2010, 21:25
that's what i've found.. but i dont have a Touch. so if you have it, please feel free to experiment and find where the preset can be improved

Sharktooth
9th July 2010, 16:29
How can i do IVTC in megui on this .avi file: http://www.sendspace.com/file/9clrf8

Currently my .avs looks like this:

LoadPlugin("C:\Users\fff\Desktop\megui\tools\ffms\ffms2.dll")
FFVideoSource("C:\Downloads\trailer.avi",colorspace="YV12")
#deinterlace
#crop
LanczosResize(720,384) # Lanczos (Sharp)
#denoise


in the avisynth script creator filters tab you can find a "Deinterlacing" group.
first of all, create the script inside the avs creator.
In the source type there are several choices. Select Film. then set the filed order (if necessary), check the Deinterlace checkbox and then select the IVTC method.
A better choice is to let megui analyze your source by clicking the Analyze button. It will automatically set those parameters for you. Keep in mind that is not 100% fail safe.
then set the resize method and the crop/resize values in the main tab.
Save the script and voila'... ;)

hajj_3
9th July 2010, 17:08
when i followed your instructions, i had to guess the field order as the "analyse" says its progressive but its 29.97fps and contains duplicate frames, i need it in 23.97fps so i guessed at "top field order", it then produced this script:


LoadPlugin("C:\Users\jjj\Desktop\megui2\tools\ffms\ffms2.dll")
FFVideoSource("C:\trailer.avi",colorspace="YV12")
LoadPlugin("C:\Users\jjj\Desktop\megui2\tools\avisynth_plugin\TIVTC.dll")
tfm(order=1).tdecimate()
#crop
LanczosResize(720,384) # Lanczos (Sharp)
#denoise


but once i go through bitrate calculator and it asks me if i want to copy the calculated bitrate into the settings and i chose "yes" and press enqueue i get the following error message:

http://i32.tinypic.com/fkt9v8.jpg

If i click "yes" i get the following message:

http://i29.tinypic.com/9gbhbq.jpg

Sharktooth
9th July 2010, 17:10
before saving your AVS, manually add a ConvertToYV12() at the end of the script.

hajj_3
9th July 2010, 17:25
i still get this error message after adding it into the script:

http://i29.tinypic.com/9gbhbq.jpg

my friend sent me this script:

DirectShowSource("C:\trailer.avi", audio=false)
LoadPlugin("C:\Users\jjj\Desktop\megui2\tools\avisynth_plugin\TIVTC.dll")
tfm(order=1).tdecimate
converttoYV12()
LanczosResize(720,384) # Lanczos (Sharp)

I don't get any errors but there is a tiny amount of ghosting it seems, i tried it with:

tfm(order=1).tdecimate(hybrid=1)

but the ghosting was awful so i removed the hybrid part and that nearly eliminated it.

Sharktooth
9th July 2010, 17:32
then play your .avs in your favorite media player and report back.
also your friend's script is identical (except to the hybrid option) to what megui created except for the input filter (directshowource instead of ffvideosource)
however using directshowsource on an .avi file may end up in audio-video desynch.
Try AviSource instead.

Lyle_JP
10th July 2010, 05:23
that's what i've found.. but i dont have a Touch. so if you have it, please feel free to experiment and find where the preset can be improved

Okay, I borrowed my nephew's 3rd Gen Touch and my wife's iPhone 3Gs for some testing. They both accept my videos at baseline level 3 with 5 reference frames, so their video capabilities seem inline with Classics and Nanos. I cannot vouch for the capabilities of older iPhones or Touches.

royia
10th July 2010, 09:07
Let's say I installed AVI Synth in "Uncompress Only" mode.
Now I have a folder with all its dll's.
How can I configure MeGUI to use them and not require installation of AVI Synth?
Thanks.

Alf Bundy
10th July 2010, 11:29
when i followed your instructions, i had to guess the field order as the "analyse" says its progressive but its 29.97fps and contains duplicate frames, i need it in 23.97fps so i guessed at "top field order", it then produced this script:


LoadPlugin("C:\Users\jjj\Desktop\megui2\tools\ffms\ffms2.dll")
FFVideoSource("C:\trailer.avi",colorspace="YV12")
LoadPlugin("C:\Users\jjj\Desktop\megui2\tools\avisynth_plugin\TIVTC.dll")
tfm(order=1).tdecimate()
#crop
LanczosResize(720,384) # Lanczos (Sharp)
#denoise


but once i go through bitrate calculator and it asks me if i want to copy the calculated bitrate into the settings and i chose "yes" and press enqueue i get the following error message:

http://i32.tinypic.com/fkt9v8.jpg

If i click "yes" i get the following message:

http://i29.tinypic.com/9gbhbq.jpg

Here's what kemuri-9 told about this issue (http://forum.doom9.org/showthread.php?p=1414123#post1414123) :

Ah, I was unaware of MeGUI being this braindead (I never use it, since it has a history of irritating me to no ends with its consistent stupidities):
SWScale() does flag the video as being I420 instead of YV12 when outputting YV12 video.
(SWScale does not formally support YV12 itself, but due to the below reasoning this is not particularly an issue in most cases)

the difference between I420 and YV12 is simply
I420 is Y-U-V. YV12 is Y-V-U
- the chroma planes are simply swapped in memory
but the way avisynth handles acquiring the plane pointers, the above difference is generally unnoticeable.
for this same reason, ConvertToYV12() is a NOOP (No operation) when the video is I420 (in avs 2.5.x that is, in 2.6.0 looks like there might be a bug in this situation)

But it appears MeGUI is not capable of handling this properly either way, so I dare say to file a bug report to MeGUI.

SWScale is a part of ffms2.dll and shows the same problem as FFvideoSource().

I don't want to be a part of a conflict, but I think it's not MeGUI's fault (because the bold part of the quote).

Lighto
10th July 2010, 13:04
when i followed your instructions, i had to guess the field order as the "analyse" says its progressive but its 29.97fps and contains duplicate frames, i need it in 23.97fps so i guessed at "top field order", it then produced this script:


LoadPlugin("C:\Users\jjj\Desktop\megui2\tools\ffms\ffms2.dll")
FFVideoSource("C:\trailer.avi",colorspace="YV12")
LoadPlugin("C:\Users\jjj\Desktop\megui2\tools\avisynth_plugin\TIVTC.dll")
tfm(order=1).tdecimate()
#crop
LanczosResize(720,384) # Lanczos (Sharp)
#denoise


but once i go through bitrate calculator and it asks me if i want to copy the calculated bitrate into the settings and i chose "yes" and press enqueue i get the following error message:

http://i32.tinypic.com/fkt9v8.jpg

If i click "yes" i get the following message:

http://i29.tinypic.com/9gbhbq.jpg

Got the same error some time ago while trying to do an auto encode.
I went ahead and ignore the error and got my output.

You might want to create a bug tracker at MeGUI's sourceforge page so that the development team can address the issue.:)

flebber
10th July 2010, 13:48
Got the same error some time ago while trying to do an auto encode.
I went ahead and ignore the error and got my output.

You might want to create a bug tracker at MeGUI's sourceforge page so that the development team can address the issue.:)

bug tracker http://sourceforge.net/tracker/?group_id=156112&atid=798476

Sharktooth
10th July 2010, 14:54
@Lyle_JP: Thanks, i will update the presets ASAP

Let's say I installed AVI Synth in "Uncompress Only" mode.
Now I have a folder with all its dll's.
How can I configure MeGUI to use them and not require installation of AVI Synth?
Thanks.
What you are saying makes no sense...

@flebber and all the rest: ill add some checks for I420, but sadly stupidity is something can not be fixed...
i mean, megui is open source... so, if someone doesnt want to use megui coz he thinks it is "irritating" (expecially for someone who can code) there are several things that can be done:
1 - contact the devs and inform them via the bug-tracker, support page or directly and tell them what's wrong
2 - submit a patch.
3 - dont use the software and keep the provoking comments for yourself.
after all, megui is freeware and always will be and ppl working on it are coding in their free time.

flebber
10th July 2010, 15:13
Just for clarity I was only directing lighto to thebug tracker since they were unable to visit google.com and type "megui bug tracker"

Sharktooth
10th July 2010, 15:18
flebber, if i was not clear i was not criticizing you... ;)

Lighto
10th July 2010, 15:39
Just for clarity I was only directing lighto to thebug tracker since they were unable to visit google.com and type "megui bug tracker"

I was directing hajj_3 to MeGUI's sourceforge and I have added trackers there in the past before but not on this issue.:confused:

FBX
10th July 2010, 15:56
the presets were based kurtnoise's device settings thread (http://forum.doom9.org/showthread.php?t=149711) and updated as problems came in. the idea was to make the device settings current, not rely on outdated misinformation posted elsewhere. fixes have always came fast, but i don't think zathor is psychic.

My apologies, I thought the presets had been tested to make sure they work. I basically had to learn by trial and error what each of the settings had an effect on in order to pinpoint the bizarre problems that kept popping up in my encoded videos.

As I stated before, turning b-frames off and increasing "extra I-frames" to 100 allowed my videos to play perfectly on the PS3 as well as various PC media players. I'd recommend anyone making archives for PS3 playback should use those same settings.

Lyle_JP
10th July 2010, 19:58
As I stated before, turning b-frames off and increasing "extra I-frames" to 100 allowed my videos to play perfectly on the PS3 as well as various PC media players. I'd recommend anyone making archives for PS3 playback should use those same settings.

If you turn off b-frames for h.264, you might as well just go back to Xvid/DivX, for all the compression advantage you'll lose. I've absolutely no problems playing back b-framed video on the ps3. As long as you limit your encodings for the PS3 to 3 b-frames, there should be no errors. If it plays fine off a USB stick, then it is fine.

As stated before, I'm not streaming, but if you're having problems only from streaming, then the problem is not really the encoding. Try using direct Ethernet instead of the PS3's built-in wireless. Is the PS3 is not buffering enough? Perhaps there are some settings you can tweak to compensate on the server side?

Also, did you ever mention what your VBV settings were? Maybe there is a problem with your encodings there.

royia
10th July 2010, 21:54
What you are saying makes no sense...


What do you mean make no sense?
Since Me GUI is the only software I have which uses AVI Synth I was wondering if there's an option to make it use it without installing AVI Synth.

When I installed AVI Synth I saw there a special installation mode - "Uncompress Only".
It creates a folder with all AVI Synth files within it.

I was wondering if there's a way to copy the DLL's into Me GUI or any other procedure to make them work.

In other words, Make Avi Synth a plug in of Me GUI just like any other.

Thanks.

FBX
10th July 2010, 22:47
If you turn off b-frames for h.264, you might as well just go back to Xvid/DivX, for all the compression advantage you'll lose. I've absolutely no problems playing back b-framed video on the ps3. As long as you limit your encodings for the PS3 to 3 b-frames, there should be no errors. If it plays fine off a USB stick, then it is fine.

As stated before, I'm not streaming, but if you're having problems only from streaming, then the problem is not really the encoding.

Well I don't stream them over a router, I just burn them to disc for playback. But whether I played the files from a DVD or directly from the PS3 hard drive, I would get the same problems. Also I want to state the whole b-frame issue was in regards to WMP compatibility. It took me a while to figure out which media player was being crabby to which setting. The PS3 seemed to handle b-frames, but was particularly picky about I-frame sensitivity. The default setting caused my files to start with several seconds of blank video on the PS3, whereas turning up the I-frame setting got rid of this problem.

With regard to xvid/divx, the encoded videos looked terrible compared to H.264 no matter what quality I attempted. I've already been down that road and don't care to return there. Anyway, the videos look great and play fine with my setting changes, so I'm happy with the outcome.

Edit: Forgot to mention my VBV settings are the "PS3" preset default of 31250. If that should be adjusted, please let me know. Thanks!

Lyle_JP
10th July 2010, 23:12
Well I don't stream them over a router, I just burn them to disc for playback. But whether I played the files from a DVD or directly from the PS3 hard drive, I would get the same problems.... The PS3 seemed to handle b-frames, but was particularly picky about I-frame sensitivity. The default setting caused my files to start with several seconds of blank video on the PS3, whereas turning up the I-frame setting got rid of this problem.
...my VBV settings are the "PS3" preset default of 31250. If that should be adjusted, please let me know. Thanks!

Your VBV settings are fine. Here's a question I should have asked: To what resolution are you encoding? I've never had the I-frame problem you describe, but then I've almost never made files larger than standard def (848x480 with 1:1 SAR). The few times I've made HD sized files, I've always used slicing. The PS3 (being a blu-ray player, I guess) likes HD in 4 slices.

But for SD video, even using this dirt simple command line:
x264.exe --level 4 --crf 18 --output "output" "input"
gives me flawless playback on the PS3. Also, my PS3 is an older "fat" one, but that shouldn't make any difference.

flebber
10th July 2010, 23:32
What do you mean make no sense?
Since Me GUI is the only software I have which uses AVI Synth I was wondering if there's an option to make it use it without installing AVI Synth.

When I installed AVI Synth I saw there a special installation mode - "Uncompress Only".
It creates a folder with all AVI Synth files within it.

I was wondering if there's a way to copy the DLL's into Me GUI or any other procedure to make them work.

In other words, Make Avi Synth a plug in of Me GUI just like any other.

Thanks.

You don't copy the dll's you press config in the Avs script creator. You can now select load plugin. Select the dll for the avisynth plugin you want to use (the plugin should be located in the folder C:\Program Files\Avisynth\Plugins.

then reference the plugin in the script eg Undot()

royia
11th July 2010, 06:59
You don't copy the dll's you press config in the Avs script creator. You can now select load plugin. Select the dll for the avisynth plugin you want to use (the plugin should be located in the folder C:\Program Files\Avisynth\Plugins.

then reference the plugin in the script eg Undot()
You completely missunderstood my intention.

I asked whether it is possible to configure Me GUI to use AVI Synth without installing AVI Synth. I wasn't asking about AVI Synth's Plug In's.

AVI Synth installer has "Compress Only" mode. which means I have all the DLL's of AVI Synth.
I wish it was possible to use them withing Me GUI without installing it ("Portable Mode").

flebber
11th July 2010, 08:39
You completely missunderstood my intention.

I asked whether it is possible to configure Me GUI to use AVI Synth without installing AVI Synth. I wasn't asking about AVI Synth's Plug In's.

AVI Synth installer has "Compress Only" mode. which means I have all the DLL's of AVI Synth.
I wish it was possible to use them withing Me GUI without installing it ("Portable Mode").

That would be an avisynth question not a megui question. Avisynth 2 does not have that capability not sure about 3.

FBX
11th July 2010, 08:50
Your VBV settings are fine. Here's a question I should have asked: To what resolution are you encoding? I've never had the I-frame problem you describe, but then I've almost never made files larger than standard def (848x480 with 1:1 SAR). The few times I've made HD sized files, I've always used slicing. The PS3 (being a blu-ray player, I guess) likes HD in 4 slices.

But for SD video, even using this dirt simple command line:
x264.exe --level 4 --crf 18 --output "output" "input"
gives me flawless playback on the PS3. Also, my PS3 is an older "fat" one, but that shouldn't make any difference.

My PS3 is an older 40GB model from a few years ago. The resolution I'm encoding is 720x540 with a 1:1 pixel ratio. Other than the initial startup problem of blank video with sound for the first 5 or 10 seconds, the videos would play flawlessly after that. It was only when I messed with the I-frame settings that the problem went away. To confirm, I made two files: One with extra I-frames set to zero, and another set to 100. The files were identical other than that setting in the encoder. The first file played with the usual blank video at the start, while the second video played perfectly from the start.

Edit: I just did a series of experimental encodes to test on the PS3:

First video: Default PS3 preset (MeGUI 0.3.5.0)
Second video: No B-frames
Third Video: Extra I-frames 100
Fourth Video: No B-frames + Extra I-frames 100

Of these four videos, the ONLY one that started playback properly on my PS3 with the "No B-frames + Extra I-frames 100" video. Both the "default" and the "No B-frames" videos played with the first ten seconds of video blanked out. I had expected the "Extra I-frames" video to start up properly, but instead it played with 5 seconds of blanked out video! It was only the video with both settings adjusted that started up properly.

Source video:
720x540 H.264 lossless encoded AVI from VirtualDub.

Lyle_JP
11th July 2010, 10:40
Of these four videos, the ONLY one that started playback properly on my PS3 with the "No B-frames + Extra I-frames 100" video. Both the "default" and the "No B-frames" videos played with the first ten seconds of video blanked out. I had expected the "Extra I-frames" video to start up properly, but instead it played with 5 seconds of blanked out video! It was only the video with both settings adjusted that started up properly.

Consider buying a new Playstation. I have never seen your problem in over 300 rips, none of which had to be tweaked far from the main MeGUI settings.

Long story short, the profile in MeGUI does not need the changes you recommend. Your problem appears unique.

FBX
11th July 2010, 11:44
Just an update in that my combination test video with both I-frames set to 100 and B-frames set to zero turned out to be contaminated with a custom GOP setting. When I reset the GOP to the default 25/250, the 5-seconds of blank video returned even on the combo test video. I had to scrap my test videos and start from scratch, this time using a custom GOP setting of 0/24. This time around, B-frame settings had no effect, while the combined I-frame=100 with my Custom GOP played properly.

My apologies for the tainted results earlier. So now I have to conclude that combination of my custom GOP settings and my I-frame settings are what allows the videos to start properly on my PS3. It may indeed be an issue specific to my PS3. However, I see no reason to get a new PS3 when these settings solve the problem anyway.

BTW, WMP playback still required B-frames turned off to avoid the sped-up video issue on startup. So if I want a universally stable archive, I still have to turn B-frames off. The savings on memory was minimal anyway. Something like less than a megabyte per 1,000 frames at the default of 3 B-frames.

nurbs
11th July 2010, 13:47
BTW, WMP playback still required B-frames turned off to avoid the sped-up video issue on startup. So if I want a universally stable archive, I still have to turn B-frames off. The savings on memory was minimal anyway. Something like less than a megabyte per 1,000 frames at the default of 3 B-frames.

WMP supports b-frames fine, and let me guess you did a CRF encode with and without b-frames to determine how useful they are. It doesn't work that way since the settings change the meaning of the rate factor. Also depending on the bitrate you begin with saving a megabyte per 1000 frames could mean saving a third of the filesize (e.g. SD cartoon ~650 kb/s).

ckmox
11th July 2010, 14:30
is Zones options (via the Zones button) on x264 encoding will only be applied when you individually encode the video so its "Enqueue" only? because the Zones i put up doesnt work when i use "AutoEncode" that means autoencode of audio+video+muxing

thanks for whoever will answer :)

Sharktooth
11th July 2010, 14:47
@royia: megui requires avisynth hence it MUST be installed. that's why what you said made no sense.

@ckmox: yes. autoencode actually ignores zones.

ckmox
11th July 2010, 14:56
@ckmox: yes. autoencode actually ignores zones.

thanks for the answer Sharktooth :)

colargol7
11th July 2010, 17:44
Hi

I have a stupid question :confused:
Is it possible to launch Megui with command line options; something like this, it would be very useful for me:

"C:\video\megui\MeGUI.exe" -script "myscript.avs" -audio "myaudio.mp3"

So I would not have to load anything once Megui is loaded.

Thx

royia
11th July 2010, 23:28
@royia: megui requires avisynth hence it MUST be installed. that's why what you said made no sense.


I guess I can't convey my question properly.
I know Me GUI requires AVI Synth.
I guess basically it requires the AVI Synth DLL's.

Lest's say I have those DLL's (Using AVI Synth "Decompress Only" installation mode).
Is there a way to put them somewhere within Me GUI folder or any other method such Me GUI would use them without installing AVI Synth (Preventing the Registry Keys and Administartor Requirements).

Basically what I'm asking, is there a Portable Version of Me GUI with AVI Synth integrated in it?

Thanks.

Guest
11th July 2010, 23:41
Basically what I'm asking, is there a Portable Version of Me GUI with AVI Synth integrated in it? No, there is not.

flebber
12th July 2010, 01:27
Hi

I have a stupid question :confused:
Is it possible to launch Megui with command line options; something like this, it would be very useful for me:

"C:\video\megui\MeGUI.exe" -script "myscript.avs" -audio "myaudio.mp3"

So I would not have to load anything once Megui is loaded.

Thx

You would be loading Megui with that command, so what is the advantage?

horus14
12th July 2010, 05:42
hi, have a problem T_T!!!

Version MeGUI
[Error] Log
-[Information] Versions
--[NoImage] MeGUI Version : 0.3.5.3
--[NoImage] OS : Windows XP Professional x86 SP2 (5.1.131072.2600)
--[NoImage] Latest .Net Framework installed : 3.5 (3.5.30729.01)
--[NoImage] Avisynth Version : 2.5.8.5

--[Error] An error occurred: avs [error]: DirectShowSource: couldn't create filter graph:
--[Error] An error occurred: x264 [error]: could not open input file `C:\Documents and Settings\Adm\Mi Data\Encode\Cup video MKV.avs'

have haali media splitter... and FFDSHOW

FBX
12th July 2010, 10:42
WMP supports b-frames fine, and let me guess you did a CRF encode with and without b-frames to determine how useful they are. It doesn't work that way since the settings change the meaning of the rate factor. Also depending on the bitrate you begin with saving a megabyte per 1000 frames could mean saving a third of the filesize (e.g. SD cartoon ~650 kb/s).

First, if WMP supported b-frames "fine", I shouldn't be getting sped-up videos during the first few seconds with them turned on. When I turn them off, video plays fine. With them on, video is screwed up at the beginning. That to me says WMP has a problem with them.

Also, I do high-quality archival encodes of my restoration projects, not those uber-compressed 200MB per hour jobs people are so fond of. I do a gigabyte per half hour (mostly because of having to use blockbuster to break up the blocking) so in this case, the savings I was getting with b-frames was very little. Since they were causing problems with compatibility anyway, I don't mind having them turned off at all.

nurbs
12th July 2010, 11:46
If WMP had problems with b-frames you wouldn't be the only one experiencing them. The current version of WMP plays every single one of my files, both HD and SD and with b-frames and b-pyramid without the issue you reported. Maybe you are using an outdated version, maybe you installed a codec pack that screwed up your system or maybe something else is wrong with your system, but a current WMP can handle b-frames fine out of the box.

My issue is that you are running around the forum telling people not to use b-frames or they'll have problems with WMP and to change the scenecut settings or they'll have problems with the PS3 when no one else can reproduce these problems.

It's far more likely that your WMP problems have something to do with your specific setup and your PS3 problems come from your use of --level 4.2 (or if that old problem hasn't been fixed from encoding to mp4 directly instead of encoding raw and muxing later, although then the PS3 completely refused to play the file)
There isn't even a reason for you do use 4.2 since your VBV settings are well within level 4.1 constraints and the DPB limits for 4.1 and 4.2 are the same so there is no extra gain there. Also since most hardware is limited to level 4.1 using 4.2 will result in some players looking at the file and refusing to play it simply because it has been tagged with a level higher than the one that is supported by the player and it was actually encoded at.
It's funny that you start playing around with scenecut to solve your problem instead of changing options in your encode that are different compared to settings other people told work with their PS3s. For instance the only major differences between what you use and what Lyle_JP (excluding CRF numer and missing VBV constraints which won't be an issue considering you are encoding SD) are the level, aud and sar. sar doesn't matter, aud is unlikely to so that leaves --level.

It's fine that you do high quality encodes, but saying that b-frames save less than a MB per 1000 frames is useless unless you tell us tell us what the original value is you compare it too. You also didn't tell us on how you determined the usefulness and since most people simple do it by using the size difference of a CRF encode with option A compared to a CRF encode with option B, which is a completely invalid method and tells you nothing about how much efficiency you gained or lost, I wanted you to clarify on that.

Finally 200 MB per hour for a clean SD cartoon (like the Futurama DVDs) isn't uber-compressed. It would probably come out at that size around CRF 18 with the settings I used.

Sharktooth
12th July 2010, 13:19
hi, have a problem T_T!!!

Version MeGUI
[Error] Log
-[Information] Versions
--[NoImage] MeGUI Version : 0.3.5.3
--[NoImage] OS : Windows XP Professional x86 SP2 (5.1.131072.2600)
--[NoImage] Latest .Net Framework installed : 3.5 (3.5.30729.01)
--[NoImage] Avisynth Version : 2.5.8.5



have haali media splitter... and FFDSHOW
Win XP SP2...

horus14
12th July 2010, 18:51
Win XP SP2...

and?... XD

Sharktooth
12th July 2010, 18:53
first step before looking into where a problem is... update.

Pringles
13th July 2010, 12:52
In the Megui guide, it's said while configuring the x264 encoder to "Set mode to "automated 2pass" and check "turbo" "
Where is the turbo mode? I can't find it in the enc properties.

http://img171.imageshack.us/img171/9693/capturegy.png

nurbs
13th July 2010, 12:58
Since the configuration box and x264 itself have been changed recently the guide is a bit outdated. x264 now uses faster options for the first pass by default, so as long as you don't see --slow-firstpass in the command line window and don't use --preset placebo you are good. Apart from being part of the placebo preset I guess you can turn on --slow-firstpass somewhere in the advanced options or if not you can add it as a custom commandline option if you want.

Pringles
13th July 2010, 13:40
I'm wondering because it seemed really slow to encode Barton Fink (2 hours long movie) on my Q9650 @ 3.0Ghz as it took 6 hours!!! And there was no filter or whatsoever except for a minimal noise filter. Do 6 hours seem normal to you?

Here is the avs:


LoadPlugin("C:\Program Files (x86)\megui\tools\dgindex\DGDecode.dll")
DGDecode_mpeg2source("I:\DVD\RIP\VTS_01_1.d2v", info=3)
LoadPlugin("C:\Program Files (x86)\megui\tools\avisynth_plugin\ColorMatrix.dll")
ColorMatrix(hints=true, threads=0)
#deinterlace
crop( 0, 12, 0, -12)

Spline36Resize(720,384) # Spline36 (Neutral)
LoadPlugin("C:\Program Files (x86)\megui\tools\avisynth_plugin\UnDot.dll")
Undot() # Minimal Noise

nurbs
13th July 2010, 14:43
Is that 6 hours for first pass, second pass or total? The time that each pass needs would be interesting.
Since frametype decision isn't multithreaded this could be a bottleneck slowing down your first pass if you use many b-frames and --b-adapt 2, but if you use the settings in your screenshot you only have 3 b-frames which shouldn't be a problem. Your bitrate is also pretty high which is slower to encode, but again I wouldn't expect it to be that slow with your settings and CPU.

For comparison I got a Core i7 860 and use --preset veryslow with 3 b-frames and 5 refs and do CRF 20 encodes. For SD content that usually gives me between 20 and 35 fps at bitrates around 1 Mbps (+/- 0.5). The speed depends on the complexity of the content and resolution of course. Your CPU should be around 30% slower with the same settings for the same file.

edit:
I forgot. Post the encoding log for both passes.

Pringles
13th July 2010, 16:44
I actually found out that the encoding "only" took 3:15. I read that in the log file. I got mistaken by times info in Windows. Anyway, thanks for the help ;)

Now I'm facing some kind of problem while trying to encode an ac3 file to wav. As Megui does include eac3to, I'm looking for a profile to do so, but I can't find it. I can only encode into mp3 or into what's in the list below:

http://img227.imageshack.us/img227/8682/audioprofiles.png

Where can I find this ac3 to wav profile?

tebasuna51
13th July 2010, 16:57
Now I'm facing some kind of problem while trying to encode an ac3 file to wav. As Megui does include eac3to, I'm looking for a profile to do so, but I can't find it.
eac3to is supported in MeGUI with HD Stream Extractor GUI but this GUI don't support audio only files for input.

Use eac3to in command line or other GUI with audio only support.

Where can I find this ac3 to wav profile?
The profiles to encode audio in the main Input window uses AviSynth decoders (not eac3to) but don't exist a wav output.

Use BeHappy instead.

nurbs
13th July 2010, 16:57
Well wav is a container that usually contains uncompressed PCM audio so you wouldn't find it in the audio encoding menu. Uncompressed audio is uncommon as an output when you rip stuff. Maybe you can do it with the HD Stream Extractor if it allows you to select ac3 files as source, but I haven't tried it. If it doesn't you'll have to use eac3to in command line or some other software like foobar2k.
What do you need the wav for? Maybe there is a way to do what you want in megui without producing a wav.

Pringles
13th July 2010, 17:16
Thank you both for your answers. I want to get a wav file as I would like to edit a part of an audio track and I can only work with a wav/PCM file (for flexibility and to keep maximum quality).

nurbs
13th July 2010, 17:20
If it's about cutting stuff out of the video and audio track you could use the AVS Cutter to cut the video and then use the resulting cuts file to cut the audio during reencoding.

Capsbackup
13th July 2010, 17:35
It is pretty ancient, but BeSweet will do what you ask. :)

Floatingshed
13th July 2010, 17:38
Much as I like megui I'm getting fed up with all the errors:
"An error has occurred" & "Standard error stream"
This is happening on all sorts of files which always work perfectly when used in Virtualdub. It is all very simple work too: AVS to avi (xvid) and AVS to Mp3 and then mux.
Does anyone know how to get less generic error reports please?

Sharktooth
13th July 2010, 17:42
post your logfile. btw standard error stream is not an error...

nurbs
13th July 2010, 17:44
How do you expect people to know what the problem is if you don't tell them what operating system you're on, what version of megui you have and most importantly what you are trying to do?

Pringles
13th July 2010, 17:45
If it's about cutting stuff out of the video and audio track you could use the AVS Cutter to cut the video and then use the resulting cuts file to cut the audio during reencoding.

I need to work within a specific postproduction software (Nuendo), that's why I need a wav/aif file ;)

It is pretty ancient, but BeSweet will do what you ask. :)

I think I have this on my computer, so I'll give it a shot! Thanks.

royia
13th July 2010, 21:11
No, there is not.

Is there a way to "Synthesize" a Portable Version from the installation of AVI Synth and MeGUI?

If not, Who should I ask for such a version?

Thanks.

Sharktooth
13th July 2010, 21:13
No... avisynth needs to be installed in the system to work.
a portable version is not possible.

Pringles
15th July 2010, 00:11
Is it possible to save bits on the credits with Megui? How do we proceed to do so?

firewolf
15th July 2010, 07:42
avi is not working for me..there is only mp and mkv option....plz help...

nurbs
15th July 2010, 07:52
Is it possible to save bits on the credits with Megui? How do we proceed to do so?

Open an avs script for encoding and in the preview window there is a button labeled "credits". You can use it to mark where the credits start and they'll be encoded with a higher quantizer that you can set in the codec configuration. I doubt it's worth it. I checked one of my 720p videos and the scrolling credits took around 200 kbps. The credits are 5 minutes long so if I brought them down to a quarter of the current size I'd save about 5 MB out of 1.5 GB filesize.

DeWTurk
15th July 2010, 09:27
megu 3.5 version not working with avisynt
please help me

Pringles
15th July 2010, 12:46
Open an avs script for encoding and in the preview window there is a button labeled "credits". You can use it to mark where the credits start and they'll be encoded with a higher quantizer that you can set in the codec configuration. I doubt it's worth it. I checked one of my 720p videos and the scrolling credits took around 200 kbps. The credits are 5 minutes long so if I brought them down to a quarter of the current size I'd save about 5 MB out of 1.5 GB filesize.

I guess you're right, thanks ;)

Sharktooth
15th July 2010, 12:58
avi is not working for me..there is only mp and mkv option....plz help...
AVI is only supported when choosing Xvid/Snow video and MP3/AC3 audio.
Forget about x264 or AAC in AVI. It is not supported and never will be.

Sharktooth
15th July 2010, 12:59
megu 3.5 version not working with avisynt
please help me
are you going to give us some details or not?

DeWTurk
15th July 2010, 16:15
are you going to give us some details or not?

How to encode Autoencode

http://i31.tinypic.com/neiydy.jpg

ctrl +Q (open source) everytime oneclick encode

I want to autoencode

Sharktooth
15th July 2010, 16:30
read the guides... if you don't want to use the one-click encoder you have to index the file first.
also, why you said it "doesn't work with avisynth"? what makes you thing megui doesn't work with avisynth (coz it's the contrary... megui can't work without avisynth...)?

DeWTurk
15th July 2010, 16:58
read the guides... if you don't want to use the one-click encoder you have to index the file first.
also, why you said it "doesn't work with avisynth"? what makes you thing megui doesn't work with avisynth (coz it's the contrary... megui can't work without avisynth...)?

Ok I do it. Source is ".mkv" file avisynth is not work , but chage format ".avi" aviscripth creator worked. I do autoencode now.
sorry for not tell
sorry for English

Thanks

Sharktooth
15th July 2010, 17:26
avisynth has nothing to do with that.
probably your MKV file was muxed with MKVMerge 4.1.x. Since 4.1.0 it uses a particular Header compression that is not supported by eac3to, ffms2 and other softwares so MeGUI cant read the file.
what you have to do is using the latest MKVToolnix (4.1.x) and demux the video and audio streams from the MKV file then you can use MeGUI to encode the streams separately and then remux them in your favourite container (mp4, mkv, m2ts... etc).

lilhobo
15th July 2010, 18:54
so how do i backup dvd from this interface?

Sharktooth
15th July 2010, 21:28
@lilhobo: as i told you... :readguid:
there is a sticky thread... have a read.

eneskilic
19th July 2010, 00:37
http://i29.tinypic.com/25z79f9.png

im not using any filter...

flebber
19th July 2010, 02:00
what set up do you have, is avisynth installed, is ffdshow installed, is haali installed?

Sharktooth
19th July 2010, 02:22
also post your script

DeWTurk
19th July 2010, 14:11
I got a muxe proplem. Waiting for two hours
At the end of the work failed

Details
http://i27.tinypic.com/17pu8g.jpg

http://i32.tinypic.com/4jazyq.jpg

Guest
19th July 2010, 14:17
@DeWTurk

Why are you hiding the filenames?

Sharktooth
19th July 2010, 14:24
indeed, it seems there is a problem with the filename

DeWTurk
19th July 2010, 14:25
@DeWTurk

Why are you hiding the filenames?

I think not important ads are being

here

http://i29.tinypic.com/9joh01.jpg

Sharktooth
19th July 2010, 14:32
that's just a part of the filename...
however, try to rename your input file to something simplier and shorter.

DeWTurk
19th July 2010, 14:37
that's just a part of the filename...
however, try to rename your input file to something simplier and shorter.

yep full file name "A.Takimi.A-Team.132"

edit:This problem is caused mkvmerge ?

Sharktooth
19th July 2010, 14:47
either MKVMerge or megui generating a wrong commandline for MKVMerge.
could you please try renaming the source file and see if it works?
also, please post the complete log, thanks

Zathor
19th July 2010, 19:11
You are using MeGUI 0.3.3 and MkvMerge 4.0.0 - these two versions are not compatible. Please update to MeGUI 0.3.5.

Sharktooth
19th July 2010, 20:25
LOL, true :) i didnt look at the version...

DeWTurk
26th July 2010, 23:23
ok my prople resolved. Thanks

I want to say anything

Megui 3.5 version hq- profile does not work up to 3.5 version my x264 profiles deleted.

Clumpco
31st July 2010, 04:48
I've used MeGUI for years (currently 0.3.5.0) and about 25% of the time when a job tries to mux SRT subtitles into a MKV output file I get this dialog box that says:

Error parsing idx file
<name of file>
Input string was not in a correct format

This stops the job queue until I click OK in this dialog box, after which it muxes the output just fine. My question is, is there something in a SRT file (created by Subrip) that causes this error so that I can try and avoid it?Hi,
Sorry that the answer is a bit late - hope I didn't miss someone else's answer in the intervening time.

This error is due to spurious data at the end of the srt file. Usually you get this with srt subs extracted from edited DVB streams, notably if you extract them with ProjectX. Just open up the srt file in a text file viewer (e.g. notepad) and delete any subtitles at the end of the file that have a begin (or end) timestamp after the end of the video stream. Also remove any spurious extra blank lines at the end of the file.

Alternatively, I am currently developing a simple Teletext Only DVB subtitle extractor. It does a cleaner and faster job than ProjectX; a very beta version can be found HERE (http://www.clumpton.com/uknwebimg/Subs/publish.htm) (Windows only, needs .Net 3.5).

footballer
1st August 2010, 00:13
Hello you all,

Is it possible to encode movie if source file is .mkv? I'm Windows 7 32bit user. Which codecs do i need?

Or is there any tutorial how to encode movies with MeGUI if you are Windows 7 user?

Thanks in advance. Great forum :)

Capsbackup
1st August 2010, 00:37
Install avisynth 2.58, haali, and ffdshow. You will be good to go!
You can encode .mkv, no problem.
XP, Vista, Windows 7... basically the same for MeGui. Just use search, and play around, you will learn pretty fast. :)
Start with small files, short movies, trailers, etc... until you get the hang of it. Change profiles per your liking and bitrates for your desired file size.
http://forum.doom9.org/showthread.php?t=112496

lchiu7
1st August 2010, 01:15
Unless things have changed a bit since when I installed x264 etc on Windows 7 to encode h.264 I also had to worry about DS Filters and used the tool discussed here

http://forum.doom9.org/showthread.php?t=146910

Then for decoding VC1 (not so common now it seems) you need the right version of the Haali splitter - the latest one online doesn't work properly. I am not sure which version works but possibly the one dated 11/01/2009. This caused me endless grief as my VC1 decodes ended up with flickering video.

But I also see a version

20/05/2010

* New Features:
o Added support for WebM files
* Fixed items:
o Fixed a lot of issues with mp4 muxer
o Better support for VC-1 in MPEG Transport streams

which might also have fixed the problem.

Floatingshed
1st August 2010, 21:53
Does anyone know how to start the megui thread using the windows task scheduler?
I often have my pc capturing tv until the early hours then when its done it would be useful to have megui start up and run a few jobs while I'm asleep...
Thanks.

kenpachi
2nd August 2010, 11:57
I'd like to request a new feature, but http://forum.doom9.org/showthread.php?p=1150587#post1150587
says new place for it is "sf tracker". Is it here or somewhere else?

Lighto
2nd August 2010, 12:13
I'd like to request a new feature, but http://forum.doom9.org/showthread.php?p=1150587#post1150587
says new place for it is "sf tracker". Is it here or somewhere else?

http://sourceforge.net/tracker/?group_id=156112&atid=798479

LigH
2nd August 2010, 15:32
I wonder if I misunderstand how to use the MeGUI to create an anamorphic x264 encode, or if there is a bug in version 0.3.5.6...

Windows XP SP3 german (decimalsep=comma, thousandsep=dot) - in case it is important...

I open a DVB PAL MPEG2 (720x576, 25 fps) via DGMPGDec 1.5.8 and a simple AviSynth 2.5.8 script, no resizing. Video preview displays it at 720x576 and shows AR=1.25.

I select AR=16:9 (1.7777778) - with or without "Show DAR" checked - and add the job ... but the stored job1.xml still contains: "<DAR> <ar>1.25</ar> </DAR>"; no sign of any stored 16:9 DAR or 16:11 SAR.

When the Video Preview window is closed and reopened, it is reset to SAR 1:1 (DAR 1.25).

Maybe I need to enforce it in the x264 "Config" dialog, "Misc" tab of the advanced settings? ... So there I set "Force SAR: 16:11". Queue cleared, job added ... same content?!

Well, I encode anyway ... now that is confusing, the log shows a command line similar to this: "{x264.exe ...} --sar 16:11 --sar 1:1 --output {*.264 *.avs}"

Now, what is keeping me from sending "--sar 16:11" to x264 with MeGUI 0.3.5.6 (DEV)?
__

Aha, my fault: I created the AviSynth script manually.

Without declaring the global variables "MeGUI_darx" and "MeGUI_dary"...

xxx666yyy777
2nd August 2010, 22:10
Hi There - not sure, if this is the right place, but i hope so:

I have encoded two movies to be used in iTunes (for syncing to an iPad). One move imports fine into iTunes and can be synced with no problem, the other movie however wil not even import into iTunes. I used the same video/audio settings for both files and am currently at a loss, as to why the different behavior. I have attached two mediainfo outputs below...maybe someone sees what the problem is. I am using MeGUI 0.3.5.0 and iTunes 9.1.1.

Cheers!

1. This file is working fine with iTunes:

General
Complete name : E:\good.mp4
Format : MPEG-4
Format profile : Apple iPhone
Codec ID : M4VP
File size : 1.26 GiB
Duration : 1h 53mn
Overall bit rate : 1 595 Kbps
Encoded date : UTC 2010-08-01 20:07:44
Tagged date : UTC 2010-08-01 20:07:44
desc : iPad

Video
ID : 1
Format : AVC
Format/Info : Advanced Video Codec
Format profile : Main@L3.0
Format settings, CABAC : Yes
Format settings, ReFrames : 4 frames
Codec ID : avc1
Codec ID/Info : Advanced Video Coding
Duration : 1h 53mn
Bit rate mode : Variable
Bit rate : 1 431 Kbps
Maximum bit rate : 11.0 Mbps
Width : 1 024 pixels
Height : 432 pixels
Display aspect ratio : 2.35:1
Frame rate mode : Constant
Frame rate : 23.976 fps
Color space : YUV
Chroma subsampling : 4:2:0
Bit depth : 8 bits
Scan type : Progressive
Bits/(Pixel*Frame) : 0.135
Stream size : 1.13 GiB (90%)
Writing library : x264 core 98 r1649 c54c47d
Encoding settings : cabac=1 / ref=3 / deblock=1:0:0 / analyse=0x1:0x111 / me=hex / subme=7 / psy=1 / psy_rd=1.00:0.00 / mixed_ref=1 / me_range=16 / chroma_me=1 / trellis=1 / 8x8dct=0 / cqm=0 / deadzone=21,11 / fast_pskip=1 / chroma_qp_offset=-2 / threads=3 / sliced_threads=0 / nr=0 / decimate=1 / interlaced=0 / constrained_intra=0 / bframes=3 / b_pyramid=2 / b_adapt=1 / b_bias=0 / direct=1 / weightb=1 / weightp=2 / keyint=250 / keyint_min=25 / scenecut=40 / intra_refresh=0 / rc_lookahead=40 / rc=crf / mbtree=1 / crf=20.0 / qcomp=0.60 / qpmin=10 / qpmax=51 / qpstep=4 / vbv_maxrate=10000 / vbv_bufsize=10000 / crf_max=0.0 / ip_ratio=1.40 / aq=1:1.00 / nal_hrd=none
Encoded date : UTC 2010-08-01 17:00:35
Tagged date : UTC 2010-08-01 20:08:41

Audio
ID : 2
Format : AAC
Format/Info : Advanced Audio Codec
Format version : Version 4
Format profile : LC
Format settings, SBR : No
Codec ID : 40
Duration : 1h 53mn
Bit rate mode : Variable
Bit rate : 160 Kbps
Maximum bit rate : 169 Kbps
Channel(s) : 2 channels
Channel positions : Front: L R
Sampling rate : 48.0 KHz
Stream size : 130 MiB (10%)
Encoded date : UTC 2010-08-01 20:08:32
Tagged date : UTC 2010-08-01 20:08:41


2. This file is NOT working with iTunes:

General
Complete name : E:\bad.mp4
Format : MPEG-4
Format profile : Apple iPhone
Codec ID : M4VP
File size : 689 MiB
Duration : 1h 15mn
Overall bit rate : 1 281 Kbps
Encoded date : UTC 2010-08-01 21:01:25
Tagged date : UTC 2010-08-01 21:01:25

Video
ID : 1
Format : AVC
Format/Info : Advanced Video Codec
Format profile : Main@L3.0
Format settings, CABAC : Yes
Format settings, ReFrames : 4 frames
Codec ID : avc1
Codec ID/Info : Advanced Video Coding
Duration : 1h 15mn
Bit rate mode : Variable
Bit rate : 1 117 Kbps
Maximum bit rate : 15.2 Mbps
Width : 1 024 pixels
Height : 400 pixels
Display aspect ratio : 2.560
Frame rate mode : Constant
Frame rate : 23.976 fps
Color space : YUV
Chroma subsampling : 4:2:0
Bit depth : 8 bits
Scan type : Progressive
Bits/(Pixel*Frame) : 0.114
Stream size : 600 MiB (87%)
Writing library : x264 core 98 r1649 c54c47d
Encoding settings : cabac=1 / ref=3 / deblock=1:0:0 / analyse=0x1:0x111 / me=hex / subme=7 / psy=1 / psy_rd=1.00:0.00 / mixed_ref=1 / me_range=16 / chroma_me=1 / trellis=1 / 8x8dct=0 / cqm=0 / deadzone=21,11 / fast_pskip=1 / chroma_qp_offset=-2 / threads=3 / sliced_threads=0 / nr=0 / decimate=1 / interlaced=0 / constrained_intra=0 / bframes=3 / b_pyramid=2 / b_adapt=1 / b_bias=0 / direct=1 / weightb=1 / weightp=2 / keyint=250 / keyint_min=25 / scenecut=40 / intra_refresh=0 / rc_lookahead=40 / rc=crf / mbtree=1 / crf=20.0 / qcomp=0.60 / qpmin=10 / qpmax=51 / qpstep=4 / vbv_maxrate=10000 / vbv_bufsize=10000 / crf_max=0.0 / ip_ratio=1.40 / aq=1:1.00 / nal_hrd=none
Encoded date : UTC 2010-08-01 12:20:37
Tagged date : UTC 2010-08-01 21:01:50

Audio
ID : 2
Format : AAC
Format/Info : Advanced Audio Codec
Format version : Version 4
Format profile : LC
Format settings, SBR : No
Codec ID : 40
Duration : 1h 15mn
Bit rate mode : Variable
Bit rate : 160 Kbps
Maximum bit rate : 168 Kbps
Channel(s) : 2 channels
Channel positions : Front: L R
Sampling rate : 48.0 KHz
Stream size : 86.0 MiB (12%)
Encoded date : UTC 2010-08-01 21:01:46
Tagged date : UTC 2010-08-01 21:01:50

Atak_Snajpera
2nd August 2010, 23:53
Maybe itunes does not like this
Width : 1 024 pixels
Height : 400 pixels

I have never seen movie with 2.56:1 aspect ratio! Valid aspect ratios are 4:3,16:9,1.85:1,2:35:1,2:40:1

Shevek
3rd August 2010, 00:09
Maybe itunes does not like this
Width : 1 024 pixels
Height : 400 pixels

I have never seen movie with 2.56:1 aspect ratio! Valid aspect ratios are 4:3,16:9,1.85:1,2:35:1,2:40:1

from wikipedia (http://en.wikipedia.org/wiki/Aspect_ratio_%28image%29#Previous_and_presently_used_aspect_ratios)

2.55:1 - Original aspect ratio of CinemaScope before optical sound was added to the film in 1954. This was also the aspect ratio of CinemaScope 55.
:rolleyes: :p

Lighto
4th August 2010, 15:52
http://i29.tinypic.com/25z79f9.png

im not using any filter...

Got that recently, solved it by renaming to a simple file name(1.mkv).

Triccotracco
5th August 2010, 05:34
Please update mkvmerge package to 4.2.0 because with 4.1.1 version I've no sound on my WD TV player with .mkv files (x264+AC3 streams)

Thank you
:)

nurbs
5th August 2010, 07:32
Did you test if it works with 4.2.0? If you don't have sound on a hardware player it's probably because Mosu turned on header removal compression per default (for AC3 in version 4.1.0). In 4.2.0 it's also on for H.264 video so your file probably won't play at all.

Zathor
5th August 2010, 10:38
With the next development build the header compression will be disabled. The change has been committed already.

Triccotracco
6th August 2010, 06:46
Did you test if it works with 4.2.0? If you don't have sound on a hardware player it's probably because Mosu turned on header removal compression per default (for AC3 in version 4.1.0). In 4.2.0 it's also on for H.264 video so your file probably won't play at all.

Yes, you are right now with 4.2.0 also video won't play. I understand also that is also a player issue, hoping a new fw from WD.

With the next development build the header compression will be disabled. The change has been committed already.

thanks.:)

Lyle_JP
6th August 2010, 07:05
I understand also that is also a player issue, hoping a new fw from WD.

Don't hold your breath. The WD user community has been begging for a new firmware to fix all the bugs introduced in the last firmware for over 8 months now. WD has abandoned them. They refuse to even acknowledge the bugs.

tebasuna51
6th August 2010, 13:05
Yes, you are right now with 4.2.0 also video won't play. I understand also that is also a player issue, hoping a new fw from WD.
You can remux your problematic mkv without header compression. Use MkvMergeGUI, or UsEac3to (http://forum.doom9.org/showthread.php?p=1421955#post1421955), or a batch file like:
@echo off
for %%a in (*.mkv) do "C:\Archivos de programa\MKVtoolnix\mkvmerge.exe" -o "%%a_m.mkv" --compression -1:none "%%a"
pause

mariush
7th August 2010, 02:23
Technically it's not really a bug but I think it should be caught and use be notified more nicely...

drag a mkv file with no audio tracks on the audio encoder section, select mp3 128 abr, queue, and when you start the job it fails..

Log says :


--[Error] An error occurred
---[NoImage] Exception message: Script error: Invalid arguments to function "Audiochannels"
---[NoImage] Stacktrace
----[NoImage] at MeGUI.AviSynthClip..ctor(String func, String arg, AviSynthColorspace forceColorspace, AviSynthScriptEnvironment env)
----[NoImage] at MeGUI.AviSynthAudioEncoder.encode()
---[NoImage] Inner exception: null
--[Information] [8/7/2010 2:43:23 AM] Job completed


I accidentally dragged ep315.mkv instead of ep315.avs and for a moment I didn't realize the problem - for someone more noobish he may have some problems realizing the error.

Wouldn't it make sense to have some basic check when you a file is dragged on the audio input section? There are some checks when you drop audio files (for example mp3) on the video section (though I must admit it's a very long and scary message and one that wouldn't make sense to someone a bit rookie)

... Oh by the way, after clicking ok the mp3 file path still remains in the avysinth script text box on the video section so if someone clicks enqueue, you get error in avisynth message, bad script, unexpected character and so on...

/// MeGUI 0.3.5.0

7ekno
7th August 2010, 02:37
You can remux your problematic mkv without header compression.

That one won't do video (for 4.2.0) nor subs header compression ...

I wrote fixMKV as a BAT file to remove all header compression from all faulty MKVs:
http://forum.doom9.org/showthread.php?t=155976

7ek

tebasuna51
7th August 2010, 11:30
That one won't do video (for 4.2.0) nor subs header compression ...

Works for me also for video tracks.

Triccotracco
7th August 2010, 13:07
Works for me also for video tracks.

Yes, also for me now works, audio & video (x264 i.e.).

Pringles
10th August 2010, 11:25
Do you know what's the difference between aften AC-3 and FFmpeg AC-3? What would be the benefit to use one or another? Thanks!

tebasuna51
10th August 2010, 12:29
Do you know what's the difference between aften AC-3 and FFmpeg AC-3? What would be the benefit to use one or another? Thanks!
The developer of Aften is the same person than the maintainer of AC3 in ffmpeg, but I think he can't implement all the code in Aften to ffmpeg (maybe 64 bit float computations and all the parameters supported by Aften). So use Aften better.

footballer
10th August 2010, 17:18
Hey guys

I tried everything but i still don't know how to encode movie if input/source file is .x264/mkv or mp4!? Is that possible? I'm Windows 7 32x user. I have K-lite and xvid codecs, latest AviSynt, Megui is up to date... everything is fine with .avi/xvid inputs...

If anyone can help please post here, step by step, or give me helpful tutorial or something...

Thanks in advance.

Guest
10th August 2010, 17:31
@footballer

You cannot repost an issue already closed in another thread, per rule 16. You better start reading and following our rules or you will get suspended. I will not strike for this but I could have.

@all

No help on this issue. Thank you.

Jo-eL
10th August 2010, 21:23
When adding a mkv file into megui a new window opens.

"Please Choose your weapon"


And then 2 choices:

One click encoder or File indexer.

Not what I wanted.

Before the latest update it opened the windov avisynth script creator.

can sombody please help me get this option back

Zathor
10th August 2010, 21:52
"Tools\Avisynth Script Creator" and open the MKV there. But the File Indexer is the recommended way.

Jo-eL
10th August 2010, 21:57
"Tools\Avisynth Script Creator" and open the MKV there. But the File Indexer is the recommended way.
AAARRRHHH cool mate thanks.

But if I were to choose the recommended file indexer "How to use it then"

Zathor
10th August 2010, 22:40
Tools\File Indexer, select your media file and press on queue and run the job. As you are using 0.3.5.0 there is a small glitch with mkv files ([FileIndexer] disabled MKV indexing with DGAVCDec. Bug #3024329). Therefore you have to select FFMSIndex by yourself.

Rat Killer
11th August 2010, 21:04
I have been using avscript creater to re-encode for ages. You recommend opening the file with the indexer (I had previously only opend mpeg2 files there). Can you educate me just a bit on what is better about using the indexer rather than script creator?

Loading the mkv file with file indexer, is there a way to extract or direct megui to recode the audio from that point? I see the indexer recognizes the DTS audio but what does it do with it or how to use it from there?

Carpo
12th August 2010, 16:52
I have read back through the last 10 pages, but didn't find what i was after, i haven't used megui in a while but updated it today (dev latest) and noticed that all the profiles have changed, now i am a bit confused as to which is what and what is for whom ;-)

Normally i go from 1080p down to 720p, so i am guessing the profile named:

x264: Blu-ray 1080p24 - 720p24

Is the one i am looking to use, but are there any links to explain what the profiles themselves are best suited for? So i can do a bit of reading up

Also whats this issue with mkvmerge i have been reading? Is it not advised to mux with at them moment, i have 4.2.0

nurbs
12th August 2010, 18:27
I can't check right now, but my guess is that profile produces blu-ray compatible output if the resolution and framerate matches. (If the --nal-hrd switch is used and keyint is set to 24 my assumption is probably correct.) If you just want stuff that's generally compatible with DXVA and hardware players use the dxva profile (HD in your case).

New versions of mkvmergegui have header removal compression on by default which causes issues with hardware players and some software. If you use the mkv muxer in the latest megui version it will be deactivated so you should't have issues. You can also deactivate it in mkvmergegui, but you'll have to do it for each track individually.

Carpo
12th August 2010, 18:47
Thanks for that Nurbs, what is a good CQ figure for HD stuff? is the default 20 a good starting point or will it differ from movie to movie

nurbs
12th August 2010, 19:08
Personally I use 20 for SD (from DVD) and 21 for HD (like you I also resize my blu-rays to 720p). You should test it for yourself because it really comes down to personal preference. I basically encoded some samples at different CRF values after I decided on preset (veryslow with AQ mode 2) and tuning (film or animation). Then I decided which value was still acceptable to me and subtracted 1 to be on the safe side.

As a note: None of my 720p encodes which usually include 2 or 3 stereo audio tracks came out larger than 4 GB.

Carpo
12th August 2010, 20:04
Mine are going to come out large as im keeping the DTS which i down graded from DTS-HD, am testing CQ 20 and CQ 21 on avatar , at the moment CQ 20 is saying about 3.4GB so shouldn't be much more than 4GB, will see which i think looks good to my eyes and then let her rip :D

Edit: may have to rethink the DTS - some of the files are near enough the same size as the video :-p

invy
13th August 2010, 06:37
Can someone tell me how to force One-Click encode to use FIELD DEINTERLACE by default instead of YADIF? I'm too stupid for this... thank you.

AMED
13th August 2010, 09:22
1. Click one click encoder
2. Click config on the OneClick profile
3. Click Config on the avisynth profile
4. Overwrite the <deinterlace> line with the deinterlacer you would like you use, once done click new and create a new AviSynth preset. Then click OK
5. Make sure that the AviSynth profile you have just created is selected on the OneClick config dialog window. unselect automatic deinterlacing. configure the video and audio presets as you need. Click new down the bottom and name the OneClick conf then click ok to close the OneClick.
6. Make sure the new OneClick profile to created is selected and start queuing jobs.

Hopefully make sense been drinking and soon to be smoking :)

nurbs
13th August 2010, 12:27
Edit: may have to rethink the DTS - some of the files are near enough the same size as the video :-p
You should think about using AC3 with 448 or 640 kbps. The latter is about the same quality as DTS at 1.5 Mbps and the former is not much worse. AC3 has very good hardware support as well.
With AAC you could use around 320 kbps for good quality, but AAC support for 5.1 tracks is not that good. Some devices downmix it to stereo and most don't support bitstreaming from what I've heard. I only use stereo so AAC is an obvious choice for me.

invy
13th August 2010, 12:39
1. Click one click encoder
2. Click config on the OneClick profile
3. Click Config on the avisynth profile
4. Overwrite the <deinterlace> line with the deinterlacer you would like you use, once done click new and create a new AviSynth preset. Then click OK
5. Make sure that the AviSynth profile you have just created is selected on the OneClick config dialog window. unselect automatic deinterlacing. configure the video and audio presets as you need. Click new down the bottom and name the OneClick conf then click ok to close the OneClick.
6. Make sure the new OneClick profile to created is selected and start queuing jobs.

Hopefully make sense been drinking and soon to be smoking :)

Spank you very much... although I don't exactly understand #4. Am I suppose to put the path to the deinterlacer? Example: LoadPlugin("C:\Path\MeGUI_0.3.5\tools\yadif\yadif.dll") ?

Also, I'm not sure but is the FieldDeinterlacer the decomb.dll one?

Carpo
13th August 2010, 19:02
You should think about using AC3 with 448 or 640 kbps. The latter is about the same quality as DTS at 1.5 Mbps and the former is not much worse. AC3 has very good hardware support as well.
With AAC you could use around 320 kbps for good quality, but AAC support for 5.1 tracks is not that good. Some devices downmix it to stereo and most don't support bitstreaming from what I've heard. I only use stereo so AAC is an obvious choice for me.


I re-encoded the DTS to 768 and its still 800meg+ glad i also ripped the ac3 audio along with the AC3 ;-) even at 448kbps they may be big but not as big as the DTS, so like you say i should go with that

AMED
13th August 2010, 23:28
Spank you very much... although I don't exactly understand #4. Am I suppose to put the path to the deinterlacer? Example: LoadPlugin("C:\Path\MeGUI_0.3.5\tools\yadif\yadif.dll") ?

Also, I'm not sure but is the FieldDeinterlacer the decomb.dll one?yeah you need the LoadPlugin bit and deinterlacers parameters.
eg for loading yadif i would replace <deinterlace> with
Load_Stdcall_Plugin("C:\Program Files (x86)\MeGUI\tools\yadif\yadif.dll")
Yadif(order=1)
or if i wanted to use tdeint is would replace <deinterlace> with
LoadPlugin("C:\Program Files (x86)\MeGUI\tools\avisynth_plugin\TDeint.dll")
TDeint(order=1)
you can pretty much copy and paste from the AviSynth script creator or you could just create a profile in the avisynth creator save it and use it in step 5.

lubczyk
15th August 2010, 02:08
Is there a way to pause encodes, shut down the computer and continue where one left off later?

This functionality would be really useful for me. When strong thunderstorms come around, I like to turn off and unplug my electronics.

stax76
15th August 2010, 02:48
@lubczyk

Not possible but you could standby/hibernate the OS and use a power strip with surge protection.

mariush
15th August 2010, 02:52
Try installing VirtualBox and run x264 inside the emulated operated system.... I don't know how fast x264 would run but other things run pretty fast on my emulated machine (virtualization capable cpu sure helps)

You can then just suspend the whole virtual machine to disk.

stax76
15th August 2010, 03:03
I'm skeptical but worth a try. :)

Chumbo
17th August 2010, 16:05
I searched the thread for an answer but didn't find one. Basically the encoder is blowing up after it's done which, on multiple passes, never gets to the nth pass. I ran the command line and this is what I got (which explained the error in the log):
http://img210.imageshack.us/img210/2307/win7crash.png (http://img210.imageshack.us/i/win7crash.png/)

I tried setting the executables to run as Administrator and to Win XP Sp3 compatibility mode without success. I also ran the command line as administrator with no success. Any ideas? Thank you.

I'm running Win7 Ultimate 64 bit
Okay, I've gone back and cleaned up my system and even followed the instructions here: http://www.digital-digest.com/articles/MeGUI_H.264_Conversion_Guide_page1.html.

Am still getting this damn message. Can anyone please provide some help on this? I don't know what else to do. Thank you.

Pringles
17th August 2010, 17:36
Is MeGUI able to re encode a mkv x264 file into another one? Because when I'm trying to import my mkv file into the File Indexer, the File Indexer either crashes (dgavcindex.exe is not responding blablabla, when there is audio in the video) or seems idle as it doesn't seem to work on my file. Maybe I'm doing something wrong?

Lighto
17th August 2010, 17:50
Is MeGUI able to re encode a mkv x264 file into another one? Because when I'm trying to import my mkv file into the File Indexer, the File Indexer either crashes (dgavcindex.exe is not responding blablabla, when there is audio in the video) or seems idle as it doesn't seem to work on my file. Maybe I'm doing something wrong?

If you're using 0.3.5.0, use ffmsindex to index the file.
An alternative would be to open the .mkv with avs script creator.

Shevek
17th August 2010, 17:53
If you're using 0.3.5.0, use ffmsindex to index the file.
An alternative would be to open the .mkv with avs script creator.

Or to use the HD Stream Extractor to extract the audio and video to process independently.

Zathor
17th August 2010, 18:36
Okay, I've gone back and cleaned up my system and even followed the instructions here: http://www.digital-digest.com/articles/MeGUI_H.264_Conversion_Guide_page1.html.

Am still getting this damn message. Can anyone please provide some help on this? I don't know what else to do. Thank you.

Which build of MeGUI and which of x264 are you using? If you have updated the x264.exe and x264_64.exe manually you need also to update the other two files (vfw4x264.exe/avs4x264.exe) or it will crash. This package has included the recent x264 builds and the wrapper: http://megui.org/auto/x264-1698-1.zip

As I understand you you have tried to run the command line directly. Are there any errors shown on the command line?

You can try to replace the vfw4x264.exe with avs4x264.exe in your command line. Does it still crash?

Pringles
17th August 2010, 20:24
If you're using 0.3.5.0, use ffmsindex to index the file.
An alternative would be to open the .mkv with avs script creator.

Thanks a lot, it's working http://forum-images.hardware.fr/images/perso/limit.gif

Chumbo
18th August 2010, 01:07
Which build of MeGUI and which of x264 are you using? If you have updated the x264.exe and x264_64.exe manually you need also to update the other two files (vfw4x264.exe/avs4x264.exe) or it will crash. This package has included the recent x264 builds and the wrapper: http://megui.org/auto/x264-1698-1.zip

As I understand you you have tried to run the command line directly. Are there any errors shown on the command line?

You can try to replace the vfw4x264.exe with avs4x264.exe in your command line. Does it still crash?
Thanks Zathor. I'll update all the files and report back.

Yes, the command line works and completes fine with no errors. The executable just crashes and stops working at that point. Whatever this is, it causes the UI to not be able to proceed to pass 2 since the crash causes pass 1 to fail.

[EDIT] Tried the new files but the same thing happened. I've also tried flipping the executables, i.e., switching/replacing them like you suggested with the new files and that didn't work either. I had done the switch thing before too with the older versions with the same results. Sigh...

Any other ideas?

Zathor
18th August 2010, 06:09
Any other ideas?
Replace vfw4x264.exe with x264.exe in your command line so there is no wrapper involved. Does it still crash?

invy
18th August 2010, 07:19
yeah you need the LoadPlugin bit and deinterlacers parameters.
eg for loading yadif i would replace <deinterlace> with
Load_Stdcall_Plugin("C:\Program Files (x86)\MeGUI\tools\yadif\yadif.dll")
Yadif(order=1)
or if i wanted to use tdeint is would replace <deinterlace> with
LoadPlugin("C:\Program Files (x86)\MeGUI\tools\avisynth_plugin\TDeint.dll")
TDeint(order=1)
you can pretty much copy and paste from the AviSynth script creator or you could just create a profile in the avisynth creator save it and use it in step 5.

Thanks.. it worked. I can't believe it was that easy.

Now, this may seem like an even dumber question - but how does I go about keeping multiple one-click profiles? Every time I change the video bitrate in one profile and update that particular profile, when I switch to another one, the video bitrate carries over, and doesn't keep the previous setting.

Is it unable to save video bitrate? Every other option seems to save though... so maybe not that big of a deal.

Penecho
18th August 2010, 18:13
I have couple of Questions regarding MeGui (xvid encoding):

I cant find the D2V tool under the Tools in Megui, howdo i get it?? (Im still using the Dgindex manually, would be nice to have the CLI in MeGui))

Is it possible when creating the *.avs to see how big the AR error would be after the crop settings i made??


Cu


Penecho

Shevek
18th August 2010, 18:49
I cant find the D2V tool under the Tools in Megui, howdo i get it?? (Im still using the Dgindex manually, would be nice to have the CLI in MeGui))

Tools -> File Indexer

All the indexers are now in 1 dialog which chooses the best one based on the source

Sharktooth
18th August 2010, 19:27
not the best... just the more appropriate one

Chumbo
18th August 2010, 23:54
Replace vfw4x264.exe with x264.exe in your command line so there is no wrapper involved. Does it still crash?
That's actually how I had it initially. Yes it crashes too. :( Are you running Win7 x64 and have no issues?

Sharktooth
19th August 2010, 03:47
Chumbo, can you play the whole .AVS file in your favourite directshow media player?
also, is your CPU overclocked?

Chumbo
19th August 2010, 14:20
Chumbo, can you play the whole .AVS file in your favourite directshow media player?
also, is your CPU overclocked?
I loaded the AVS file into GraphStudio 32 bit and it played fine as well as MPC HC. It does NOT play in GraphStudio 64 nor MPC HC x64 but I figured that since AviSynth is not 64bit.

I'm testing this on my notebook which is running standard "out of the box." It's an i7 processor on an ASUS N71Jq. I do have the same issue on my i7 920 desktop which is overclocked and my HTPC which runs the Core2 Quad 9400 and all on Win7U64.

Sharktooth
19th August 2010, 14:23
you need avisynth64 for x264_64.... that's basic.
a 32 bit program cant "communicate" with a 64 bit one... and vice versa.
so, if you're using MeGUI x64 you need also avisynth 64 and all filters must be 64 bits too... as well as DirectShow decoders (if you're using DirectShowSource() )

Chumbo
20th August 2010, 03:23
you need avisynth64 for x264_64.... that's basic.
a 32 bit program cant "communicate" with a 64 bit one... and vice versa.
so, if you're using MeGUI x64 you need also avisynth 64 and all filters must be 64 bits too... as well as DirectShow decoders (if you're using DirectShowSource() )
Thanks Sharktooth. I swear, that was one of the first things I searched for (as you say, it's basic) and found nothing available. Because of that, I just assumed everyone was still using the old avisynth 32-bit. This is why this has been so frustrating. I just searched on "avisynth64" and found a ton of info. Thanks again.

Sharktooth
20th August 2010, 04:06
you're welcome.

cybersharky
20th August 2010, 13:38
I added this to my avs script:
SetMemoryMax(512)
SetMTMode(2,0)

LoadPlugin("G:\megui\tools\dgavcindex\DGAVCDecode.dll")
AVCSource("E:\bdrip\bdrip.dga")
#deinterlace
crop( 0, 140, 0, -140)

and then started getting:
Problem Event Name: APPCRASH
Application Name: vfw4x264.exe
Application Version: 0.0.0.0
Application Timestamp: 4c3fcd8c
Fault Module Name: libavcodec.dll
Fault Module Version: 0.0.0.0
Fault Module Timestamp: 489a5621
Exception Code: 40000015
Exception Offset: 001678f7
OS Version: 6.1.7600.2.0.0.256.1
Locale ID: 1033
Additional Information 1: f1ff
Additional Information 2: f1ffe2362c56ca92405b46a8fcdd5fb1
Additional Information 3: 0311
Additional Information 4: 0311363c45a8fe8d7615799959336073

Sharktooth
20th August 2010, 14:20
1st - DGAVCDec is deprecated. Dont use it. Use FFMS2 instead.
2nd - you used SetMTMode for what? remove that.

Chumbo
20th August 2010, 14:43
you're welcome.
By the way, it kept crashing after I set everything up, but then realized I need to rename everything, i.e., copy x264_64.exe and rename the copies to their respective counterparts, i.e., avs4..., vfw4..., etc. Then it worked...finally! :)

cybersharky
20th August 2010, 15:27
1st - DGAVCDec is deprecated. Dont use it. Use FFMS2 instead.
2nd - you used SetMTMode for what? remove that.

Ok I extracted the video to MKV, I used FFMS2 to index it, but now I see blocks in some of the frames.
http://a.imageshack.us/img833/6223/ffms2startrek.jpg

I was testing before I use a script that can take advantage of using MT avisynth.

Sharktooth
20th August 2010, 20:29
uhm. interesting. what version of avisynth are you using?
also, does that happen on that video only?

cybersharky
21st August 2010, 11:41
uhm. interesting. what version of avisynth are you using?
also, does that happen on that video only?

Avisynth Version : 2.5.8.5, but I'm using the MT one.

Great :confused:, Avatar Blu-ray is fine, so it's just Star Trek with block issues.

Edit:
I ripped the Blu-ray again, extracted video to MKV, indexed, and exact same frames are still "blocky"

MadisonRG
21st August 2010, 13:41
Hello everybody.
I have some trouble with my Megui encoder.
When I try to encode a HD content in Progressive mode, the Megui, after about 10 sec of work, is crashed. And I get this message:http://i054.radikal.ru/1008/99/96f7a81cb8aat.jpg (http://radikal.ru/F/i054.radikal.ru/1008/99/96f7a81cb8aa.jpg.html)
This message points at the libavcodec.dll. But I don't know what it does mean.
If HD content is Interlace, that it works fine. But when I do it in the Ripboot that it works fine too. I have Win 7 x32. What can I do with this problem? Sorry for my English and many thanks to you all.

Sharktooth
21st August 2010, 14:45
Avisynth Version : 2.5.8.5, but I'm using the MT one.

Great :confused:, Avatar Blu-ray is fine, so it's just Star Trek with block issues.

Edit:
I ripped the Blu-ray again, extracted video to MKV, indexed, and exact same frames are still "blocky"

what program you use for ripping?

Sharktooth
21st August 2010, 14:49
Hello everybody.
I have some trouble with my Megui encoder.
When I try to encode a HD content in Progressive mode, the Megui, after about 10 sec of work, is crashed. And I get this message:http://i054.radikal.ru/1008/99/96f7a81cb8aat.jpg (http://radikal.ru/F/i054.radikal.ru/1008/99/96f7a81cb8aa.jpg.html)
This message points at the libavcodec.dll. But I don't know what it does mean.
If HD content is Interlace, that it works fine. But when I do it in the Ripboot that it works fine too. I have Win 7 x32. What can I do with this problem? Sorry for my English and many thanks to you all.
that's a x264 crash. what version of megui are you using?

cybersharky
21st August 2010, 14:59
what program you use for ripping?

I used Dvdfab passkey. The extracted MKV file plays perfectly, I played the parts with "blocky" frames in MPC-HC.

Sharktooth
21st August 2010, 15:03
what version of megui are you using?
post your avisynth script too.

MadisonRG
21st August 2010, 15:09
Sharktooth, I am using 0.3.5.0 version.

Sharktooth
21st August 2010, 15:39
please try updating to the dev version (0.3.5.8)

MadisonRG
21st August 2010, 16:55
Sharktooth, thanks for your advise. I updated till 0.3.5.8 but it's not help me. I have to wait of the new versions.

Zathor
21st August 2010, 17:13
Please post your avisynth script. I assume you are using DGAVCDec - is this correct? If yes use the file indexer to create an index with FFMS2 and use this as your avisynth source filter.

Brandoon
21st August 2010, 19:47
I have a .flv music video from youtube that I am trying to replace the audio track and save for an ipod. Is it possible to have audio play in the video preview window so I can adjust the delay of the new audio track I am replacing?

MadisonRG
21st August 2010, 22:27
Zathor, thanks. Yes, I'm really using DGAVDec. I tried FFMS2, but it wasn't help me too. With FFMS2 the megui is crashed when to leave to end about 2 or 3 minutes , and points at the ffms2.dll. Thank you very much indeed for your help.

rtjnyoface
22nd August 2010, 19:23
I don't really understand why dgavcdec is still in megui as it is, as some would say, deprecated. If it's so outdated why is it still an option in megui. Even if we do continue to use it how many issues, really, can there be.

Also, Sharktooth, will you be posting any info regarding megui's quasi legality issue here in this forum? It would sure stink to have to manually update all of megui's components :(. Maybe the option could stay there but only inform you of updates. Of course we could still update those that weren't in any legal gray area ATM.

Edit: How does this affect the "patched" version?? (As if I could tell you the difference lol)

Sharktooth
23rd August 2010, 03:15
rtjnyoface: dgavcdec is still there coz ffms2 indexing does not demux the audio streams. however dgavcdec will be removed at some point.
about the "quasi legality", megui is perfectly legal. some binary packages distributed with the auto-update method are not in some countries. i still have to figure out an optimal solution for that.

cybersharky
26th August 2010, 13:44
I used Dvdfab passkey. The extracted MKV file plays perfectly, I played the parts with "blocky" frames in MPC-HC.

The latest auto update to FFMS2(r327-1) appears to have fixed the "blocky" frames.

Underground78
26th August 2010, 19:05
Hi,

I see that there is no preset "Blu-Ray 1080p25" in Megui, I know it's not allowed by the spec but does using "--fake-interlaced" would work as in "Blu-Ray 576p25". In the same way, can we use --pulldown double to make a valid stream for 720p.

By the way, I think there is a mistake in "720p50" et "720p60", there is no reason to use the flag "--fake-interlaced" if I am not mistaken.

Underground78

cybersharky
27th August 2010, 19:30
LoadPlugin("G:\megui\tools\ffms\ffms2.dll")
FFVideoSource("E:\bdrip\T1_Video - .mkv")
#deinterlace
crop( 0, 140, 0, -140)

LanczosResize(720,304) # Lanczos (Sharp)
#denoise

I used this profile: x264 Blu-Ray 480p24

There's green bar across the video:
http://a.imageshack.us/img842/5379/startrekx.jpg

[Information] Versions
-[NoImage] MeGUI Version : 0.3.5.8
-[NoImage] OS : Windows Seven Ultimate Edition x64 (6.1.0.7600)
-[NoImage] Latest .Net Framework installed : 4.0 (4.0.30319)
-[NoImage] Avisynth Version : 2.5.8.5

Sharktooth
28th August 2010, 01:42
what decoder are you using?

cybersharky
28th August 2010, 10:04
what decoder are you using?

:o I changed the decoder to ffmpeg in ffdshow now the green bar is gone.

RyaNJ
28th August 2010, 10:10
I've just hit an issue - running the bitrate calculator for a nero-acc audio file I just encoded causes an "index out of bounds" error. The audio file plays no problem. Any idea why this is or if there is a fix?

Zathor
28th August 2010, 11:43
Please describe the steps to reproduce the problem.

RyaNJ
28th August 2010, 13:54
Basically I am converting over a DVD slideshow for my uncle from a DVD. First run the file indexer then I encode the audio and when I then try to set the bitrate calculator before running the video conversion I get the above error. I tested and the encoded audio plays file, but it will not allow me to run in the bitrate calculator for some reason.

royia
28th August 2010, 17:33
Hello.
I have a question regarding audio in MeGUI.

Let's say I created an AVISynth script which loads AVI file which includes audio, trims it and applies some filters (Video Filters).
No I want to transcode this into MKV file with x.264 and Lame (MP3).

How should I do that in a way which keeps the audio synced?
How should I config the Video Input in MeGUI? Should it be the same script file or what?
Thanks.

Underground78
28th August 2010, 19:51
Hi,

I see that there is no preset "Blu-Ray 1080p25" in Megui, I know it's not allowed by the spec but does using "--fake-interlaced" would work as in "Blu-Ray 576p25". In the same way, can we use --pulldown double to make a valid stream for 720p.

By the way, I think there is a mistake in "720p50" et "720p60", there is no reason to use the flag "--fake-interlaced" if I am not mistaken.

Underground78

Hello,

Nobody knows ? It seems that the preset for 576p25 can do 1080p25 too and for 720p25 I have this proposal, can somebody confirm it is valid ?

--open-gop bluray --pulldown double --pic-struct --level 4.1 --bframes 3 --ref 4 --slices 4 --aud --nal-hrd vbr --b-pyramid strict
--keyint 25 --min-keyint 2 --vbv-bufsize 30000 --vbv-maxrate 40000 --weightp 0 --colorprim "bt709" --transfer "bt709" --colormatrix "bt709"

Thanks in advance !

royia
28th August 2010, 20:58
Ok, I managed to make the Audio work.
Let's say I have a script which I use to Encode the Audio and the Video and I want them automatically muxed into one file.
The way I see it now I must wait for the Encoding process to finish and then mux them.

Is there a way to do this automatically?

P.S.
Found a way using "One Click Encoding".

Sharktooth
29th August 2010, 02:28
Basically I am converting over a DVD slideshow for my uncle from a DVD. First run the file indexer then I encode the audio and when I then try to set the bitrate calculator before running the video conversion I get the above error. I tested and the encoded audio plays file, but it will not allow me to run in the bitrate calculator for some reason.
why you encode the audio that way? isnt it easier to index (demuxing audio), create the avs (that will automatically loaded as video input) and load the audio in the audio input and then click auto-encode?
megui will automatically ask for bitrate, filesize, whatever...

Sharktooth
29th August 2010, 02:33
Hello.
I have a question regarding audio in MeGUI.

Let's say I created an AVISynth script which loads AVI file which includes audio, trims it and applies some filters (Video Filters).
No I want to transcode this into MKV file with x.264 and Lame (MP3).

How should I do that in a way which keeps the audio synced?
How should I config the Video Input in MeGUI? Should it be the same script file or what?
Thanks.
in your case, create the avs in megui using the avisynth script creator (tools menu). it will automatically load the avs in the video input once you're done.
then, use the same script for audio loading the avs in the audio input (ensure audio=false is not set in the avisource() filter). set both vide and audio presets you want to use (one of the x264 presets and one of the lame presets) click auto-encode, set your container (mkv) and bitrate or filesize or whatever, go on and proceed starting the queue.

Sharktooth
29th August 2010, 02:34
@underground78: presets are going to be fixed asap.

Underground78
29th August 2010, 08:35
@underground78: presets are going to be fixed asap.

Ok, I will see.

RyaNJ
29th August 2010, 09:44
in your case, create the avs in megui using the avisynth script creator (tools menu). it will automatically load the avs in the video input once you're done.
then, use the same script for audio loading the avs in the audio input (ensure audio=false is not set in the avisource() filter). set both vide and audio presets you want to use (one of the x264 presets and one of the lame presets) click auto-encode, set your container (mkv) and bitrate or filesize or whatever, go on and proceed starting the queue.

I usually do it manually - always have done though I have no idea why.

If you think that'll work though I will give it a short.

flebber
29th August 2010, 23:07
If you are on the front screen of megui load your video in the video your audio in the audio and press auto encode.

If you use the fiel indexer it will automatically place the files in the correct boxes.

Sharktooth
30th August 2010, 02:52
cpu usage never croses 40% usage with megui

got amd 7750 cpu

here is the basic script i used

fft3dGPU(mode=1,precision=2, sigma=4.25, bt=4, bw=32, bh=32, ow=16, oh=16)
Convolution3D(preset="moviehq")
LSFMod(Strength=120, Smode=5)
fluxsmoothT(5)
a= last
b=a.degrainmedian(limitY=3, limitUV=5,mode=0).VagueDenoiser(threshold=1.2, method=1, nsteps=6, chromaT=0.8)
SeeSaw(a,b, NRlimit=3, NRlimit2=4, Sstr=1.5, Slimit=5, Spower=5, Sdamplo=6, Szp=16, sootheS=20)
GradFunkMirror()
Grainfactory3(3,3,3)

does all filters used here support multithreading if not which filter doesnt support multithreading!!!!

i used MT filter but it asks for modified version of avisynth

any sort of suggestion will be appreciated

this script takes lot of time!!!

Regards
Raj1402
your avisynth script is limiting your CPU usage.
that's not a megui problem but rather a question you should ask in avs forum. please ask a moderator to move your post to the appropriate forum.

Rat Killer
30th August 2010, 20:30
If you are on the front screen of megui load your video in the video your audio in the audio and press auto encode.

If you use the fiel indexer it will automatically place the files in the correct boxes.

I always thought that was what was supposed to happen. the indexer loads into the avs script creater and then to the video input just fine. The indexer does not load the audio file to the audio input though. Still have to select that manually after the indexer demuxes the audio track.

Also, and may be related, using DGIndexNV the button for Select Audio Tracks is pre selected and greyed out but does not demux any audio. Selecting demux all audio tracks does. (My files only have one audio track)

royia
1st September 2010, 18:24
Hello.
I have a question.
I have an Interlaced AVI file.

MeGUI says it Top Field First.
AVISynth info() says Parity - Bottom Field First.
Who should I believe?

Moreover, I'm using ReduceFlicker plug in:
http://home.arcor.de/kassandro/ReduceFlicker/ReduceFlicker.htm

In AvsP:
http://avisynth.org/qwerpoi/

It works great and I can see its effect.
Trying to load the same script in MeGUI yields error:
http://i55.tinypic.com/53623m.png

Playing the same script in Media Player Classic works with no problem.

Here's the script:
LoadPlugin("E:\MeGUI\tools\hqdn3d\hqdn3d.dll")
LoadPlugin("E:\MeGUI\tools\cnr2_v261\cnr2.dll")
Load_Stdcall_Plugin("E:\MeGUI\tools\yadif\yadif.dll")
LoadPlugin("E:\MeGUI\tools\ReduceFlicker\ReduceFlicker.dll")

AVISource("G:\13.avi", audio=true)

ConvertToYV12()

#info()
Trim(5, 204).FadeOut2(2) + Trim(2840, 3360).FadeOut2(2).FadeIn(2) + Trim(16650, 116900).FadeIn(2)

#ReduceFlicker(strength=2, aggressive=false, grey=false, planar=false)#Defaults Value
ReduceFlicker(strength=1, aggressive=false, grey=false, planar=false)

#Deinterlace
Yadif(mode=0, order=1)

#Resize

#Denoise

#Cnr2(mode="oxx", scdthr=10, ln=35, lm=192, un=47, um=255, vn=47, vm=255, false) # Defaults Values
Cnr2("oxx", 6, 5, 10, 10, 20, 10, 20, false)

#hqdn3d(4, 3, 6, 4.5) # Defaults Values
hqdn3d(1.5, 2.5, 1.5, 3)
#ConvertToYUY2()

crop(16, 8, -16, -8)

Any idea?

Thanks.

Lyle_JP
1st September 2010, 20:21
The best way to determine field order is to check it yourself. Use a simple AssumeTFF().Separatefields() statement, then step through and check to see if there is a lot of backwards movement. If there's not, then your video is indeed TFF.

Sharktooth
2nd September 2010, 01:05
I always thought that was what was supposed to happen. the indexer loads into the avs script creater and then to the video input just fine. The indexer does not load the audio file to the audio input though. Still have to select that manually after the indexer demuxes the audio track.

Also, and may be related, using DGIndexNV the button for Select Audio Tracks is pre selected and greyed out but does not demux any audio. Selecting demux all audio tracks does. (My files only have one audio track)
That's normal. Audio doesnt get selected automatically coz some sources may have more than an audio file and MeGUI doesnt know what audio you want to encode.
Also DGIndexNV (if nothing changed in the latest version and IIRC) is only able to demux all tracks.

Guest
2nd September 2010, 01:08
Also DGIndexNV (if nothing changed in the latest version and IIRC) is only able to demux all tracks. Via the CLI, yes.

royia
2nd September 2010, 14:34
The best way to determine field order is to check it yourself. Use a simple AssumeTFF().Separatefields() statement, then step through and check to see if there is a lot of backwards movement. If there's not, then your video is indeed TFF.
OK, Did that.
Using AssumeTFF().Separatefields() got a fluid result.
Using AssumeBFF().Separatefields() got a "jumpy" result. I guess TFF it's - MeGUI was right, AVI Synth was wrong.

Rat Killer
2nd September 2010, 16:41
That's normal. Audio doesnt get selected automatically coz some sources may have more than an audio file and MeGUI doesnt know what audio you want to encode.
Also DGIndexNV (if nothing changed in the latest version and IIRC) is only able to demux all tracks.

Thanks for the info. At least I know its working as designed.

forum king
8th September 2010, 06:54
hey guys , i am using the development servers now a days for the patched build.
yesterday while encoding , due to reason my system restarted abruptly :
and since then i cant encode a file wa nearly 90% in 2nd pass so i restarted the 2nd pass but i am getting this error in megui

[Error] An error occurred: avis [error]: unsupported input format (DIB )

i always add ConvertToYV12() at the end of avisynth script
and the video preview is working too
but when i try and play the avisynth script in MPC this is what i get :

Directshow source : couldnt open the file ......
No combination of filters could be found to render the stream.
says error in line 1 ( off curse measn error in line 1 of the script )

the line 1 of the script is
DirectShowSource("C:\Users\lifetalk\Desktop\ALL\second.half.of.me_10.9.9.mkv", fps=25, audio=false, convertfps=true)

so does it mean i have to reinstall klite ( which i use or avisynth or what ?

thanks in advance.

regards

Neil


PS : my apologies in advance if this aint the right forum to post this. ( i have posted this at the Zathors patched build thread as well , just in case this is not the right forum )

Sharktooth
8th September 2010, 12:52
it means the system cant find a directshow filter to decode your file.
in your case i suggest you to remove ALL codec packs (search for codec pack to know why they are EVIL) and to install matroska splitter and ffdshow-tryouts.
about the builds... zathor is in the MeGUI development team with me and spawn_guy, so what zathor makes is "official".
if you want the latest megui, ensure to switch to the development server.

tormento
9th September 2010, 11:36
I have tried to multithread a complex AVS script but there seems to be too much not compatible filters and so.

Is it possible to get an automated split encoding creator? I.E. you feed the avs and MEGUI splits parts of the video (numbers of physical or logical cores) giving each part to a concurrent worker. I know I could do it by AVS scripting but I need to encode a lot of AVCHD files and some automation could be nice ;)

Sharktooth
9th September 2010, 16:50
what you mean with "not compatible filters"?

tormento
9th September 2010, 19:18
what you mean with "not compatible filters"?
FFT3DGPU in a MT loop and so on. There are lot of filters that can't or perform bad in SetMTMode or MTs. Please, an automatic multithread encoding would be a revolutionary and very useful option.

P.S: I saw you updated the forced SAR values in x264 configuration panel. I think you forgot 64:45 that is the MUST option to anamorphically encode DVDs. :p

Sharktooth
9th September 2010, 20:34
there is not much sense in using FFT3Dgpu in a mt loop... however, you can add trims to your avs file and then process them as separate workers.
if you're lucky it wont exceed the 2GB memory barrier... but i doubt...
ill update the sar options.

tormento
9th September 2010, 23:11
however, you can add trims to your avs file and then process them as separate workers.
I know the trim command and I would not ask it as a feature if I should not have to encode a lot of marriage/travel/walkaround AVCHD footages. Can you imagine how many files could a 250GB contain? :mad: Well, after a year of cam usage, it's full and it's time to format..
if you're lucky it wont exceed the 2GB memory barrier...
I use the x64 compile of MEGUI. Is there any memory barrier too?
ill update the sar options.
Thanks.

Sharktooth
10th September 2010, 02:53
if you use 64 bit megui along with 64 bit avisynth then there should be no problems as long has you have physical memory (RAM) to start the processes

Alex_080
10th September 2010, 16:31
In MeGUI can anyone suggest which resize filter is better for resizing 1080p to 720p(Anime BD)?

Sharktooth
10th September 2010, 17:15
it's subjective. the best is whats best for you.
you can try different filters and compare the resulting image (using the preview window in megui).
remind that sharp filters require more bitrate.

tormento
10th September 2010, 18:53
if you use 64 bit megui along with 64 bit avisynth then there should be no problems as long has you have physical memory (RAM) to start the processes
Wunderbar.

Any hope about the feature I asked?

Sharktooth
11th September 2010, 03:41
maybe in the next versions. please post it in the feature request tracker on the megui project page on sourceforge.

lych_necross
11th September 2010, 07:19
In MeGUI can anyone suggest which resize filter is better for resizing 1080p to 720p(Anime BD)?
Sharktooth is right; however, when in doubt, start experimenting with Bicubic and go from there (just make sure to check it out in the preview window first).

tormento
11th September 2010, 07:34
Sharktooth is right; however, when in doubt, start experimenting with Bicubic and go from there (just make sure to check it out in the preview window first).
AFAIK to decrease the resolution, even Photoshop suggest to use a very simple filter. Even bilinear should make the work. Higher order filters are supposed to introduce harmonycs when going down.

tormento
11th September 2010, 07:40
maybe in the next versions. please post it in the feature request tracker on the megui project page on sourceforge.
Thanks for the incredibly FAST 64:45 feature adoption ;)

The suggestion about segmented encoding has been posted on SF.

LigH
11th September 2010, 13:50
Oops ... did I miss a change in the update server, or is there a fault?

Trying server: http://www.constructd.com/megui/
Retrieving update file from server...
Error: Couldn't connect to server.
Error: Could not download XML file
Loading update data...
Error: Invalid XML file. Aborting.

http://www.constructd.com/megui/ => 404: The requested URL /megui/ was not found on this server.

Zathor
11th September 2010, 13:57
This has been an intermediate update server before I had access to the official one during November/December last year. Please use the official ones:

Update server for latest stable build
http://megui.org/auto/stable/

Update server for latest development build
http://megui.org/auto/

LigH
11th September 2010, 14:37
So "back to the roots". :)

MajorX
12th September 2010, 16:44
Hi
I m new in using MeGUI ... so i want to know is it possible to select audio_track1 or audio_track2 in from video when i selecting a dual audio file in Audio Input. Means i want to use audio_track2 but when i select that video file as Audio Input MeGUI select audio_track1.

Sharktooth
12th September 2010, 16:55
megui can accept almost any audio you feed it with... so explain better what procedure you used.

MajorX
12th September 2010, 17:19
I encode a dual audio file to a single audio file.First i create a AVS Script , set setting and video encoding part done . In Audio section i select that file as audio input and set setting for audio.MeGUI done all correct and it select the audio_track 1(first audio) from that dual audio file. But i want audio_track 2 with video.So i want know is it possible when i select a dual audio as audio input it ask for which audio to use track 1 or track 2?
I know it is possible that i can extract all audio files then select in Audio Section as Track 1 and Track 2 but i want to know is it possible when i select a dual audio file as audio input ..... i can select audio_track what i want.

swainjena
13th September 2010, 11:33
whenever i try to encode an avi file, the x264 process runs well upto a certain extent and then the system restarts..i cannot figure out what is happening....i use the latest updated versions of megui and avisynth...i run windows 7 os

swainjena
13th September 2010, 11:35
after system restarts when i run megui again and on checking the queue...it shows that x264 process has never run( i.e it is still waiting in the queue)
i have been facing this problem for days together plz help me

LigH
13th September 2010, 12:48
The first issue I would check is the dust felt between your cooler ribs, then... ;)

A sudden PC restart during a very CPU intense task often means a faulty cooling.

swainjena
13th September 2010, 13:08
no problem with the cooler ribs....the system restarts only during this megui process

Sharktooth
13th September 2010, 14:30
is your system overclocked? if so, remove the overcloking and try again.

nurbs
13th September 2010, 14:49
the system restarts only during this megui process
That's not unusual. There are a couple of posts on the forum where people never run into heat or overclocking stability issues until they encode with x264. It really makes good use of the CPU.

board123
13th September 2010, 18:45
Changing the Psy-RD setting doesn't seem to add the correct switch in the x264 command with certain tuning presets unless Psy-Trellis is also changed from its default value. I've noticed this issue ever since Psy-RD was introduced to MeGUI.

Let's say the command window shows the following for the Slow preset w/ Animation tuning:
program --preset slow --tune animation --crf 20 --output "output" "input"
Changing Psy-RD by itself doesn't add anything to the command. Changing Psy-Trellis by itself also doesn't add anything to the command. The command only changes when both Psy-RD and Psy-Trellis are changed from their default values of 0.40:0.00 to, say, 0.41:0.01.
program --preset slow --tune animation --crf 20 --psy-rd 0.41:0.01 --output "output" "input"
AFAIK, Psy-RD and Psy-Trellis are not tied to each other; you're allowed to adjust the two settings independently. Is this a bug with MeGUI?

swainjena
13th September 2010, 22:15
I hhave never overclocked my cpu...

nurbs
13th September 2010, 22:25
What about cooling? What temperature does the CPU reach during encoding?

swainjena
13th September 2010, 22:31
no overheating problems

swainjena
13th September 2010, 22:31
system always gets restarted towards the end of the x264 process

swainjena
13th September 2010, 22:39
i have even made clean installation of megui and avisynth couple of times

tormento
13th September 2010, 23:01
Checked the video card if you use DGNVTools or GPU intensive filters?

swainjena
13th September 2010, 23:07
the log syas that:
job3: applied bitrate is 21bitspersec but the minimum should be 34bitspersec....but i have applied a video bitrate of 912kbps

Usedocne
13th September 2010, 23:24
system always gets restarted towards the end of the x264 process

Is your HDD partitioned? I use to get BSOD when my HDD was partitioned, while encoding (writing to HDD). Could also be RAM.

swainjena
13th September 2010, 23:27
yes my hdd is partitioned into 5 drives

Usedocne
13th September 2010, 23:36
yes my hdd is partitioned into 5 drives

Any BSOD while doing other tasks involving file read/writes e.g. copying files between partitions, downloading files?

swainjena
13th September 2010, 23:47
This problem of restarting occurs only during the running of x264 process

Usedocne
13th September 2010, 23:55
This problem of restarting occurs only during the running of x264 process

The only thing I can think of doing is, maybe installing an older version of MeGUI and x264, and see if that works?

Sharktooth
14th September 2010, 03:46
@swaijena: what are your system specs?

Sharktooth
14th September 2010, 03:47
Changing the Psy-RD setting doesn't seem to add the correct switch in the x264 command with certain tuning presets unless Psy-Trellis is also changed from its default value. I've noticed this issue ever since Psy-RD was introduced to MeGUI.

Let's say the command window shows the following for the Slow preset w/ Animation tuning:
program --preset slow --tune animation --crf 20 --output "output" "input"
Changing Psy-RD by itself doesn't add anything to the command. Changing Psy-Trellis by itself also doesn't add anything to the command. The command only changes when both Psy-RD and Psy-Trellis are changed from their default values of 0.40:0.00 to, say, 0.41:0.01.
program --preset slow --tune animation --crf 20 --psy-rd 0.41:0.01 --output "output" "input"
AFAIK, Psy-RD and Psy-Trellis are not tied to each other; you're allowed to adjust the two settings independently. Is this a bug with MeGUI?
ill look into that.

swainjena
14th September 2010, 08:02
the log syas that:
job3: applied bitrate is 21bitspersec but the minimum should be 34bitspersec....but i have applied a video bitrate of 912kbps

Mr. sharktooth , this was the log in megui that i observed after the system gets restarted

regarding system specs:
windows os: windows 7 ultimate 32 bit system
4gb ram(2.75 usable)
amd 2core processor
m2n-mx-se motherboard

olex99
14th September 2010, 10:05
i've just upgraded to 0.3.5.12 and noticed a change in the workers.

I usually have the main worker doing all my encodes and then start a temporary worker to do muxing and audio encoding etc.. I've noticed in the new update if abort the job in my main worker, but leave more items in its queue, the temporary worker will restart the main worker when it goes to start its job. Before both workers used to keep to their own queues.

Cheers

Sharktooth
14th September 2010, 15:06
Mr. sharktooth , this was the log in megui that i observed after the system gets restarted

regarding system specs:
windows os: windows 7 ultimate 32 bit system
4gb ram(2.75 usable)
amd 2core processor
m2n-mx-se motherboard
your system specs are ok. but what bothers me is the log...
there is definatly something wrong.
thinking...

Sharktooth
14th September 2010, 16:15
@board123: the bug has been fixed and the fix will be included in the next build.

board123
14th September 2010, 18:56
@board123: the bug has been fixed and the fix will be included in the next build.

Excellent. Thanks a lot!

tomos
23rd September 2010, 01:24
searched here and google but haven't found an answer.

basically, on my old and now new system, the 2nd pass is fine but the 1st barely goes above 1 core. one thing my search brought up was that some filters or whatever aren't made with multithreading in mind? i removed things 1 by 1 from the AVS script with no effect until in the end, i only had the dgindex part (loading the dgdecode dll).

is it a limitation with megui/x264 or dgindex?

win7-x64, 6core amd

Sharktooth
23rd September 2010, 03:34
dgindex is singlethreaded but it shouldnt be a problem.
ensure you have threads=0 (auto) in your x264 preset.

tomos
23rd September 2010, 10:12
ta for the reply.

i've left the threads on default @ 0.

Sharktooth
23rd September 2010, 14:10
post your x264 commandline

tomos
23rd September 2010, 18:34
program --level 4.1 --preset fast --pass 2 --bitrate 1200 --stats ".stats" --deblock -1:-1 --bframes 7 --b-adapt 2 --b-pyramid none --ref 7 --vbv-bufsize 14000 --vbv-maxrate 17500 --ratetol 10.0 --no-mbtree --me umh --direct auto --trellis 2 --output "output" "input"

copied from MEGUI (i presume thats right?). all i changed is the bitrate

getting 24% usage from it at the mo (x264_64.exe). the vfw4x264 one hits 4-6%

+

just in case it helps, the script megui gave me

LoadPlugin("C:\megui\tools\dgindex\DGDecode.dll")
DGDecode_mpeg2source("G:\italia.d2v")
#deinterlace

Spline36Resize(720,416) # Spline36 (Neutral)
#denoise
undot()

Sharktooth
23rd September 2010, 19:15
it could be b-adapt 2 (b-frames placement). change it to 1 and report back.

tomos
23rd September 2010, 19:35
ok, changed adaptive b-rames to 1- fast

frame rates more than doubled. the x264 process is the same (24ish %) but the vfw one is now 14-17% cpu usage. roughly 4 or so before

any way of maxing out the CPU? or would it require lowering quality settings to do this (defeating the purpose of (IMO) using x264)?

ta for the help btw :)

Sharktooth
23rd September 2010, 19:57
i suppose you should use avisynth-mt or ffms2-mt to get more frames out of the decoder.
if you have recent nvidia videocard, you can try dgnvtools but i suppose ffms2-mt would be faster on your processor.

tomos
23rd September 2010, 20:14
dont have any nvidia hardware in either pc. all ATi.

i'll check out avisynth MT again

ta :)

royia
23rd September 2010, 20:39
Hello.
I have 2 PC Computers.
Both have the same HD and Motherboard.
One has Intel Quad Core Q9550s with 8GB of Memory - Let's call it System 1.
The other had Intel Quad Core Q8200 with 4GB of Memory - Let's call it System 2.

Both are running Windows 7 64Bit and MeGUI 32 bit - Latest Stable version.

I ran the same Encoding task in both of them - Encoding Uncompressed 720x576 AVI video into MKV file using x.264 with the same settings (crf 25, Medium), The AVI file is preprocessed with simple AVISynth script.
I would assume System 1 to be faster (Bigger Cache, More Megahertz).

Yet while System 2 Encodes at more than 35fps System 1 never gets beyond 20fps.
How could that be? Could it be some optimization in x.264 / MeGUI?

Thanks.

P.S.
Even used a blank AVISynth script (Just load the AVI file) and yet couldn't get Systems 2's performances which leads me to the conclusion it is mainly x.264 issue.
Could x.264 be more optimized toward the Q8200? What's wrong here?

Sharktooth
23rd September 2010, 20:56
megui has no CPU optimizations. x264 does though.
however, i suspect your system 1 is overheating and the CPU is being throttled down.

royia
23rd September 2010, 22:02
megui has no CPU optimizations. x264 does though.
however, i suspect your system 1 is overheating and the CPU is being throttled down.

I'll look into that, Didn't consider it as an option.
I'll update on the result.


Thank You.

RyaNJ
24th September 2010, 12:19
I'm hitting an issue with the Nero AAC encoder.

I'm working with audio from a DVD slideshow. It gets to 6 minutes and 10 seconds then the audio encoding fails and I have no idea why.

[Information] Commandline: C:\Program Files (x86)\MeGUI\neroAacEnc.exe -ignorelength -lc -br 256000 -if - -of "D:\Temp\Life T80 3_2ch 448Kbps DELAY 0ms.mp4"

And then it fails with this:

[Error] An error occurred
-[Error] Exception message: The pipe has been ended.
-[Error] Stacktrace
--[NoImage] at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
--[NoImage] at System.IO.FileStream.WriteCore(Byte[] buffer, Int32 offset, Int32 count)
--[NoImage] at System.IO.FileStream.Write(Byte[] array, Int32 offset, Int32 count)
--[NoImage] at MeGUI.AviSynthAudioEncoder.encode()
-[Error] Inner exception: null

Anyone know how I can fix this? Interestingly it is only with this one piece of audio, others I have tested work fine. But the audio plays fine. Very strange.

Sharktooth
24th September 2010, 12:59
probably it's a corrupted stream. try decoding it to wav and then use the wav to re-encode with nero.

RyaNJ
24th September 2010, 13:01
I have tried playing the audio file and it plays without any issue on VLC. It just will not encode.

What software do I need to decode it to a wav?

Sharktooth
24th September 2010, 13:12
different decoders may lead to different results. use whatever you like to decode it to wav. even vlc, if you like it, is ok for that.

royia
24th September 2010, 13:36
megui has no CPU optimizations. x264 does though.
however, i suspect your system 1 is overheating and the CPU is being throttled down.

You were right!
I bought a new cooling for the CPU.
Now I get the frame rate close to 50.

Thank You!

Sharktooth
24th September 2010, 13:41
you're welcome

forum king
26th September 2010, 21:05
Hey there :)
umm.. could u folks guide me how can i encode a 5.1 audio in megui
i have tried using the multichannel 192kbps profile , but the re encode audio shows 2 channels in mediainfo .
i have a video that has 5.1 audio in it and i wanna re encode itys audio to 5.1 aac

pl guide.
regards

Betsy25
26th September 2010, 23:22
Using : The latest development build, winXP SP3 32bit.

Is it a known issue that I encounter "I/O error" messages once in a while, while encoding with x264, when using more than 1 worker ?

When I use 2 workers, and I have a bunch of small video's to be converted in the queue, every once in a while I get errors in the logs, the resulting .mp4 files created are broken when played in mpc-hc.

tebasuna51
27th September 2010, 02:32
...
i have tried using the multichannel 192kbps profile , but the re encode audio shows 2 channels in mediainfo .
i have a video that has 5.1 audio in it and i wanna re encode itys audio to 5.1 aac
Please put your log file.:logfile:

forum king
27th September 2010, 05:30
Please put your log file.:logfile:
here :

[Information] Log for job10 (audio, Pats123.mkv -> Pats123-5.1.channel.audio.mp4)
-[Information] [9/26/2010 8:13:41 PM] Started handling job
-[Information] [9/26/2010 8:13:41 PM] Preprocessing
-[NoImage] Avisynth script
--[NoImage] DirectShowSource("C:\josh\Desktop\ALL\Pats123.mkv", video=false)
--[NoImage] EnsureVBRMP3Sync()
--[NoImage] Normalize()
--[NoImage] return last
-[NoImage] Commandline used: -ignorelength -he -br 192000 -if - -of "{0}"
-[Information] [9/26/2010 8:13:41 PM] Encoding started
-[Information] [9/26/2010 8:13:41 PM] Encode thread started
-[Information] [9/26/2010 8:13:41 PM] Avisynth script environment opened
-[Information] [9/26/2010 8:13:44 PM] Script loaded
-[Information] Output Decoder
--[NoImage] Channels: 2
--[NoImage] Bits per sample: 16
--[NoImage] Sample rate: 48000
-[NoImage] Commandline: C:\josh\Desktop\meguiS\megui-29-01-2010\megui\tools\win32\neroAacEnc.exe -ignorelength -he -br 192000 -if - -of "C:\josh\Desktop\ALL\Pats123-5.1.channel.audio.mp4"
-[Information] [9/26/2010 8:13:45 PM] Encoder process started
-[NoImage] Output from encoder via stderr
--[NoImage] *************************************************************
--[NoImage] * *
--[NoImage] * Nero AAC Encoder *
--[NoImage] * Copyright 2009 Nero AG *
--[NoImage] * All Rights Reserved Worldwide *
--[NoImage] * *
--[NoImage] * Package build date: Feb 18 2010 *
--[NoImage] * Package version: 1.5.4.0 *
--[NoImage] * *
--[NoImage] * See -help for a complete list of available parameters. *
--[NoImage] * *
--[NoImage] *************************************************************
-[Information] [9/26/2010 8:57:53 PM] Postprocessing
--[Information] Deleting intermediate files
-[Information] [9/26/2010 8:57:53 PM] Job completed

Lighto
27th September 2010, 06:17
here :

Have you tried ectracting the audio stream using MKVExtractGUI then using it as an audio input in MeGUI?

tebasuna51
27th September 2010, 10:44
...
DirectShowSource("C:\josh\Desktop\ALL\Pats123.mkv", video=false)
...
Channels: 2
Seems your DirectShow system is configured to output only stereo audio.
Extract the audio from mkv before, like Lighto say you (or with the MeGUI -> Tools -> HD Streams Extractor).

dragon_warrior
3rd October 2010, 15:23
Hey, I've just ran into this issue
I'm going to encode a 1080i video to 720p & stuck at deinterlacing
I decided to applied multi filters (TITVC and Yadifmod) to compare the results. First, I used DGAVCIndex to extract video stream (.dga) from the .ts. Then I had MeGUI loaded it. Everything went fine with TITVC, but the problem occured when I tried deinterlacing with Yadifmod. This is my script:
LoadPlugin("C:\Program Files\megui\tools\dgavcindex\DGAVCDecode.dll")
AVCSource("E:\B-HMTVHD1080i\Beyonce - Halo (MTVHD) HD-1080i.dga")
LoadPlugin("C:\Program Files\megui\tools\avisynth_plugin\nnedi2.dll")
LoadPlugin("C:\Program Files\megui\tools\avisynth_plugin\yadifmod.dll")
YADIFMod(edeint=NNEDI2())

And the error I got:
Problem signature:
Problem Event Name: APPCRASH
Application Name: x264.exe
Application Version: 0.0.0.0
Application Timestamp: 4c967c4c
Fault Module Name: libavcodec.dll
Fault Module Version: 0.0.0.0
Fault Module Timestamp: 489a5621
Exception Code: c0000005
Exception Offset: 000b7ef1
OS Version: 6.0.6000.2.0.0.256.1
Locale ID: 1033
Additional Information 1: 20ff
Additional Information 2: c7d620ad31b9d85eee444f9030b3bf04
Additional Information 3: 58b3
Additional Information 4: 24913ba1f00a8877b8433f7b53aeeb68

Btw, if I extract the .ts into .mkv (using Hd Stream Extractor) and had it loaded, the error seemed to disappear.

Plz, can anyone give me an explanation ?

LigH
5th October 2010, 14:57
MeGUI 0.3.5.15 DEV using MP4Box - GPAC version 0.4.6-DEV (internal rev. 7)

I have suddenly issues multiplexing raw AVC videos (*.264) with M4A audio to MP4: As soon as called, MP4Box simply does nothing (except wasting CPU time), seems to be in an eternal loop. Therefore, AutoEncode to MP4 doesn't work either, because it creates an intermediate raw video.

mp4box.exe -add Maschine.264:fps=25 -add Maschine.m4a -new Maschine.muxed.mp4
^C

Multiplexing AVC in MP4 + M4A to MP4 works.

mp4box.exe -add Maschine.mp4 -add Maschine.m4a -new Maschine.muxed.mp4
IsoMedia import - track ID 1 - Video (size 640 x 360)
IsoMedia import - track ID 1 - Audio (SR 48000 - 2 channels)
Saving Maschine.muxed.mp4: 0.500 secs Interleaving

Sample files or MediaInfo reports can be provided on request.

Kurtnoise
5th October 2010, 16:14
Plz, can anyone give me an explanation ?
Error comes from libavc library included in DGAVCIndex...Might be that your file cannot be decoded by this tool. Try the last FFmegSource2 library instead of DGAVCDecode.


MeGUI 0.3.5.15 DEV using MP4Box - GPAC version 0.4.6-DEV (internal rev. 7)

I have suddenly issues multiplexing raw AVC videos (*.264) with M4A audio to MP4: As soon as called, MP4Box simply does nothing (except wasting CPU time), seems to be in an eternal loop. Therefore, AutoEncode to MP4 doesn't work either, because it creates an intermediate raw video.
Could you retry with my own MP4Box build ?

QuadraQ
6th October 2010, 01:40
I've searched for an answer but came up empty, so I apologize if I searched badly and I'm repeating others.

Haven't used MeGUI in a while. Latest update (0.3.5) changed the interface for file indexing. Now when I open an mpv file like I've always done before I get this error:

---------------------------
Error parsing mediainfo data
---------------------------
The following error ocurred when trying to get Media info for file C:\Users\Public\Videos\Temp Files\MyRecording.mpv

Attempted to read or write protected memory. This is often an indication that other memory is corrupt.
---------------------------
OK
---------------------------

Yet I can open the mpv file using C:\Program Files\megui\tools\dgindex\DGIndex.exe directly just fine and save the project to create the d2v file without incident. After that I can create the AVS script from within MeGUI and do the rest of the encode as normal, so I'm pretty sure the error message I'm getting is erroneous. Is this a bug, or am I missing something?

DeWTurk
6th October 2010, 10:18
Where can I download HQ - Slow profile. removed from the list. Do you have a link to the old or the latest version

Which profile do you think is best for reencode?

Where i do these settings? reencode the highest quality
encode setting
Writing library : x264 core 98 r1649 20cbe10
Encoding settings : cabac=1 / ref=8 / deblock=1:-1:-1 / analyse=0x3:0x133 / me=umh / subme=9 / psy=1 / 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=0 / chroma_qp_offset=-2 / threads=16 / 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=1 / weightp=0 / keyint=250 / keyint_min=25 / scenecut=40 / intra_refresh=0 / rc_lookahead=60 / rc=2pass / mbtree=1 / bitrate=524 / ratetol=1.0 / qcomp=0.60 / qpmin=10 / qpmax=51 / qpstep=4 / cplxblur=20.0 / qblur=0.5 / ip_ratio=1.40 / aq=1:1.00


HQ SLOW PROFILE
<?xml version="1.0"?>
<GenericProfileOfx264Settings xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<Name>HQ-Slow</Name>
<Settings>
<EncodingMode>4</EncodingMode>
<BitrateQuantizer>1000</BitrateQuantizer>
<KeyframeInterval>250</KeyframeInterval>
<NbBframes>16</NbBframes>
<MinQuantizer>10</MinQuantizer>
<MaxQuantizer>51</MaxQuantizer>
<V4MV>false</V4MV>
<QPel>false</QPel>
<Trellis>false</Trellis>
<CreditsQuantizer>40</CreditsQuantizer>
<Logfile>.stats</Logfile>
<VideoName />
<CustomEncoderOptions />
<FourCC>1</FourCC>
<MaxNumberOfPasses>3</MaxNumberOfPasses>
<NbThreads>0</NbThreads>
<x264Preset>99</x264Preset>
<Turbo>migrated</Turbo>
<x264PresetLevel>medium</x264PresetLevel>
<x264Tuning>0</x264Tuning>
<QuantizerCRF>1000</QuantizerCRF>
<EncodeInterlaced>false</EncodeInterlaced>
<NoDCTDecimate>false</NoDCTDecimate>
<PSNRCalculation>false</PSNRCalculation>
<NoFastPSkip>false</NoFastPSkip>
<NoiseReduction>0</NoiseReduction>
<NoMixedRefs>false</NoMixedRefs>
<X264Trellis>1</X264Trellis>
<NbRefFrames>3</NbRefFrames>
<AlphaDeblock>-2</AlphaDeblock>
<BetaDeblock>-1</BetaDeblock>
<SubPelRefinement>5</SubPelRefinement>
<MaxQuantDelta>4</MaxQuantDelta>
<TempQuantBlur>0</TempQuantBlur>
<BframePredictionMode>3</BframePredictionMode>
<VBVBufferSize>-1</VBVBufferSize>
<VBVMaxBitrate>-1</VBVMaxBitrate>
<METype>2</METype>
<MERange>12</MERange>
<MinGOPSize>25</MinGOPSize>
<IPFactor>1.4</IPFactor>
<PBFactor>1.3</PBFactor>
<ChromaQPOffset>0</ChromaQPOffset>
<VBVInitialBuffer>0.9</VBVInitialBuffer>
<BitrateVariance>1.0</BitrateVariance>
<QuantCompression>0.6</QuantCompression>
<TempComplexityBlur>20</TempComplexityBlur>
<TempQuanBlurCC>0.5</TempQuanBlurCC>
<SCDSensitivity>40</SCDSensitivity>
<BframeBias>0</BframeBias>
<PsyRDO>1</PsyRDO>
<PsyTrellis>0</PsyTrellis>
<Deblock>true</Deblock>
<Cabac>true</Cabac>
<UseQPFile>false</UseQPFile>
<WeightedBPrediction>true</WeightedBPrediction>
<WeightedPPrediction>2</WeightedPPrediction>
<NewAdaptiveBFrames>1</NewAdaptiveBFrames>
<x264BFramePyramid>2</x264BFramePyramid>
<ChromaME>true</ChromaME>
<MacroBlockOptions>3</MacroBlockOptions>
<P8x8mv>true</P8x8mv>
<B8x8mv>true</B8x8mv>
<I4x4mv>true</I4x4mv>
<I8x8mv>true</I8x8mv>
<P4x4mv>false</P4x4mv>
<AdaptiveDCT>true</AdaptiveDCT>
<SSIMCalculation>false</SSIMCalculation>
<QuantizerMatrix>Flat (none)</QuantizerMatrix>
<QuantizerMatrixType>0</QuantizerMatrixType>
<DeadZoneInter>21</DeadZoneInter>
<DeadZoneIntra>11</DeadZoneIntra>
<AQmode>2</AQmode>
<AQstrength>1</AQstrength>
<QPFile />
<fullRange>false</fullRange>
<x264AdvancedSettings>false</x264AdvancedSettings>
<Lookahead>40</Lookahead>
<NoMBTree>true</NoMBTree>
<ThreadInput>true</ThreadInput>
<NoPsy>false</NoPsy>
<Scenecut>true</Scenecut>
<X264Nalhrd>false</X264Nalhrd>
<X264Aud>false</X264Aud>
<X264SlowFirstpass>false</X264SlowFirstpass>
<SlicesNb>0</SlicesNb>
<MaxSliceSyzeBytes>0</MaxSliceSyzeBytes>
<MaxSliceSyzeMBs>0</MaxSliceSyzeMBs>
<Profile>2</Profile>
<Level>15</Level>
</Settings>
</GenericProfileOfx264Settings>

LigH
6th October 2010, 11:56
Could you retry with my own MP4Box build ?

http://kurtnoise.free.fr/mp4tools/MP4Box-0.4.6-rev2080.zip

>mp4box.exe -add Maschine.264:fps=25 -add Maschine.m4a -new Maschine.muxed.mp4
AVC-H264 import - frame size 640 x 360 at 25.000 FPS
Import results: 217 samples - Slices: 10 I 54 P 153 B - 237 SEI - 1 IDR
Stream uses B-slice references - max frame delay 2
IsoMedia import - track ID 1 - Audio (SR 48000 - 2 channels)
Saving Maschine.muxed.mp4: 0.500 secs Interleaving

Works. :thanks:

zmaster
6th October 2010, 13:41
Kurtnoise,
I also tried version MP4Box 0.4.6 rev2080. It seems my problem with multiplexing 848x480 video disappeared.
:thanks:

Kurtnoise
6th October 2010, 14:00
Is this a bug, or am I missing something?
Probably a bug coz this part has been changed recently...Feel free to post a sample of your mpv somewhere (mediafire or anything else) to test.

It smells like a missing code in the MediaInfo retrieved information.

@LigH/zmaster : good to know. Maybe, it's time to upgrade the new build into the megui server.

Vorkey
6th October 2010, 18:24
Quick question from a newbie.

On the x264 profile what do you set first, Tuning (Film, Animation, etc..) or the Preset (Medium, Slow, Slower, etc..)

I'm curious because usually I set the Preset first and I noticed that it adjusts the settings and then when you select a Tuning it re-adjusts the settings. Which can be a bit of a problem..

For example... You set the Preset on Placebo and it changes your B-frames to 16 and then if you select a Tuning afterwards like Film, it sets your B-frames to 3, which basically defeats the point of the Preset.

So would it be right to set the Tuning first and then Preset?

Sharktooth
6th October 2010, 20:15
presets handling is buggy. im going to commit a fix this week.

Zathor
7th October 2010, 22:42
Haven't used MeGUI in a while. Latest update (0.3.5) changed the interface for file indexing. Now when I open an mpv file like I've always done before I get this error:

Please upload a sample file as suggested by kurtnoise. But I hope that the problem is already fixed in the recent development build (0.3.5.15).

@LigH/zmaster : good to know. Maybe, it's time to upgrade the new build into the megui server.

I second this request and have uploaded your build. Thank you very much!

JoeH
8th October 2010, 14:19
Curiosity question - is the ffms included with MeGUI a multithread enabled version?

If so, is there anything I need to change in the AviSynth that is created automatically when I index a file using FFMS to enable it, or is it enabled by default? Thanks.

Sharktooth
8th October 2010, 15:10
you can find the MT version in tools\ffms\ffms-mt folder. just replace all files in the ffms folder with the ones in ffms-mt

Betsy25
8th October 2010, 15:53
Hi Sharktooth, Kurtnoise, Zathor,

Is there any event schedule for when we see an update to the stable version please ? It's been quite a long time since we saw any change.

Sharktooth
8th October 2010, 17:09
sorry, it was my fault. i had been busy and didnt commit the presets code fixes.
i still hope i can do that this week.

Zathor
8th October 2010, 18:07
sorry, it was my fault. i had been busy and didnt commit the presets code fixes.
i still hope i can do that this week.

It is no ones fault. It takes the time it takes ;)

Zathor
8th October 2010, 18:14
Curiosity question - is the ffms included with MeGUI a multithread enabled version?

If so, is there anything I need to change in the AviSynth that is created automatically when I index a file using FFMS to enable it, or is it enabled by default? Thanks.

I have uploaded yesterday only the new "vanilla" build 2.14 (together with 3 other tool updates). As Sharktooth has mentioned you could copy in the past for some builds the mt build in the root of the ffms directory. Because of this manual step - which I believe most or nearly all users did not do - I have removed it. The main reason has been the shrink of the size of the package so that there is less load on the server and client side. Any user who wants the mt build can download the files easily from the ffms2 project page (and a user who knows about mt should know how to do this). Feel free to discuss this decision.

DVDBob
9th October 2010, 15:15
I have try to index video from a flv file and demux audio from the same flv file:

[Information] Log
-[Information] Versions
--[Information] MeGUI Version : 0.3.5.15
--[Information] OS : Windows Seven Ultimate Edition x64 SP1 (6.1.65536.7601)
--[Information] Latest .Net Framework installed : 4.0 (4.0.30319)
--[Information] Avisynth Version : 2.6.0.1
-[Information] Log for job1 (idx, Madsen.Og.Co.S01E03.En.Kylling.Ved.Navn.Poul-Erik.flv -> Madsen.Og.Co.S01E03.En.Kylling.Ved.Navn.Poul-Erik.flv.ffindex)
--[Information] [09-10-2010 16:12:51] Started handling job
--[Information] [09-10-2010 16:12:53] Preprocessing
--[Information] Job commandline: "C:\Program Files (x86)\MeGUI\tools\ffms\ffmsindex.exe" -f "G:\Film\Madsen.Og.Co\Madsen.Og.Co.S01E03.En.Kylling.Ved.Navn.Poul-Erik\Madsen.Og.Co.S01E03.En.Kylling.Ved.Navn.Poul-Erik.flv"
--[Information] [09-10-2010 16:12:53] Indexing started
--[Information] Standard output stream
--[Information] Standard error stream
--[Information] [09-10-2010 16:12:54] Postprocessing
---[Information] Deleting intermediate files
--[Information] [09-10-2010 16:12:55] Job completed

QuadraQ
9th October 2010, 21:32
Probably a bug coz this part has been changed recently...Feel free to post a sample of your mpv somewhere (mediafire or anything else) to test.

It smells like a missing code in the MediaInfo retrieved information.

OK I've posted a small sample that consistently causes the error (for me at least). Sorry for the delay, it's been a crazy week.

Anyone who's interested can download the clip here:

http://www.mediafire.com/?716aldq6hh7mqau

Zathor
10th October 2010, 09:08
OK I've posted a small sample that consistently causes the error (for me at least). Sorry for the delay, it's been a crazy week.

Anyone who's interested can download the clip here:

http://www.mediafire.com/?716aldq6hh7mqau

The problem is the included mediainfo build in MeGUI 0.3.5. Either update to the recent development build of MeGUI or copy (and extract + replace the two files) this file into your MeGUI directory:
http://megui.org/auto/mediainfo_0_7_35-1.zip

QuadraQ
10th October 2010, 09:22
The problem is the included mediainfo build in MeGUI 0.3.5. Either update to the recent development build of MeGUI or copy (and extract + replace the two files) this file into your MeGUI directory:
http://megui.org/auto/mediainfo_0_7_35-1.zip

OK downloaded the zip and replaced the files, which took care of it. Looks like the next release will have this fixed, so that's good to know.

DVDBob
10th October 2010, 11:39
Someone who can help me with my problem from post #5766???

Sharktooth
10th October 2010, 15:48
I have try to index video from a flv file and demux audio from the same flv file:

[Information] Log
-[Information] Versions
--[Information] MeGUI Version : 0.3.5.15
--[Information] OS : Windows Seven Ultimate Edition x64 SP1 (6.1.65536.7601)
--[Information] Latest .Net Framework installed : 4.0 (4.0.30319)
--[Information] Avisynth Version : 2.6.0.1
-[Information] Log for job1 (idx, Madsen.Og.Co.S01E03.En.Kylling.Ved.Navn.Poul-Erik.flv -> Madsen.Og.Co.S01E03.En.Kylling.Ved.Navn.Poul-Erik.flv.ffindex)
--[Information] [09-10-2010 16:12:51] Started handling job
--[Information] [09-10-2010 16:12:53] Preprocessing
--[Information] Job commandline: "C:\Program Files (x86)\MeGUI\tools\ffms\ffmsindex.exe" -f "G:\Film\Madsen.Og.Co\Madsen.Og.Co.S01E03.En.Kylling.Ved.Navn.Poul-Erik\Madsen.Og.Co.S01E03.En.Kylling.Ved.Navn.Poul-Erik.flv"
--[Information] [09-10-2010 16:12:53] Indexing started
--[Information] Standard output stream
--[Information] Standard error stream
--[Information] [09-10-2010 16:12:54] Postprocessing
---[Information] Deleting intermediate files
--[Information] [09-10-2010 16:12:55] Job completed
try using FLVExtract to extract tracks in flv files.

DVDBob
10th October 2010, 23:34
try using FLVExtract to extract tracks in flv files.

It does not work but works with My MP4Box GUI, and I can not understand why MeGUI not can extract tracks from my flv files.

Kurtnoise
11th October 2010, 09:12
because there is none tools dedicated to this task into MeGUI yet...did you try to feed your input directly in the audio tab ?

DVDBob
11th October 2010, 14:39
because there is none tools dedicated to this task into MeGUI yet...did you try to feed your input directly in the audio tab ?

Now I had tried it and it works.

-xvid-
16th October 2010, 14:18
hi there, i'm using MeGui since a while to make 1400/1490mb rips (depending on the film length) but this time, i've encountered a serious problem: my rip is undersized, i mean *overly* undersized (899mb instead of 1400mb).

my first guess would be that it comes from the xvid codec but you never know - the dvd i'm trying to encode appears to be a bit fucked up.

well, i'd be very glad if some of the experienced doom9 members told me what's wrong with the process i went through:


My source:

Video Format.....: Widescreen 2.35:1
DVD Source.......: DVD5
DVD Format.......: NTSC, R1 to R0

after creating the .d2v and .avs with megui, i noticed that the bitrate calculator were showing 23.976 fps while mediainfo said 29.970: i decided to check manually with DGindex:

http://imgur.com/rbrPQ.jpg

variable fps (mostly between 23.79 and 24.04 fps) and FILM +95% so => forced film and save.

http://imgur.com/YpRWT.jpg

after clicking "yes" to correct the file order transition, i finally got the fixed .d2v along with the original d2v.bad and the fix.txt.

D2V Fix Output

Field order transition: 0 -> 2
900 5 0 655360 0 1 1 30 30 90 b0 a0
d00 5 0 794624 0 2 1 d2 f2 e2 f2 f2 e2 f2 f2 e2 f2 f2 e2
corrected...
900 5 0 655360 0 1 1 30 30 90 b0 a1
d00 5 0 794624 0 2 1 d2 f2 e2 f2 f2 e2 f2 f2 e2 f2 f2 e2

then, i opened the fixed .d2v in MeGui Avisynth Script Creator.

http://imgur.com/LU61A.jpg

http://imgur.com/YFXSF.jpg

note: i increased the analysis percent of the source detector to 5 in order to get a reliable result. MeGui said "progressive" so there we go.

http://imgur.com/SiFfa.jpg

i still don't get why the bitrate calculator says the length is 1:42:38 while the original length on dvd is 1:42:32. maybe because of the variable fps ?

anyway, here are the basic settings i used to configure the xvid codec. that's probably where my issue with the size come from:

http://imgur.com/HRlyo.jpg

http://imgur.com/u4aiH.jpg

i tried to tweak the "overflow" values as suggested in the "Undersized Files" stickied thread but the result was exactly the same (899mb instead of 1400mb).

here is the mediainfo of the (muxed) encoded file:

http://imgur.com/qghIY.jpg

you can notice the difference between the bitrate i set and the final bitrate (1705 vs 1027 kbps).


sorry for the long post and also, please be indulgent; i'm not a native english speaker. thanks in advance for the help:

Sharktooth
16th October 2010, 14:25
try lowering the min i/p/b frames quantizer to 1.

Zathor
16th October 2010, 20:14
I've used MeGUI for years (currently 0.3.5.0) and about 25% of the time when a job tries to mux SRT subtitles into a MKV output file I get this dialog box that says:

Error parsing idx file
<name of file>
Input string was not in a correct format

This stops the job queue until I click OK in this dialog box, after which it muxes the output just fine. My question is, is there something in a SRT file (created by Subrip) that causes this error so that I can try and avoid it?

Thanks for the report - it has been fixed and will be in the next update. The message can be ignored by the way.

JoeH
16th October 2010, 21:45
you can find the MT version in tools\ffms\ffms-mt folder. just replace all files in the ffms folder with the ones in ffms-mt

Thanks Sharktooth.

-xvid-
17th October 2010, 09:14
try lowering the min i/p/b frames quantizer to 1.
wow, thanks! it worked! - although the video quality seems to remain the same as the previous 900mb rip but well, the final avi size is definitely 1400mb.

does lowering i/p/b frames quantizers to 1 considerably decrease the quality ?

thanks again.

Sharktooth
17th October 2010, 14:01
no, but fixes undersizing. however, when you get an undersize it usually means you saturated the encoder and cant get more quality than what you're getting with the undersized file. lowering the quantizers to 1 will "waste" more bitrate for a nearly zero quality gain but will help you hitting the desired filesize.
it's definatly not recommended to use quants below 2 for encodes that do not get undersized.

-xvid-
17th October 2010, 16:56
thanks again for your help Sharktooth.

blah123
17th October 2010, 22:39
I've got problem with cutting off tv commercials from this .*ts file. This file is not broken (i ran some tests), and it's H264/AVC [MPEG4]

LOG:
Stream Type: Transport [188]
Profile: Main
Level: 3
Frame Size: 720x576
SAR: 12:11
Display Size: 785x576
Frame Rate: 25.000000 fps
Colorimetry: BT.601 [5]
Frame Structure: Fields (TFF)
Frame Type: not yet
Coded Number: 88653
Playback Number: 88653
Frame Repeats: 0
Field Repeats: 0
Bitrate: 1.368
Bitrate (Avg): 2.694
Bitrate (Max): 4.921
Audio Stream: 67: MPEG2 L2 2ch 48 192
Elapsed: 0:03:00
Remain: 0:00:00
FPS:
Info: Finished!

So, i used file indexer. Then used AVS Script Creator and chosen .dga file. On the capture screen are artiffacts and an error.
http://ifotos.pl/img/demuxer_sasqwn.jpg
http://ifotos.pl/img/cap_sasqww.jpg

I can't do it. When i run AVS Cutter, and try to move bar to pick zones, that should stay in recording,
What else I can add... Without cutting TS file converted to AVI or MKV has also artiffacts! I checked other software like AVI ReComp and in this aplication file is converted properly and without artifacts...

Here you've got the log during AVS Cutter:

[Error] Log
-[Information] Versions
--[NoImage] MeGUI Version : 0.3.5.0
--[NoImage] OS : Windows Vista Premium Edition x86 SP2 (6.0.131072.6002)
--[NoImage] Latest .Net Framework installed : 3.5 (3.5.30729.01)
--[NoImage] Avisynth Version : 2.6.0.1
-[Error] Unhandled error
--[NoImage] Exception message: Nastapila proba odczytu lub zapisu pamieci chronionej. Czesto wskazuje to, ze inna pamiec jest uszkodzona.
--[NoImage] Stacktrace
---[NoImage] w MeGUI.AviSynthClip.dimzon_avs_getvframe(IntPtr avs, IntPtr buf, Int32 stride, Int32 frm)
---[NoImage] w MeGUI.AviSynthClip.ReadFrame(IntPtr addr, Int32 stride, Int32 frame)
---[NoImage] w MeGUI.AvsFile.AvsVideoReader.ReadFrameBitmap(Int32 position)
---[NoImage] w MeGUI.VideoPlayer.positionSlider_Scroll(Object sender, EventArgs e)
---[NoImage] w System.Windows.Forms.TrackBar.OnScroll(EventArgs e)
---[NoImage] w System.Windows.Forms.TrackBar.WndProc(Message& m)
---[NoImage] w System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
---[NoImage] w System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
---[NoImage] w System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
--[NoImage] Inner exception: null

And here's the log during the usage of AVS Script Creator:

[Information] Log
-[Information] Versions
--[NoImage] MeGUI Version : 0.3.5.0
--[NoImage] OS : Windows Vista Premium Edition x86 SP2 (6.0.131072.6002)
--[NoImage] Latest .Net Framework installed : 3.5 (3.5.30729.01)
--[NoImage] Avisynth Version : 2.6.0.1
-[Information] Log for job1 (idx, **** - October 10 21 58 56 -> **** - October 10 21 58 56.ffindex)
--[Information] [2010-10-12 14:13:50] Started handling job
--[Information] [2010-10-12 14:13:50] Preprocessing
--[NoImage] Job commandline: "C:\Program Files\MeGUI\tools\dgavcindex\dgavcindex.exe" -i "C:\***\ProgDVB\Record\************.ts" -o "C:\***\ProgDVB\Record\************.dga" -e -h -a
--[Information] [2010-10-12 14:13:50] Indexing started
--[NoImage] Standard output stream
--[NoImage] Standard error stream
---[NoImage] Warning: no active SPS, timing SEI cannot be parsed
---[NoImage] Warning: no active SPS, timing SEI cannot be parsed
---[NoImage] Warning: no active SPS, timing SEI cannot be parsed
---[NoImage] Warning: no active SPS, timing SEI cannot be parsed
---[NoImage] Warning: no active SPS, timing SEI cannot be parsed
---[NoImage] Warning: no active SPS, timing SEI cannot be parsed
---[NoImage] Warning: no active SPS, timing SEI cannot be parsed
--[Information] [2010-10-12 14:13:52] Postprocessing
---[Information] Deleting intermediate files


So, i decided to use FFMSIndex in File Indexer. AVS Cutter works fine, there is no "Exception message: Nastapila proba odczytu lub zapisu pamieci chronionej. Czesto wskazuje to, ze inna pamiec jest uszkodzona", but there are some artifacts in the capture, so i Can cut .TS, but this way of encoding gives a YV12 video problems conected with AviSynth - on the contrary DGAVCIndex doesn't have such a problem.


http://ifotos.pl/img/afterffms_sasqwr.jpg

In StaxRip, after importing dga file, the situation is the same:

http://ifotos.pl/img/staxrip_sspare.jpg

So, i decided to try TSMuxeR. I mux file into m2ts, and MeGUI get this, so there is no artiffacts in preview in e.g. AVS Cutter, but the preview very often freezes during seeking on the bar.


Would you think about a solution to this problem?
I'm Polish, so some of erros are only in this language.

poisondeathray
17th October 2010, 22:47
blah123 - don't use dgavcindex on paff streams , known bug

you can use dss2() + haali media splitter + ffdshow

blah123
17th October 2010, 23:00
What is dss2() and what are paff streams?

poisondeathray
17th October 2010, 23:06
What is dss2() and what are paff streams?


dss2 = directshowsource2

avss.dll comes with haali media splitter, put it in avisynth/plugins folder

paff = picture adaptive field frame . Think of it as interlaced AVC

blah123
17th October 2010, 23:09
Ok, interlaced videos. But 2 weeks ago I didn't have any problem with interlaced sources...

Ok, I put this dll file in "MeGUI\tools\avisynth_plugin", so what I should use to prepre TS to use it in AVS Script Creator?

poisondeathray
17th October 2010, 23:16
DSS("video.m2ts")
# other filters

if you want to deinterlace or add any filters you can add them


MeGUI Version : 0.3.5.0


and you might want to update your megui version (use the development server) , because some other bugs have been fixed

blah123
18th October 2010, 00:00
Here http://sourceforge.net/projects/megui/files/ the newest version is that I have... So where from i can get always the newest? Function of autoupdate doesn't give newer than 0.3.5.0...

So I put that file, and has got ffdshow and haali media splitter, but now when i'm trying to open make an avs file in AVSsc i get this error:
http://www.iv.pl/images/33430314727360359333.png

I'm a newbie in matters like this kind, so:
DSS("video.m2ts")
# other filters
doesn't give me a clear statement.

poisondeathray
18th October 2010, 00:04
no, put it in the avisynth\plugins directory

or use LoadPlugin("PATH\avss.dll")

Don't use directshowsource(), use dss2() .

Don't use the avisynth creator, you can use notepad or avsp or edit the script

Under options=>settings=>external config tab=> auto update use development server

blah123
18th October 2010, 00:24
no, put it in the avisynth\plugins directory

http://ifotos.pl/img/avsw_sasqas.png

Still the same problem.

Don't use directshowsource(), use dss2() .

Don't use the avisynth creator, you can use notepad or avsp or edit the script

I don't know what are you talking about...
I've installed ffdshow and haali, as you just said, that's all. I didn't picked any other stuff, like 'directshowsource' or 'directshowsource2'. I prefer GUI version of making avs srcipt, beacuse it's simplier for me. I don't have a script, so I don't have anything to edit.

2 weeks ago I'didn't have such problems, this is very, very odd... MeGUI worked perfectly!

Sharktooth
18th October 2010, 14:05
get megui dev version. there is an option to enable DSS2.

blah123
18th October 2010, 17:21
I've got 0.3.5.18. Where i can switch on DSS2?

Lighto
18th October 2010, 17:32
I've got 0.3.5.18. Where i can switch on DSS2?

http://lulzimg.com/i7/f6daca69.png

blah123
18th October 2010, 18:01
OK, I installed FormatFactoy (it has some codecs) and evertyhing works fine. DSS2 also.

EDIT: Video is OK, but audio has weird click...

http://www.speedyshare.com/files/24763091/weird_click.mp3 <- here you can hear it, in the begining.

This is demuxed from TS to M2TS (in tsMuxeR):

MUXOPT --no-pcr-on-video-pid --new-audio-pes --vbr --vbv-len=500
V_MPEG4/ISO/AVC, "file_path*.ts", fps=25, insertSEI, contSPS, track=102
A_MP3, "file_path", timeshift=13ms, track=103, lang=pol

(Audio it's after encoding with cut from *.CLT file in MeGUI)

DVDBob
19th October 2010, 00:50
Where can i download dss2???

flebber
19th October 2010, 01:04
Where can i download dss2???

Its already enabled in megui you don't need to download. Or using google http://avisynth.org/mediawiki/External_filters

Carpo
19th October 2010, 11:39
Do the x264 pre-sets - medium, slow, slower, very slow - etc, apart from each one making the encode take longer do they deliver a significant visual improvement? I know the longer it takes the better it should be, but if slow gives the same result as very slow, i might as well use slow and save myself some time

nurbs
19th October 2010, 11:56
Well slower is better, but how much is an other question. One thing I can say for sure is that if you use settings faster than the defaults you will lose quality pretty quickly, because you are turning off the psy optimizations. For the slower ones there are diminishing returns, that is you are definitly losing more in speed than you are gaining in encoding efficiency, and if you care about encoding time you might as well stay at the defaults and use a little higher bitrate or lower ratefactor.

flebber
19th October 2010, 14:35
Do the x264 pre-sets - medium, slow, slower, very slow - etc, apart from each one making the encode take longer do they deliver a significant visual improvement? I know the longer it takes the better it should be, but if slow gives the same result as very slow, i might as well use slow and save myself some time

I have found no need to go below slow, most of my encodes done on medium. I haven't had a source when tested where I could say slower has been required for me or produced a more notable result than slow.

blah123
19th October 2010, 15:27
What else I should have installed to open a preview of interlaced h264 in avs script creator?
I've got a ffdshow and haali and try to import .m2ts file (created in TS Muxer), but it fails with:
http://www.iv.pl/images/33430314727360359333.png

I can't choose dss2 (as @poisondeathray said), because this option is unavailable without video input...
http://ifotos.pl/img/offed_sqhswr.png

How I should handle with this file???

Shinji-kun
19th October 2010, 15:32
For some reason when I encoded a video to x264 with MeGUI, upon viewing it in mpc-hc (with ffdshow outputting to YV12) there were jagged edges that looked like aliasing on red and bright orange objects (the only way to get rid of this effect was to output the video to RGB32 in ffdshow) but when I encoded the same video with identical settings (that I was aware of) in Staxrip, the jagged chroma effect was not apparent, even when I output to YV12 in ffdshow.

Why are the jagged edges only visible in video encoded with MeGUI? I have even noticed this chroma effect in fan subbers' encodes like Central-Anime and G_P. Is there some automatic chroma setting that Staxrip uses by default, that removes/avoids the chroma issue, that you have to manually specify in MeGUI?

blah123
19th October 2010, 15:35
I've got ffdshow and haali, but MeGui seems to not see them.

Ok, I unistalled ffdshow, haali and avisynth. Then installed avisynth 2.58 and matroska. M2TS imports, but is still interlaced and analysing type of interlace gives error, that program couldn't recognise this type of interlace.
http://ifotos.pl/img/source_sqhaqs.png

Yesterday, program converted into avi XviD perfectly, but in spite of "Progressive" mode, there was still interlace on video.

Carpo
19th October 2010, 18:21
I've got ffdshow and haali, but MeGui seems to not see them.

Ok, I unistalled ffdshow, haali and avisynth. Then installed avisynth 2.58 and matroska. M2TS imports, but is still interlaced and analysing type of interlace gives error, that program couldn't recognise this type of interlace.
http://ifotos.pl/img/source_sqhaqs.png

Yesterday, program converted into avi XviD perfectly, but in spite of "Progressive" mode, there was still interlace on video.

I get that from time to time, change the % amount of how much megui will check what the source is.

Options -> Settings -> Configure Source Detector

and its the top most box, some times i have had to put it as high as 5% for it to see what the source is

Well slower is better, but how much is an other question. One thing I can say for sure is that if you use settings faster than the defaults you will lose quality pretty quickly, because you are turning off the psy optimizations. For the slower ones there are diminishing returns, that is you are definitly losing more in speed than you are gaining in encoding efficiency, and if you care about encoding time you might as well stay at the defaults and use a little higher bitrate or lower ratefactor.


I have found no need to go below slow, most of my encodes done on medium. I haven't had a source when tested where I could say slower has been required for me or produced a more notable result than slow.

Thanks both, what crf settings would you advise for dvd to mkv and bluray to mkv? i have googled and found many different settings, or would 2 pass be better?

nurbs
19th October 2010, 18:28
CRF and 2 pass are basically the same at the same bitrate. I like CRF better because I don't have space constraints and it makes sure different sources get the appropriate bitrate as needed. I use CRF 21 for 720p and CRF 20 for DVD resolutions.

Carpo
19th October 2010, 19:24
ah i remember you suggesting those before, poor memory i have - thanks nurbs :-)

flebber
20th October 2010, 00:18
Are you able to play this file in MPC-HC?

krosswindz
20th October 2010, 01:27
I am having issues with a particular video file when I encode it to rawavc using megui and then mux it with audio and subtiles using mkvmerge to create a mkv file. I am having issues with the final runtime of my mkv file. Some of the initial discussion can be found in this thread http://forum.doom9.org/showthread.php?t=157545.

MeGUI logs do not show any errors and the right number of frames have been encoded. Once I mux it my runtime is completely off when compared to what the actual runtime should be. Any help on this is appreciated.

The command line used to create the file is as follows


pass 1: "path\to\vfw4x264.exe" --level 4.1 --pass 1 --bitrate 3754 --stats "path\to\video.stats" --deblock -2:-1 --keyint 300 --min-keyint 24 --bframes 4 --ref 6 --weightp 0 --me umh --sar 1:1 --fullrange on --output NUL "path\to\video.avs"

pass 2: "path\to\vfw4x264.exe" --level 4.1 --pass 2 --bitrate 3754 --stats "path\to\video.stats" --deblock -2:-1 --keyint 300 --min-keyint 24 --bframes 4 --ref 6 --weightp 0 --me umh --sar 1:1 --fullrange on --output "path\to\video.264" "path\to\dhoom.avs"

Sharktooth
20th October 2010, 03:28
post your avisynth script.

krosswindz
20th October 2010, 06:41
post your avisynth script.

Here is the avisynth script file.


SetMemoryMax(2048)
LoadPlugin("path\to\DGAVCDecode.dll")
p1=AVCSource("path\to\video-1.dga")
p2=AVCSource("path\to\video-2.dga")
p1+p2
crop( 0, 130, 0, -134).Lanczos4Resize(1280,544)

AMED
20th October 2010, 07:18
try this

SetMemoryMax(2048)
LoadPlugin("path\to\DGAVCDecode.dll")
p1=AVCSource("path\to\video-1.dga")
p2=AVCSource("path\to\video-2.dga")
p1++p2
crop( 0, 130, 0, -134).Lanczos4Resize(1280,544)

krosswindz
20th October 2010, 14:59
I changed my avs script. Out of curiosity what is the difference between '+' and '++' in an avs script?

I just noticed something weird, if I manually add the number of frames in both my source dga files and the total frames displayed by megui for the avs file they dont match. The difference is like 8 frames. Any idea what could be causing this? I am wondering could this be the reason why I am facing this issue.

LigH
20th October 2010, 16:50
Regarding "+" vs. "++": Read the documentation about "UnalignedSplice" vs. "AlignedSplice".

Surprisingly, this should only be related to clips with both video and audio track. I don't see the relevance either.

krosswindz
21st October 2010, 03:17
Chaning '+' to '++' has no effect, I am still facing the same issue. There are no errors reported in MeGUI after the encode, nor does mkvmergeGUI give me any errors when I mux the files. I still have the issue where the total runtime reported by mediainfo or any media player is way off when compared to what the actual runtime is calculated from the number of frames and fps. Any help on this is appreciated.

poisondeathray
21st October 2010, 03:30
krosswindz - what happens when you try a different container? e.g. mp4 using mp4box (or yamb) , or .m2ts using tsmuxer ?

what kind of video is the source? native progressive ?

does avs script preview ok?

what happens if you use different source filter? eg. ffvideosoruce()

tebasuna51
21st October 2010, 11:06
...
MeGUI logs do not show any errors and the right number of frames have been encoded. Once I mux it my runtime is completely off when compared to what the actual runtime should be. Any help on this is appreciated.
...
And what is the duration of the muxed audio?
If is greater than the video duration the container can show the higher one.

Sharktooth
21st October 2010, 14:25
also dgavcdecode may be the culprit.try using ffms2

krosswindz
21st October 2010, 14:50
krosswindz - what happens when you try a different container? e.g. mp4 using mp4box (or yamb) , or .m2ts using tsmuxer ?

what kind of video is the source? native progressive ?

does avs script preview ok?

what happens if you use different source filter? eg. ffvideosoruce()

I havent tried other containers, the only reason I havent used mp4box being that afaik it doesnt support DTS. May be I havent figured how to use it with DTS. I will mux it using tsmuxer and let you know the results.

The video source is progressive.

The avs script previews perfectly, except for the total number of frames which for some reason ends up short by 8 as opposed to what it should be.

I have tried it with DGDecodeNV as the source filter and I face the exact same issue, with DGNVtools I dont have the issue with the number of frames being incorrect.

And what is the duration of the muxed audio?
If is greater than the video duration the container can show the higher one.

The duration of the audio before being muxed is 2h 9m 36s after being muxed mediainfo reports the same as that of the video.

also dgavcdecode may be the culprit.try using ffms2

I havent tried ffms2, though like mentioned earlier I have tried DGDecodeNV and ended up with exactly the same issue.

krosswindz
23rd October 2010, 07:08
I had the same issue with ffms2 as well, I figure the problem was actually with the subtitle stream that I was muxing. The subtitle had a discontinuity which was causing the runtime to go hay wire. Thanks for all the help appreciate it.

swainjena
24th October 2010, 08:23
How to change the frame rate of a mp4 video from 25fps to 23.976 fps????

swainjena
24th October 2010, 08:24
can anybody help me with this frame rate conversion problem plz....

zmaster
24th October 2010, 10:26
swainjena,
See the documentation for AviSynth. Look for information about the function AssumeFPS()/ChangeFPS()/ConvertFPS().

Lyle_JP
25th October 2010, 08:30
swainjena,
See the documentation for AviSynth. Look for information about the function AssumeFPS()/ChangeFPS()/ConvertFPS().

Or he could just encode to raw and set framerate in the muxer.

blah123
25th October 2010, 17:40
I've got interlaced AVC/h.264 in TS. What i should use instead of DGAVCIndex to demux this file? DAIndex crashes with this:
http://ifotos.pl/img/afterffms_sasqwr.jpg

poisondeathray
25th October 2010, 17:50
^This was answered already 2 pages back. Use directshowsource or dss2 + recent ffdshow build + haali media splitter ,or dgnvtools (not free, needs nvidia card)

blah123
25th October 2010, 20:30
^This was answered already 2 pages back. Use directshowsource or dss2 + recent ffdshow build + haali media splitter ,or dgnvtools (not free, needs nvidia card)

Ok, but how I should do it? Which app?

I use TsMuxer, but when i remove interlace and convert files after muxing video with audio, the capture in file has a weird freeze of few frames and gives not synchronized audio and video. But whilst watching only video, it's good.

gorca
25th October 2010, 20:42
Possibly someone can help me out because am running out of ideas.
Last stable MeGUI (or older/experimental it doesn't matter), last x264 (or few versions older), last Haali, encoding from .m2ts to .mkv and this is what I get: http://img87.imageshack.us/img87/9789/bscap0000tt.jpg Every single time. Different .m2ts files/sources. Always the same. Was fine before. I've compressed dozens of BD's with MeGUI and never had this issue. Tried clean reinstall MeGUI, video decoder, splitter, etc. It didn't change anything. Could this be caused by some x264 setting? I always use the same, more or less, regular settings. Nothing too experimental. I don't know what could be causing these artifacts. Can't compress anything with MeGUI anymore.

poisondeathray
25th October 2010, 20:52
Ok, but how I should do it? Which app?

I use TsMuxer, but when i remove interlace and convert files after muxing video with audio, the capture in file has a weird freeze of few frames and gives not synchronized audio and video. But whilst watching only video, it's good.

You can use notepad, avsp, or megui

Just edit the script, it's not that difficult:

Directshowsource("video.m2ts")

or

DSS2("video.m2ts")

poisondeathray
25th October 2010, 20:55
Possibly someone can help me out because am running out of ideas.
Last stable MeGUI (or older/experimental it doesn't matter), last x264 (or few versions older), last Haali, encoding from .m2ts to .mkv and this is what I get: http://img87.imageshack.us/img87/9789/bscap0000tt.jpg Every single time. Different .m2ts files/sources. Always the same. Was fine before. I've compressed dozens of BD's with MeGUI and never had this issue. Tried clean reinstall MeGUI, video decoder, splitter, etc. It didn't change anything. Could this be caused by some x264 setting? I always use the same, more or less, regular settings. Nothing too experimental. I don't know what could be causing these artifacts. Can't compress anything with MeGUI anymore.

what source filter?

post your script , settings

what playback software? what decoder?

are artifacts visible in preview before you encode?

gorca
25th October 2010, 20:59
As I said, Haali source (last 2 versions), different decoders (including different versions of ffdshow libav or WMV 9), no playback prbolem (only get this when encoding). Script: the usual. Nothing special about it. No MeGUI preview oartifacts.
Here are the x264 settings (although I tried some other settings also):
cabac=1 / ref=6 / deblock=1:0:0 / analyse=0x3:0x113 / me=umh / subme=9 / psy=0 / mixed_ref=1 / me_range=16 / chroma_me=1 / trellis=2 / 8x8dct=1 / cqm=0 / deadzone=21,11 / fast_pskip=0 / chroma_qp_offset=0 / threads=2 / sliced_threads=0 / nr=0 / decimate=0 / interlaced=0 / constrained_intra=0 / bframes=3 / b_pyramid=2 / b_adapt=1 / b_bias=0 / direct=3 / weightb=1 / open_gop=0 / weightp=2 / keyint=240 / keyint_min=23 / scenecut=40 / intra_refresh=0 / rc_lookahead=50 / rc=2pass / mbtree=1 / bitrate=9500 / ratetol=1.0 / qcomp=0.60 / qpmin=10 / qpmax=51 / qpstep=4 / cplxblur=20.0 / qblur=0.5 / ip_ratio=1.40 / aq=1:1.00

P.S. I just encoded with x264_dp_ Unrestricted (DXVA) profile (didn't touch a thing, MeGUI 3.5.0., 1649 x264) and encoding is OK. This is obviously caused by some x264 setting. The problem is that I always use the same settings and if this is the encoder/settings problem it feels like something is broken.

Sharktooth
26th October 2010, 00:21
your player/decoder may be outdated and doesnt support certain x264 encoding features.
however, megui 0.3.5.0 is the latest stable version but not the most up to date.
since we're in the process of releasing a new stable version i suggest you to get the development version since it's pretty stable (probably more the the stable version you're using) and more up to date (tools included).
also update your player, ffdshow AND haali media splitter.

blah123
26th October 2010, 10:32
You can use notepad, avsp, or megui

Just edit the script, it's not that difficult:

Directshowsource("video.m2ts")

or

DSS2("video.m2ts")

But I use it in this way! And it isn't working!

poisondeathray
26th October 2010, 14:00
But I use it in this way! And it isn't working!

what's not working ? what's the error message when you preview .avs?

do you have haali media splitter, ffdshow installed ?

on win7 you need win7dsfiltertweaker as well

blah123
26th October 2010, 19:16
MeGUI 0.3.5.23, ffdshow, haali installed.
Ok, I try way of @poisondeathray again, but with other diffrent options.

gorca
27th October 2010, 00:28
Sharktooth, I've clean reinstalled everything (using only the latest meGUI, ffdshow, Haali, etc.) and it didn't change anything. However, I eventually resolved it. It seems that there was something specific with Back to the future (parts I, II, III) BluRay remuxes that I've used as sources. With these sources some x264 settings were not compatible so I got artifacts every time I changed Trellis 1 to 2, for instance. As soon as I used video-only source wrapped in .mkv that has been passed-through eac3to first, encoding artifacts were gone. Can't explain it but happy the issue was only connected to these 3 movies.
Thanks for helping out.

Sharktooth
27th October 2010, 04:30
glad you found a way to fix it.

LigH
27th October 2010, 07:01
@ blah123:

Also there is FFmpegSource2, which is as independent from the whole DirectShow system and as free of charge as DGAVCDec, supports PAFF as well as MBAFF interlacing, and should be more frame-accurate than DGAVCDec with a replaced libavcodec decoder library (which was the reason why that one got abandoned).

The problem is not the demultiplexing, it is the decoding: There are different types (PAFF / MBAFF), and the old libavcodec decoder library used in DGAVCDec only supported MBAFF, but was the last frame-accurate version. DGDecNV uses Nvidia's PureVideo hardware decoder instead, DGAVCDecDI uses DiAVC.

blah123
27th October 2010, 17:14
Ok, thx for support, TsMuxer handles with AVC.
But now I have a problem with audio. Is unsynchronised... I don't know, which delay I should set. tsMuxeR gives "-471", but there is still a little difference between audio and video after muxing...

GRKNGLR
30th October 2010, 21:44
Hi,
Will a FLAC encoder and BassAudio be added to MeGUI in the future?

Sharktooth
31st October 2010, 15:04
Maybe FLAC. BassAudio is not needed.

tebasuna51
31st October 2010, 19:39
BassAudio is not needed.
Maybe only for AAC audio.
DirectShow don't work properly:
[Error] Log
-[Information] Versions
--[Information] MeGUI Version : 0.3.5.22
--[Information] OS : Windows XP Professional x86 SP3 (5.1.196608.2600)
--[Information] Latest .Net Framework installed : unknown
--[Information] Avisynth Version : 2.5.8.5
-[Error] Log for job10 (audio, 6p321.m4a -> 6p321.ac3)
--[Information] [31/10/2010 19:14:32] Started handling job
--[Information] [31/10/2010 19:14:32] Preprocessing
--[Information] Avisynth script
---[NoImage] DirectShowSource("D:\Test\6p321.m4a")
---[NoImage] EnsureVBRMP3Sync()
---[NoImage] return last
--[Information] Commandline used: -readtoeof 1 -b 640 - "{0}"
--[Information] [31/10/2010 19:14:32] Encoding started
--[Information] [31/10/2010 19:14:32] Encode thread started
--[Information] [31/10/2010 19:14:32] Avisynth script environment opened
--[Information] [31/10/2010 19:14:35] Script loaded
--[Information] Output Decoder
---[Information] Channels: 8
---[Information] Bits per sample: 16
---[Information] Sample rate: 48000
--[Information] Commandline: D:\Programa\megui\tools\aften\aften.exe -readtoeof 1 -b 640 - "D:\Test\6p321.ac3"
--[Information] [31/10/2010 19:14:35] Encoder process started
--[Error] An error occurred
---[Error] Exception message: Ha terminado la canalización.
---[Error] Stacktrace
----[NoImage] at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
----[NoImage] at System.IO.FileStream.WriteCore(Byte[] buffer, Int32 offset, Int32 count)
----[NoImage] at System.IO.FileStream.Write(Byte[] array, Int32 offset, Int32 count)
----[NoImage] at MeGUI.AviSynthAudioEncoder.encode()
---[Error] Inner exception: null
--[Information] Output from encoder via stderr
---[NoImage] Aften: A/52 audio encoder
---[NoImage] Version SVN
---[NoImage] (c) 2006-2007 Justin Ruggles, Prakash Punnoor, et al.
---[NoImage] input format: Microsoft WAVE Signed 16-bit little-endian 48000 Hz multi-channel
---[NoImage] Unsupported # of channels passed to aften_wav_chmask_to_acmod
---[NoImage] mismatch in channels, acmod, and lfe params
--[Information] [31/10/2010 19:14:35] Job completed
My 6p321.m4a is a standard 5.1, not 8 channels.

Without problems using an avs:
BassAudioSource("D:\Test\6p321.m4a")

-[Information] Log for job11 (audio, 6p321_m4a.avs -> 6p321_m4a.ac3)
--[Information] [31/10/2010 19:30:29] Started handling job
--[Information] [31/10/2010 19:30:29] Preprocessing
--[Information] Avisynth script
---[NoImage] Import("D:\Test\6p321_m4a.avs")
---[NoImage] return last
--[Information] Commandline used: -readtoeof 1 -b 640 - "{0}"
--[Information] [31/10/2010 19:30:29] Encoding started
--[Information] [31/10/2010 19:30:29] Encode thread started
--[Information] [31/10/2010 19:30:29] Avisynth script environment opened
--[Information] [31/10/2010 19:30:33] Script loaded
--[Information] Output Decoder
---[Information] Channels: 6
---[Information] Bits per sample: 32
---[Information] Sample rate: 48000
--[Information] Commandline: D:\Programa\megui\tools\aften\aften.exe -readtoeof 1 -b 640 - "D:\Test\6p321_m4a.ac3"
--[Information] [31/10/2010 19:30:33] Encoder process started
--[Information] Output from encoder via stderr
---[NoImage] Aften: A/52 audio encoder
---[NoImage] Version SVN
---[NoImage] (c) 2006-2007 Justin Ruggles, Prakash Punnoor, et al.
---[NoImage] input format: Microsoft WAVE Floating-point 32-bit little-endian 48000 Hz 5.1-channel
---[NoImage] output format: 48000 Hz 3/2 + LFE
---[NoImage] SIMD usage: MMX SSE SSE2 SSE3
---[NoImage] Threads: 2
---[NoImage] progress: 100% | q: 534.5 | bw: 58.0 | bitrate: 640.0 kbps
--[Information] [31/10/2010 19:30:35] Postprocessing
---[Information] Deleting intermediate files
--[Information] [31/10/2010 19:30:35] Job completed

Sharktooth
31st October 2010, 21:49
ffaudiosource ?

tebasuna51
1st November 2010, 00:51
Can work also.

But the problem with ffaudiosource (also with ffmpeg) is the output decoder precission: 16 bits int
---[NoImage] input format: Microsoft WAVE Signed 16-bit little-endian 48000 Hz 5.1-channel

BassAudio and NicAudio decoders output 32 bit float samples, and like this is transferred to encoder.
---[NoImage] input format: Microsoft WAVE Floating-point 32-bit little-endian 48000 Hz 5.1-channel
If there are other functions, like downmix or samplerate change, is better also work with 32 bit float.

Sharktooth
1st November 2010, 05:23
32bit float has more or less the same "quality" as 24 bit int. if 32bit INT is going to be implemented in ffmpeg/libavcodec i'd prefer 32bit INT over 32bit float.

tebasuna51
1st November 2010, 12:28
... i'd prefer 32bit INT over 32bit float.
Of course.

But the 32 bit float is the internal format of the decoders and you can't improve the quality with a conversion to 32 bit int.

Also many AviSynth functions can only operate with 16 bit int or 32 bit float but not with 32 bit int.

I think the best option is preserve the same sample format througth the whole process.

BTW, you can implement ffaudiosource in MeGUI for AAC (and other formats not covered by NicAudio), is always better than DirectShowSource and you don't need more AviSynth plugins (BassAudio.dll, Bass.dll, Bass_aac.dll).
If a user want use BassAudio always can use the .avs method.

LigH
1st November 2010, 13:06
One of the main advantages of float as internal sample format would also be that you don't need to be afraid of overflows until you finally render the sample down to integer. Having a 24 bit mantissa, it won't lose much precision even for quiet scenes or calculation results (the mantissa is independent of the exponent). And some audio functions are easier to implement if they are based on normalized float values (-1.0 .. +1.0), applying them on integers might require forth-and-back conversion to float.

I speak from my experience of e.g. the "Booster" dynamic compressor in BeSweet, implemented as simple functions on normalized float samples.

Sharktooth
1st November 2010, 15:30
thanks for the explanation. i think we will go for the ffaudiosource way for coherency since we already have ffms and mencoder/ffmpeg for other tasks.
let's hope developers will increase the resolution in future updates.

LigH
2nd November 2010, 10:35
:cool: Hooray -- x264 is now also available with integrated audio encoders!

:scared: Sh** -- MeGUI doesn't know that, and encodes my manually created custom AviSynth scripts with audio output without adding "--acodec none", so the "qtaac encoder" gets active, but is unstable, and my AVC encode crashes. And furthermore, I would have preferred NeroAacEnc anyway.

nurbs
2nd November 2010, 11:39
:cool: Hooray -- x264 is now also available with integrated audio encoders!
When did that happen? I can't see anything on the mailing list or in the git changelog. :confused:

LigH
2nd November 2010, 11:47
MeGUI 0.3.5.24 -- x264 1745-1 (Jeeb)

x264.exe --fullhelp
x264 core:107 r1745+311 2317302
Syntax: x264 [options] -o outfile infile

Infile can be raw (in which case resolution is required),
or YUV4MPEG (*.y4m),
or Avisynth if compiled with support (yes).
or libav* formats if compiled with lavf support (yes) or ffms support (yes).
Outfile type is selected by filename:
.264 -> Raw bytestream
.mkv -> Matroska
.flv -> Flash Video
.mp4 -> MP4
.3gp -> MP4 (branded '3gp6')
.3g2 -> MP4 (branded '3gp6' and '3g2a')

...

Audio:

Audio options may be used if audio support is compiled in.
Audio is automatically opened from the input file if supported by the demuxer.

--audiofile <filename> Uses audio from the specified file
--ademuxer <string> Demux audio by the specified demuxer [auto]
Supported and compiled in demuxers:
- auto, lavf, avs, lsmash
--atrack <integer> Audio track number [auto]
--acodec <string> Audio codec [auto]
Available settings:
- auto (select muxer default codec and its default encoder)
- copy (copy source audio without transcoding)
- none (disable audio)
Set audio format only and automatically choose encoder
- raw, mp3, aac, ac3, alac, mp2, vorbis, amrnb
Force to use specified audio encoder
'ff' prefix indicate they are supported via libavcodec
- raw, lame, qtaac, (ff)aac, (ff)ac3, (ff)alac, (ff)mp2, (ff)vorbis,
(ff)libopencore_amrnb
--abitrate <float> Enables bitrate mode and set bitrate (kbits/s)
--aquality <float> Quality-based VBR [codec-dependent default]
--asamplerate <integer> Audio samplerate (Hz) [keep source samplerate]
--acodec-quality <float> Codec's internal compression quality [codec specific]
--aextraopt <string> Pass extra option to codec [codec specific]
Should be comma separated "name=value" style

Encoder specific helps:
* raw encoder help
Directly pass the decoded PCM samples (in native endian) to muxer.
All audio options except for --acodec and --audiofile are ignored.

* lame encoder help
--aquality VBR quality [6]
9 (lowest) to 0 (highest)
--abitrate Enables CBR mode. Bitrate should be one of the values below
- for 32000Hz or 44100Hz or 48000Hz
32, 40, 48, 56, 64, 80, 96, 112, 128, 160, 192, 224, 256, 320
- for 16000Hz or 22050Hz or 24000Hz
8, 16, 24, 32, 40, 48, 56, 64, 80, 96, 112, 128, 144, 160
- for 8000Hz or 11025Hz or 12000Hz
8, 16, 24, 32, 40, 48, 56, 64
--asamplerate Output samplerate. Should be one of the values below
8000, 11025, 12000, 16000, 22050, 24000, 32000, 44100, 48000
--acodec-quality Internal algorithmic complexity [0]
9 (poor quality) to 0 (best quality)

* qtaac encoder help
--aquality VBR quality [63]
Cannot be used for HE-AAC and possible values are:
0, 9 ,18 ,27 ,36 ,45 ,54 ,63 ,73, 82, 91, 100, 109, 118, 127
0 is lowest and 127 is highest.
--abitrate Enables bitrate mode
Bitrate should be one of the discrete preset values depending on
profile, channels count, and samplerate.
Examples for typical configurations
- for 44100Hz or 48000Hz with 1ch
LC: 32, 40, 48, 56, 64, 72, 80, 96, 112, 128, 144, 160, 192, 224, 256
HE: 16, 24, 32, 40
- for 44100Hz or 48000Hz with 2ch
LC: 64, 72, 80, 96, 112, 128, 144, 160, 192, 224, 256, 288, 320
HE: 32, 40, 48, 56, 64, 80
- for 44100Hz or 48000Hz with 5.1ch
LC: 160, 192, 224, 256, 288, 320, 384, 448, 512, 576, 640, 768
HE: 80, 96, 112, 128, 160, 192
The lower samplerate, the lower min/max values are applied
--asamplerate Output samplerate
LC: 8000, 11025, 12000, 16000, 22050, 24000, 32000, 44100, 48000
HE: 32000, 44100, 48000
Samplerate greater than input is not supported
--acodec-quality Encoder's internal complexity [0]
0 (medium), 1 (high), 2 (highest)
--aextraopt Profile and bitrate mode
sbr : enable HE-AAC encoding [0]
mode : bitrate control mode [abr]
"abr", "cbr", "cvbr"

--aquality/--abitrate setting may be changed inside codec due to its
limitations and extreme resampling settings (e.g. 48000->8000) may not work.
If something goes wrong, it will result in a failure of codec initialization.

* (ff)libopencore_amrnb encoder help
Accepts only mono (1ch), 8000Hz audio and not capable of quality based VBR
--abitrate Only one of the values below can be acceptable
4.75, 5.15, 5.9, 6.7, 7.4, 7.95, 10.2, 12.2

...

nurbs
2nd November 2010, 11:56
So it's a patch, I see. I didn't check if there was a difference between 1745 and 1745-1 and I never noticed it since my scripts don't have audio. Thanks.

Sharktooth
2nd November 2010, 15:33
add --acodec none in the custom commandline options of the x264 preset config.

LigH
2nd November 2010, 16:37
... until it gets officially supported by (or "banned" from) MeGUI. ;)
__

P.S.: Added a tracker task (https://sourceforge.net/tracker/?func=detail&aid=3102234&group_id=156112&atid=798476).

ZZZERO
2nd November 2010, 22:55
It's been a month or so since I encoded something. I used to get around 33fps encoding with x264 to mp4 on both film and interlaced sources. All of a sudden I'm getting less than 10fps with film sources, but my interlaced stuff still encodes at 33fps. Has something changed recently in the way megui handles film sources? Here's one of my scripts that encodes really slowly

LoadPlugin("C:\Program Files\megui\tools\dgindex\DGDecode.dll")
DGDecode_mpeg2source("E:\800FL\800FL.d2v", info=3)
LoadPlugin("C:\Program Files\megui\tools\avisynth_plugin\ColorMatrix.dll")
ColorMatrix(hints=true, interlaced=true, threads=0)
fft3dfilter(interlaced=true)
LoadPlugin("C:\Program Files\megui\tools\avisynth_plugin\TIVTC.dll")
tfm(order=1).tdecimate()
crop( 4, 6, -8, -2)

LanczosResize(576,432) # Lanczos (Sharp)
#denoise


Could it be a cpu utilization problem? I have an i5 quad core and I let x264 automatically set the number of threads. It looks like film encodes are not using a very high percentage of cpu power when compared to an interlaced encode.


Here's a typical script for one of my interlaced encodes.

LoadPlugin("C:\Program Files\megui\tools\dgindex\DGDecode.dll")
DGDecode_mpeg2source("E:\PR23\PR23.d2v", info=3)
LoadPlugin("C:\Program Files\megui\tools\avisynth_plugin\ColorMatrix.dll")
ColorMatrix(hints=true, interlaced=true, threads=0)
fft3dfilter(interlaced=true)
Load_Stdcall_Plugin("C:\Program Files\megui\tools\yadif\yadif.dll")
Yadif(order=1)
crop( 12, 6, -12, -6)

LanczosResize(576,432) # Lanczos (Sharp)
#denoise

luke83
3rd November 2010, 11:28
Hi to everyone and sorry if my english won't be well but I'm italian :)

Is possible to add cleanup job manually? I meant without one-click feature.
That's my procedure, I:
1) Open File indexer to make the d2v file
2) Open it with AVS creator and save the AVS script
3) Select the profile in the video encoder settings
4) Set the right bitrate with bitrate calculator and insert it in the profile
5) Click Auto-encode to generate all the jobs automatically.
6) At the end of the job I have to clean up by myself.

These passes works good but I'd prefer cleaning up to start through jobs

Thanks in advance

Sharktooth
3rd November 2010, 14:50
@luke83: 4 is useless. Auto-Encode window will ask you for a target bitrate OR filesize too.
also, it's not clear to me what you mean with "i have to clean up". clean up what?

@ZZZERO: ensure you're using the same encoding preset as before.

luke83
3rd November 2010, 16:17
@luke83: 4 is useless. Auto-Encode window will ask you for a target bitrate OR filesize too.
also, it's not clear to me what you mean with "i have to clean up". clean up what?


Clean the working folder where the files are (.d2v, .avs .ac3 ecc...)

When I use the "One-Click" encoding, one more job appears at the end named:"Clean up". This job deletes all the file in the working directory.
When I don't use "One-click", Megui doesn't add that final job. In this case the last job is "Muxing".

I want to know the way to add "clean job" manually. So I haven't to open working folders and delete all the files by myself :)

ZZZERO
3rd November 2010, 18:08
I'm using the same preset as before. In fact, I'm using the same preset for film encoding and for interlaced material. The only difference between the encodes are these script lines:

Film script:
LoadPlugin("C:\Program Files\megui\tools\avisynth_plugin\TIVTC.dll")
tfm(order=1).tdecimate()

Interlaced script:
Load_Stdcall_Plugin("C:\Program Files\megui\tools\yadif\yadif.dll")
Yadif(order=1)

Both are generated from the MEGUI analyze function.

The film script results in 10fps, the interlaced script gives me 33fps. I don't have an old film script so I don't know if MEGUI has changed some parameter in the scripts it creates, but I do know that I used to get at least 33fps when encoding film sources in the past. Now I'm getting a quarter of that speed and I don't know why.

Sharktooth
4th November 2010, 05:05
@ZZZERO: inverse telecine is a more complex process than just deinterlacing. it's pretty normal.

@luke83: the clean up job cant be added outside one-click encoder.

Carpo
4th November 2010, 09:35
When looking at a CSI disc in DGIndex and DGIndexNV both say that the disc is interlaced, yet when i go to make the avs file in MeGui it says that the stream is progressive, so which is right? Which is it? should i trust MeGui and let it make a .avs for progressive?

nurbs
4th November 2010, 09:44
From the DGIndex manual:
Frame Type - Displays Interlaced or Progressive depending on the value of the MPEG2 progressive_frame flag. Please be aware that this merely describes how the frame was encoded; it says nothing about whether the content of the frame is progressive or interlaced. It is common for progressive video to be encoded as interlaced, and vice versa.

Carpo
4th November 2010, 09:47
Thanks Nurbs, helps me to understand a bit more. Yes RTFM is a good thing, maybe i should do that after coffee :-)

Sharktooth
4th November 2010, 15:53
megui should be more accurate coz it tests for interlacing/telecine. however it could be wrong at times.
just watch the preview before analyzing the source. you will clearly see interlacing/telecine artifacts in high motion scene if the source is interlaced or telecined.

luke83
4th November 2010, 20:59
@luke83: the clean up job cant be added outside one-click encoder.

ok, thanks

Now, one more dubt :D
I think the Analyse pass that looks for deinterlacing source is executed when I use One-click Encoding too.
However, is One-click encoding able to find if the video is Anime? And is the bitrate calulated or I have to set manually?

I'm sorry to annoying you with these questions but I'm going to convert many dvds (Movie, Specials and Series). For this reason I want everythings works good ;)

Sharktooth
5th November 2010, 15:35
one click doesnt know if the source is anime or not, also if you click "show advanced options" you will find a lot of interesting things... ;)

kristiXS
5th November 2010, 15:55
Hi. I googled around and found this error listed elsewhere on the site, but i did not quite understand the suggested causes of the issue. So i am posting a request for help here.

i have a .m2ts file in a BDMV folder. i am trying to encode using megui. i am using windows 7 x64 bit. i have downloaded the newest version of x264 and placed it in the megui directory, in the appropriate folder.

the avs script creator loads the movie, i can see the preview window, i set resolution and encode options...que the job, and then the log shows the following: (the worker timer continues on, saying "processing" though the error shows in the log as soon as i start the job.

[Error] Log for job1 (video, 00000.avs -> )
-[Information] [11/5/2010 9:38:02 AM] Started handling job
-[Information] [11/5/2010 9:38:02 AM] Preprocessing
-[NoImage] Job commandline: "G:\MeGUI_0.3.5_x86_WithoutInstaller_OfflinePackage\tools\x264\vfw4x264.exe" --preset slower --tune ssim --pass 1 --bitrate 4872 --stats "G:\CD DVD RIP\megui output\00000.stats" --threads 4 --deblock -2:-1 --bframes 5 --ref 6 --qcomp 0.7 --cqmfile "G:\MeGUI_0.3.5_x86_WithoutInstaller_OfflinePackage\x264cqm\m4g-hrm.cfg" --merange 28 --psy-rd 1.0:0.70 --no-fast-pskip --sar 799:800 --output NUL "G:\CD DVD RIP\megui output\00000.avs"
-[Information] [11/5/2010 9:38:03 AM] Encoding started
-[Error] An error occurred: raw [error]: raw input requires a resolution.
-[Error] An error occurred: x264 [error]: could not open input file `-'


my avi script looks like this:
# Set DAR in encoder to 47 : 20. The following line is for automatic signalling
global MeGUI_darx = 47
global MeGUI_dary = 20
DirectShowSource("G:\movie\BDMV\STREAM\00000.m2ts", fps=25.000, audio=false, convertfps=true)
#deinterlace
crop( 2, 130, -2, -134)

LanczosResize(1280,544) # Lanczos (Sharp)
#denoise
ConvertToYV12()

tia, Kristi

Sharktooth
5th November 2010, 15:56
have you read the forum rules, expecially the rule 6?

kristiXS
5th November 2010, 16:06
have you read the forum rules, expecially the rule 6?
ah, i didnt realize that was in there...i edited the path text in the avs script, that should resolve the issue.

So, any advice on the problem at hand?

LigH
6th November 2010, 11:30
No real idea ... only a guess that the command line might have been truncated due to its length, and the cut was between two dashes of a parameter, leaving the left one interpreted as input file name.

Try to shorten the path name of "G:\MeGUI_0.3.5_x86_WithoutInstaller_OfflinePackage" (e.g. to simply "G:\MeGUI") by renaming the folder, that will reduce the command line 2 times (appears in the CQM file option too).

luke83
6th November 2010, 12:28
one click doesnt know if the source is anime or not, also if you click "show advanced options" you will find a lot of interesting things... ;)

eheh, tks. I got it ;)
However I need of Anime support at this time :)

Sharktooth
6th November 2010, 15:33
it cant be possible. source detector cant know if the source is anime or not. every software that supports custom parameters for anime needs you to MANUALLY specify if the source is anime or not.

luke83
6th November 2010, 16:44
it cant be possible. source detector cant know if the source is anime or not. every software that supports custom parameters for anime needs you to MANUALLY specify if the source is anime or not.

yes yes I will make it manually. it's not a problem. But I'd prefer a simple checkbox in the "One-Click Encoder".

Sharktooth
7th November 2010, 04:28
you can make an avisynth preset for anime then load it (in advanced options) for anime sources.

foreverbelmont
7th November 2010, 09:21
Hi.I have a VC-1 1080i m2ts Anime. After using dgindexnv and import .dgi into Megui and want to create AVS script, which source type should i choose? Interlaced? or do nothing? THX

Carpo
7th November 2010, 09:57
tell megui its anime, click analyse, megui will scan it and tell you what it is and what ways (if any) will be used to de-interlace it :)

foreverbelmont
7th November 2010, 10:16
tell megui its anime, click analyse, megui will scan it and tell you what it is and what ways (if any) will be used to de-interlace it :)

THX, i have tried it yesterday, but it took a very very long time...4 hours and the progress bar only went forward for about 1 percent...

Carpo
7th November 2010, 10:30
it takes a while to do some of the m2ts files i have made here, but never that long, i would suggest checking your hard drive for errors and defraging it.

For me it normaly takes megui a maximum of 10 mins to make the dgi file, and then no more than 20-25 to index it.

luke83
7th November 2010, 12:27
you can make an avisynth preset for anime then load it (in advanced options) for anime sources.

Good idea, but I can't find anything about "Anime" in the resulting AVS script.

That is: what's the difference when I check "Source is Anime"? What Megui do when I check it?

Sharktooth
7th November 2010, 15:02
the "Source is anime" button enables a different source analysis.

luke83
7th November 2010, 16:12
the "Source is anime" button enables a different source analysis.

And what's the technical difference? :rolleyes:

Sharktooth
7th November 2010, 16:19
in few words, in anime it is more difficult to detect intelacing/telecine due to the nature of the video, so a different analysis is needed.

luke83
7th November 2010, 16:35
in few words, in anime it is more difficult to detect intelacing/telecine due to the nature of the video, so a different analysis is needed.

Ok. Now, How can I enable anime analysis in the avs script made by myself? So I could make an AVS preset

foreverbelmont
7th November 2010, 17:22
it takes a while to do some of the m2ts files i have made here, but never that long, i would suggest checking your hard drive for errors and defraging it.

For me it normaly takes megui a maximum of 10 mins to make the dgi file, and then no more than 20-25 to index it.

After updating dgindexnv and some other things, everything is going the right way. THX.

Sharktooth
8th November 2010, 03:28
@luke83: it's simple. you cant. analysis is done by megui, not by avisynth.
as i said in a previous post you can make an avisynth preset (in avs creator), save it and reuse from one-click encoder...

LigH
8th November 2010, 11:18
Disabling "Save settings in INI file" solved my problems with the slow quitting and the even slower loading right afterwards.

Kurtnoise
8th November 2010, 11:43
@LigH: you're off-topic here...megui doesn't have ini files.

LigH
8th November 2010, 12:31
Heh - wrong thread, yes.

kristiXS
8th November 2010, 20:19
No real idea ... only a guess that the command line might have been truncated due to its length, and the cut was between two dashes of a parameter, leaving the left one interpreted as input file name.

Try to shorten the path name of "G:\MeGUI_0.3.5_x86_WithoutInstaller_OfflinePackage" (e.g. to simply "G:\MeGUI") by renaming the folder, that will reduce the command line 2 times (appears in the CQM file option too).

thank you for the reply. upon your suggestion, i shortened the path and downloaded the freeware AVCHD editor from VSO and remade the bluray folder, voila, it encodes. Apparently there was some issue with either the path being too long to the files or the ripped bluray structure / .m2ts that was readable enough to create an AVS script and play, but caused an issue when encoding. :confused:

edit: it appeared that it was finally going to encode with all apps at this point, as before the edit even another standalone app was stopping, and after doing the above it could encode it. MEgui however is still giving me the error: raw input requires a resolution, could not open input file `-'. sigh. this is driving me crazi...er.

i demuxed the mt2s file into an mkv and ac3...created avs script with the mkv... set it to encode....same stupid error.... ive edited windows 7 settings to use coreavc and xvid codecs by default as i read to do as that can affect decoding.... now i dont know anything else to try.

now another question..
looking at the path, i noticed its sending the command line to
Job commandline: "\tools\x264\vfw4x264.exe" which is the vfw version of x264...is that correct? i thought it should be using the newer regular x264.exe ?

Sharktooth
8th November 2010, 21:33
nope, it is a pipe buffer for x264. it will be removed in future versions.

kristiXS
9th November 2010, 03:26
thank you for the reply. upon your suggestion, i shortened the path and downloaded the freeware AVCHD editor from VSO and remade the bluray folder, voila, it encodes. Apparently there was some issue with either the path being too long to the files or the ripped bluray structure / .m2ts that was readable enough to create an AVS script and play, but caused an issue when encoding. :confused:

edit: it appeared that it was finally going to encode with all apps at this point, as before the edit even another standalone app was stopping, and after doing the above it could encode it. MEgui however is still giving me the error: raw input requires a resolution, could not open input file `-'. sigh. this is driving me crazi...er.


now another question..
looking at the path, i noticed its sending the command line to
Job commandline: "\tools\x264\vfw4x264.exe" which is the vfw version of x264...is that correct? i thought it should be using the newer regular x264.exe ?

i demuxed the mt2s file into an mkv and ac3...created avs script with the mkv... set it to encode....same stupid error.... ive edited windows 7 settings to use coreavc and xvid codecs by default as i read to do as that can affect decoding.... now i dont know anything else to try.

since the avs script is based on mt2s demuxed using the tool in megui to an mkv vid file...its obviously not raw. corecodec is my video decoder for x264 / h264, is it some problem with it maybe? x264 thinks im feeding it raw because.....??? i assume im asking this in the correct forum area considering im using megui, if not please point me to another thread.

the only mention of this error is in this thread:
http://forum.doom9.org/archive/index.php/t-135258.html
and its regarding actually sending it raw info...i dont think it applies to feeding it mkv video with the avs script?

Sharktooth
9th November 2010, 03:59
have you indexed the mkv file?

kristiXS
9th November 2010, 05:33
have you indexed the mkv file?

yes, i tried indexing the mt2s file and extracting raw while i was at it...i also tried indexing the mkv i had extracted from mt2s... always the same error. i set it to encode to xvid and it started processing, so the problem is just with x264 encoding. i installed ffdshow just now (leaving default settings) and used the tweaker to set it as default windows codec for h264 instead of corecodec, it made no difference in the encode error.

im now trying a different mkv file, which is giving the same error.

so i just noticed, some behavior about the avisynth script editing:
if i make avisynth script profile other than scratchpad so i can add ConvertToYV12() at end and save it, when i index and it loads into avisynth script creator, im able to crop but the resize option is greyed out if i have clever anamorphic checked. if i load the mkv directly into script creator without indexing, its not greyed out, even with clever anamorphic checked. If i use the scratchpad script, i can still resize regardless of whether i indexed or not.

after creating the script, when i click to que the job, i get a message with this file: it is stating the clip is in I420 not yv12, even though convertToYv12 has been added to the script...continue anyway? i said yes...then get my favorite error message again: raw input requires a resolution / could not open input file.

i went back and just using scratchpad profile, got the same clip is i420 message, said yes to encode anyways...and this time, i finally started encoding without an error.

so it seems it was just the script the entire time (and only for x264, xvid was ok with the modified default script lol). maybe some warnings are needed to avoid an ID10T error like that... hours of fooling with this because of it needing to use scratchpad rather than a saved default script....

flebber
9th November 2010, 12:06
I am getting this error when using the HDstreams extractor. I am using mkv input.

[Error] Log
-[Information] Versions
--[Information] MeGUI Version : 0.3.5.24
--[Information] OS : Windows XP Professional x86 SP3 (5.1.196608.2600)
--[Information] Latest .Net Framework installed : 4.0 (4.0.30319)
--[Information] Avisynth Version : 2.5.8.5 (21/12/2008 9:46:54 PM)
-[Error] Log for job1 (ext, title02.mkv -> xxx)
--[Information] [9/11/2010 9:59:26 PM] Started handling job
--[Information] [9/11/2010 9:59:26 PM] Preprocessing
--[Information] Job commandline: "C:\Megui\tools\eac3to\eac3to.exe" "C:\Rip\Source\FAWLTY_TOWERS_PROP2_DISC2\title02.mkv" 1:"C:\Rip\Source\FAWLTY_TOWERS_PROP2_DISC2\T1_Video - .mkv" 2:"C:\Rip\Source\FAWLTY_TOWERS_PROP2_DISC2\T2_Audio - English.ac3" 4:"C:\Rip\Source\FAWLTY_TOWERS_PROP2_DISC2\T4_Subtitle - English.idx" -progressnumbers
--[Information] [9/11/2010 9:59:26 PM] Extracting started
--[Error] [9/11/2010 9:59:30 PM] Process exits with error code: 1
--[Information] Standard output stream
---[NoImage] MKV, 1 video track, 2 audio tracks, 2 subtitle tracks, 0:32:03, 50i
---[NoImage] 1: MPEG2, 576i50 (4:3)
---[NoImage] 2: AC3, English, 2.0 channels, 192kbps, 48kHz, dialnorm: -27dB
---[NoImage] "2/0"
---[NoImage] 3: AC3, English, 2.0 channels, 192kbps, 48kHz, dialnorm: -27dB
---[NoImage] "2/0"
---[NoImage] 4: Subtitle (VobSub), English
---[NoImage] 5: Subtitle (VobSub), English
---[NoImage] Bitstream parsing for tracks 4 and 5 failed.
---[NoImage] Demuxing these tracks may still produce correct results - or not.
---[NoImage]
--[Information] Standard error stream
--[Information] [9/11/2010 9:59:30 PM] Job completed
-[Error] Log for job2 (ext, title02.mkv -> xxx)
--[Information] [9/11/2010 10:00:30 PM] Started handling job
--[Information] [9/11/2010 10:00:30 PM] Preprocessing
--[Information] Job commandline: "C:\Megui\tools\eac3to\eac3to.exe" "C:\Rip\Source\FAWLTY_TOWERS_PROP2_DISC2\title02.mkv" 1:"C:\Rip\Source\FAWLTY_TOWERS_PROP2_DISC2\T1_Video - .m2v" 2:"C:\Rip\Source\FAWLTY_TOWERS_PROP2_DISC2\T2_Audio - English.ac3"

The streams extractor didn't pick up the chapters in input.

My input is
General
Complete name : C:\Rip\Source\FAWLTY_TOWERS_PROP2_DISC2\title02.mkv
Format : Matroska
File size : 1.18 GiB
Duration : 32mn 3s
Overall bit rate : 5 291 Kbps
Encoded date : UTC 2010-10-17 21:33:42
Writing application : MakeMKV v1.6.0 win(x86-release)
Writing library : libmakemkv v1.6.0 (0.7.7/0.8.1) win(x86-release)

Video
ID : 1
Format : MPEG Video
Format version : Version 2
Format profile : Main@Main
Format settings, BVOP : No
Format settings, Matrix : Default
Codec ID : V_MPEG2
Codec ID/Info : MPEG 1 or 2 Video
Duration : 32mn 3s
Bit rate mode : Variable
Bit rate : 4 802 Kbps
Nominal bit rate : 7 500 Kbps
Width : 720 pixels
Height : 576 pixels
Display aspect ratio : 4:3
Frame rate : 25.000 fps
Standard : PAL
Color space : YUV
Chroma subsampling : 4:2:0
Bit depth : 8 bits
Scan type : Interlaced
Scan order : Top Field First
Bits/(Pixel*Frame) : 0.463
Stream size : 1.07 GiB (91%)
Language : English

Audio #1
ID : 2
Format : AC-3
Format/Info : Audio Coding 3
Mode extension : CM (complete main)
Codec ID : A_AC3
Duration : 32mn 3s
Bit rate mode : Constant
Bit rate : 192 Kbps
Channel(s) : 2 channels
Channel positions : Front: L R
Sampling rate : 48.0 KHz
Bit depth : 16 bits
Video delay : -80ms
Stream size : 44.0 MiB (4%)
Title : 2/0
Language : English

Audio #2
ID : 3
Format : AC-3
Format/Info : Audio Coding 3
Mode extension : CM (complete main)
Codec ID : A_AC3
Duration : 32mn 3s
Bit rate mode : Constant
Bit rate : 192 Kbps
Channel(s) : 2 channels
Channel positions : Front: L R
Sampling rate : 48.0 KHz
Bit depth : 16 bits
Video delay : -80ms
Stream size : 44.0 MiB (4%)
Title : 2/0
Language : English

Text #1
ID : 4
Format : VobSub
Codec ID : S_VOBSUB
Codec ID/Info : The same subtitle format used on DVDs
Language : English

Text #2
ID : 5
Format : VobSub
Codec ID : S_VOBSUB
Codec ID/Info : The same subtitle format used on DVDs
Language : English

Menu
00:00:00.000 : en:Chapter 01
00:00:25.720 : en:Chapter 02
00:05:35.080 : en:Chapter 03
00:11:06.320 : en:Chapter 04
00:17:37.360 : en:Chapter 05
00:21:28.120 : en:Chapter 06
00:25:47.400 : en:Chapter 07
00:31:16.200 : en:Chapter 08

Kurtnoise
9th November 2010, 13:44
this is not a megui's fault...but eac3to which is not "up-to-dated" within mkv files produced by makemkv.

sebus
13th November 2010, 17:05
Is there a way in GUI to add the idx subtitles (or maybe even Bluray sup) for hardcoding (to ie xvid) or it must be done by hand in avs script ie

LoadPlugin("C:\Program Files (x86)\megui\tools\DirectVobSub\VSFilter.dll")
VobSub("C:\Users\Danny\Videos\Films\DRACULA\English.idx")

sebus

Music Fan
15th November 2010, 11:08
Hi,
I would like to create keyframes on certain frames in a video to put chapters on these frames (I guess it's better to put chapter index on keyframes, at least for standalone players).
I saw the "zones" tab and the "chapter creator" tool but I don't know if one of these serves to create keyframes.
I also would like to know if the chapter creator accept a txt file with the numbers of frames I'd like to use as chapters points (simply a list of numbers, without timing, as we can do in DivXMediaBuilder to create chapters).
Thanks;)

Kurtnoise
15th November 2010, 14:09
@arnuche : what kind of sources do you have ? you cannot insert keyframes as it...you have to reencode your input as well. MeGUI has a semi-automatic option to insert keyframes for chapters during encodes.

and yes, UV is dead but you can still find me around here (http://www.cyrille-borne.com/forum/) if you prefer froggies people...

Kurtnoise
15th November 2010, 14:18
Is there a way in GUI to add the idx subtitles (or maybe even Bluray sup) for hardcoding (to ie xvid) or it must be done by hand in avs script ie

LoadPlugin("C:\Program Files (x86)\megui\tools\DirectVobSub\VSFilter.dll")
VobSub("C:\Users\Danny\Videos\Films\DRACULA\English.idx")

in the Avisynth Creator...note that vobsub filter doesn't support bd subtitles format.

Music Fan
15th November 2010, 18:58
@arnuche : what kind of sources do you have ? you cannot insert keyframes as it...you have to reencode your input as well. MeGUI has a semi-automatic option to insert keyframes for chapters during encodes.

and yes, UV is dead but you can still find me around here (http://www.cyrille-borne.com/forum/) if you prefer froggies people...
I'm Music Fan here :D
It's an avisynth script, I know that I can't add keyframes in a video without reencoding it.
Do you mean that if we open a chapter list (in txt file), MeGui can create keyframes on these frames ? If yes, how ?
I choose first the frames on which I want put chapters with Virtual Dub and I create the txt file with the numbers of these frames.

Sharktooth
16th November 2010, 03:41
ogg chapter format.
the format is described here: http://code.google.com/p/subler/wiki/ChapterTextFormat

Music Fan
16th November 2010, 10:15
Thanks, but a simpler format is enough for me. Can't we import number frames as I described above ?
I don't need names for chapters, I just want to create keyframes with MeGui.

HeadlessCow
16th November 2010, 19:38
Thanks, but a simpler format is enough for me. Can't we import number frames as I described above ?
I don't need names for chapters, I just want to create keyframes with MeGui.

You can create a qpf file and add it to the x264 config before you encode the video.

The qpf file just has a list of frame numbers, frame types and quantizers (use -1 for quantizer if you want to let x264 decide).

Sample qpf file.

0 I -1
2374 I -1
4527 I -1
17113 I -1
31883 I -1
34040 I -1

sebus
16th November 2010, 20:46
in the Avisynth Creator...note that vobsub filter doesn't support bd subtitles format.

But that is done by hand in the script, correct?
Or did I miss something obvious?

sebus

Music Fan
17th November 2010, 11:33
You can create a qpf file and add it to the x264 config before you encode the video.

The qpf file just has a list of frame numbers, frame types and quantizers (use -1 for quantizer if you want to let x264 decide).

Sample qpf file.

0 I -1
2374 I -1
4527 I -1
17113 I -1
31883 I -1
34040 I -1

Thanks, I will try this.;)
So, I guess that the Chapter Creator doesn't create keyframes but only adds index when we export in MKV, even if the chapters are not placed on keyframes, right ?
If yes, can we import a simpler format than ogg chapter format proposed by Sharktooth ?
The simplest would be to import the same qpf file we use in the config, but I guess it's not a compatible structure with the Chapter Creator.

madeinlisboa
22nd November 2010, 13:40
Please, can you give me some advice on configuring Adaptive Quantization in dark scenes? Should I use a low value for keeping details since the source is obviously grainy or set it higher?

Thank you

Sharktooth
22nd November 2010, 15:11
AQ is not related to quantization of dark areas. That was the old xvid lumimasking. Keep the default strength.

madeinlisboa
22nd November 2010, 15:28
AQ is not related to quantization of dark areas. That was the old xvid lumimasking. Keep the default strength.

Yes, but grain is and a low value is set by the grain tune. If the source is dark and grainy what shall I set?

Sharktooth
23rd November 2010, 02:22
screenshot of the source (possibly in PNG format)?
however, VAQ affects high contrast areas reducing the data (by rising the quant) for those block(s). so, ideally if it's very grainy you should keep a low value of strength, hence the default value.

madeinlisboa
23rd November 2010, 11:41
http://www.cefitness.com/uploads/ori.PNGMany scenes are much darker than this one and as grainy.

Source is 29gb. Expected final size: 20gb

x264 settings:
cabac=1 / ref=4 / deblock=1:-3:-3 / analyse=0x3:0x113 / me=umh / subme=10 / psy=1 / psy_rd=1.00:0.15 / mixed_ref=1 / me_range=64 / chroma_me=1 / trellis=2 / 8x8dct=1 / cqm=0 / deadzone=21,11 / fast_pskip=0 / chroma_qp_offset=-3 / threads=3 / sliced_threads=0 / nr=0 / decimate=1 / interlaced=0 / constrained_intra=0 / bframes=4 / b_pyramid=2 / b_adapt=2 / b_bias=0 / direct=3 / weightb=1 / open_gop=1 / weightp=2 / keyint=250 / keyint_min=23 / scenecut=40 / intra_refresh=0 / rc_lookahead=60 / rc=crf / mbtree=1 / crf=18.5 / qcomp=0.70 / qpmin=10 / qpmax=51 / qpstep=4 / ip_ratio=1.40 / aq=1:0.60 /

nurbs
23rd November 2010, 12:04
This won't help you with the grain, but you can get some extra encoding speed by setting --me-range to a sane value (e.g. 24 or by just using the default of the preset).
Setting it to 64 means that a) you don't know what the setting actually does and/or b) you don't think the x264 developers know what range might be useful.

madeinlisboa
23rd November 2010, 12:24
Time is not an issue.
And increasing the psy-trellis strength and lowering aq does indeed help grain movies. if the whole scene is full of grain, there is no point in redistributing bits of detail, hence the low aq.
messing with deadzone would mean disabling trellis and the encode would probably have the same size of the source.

my doubt is will this low aq affect very low light/dark scenes? like getting blocky or having bad gradients?

tebasuna51
23rd November 2010, 12:36
...
Source is 29gb. Expected final size: 20gb
...
If you want full quality maybe your option is don't recode and preserve the video source.

BTW, the developers sugestion to preserve grain is --tune grain than make this changes to default parameters:
--aq-strength 0.5 --no-dct-decimate --deadzone-inter 6 --deadzone-intra 6 --deblock -2:-2 --ipratio 1.1 --pbratio 1.1 --psy-rd <unset>:0.25 --qcomp 0.8

madeinlisboa
23rd November 2010, 12:43
Yeah, I know. But that isn't applicable, ever. Encodes using those parameters will always end up with a larger size than the source. I was just trying to balance quality and size.

nurbs
23rd November 2010, 13:24
Time is not an issue.
If time wasn't an issue you would be using TESA instead of UMH.
On average me-range 64 with UMH is about the same speed and lower quality than me-range 8 with TESA. It's not too surprising that using a exhaustive search in a small range around the best predictor can yield better results than searching a wider pattern in a huge range.

See this chart: http://akuvian.org/images/tesa2.png
It compares the speed and efficiency of all the motion search methods in x264 at different search ranges (4 8 12 16 24 32 48 64) over a number of sample clips. At 24 there is almost no gain in quality, but a constant speed hit for using higher ranges.

Encodes using those parameters will always end up with a larger size than the source.
That depends on the properties of the source and the (other) encoding settings as well. You can always use a higher CRF. You know that CRF isn't really constant quality, right? It only gives you more or less the same quality for similar sources with the same settings.

Sharktooth
23rd November 2010, 16:38
ok, since all this discussion is off topic, can i ask you to discuss this thing in the avc forum in a dedicated thread?
btw, to answer the question, low AQ does not cause any banding or blocking in dark areas.

nurbs
23rd November 2010, 19:53
Isn't AQ supposed to lower the quantizer in flat areas. Dark areas are often flat and using lower AQ can then lead to banding there.

Sharktooth
23rd November 2010, 20:52
AQ highers the quantizers in very high contrast areas and lowers it in low contrast areas. in case of a very grainy source it can only do damages, coz grain has naturally more contrast than flat... however it depends on how much grain the source has.
that's why i suggested to keep the default, coz it has been tuned by the x264 devs.

mizantrop
25th November 2010, 23:43
I'm encoding Partially interlaced DVD to mp4. Source is 29 FPS but mp4 file ends up as 59 FPS.

I'm using Yadif+Bob with Top field first.

This didn't happen before and I'm using same profile whole time.

Any ideas how to fix this?

Thanks in advance.

Inspector.Gadget
26th November 2010, 01:21
Source is 29 FPS but mp4 file ends up as 59 FPS.

Pure interlaced NTSC DVD material is 60 fields per second. All you're doing is bobbing it to 60 frames per second, instead of weaving to 30 frames per second. Thus, a 60fps encode is correct output.

However, you may not want to bob any progressive or film material on the DVD. In a situation where a video is mostly progressive with some interlaced segments, I'd probably use TDeint(full=false) or Yadif (without bob). In a situation where the video is mostly hard telecined film material with some interlaced segments, I'd use TIVTC and set it up to blend decimate the interlaced material.

forum king
26th November 2010, 04:39
hey folks wass up ?:)
actually i was encoding a avi video for my ipod ( iTouch 64gigs)
I used x264 : Ipod (classic/nano/touch)2-pass
this is the commandline

Job commandline: --pass 2 --bitrate 430 --
stats "D:\ipod\lot.stats" --threads 6 --ref 5 --vbv-bufsize 10000 --vbv-maxrate 10000 --
profile baseline --level 3 --sar 1:1 --output "D:\ipod\lot.mp4" "D:\ipod\lot.avs"

i had first encoded a 10k frames and it transferred to itunes and ipod,
but when i encoded the full video it wont transfer to ipod and itunes ,
could u guys temme which profiles to use please

i am encoding the audio with HE AAC 64 profile with dynamic range compression option on.
video is off course encoded to mp4 and so is the audio.
used the mp4 muxer to mux the audio and video

mizantrop
26th November 2010, 07:27
Pure interlaced NTSC DVD material is 60 fields per second. All you're doing is bobbing it to 60 frames per second, instead of weaving to 30 frames per second. Thus, a 60fps encode is correct output.

However, you may not want to bob any progressive or film material on the DVD. In a situation where a video is mostly progressive with some interlaced segments, I'd probably use TDeint(full=false) or Yadif (without bob). In a situation where the video is mostly hard telecined film material with some interlaced segments, I'd use TIVTC and set it up to blend decimate the interlaced material.

Thank you very much! Now I know something new :)

forum king
26th November 2010, 09:08
hey folks wass up ?:)
actually i was encoding a avi video for my ipod ( iTouch 64gigs)
I used x264 : Ipod (classic/nano/touch)2-pass
this is the commandline


i had first encoded a 10k frames and it transferred to itunes and ipod,
but when i encoded the full video it wont transfer to ipod and itunes ,
could u guys temme which profiles to use please

i am encoding the audio with HE AAC 64 profile with dynamic range compression option on.
video is off course encoded to mp4 and so is the audio.
used the mp4 muxer to mux the audio and video

anyone pl :)

Music Fan
26th November 2010, 09:41
Pure interlaced NTSC DVD material is 60 fields per second. All you're doing is bobbing it to 60 frames per second, instead of weaving to 30 frames per second. Thus, a 60fps encode is correct output.

However, you may not want to bob any progressive or film material on the DVD. In a situation where a video is mostly progressive with some interlaced segments, I'd probably use TDeint(full=false) or Yadif (without bob). In a situation where the video is mostly hard telecined film material with some interlaced segments, I'd use TIVTC and set it up to blend decimate the interlaced material.
I guess that we can also apply different deinterlacing methods for each segment with avisynth (with the trim option), but it's much more complicated.

forum king
26th November 2010, 15:11
hey folks wass up ?:)
actually i was encoding a avi video for my ipod ( iTouch 64gigs)
I used x264 : Ipod (classic/nano/touch)2-pass
this is the commandline


i had first encoded a 10k frames and it transferred to itunes and ipod,
but when i encoded the full video it wont transfer to ipod and itunes ,
could u guys temme which profiles to use please

i am encoding the audio with HE AAC 64 profile with dynamic range compression option on.
video is off course encoded to mp4 and so is the audio.
used the mp4 muxer to mux the audio and video

well guyz one peculair thing that i noticed was that , the same videos , no matter ho i rip them , they were not playable in QT , i am getting this error

a bad public movie atom was found in the movie

i have tried encoding the audio in LC AAC ,
also clicked the option in settings of megui to force video file extention for QT compatibility.

but still the videos i cant transfer them to itunes and hence ipod ,
please help mates ,

Zathor
26th November 2010, 15:39
Post the complete log of the creation process. I fear it may be some kind of problem with the GPAC stuff.

forum king
26th November 2010, 15:57
Here are the details

-[Information] Log for job72 (video, 121.avs -> )
--[Information] [26-11-2010 12:27:59] Started handling job
--[Information] [26-11-2010 12:27:59] Preprocessing
--[NoImage] Job commandline: "C:\MINE\Desktop\megui\tools\x264\vfw4x264.exe" --pass 1 --bitrate 430

--stats "D:\121.stats" --threads 16 --ref 5 --vbv-bufsize 10000

--vbv-maxrate 10000 --profile baseline --level 3 --sar 1:1 --output NUL "D:\121.avs"
--[Information] [26-11-2010 12:27:59] Encoding started
--[NoImage] Standard output stream
--[NoImage] Standard error stream
---[NoImage] yuv [info]: 480x272p 1:1 @ 2997003/125000 fps (cfr)
---[NoImage] x264 [info]: using SAR=1/1
---[NoImage] x264 [info]: using cpu capabilities: MMX2 SSE2Fast SSSE3 FastShuffle SSE4.2
---[NoImage] x264 [info]: profile Baseline, level 3.0
---[NoImage]
---[NoImage] x264 [info]: frame I:898 Avg QP:19.64 size: 12570
---[NoImage] x264 [info]: frame P:59985 Avg QP:22.67 size: 2066
---[NoImage] x264 [info]: mb I I16..4: 24.7% 0.0% 75.3%
---[NoImage] x264 [info]: mb P I16..4: 6.6% 0.0% 0.0% P16..4: 56.6% 0.0% 0.0% 0.0% 0.0%

skip:36.8%
---[NoImage] x264 [info]: final ratefactor: 21.67
---[NoImage] x264 [info]: coded y,uvDC,uvAC intra: 40.6% 44.9% 10.8% inter: 19.7% 11.1% 0.3%
---[NoImage] x264 [info]: i16 v,h,dc,p: 38% 23% 24% 15%
---[NoImage] x264 [info]: i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 26% 19% 17% 4% 9% 7% 6% 7% 7%
---[NoImage] x264 [info]: i8c dc,h,v,p: 59% 17% 21% 4%
---[NoImage] x264 [info]: kb/s:426.02
---[NoImage] encoded 60883 frames, 58.94 fps, 426.02 kb/s
--[Information] [26-11-2010 12:45:13] Postprocessing
---[Information] Deleting intermediate files
--[Information] [26-11-2010 12:45:13] Job completed
-[Information] Log for job73 (video, 121.avs -> 121.mp4)
--[Information] [26-11-2010 12:45:13] Started handling job
--[Information] [26-11-2010 12:45:13] Preprocessing
--[NoImage] Job commandline: "Job commandline: "C:\MINE\Desktop\megui\tools\x264\vfw4x264.exe" --pass 1

--bitrate 430 --stats "D:\121.stats" --threads 6 --ref 5 --vbv-bufsize 10000 --vbv-maxrate 10000

--profile baseline --level 3 --sar 1:1 --output "D:\121.mp4" "D:\121.avs"
--[Information] [26-11-2010 12:45:13] Encoding started
--[NoImage] Standard output stream:
--[NoImage] Standard error stream
---[NoImage] yuv [info]: 480x272p 1:1 @ 2997003/125000 fps (cfr)
---[NoImage] x264 [info]: using SAR=1/1
---[NoImage] x264 [info]: using cpu capabilities: MMX2 SSE2Fast SSSE3 FastShuffle SSE4.2
---[NoImage] x264 [info]: profile Baseline, level 3.0
---[NoImage]
---[NoImage] x264 [info]: frame I:898 Avg QP:19.45 size: 12896
---[NoImage] x264 [info]: frame P:59985 Avg QP:22.59 size: 2082
---[NoImage] x264 [info]: mb I I16..4: 19.0% 0.0% 81.0%
---[NoImage] x264 [info]: mb P I16..4: 1.7% 0.0% 2.2% P16..4: 44.0% 14.9% 5.4% 0.0% 0.0%

skip:31.8%
---[NoImage] x264 [info]: coded y,uvDC,uvAC intra: 56.6% 57.7% 20.1% inter: 15.6% 12.9% 0.3%
---[NoImage] x264 [info]: i16 v,h,dc,p: 39% 21% 15% 25%
---[NoImage] x264 [info]: i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 23% 17% 18% 7% 8% 8% 7% 7% 6%
---[NoImage] x264 [info]: i8c dc,h,v,p: 58% 17% 20% 5%
---[NoImage] x264 [info]: ref P L0: 76.4% 11.7% 7.0% 2.5% 2.4%
---[NoImage] x264 [info]: kb/s:429.85
---[NoImage] encoded 60883 frames, 60.76 fps, 429.85 kb/s
--[Information] Final statistics
---[NoImage] Video Bitrate Desired: 430 kbit/s
---[NoImage] Video Bitrate Obtained (approximate): 430 kbit/s
--[Information] [26-11-2010 13:02:09] Postprocessing
---[Information] Deleting intermediate files
----[Information] [26-11-2010 13:02:09] Successfully deleted D:\121.stats
----[Information] [26-11-2010 13:02:09] Successfully deleted D:\121.stats.mbtree
--[Information] [26-11-2010 13:02:09] Job completed
-[Information] Log for job74 (mux, 121.mp4 -> 121-muxed.mp4)
--[Information] [26-11-2010 13:16:08] Started handling job
--[Information] [26-11-2010 13:16:08] Preprocessing
--[NoImage] Job commandline: "C:\MINE\Desktop\megui\tools\mp4box\mp4box.exe" -add

"D:\121.mp4#trackID=1:fps=23.976" -add "D:\Audio1.mp4#trackID=1:sbr" -ipod -brand M4VP:1 -tmp "D:\" -new

"D:\121-muxed.mp4"
--[Information] [26-11-2010 13:16:08] Muxing started
--[NoImage] Standard output stream
---[NoImage] IsoMedia import - track ID 1 - Video (size 480 x 272)
---[NoImage] IsoMedia import - track ID 1 - HE-AAC (SR 24000 - SBR-SR 48000 - 2 channels)
---[NoImage] Setting up iTunes/iPod file...
---[NoImage] Forcing AVC/H264 SAR to 1:1...
---[NoImage] Saving D:\121-muxed.mp4: 0.500 secs Interleaving
--[NoImage] Standard error stream
--[Information] [26-11-2010 13:16:13] Postprocessing
---[Information] Deleting intermediate files
--[Information] [26-11-2010 13:16:13] Job completed

Inspector.Gadget
26th November 2010, 18:05
I guess that we can also apply different deinterlacing methods for each segment with avisynth (with the trim option), but it's much more complicated.

Sure. Though for partially interlaced content using a deinterlacer that ignores areas in which it doesn't detect motion has the same end result. Also, you probably don't want to mix film framerate and NTSC framerate unless you're deliberately doing a VFR encode, so for most content TIVTC's hybrid handling is a good compromise.

forum king
26th November 2010, 18:26
Please help me out guyz , just suggest me where to work on it ,
i desperately need these videos on my ipod as i am gonna go out for a few days and i genuinely need some good content on my itouch to watch.

or just suggest me a fresh way to convert to ipod format . please

somehow i feel if the files can play in QT , they ll be transferred to ipod too

nurbs
26th November 2010, 18:41
Try adding AssumeFPS(24000, 1001) to your avisynth script.
You didn't say what kind of iPod touch you have, but the new ones, released in September, support High Profile @ Level 3.1

Also mind rule 12.

forum king
26th November 2010, 19:15
Try adding AssumeFPS(24000, 1001) to your avisynth script.
You didn't say what kind of iPod touch you have, but the new ones, released in September, support High Profile @ Level 3.1

Also mind rule 12.

Ok thanks mate i ll give it a go , but i believe this is that perennial atom thingy of quicktime and itunes.
coz none of the enoded videos are playable within QT and if they cant be played by QT , they cant be transferred to itunes and hence ipod ( i have a 64gigs iTouch )

regards

ph34rthesaint
26th November 2010, 23:36
I'm new to Megui. I followed the instructions found here: http://www.digital-digest.com/articles/MeGUI_H.264_Conversion_Guide_page1.html

I ripped my DVDs with DVD Decrypter. I encoded video in x264 and video in neroAAC. After muxing, the audio is not in sync with the video. I've tried with a few DVDs and it's the same problem. Sometimes the audio files have delay of 0ms in the file name, other times, it's nonzero although I'm not sure if that is related.

Any suggestions? Or do you need more information?

Zathor
27th November 2010, 13:18
Forum King, please try the stable build (0.3.5.0 - including all the tools which 0.3.5.0 comes with - do not update them) and update only the profiles (http://megui.org/auto/x264_presets_v56.zip).

Lyle_JP
28th November 2010, 17:20
Forum King,

You seem to have x264 output set to mp4. Try setting the output to raw (.264). The mp4 files that x264 creates are a little funky since build 1732.

TopDonn
30th November 2010, 02:19
Hi Folks.

I have checked the option to Force the Video File Extention for QT compatability in MeGUI settings but can't seem to get this to work correctly

My .mp4 files are encoded correctly, only problem occurs when i attempt some post encode tasks like trying to replace the audio in the mp4 (I am using Quicktime Pro for this). It seems that the files that i encoded can't be modifed in Quicktime. Any ideas.

Using MeGUI version 0.3.5.27

PS whenever i encode using a different program i am able to modify the resulting mp4.

Music Fan
30th November 2010, 09:18
I don't know if it will help you but Yamb can change (or add) sound in mp4 files.
http://yamb.unite-video.com/download.html

LigH
30th November 2010, 09:25
MeGUI and YAMB are both just frontends. The MP4 multiplexing tool which does in fact the real work is MP4Box.

QuickTime may need a special entry (atom) in MP4 files to accept them. It is rather limited in the features it provides while creating own MP4 files (especially the AVC video stream inside), therefore it seems to flag those as compatible. MeGUI's MP4 muxer dialog offers setting this additional flag.

Music Fan
30th November 2010, 09:36
I know, but some GUI work better than others. I have no problem with Yamb.

khan sahab
30th November 2010, 10:26
i want to encode my games videos which are uncompressed avi files [recorded using fraps]

i have used megui before so please tell me what profile should i use for such a huge file 800+MB for 30 odd sec

i have tried HQ- slower/insane but the result is not satisfactory and the there is a little whitening in the video after encode

Complete name : H:\mafia2 2010-11-15 10-06-23-80.avi
Format : AVI
Format/Info : Audio Video Interleave
File size : 842 MiB
Duration : 37s 0ms
Overall bit rate : 191 Mbps

Video
ID : 0
Format : Fraps
Codec ID : FPS1
Duration : 37s 0ms
Bit rate : 189 Mbps
Width : 1 440 pixels
Height : 900 pixels
Display aspect ratio : 1.600
Frame rate : 25.000 fps
Color space : YUV
Bit depth : 8 bits
Bits/(Pixel*Frame) : 5.825
Stream size : 832 MiB (99%)

Audio
ID : 1
Format : PCM
Format settings, Endianness : Little
Format settings, Sign : Signed
Codec ID : 1
Codec ID/Hint : Microsoft
Duration : 37s 0ms
Bit rate mode : Constant
Bit rate : 1 411.2 Kbps
Channel(s) : 2 channels
Sampling rate : 44.1 KHz
Bit depth : 16 bits
Stream size : 6.22 MiB (1%)
Interleave, duration : 1000 ms (25.00 video frames)

Zathor
30th November 2010, 12:48
I know, but some GUI work better than others. I have no problem with Yamb.

Try replacing the MP4Box.exe from MeGUI with the one from Yamb. Does it work now?

EDIT: As described by LigH above I assume that it is no problem in MeGUI but with MeGUI in connection with the provided tools.

TopDonn
1st December 2010, 02:21
MeGUI's MP4 muxer dialog offers setting this additional flag.

Hi LigH. I'm assuming the settings flag that says "Force Video Extension For QT compatibility" is what you're talking about. If so, i already checked that flag and it does not work. This used to work for me before an update, so i'll try replacing MP4Box.exe with the one from Yamb and see what happens. Will post an update once done.

It seems that the error i receive is pretty common and is related to export of H.264 encoded material in Quicktime. My guess is that an update in the x264 versions is the culprit and is what is causing Quicktime to crash.

PS I downloaded yamb and it works just as well if not better. Thanks

Music Fan
1st December 2010, 10:37
Did you try Yamb "alone", with its GUI, or did you replaced only the mp4box.exe file you were using by the one given with Yamb ?
It would be interesting to know if the GUI changed something or only mp4box.

Sharktooth
1st December 2010, 17:08
recent versions of mp4box are a PITA. i know the gpac devs are doing their best but still there are a lot of problems.

TopDonn
2nd December 2010, 03:12
Did you try Yamb "alone", with its GUI, or did you replaced only the mp4box.exe file you were using by the one given with Yamb ?
It would be interesting to know if the GUI changed something or only mp4box.

I first used Yamb alone and that worked. When i replaced the mp4box.exe in MeGUI with that from Yamb it failed at the muxing stage.

At least i have the Yamb workaround now.

Music Fan
2nd December 2010, 10:02
Thanks for the answer, my supposition was not so bad:)

TopDonn
3rd December 2010, 06:39
So since i updated files on Tuesday, i checked my final encodes, somehow in the encode the video is twice the length of what it is supposed to be. I am using version 0.3.5.28 with all the latest updates. The audio is fine for half the video, then the other half is just silent. For example, an encode that should be 4 min in length is 8 min, with 4 min of audio then 4 min of silence.


Here is a command line of my parameters in play

program --profile main --level 3 --preset slow --pass 2 --bitrate 2000 --stats ".stats" --keyint 21 --min-keyint 11 --open-gop normal --qpmin 10 --vbv-bufsize 2000 --vbv-maxrate 2500 --subme 7 --trellis 0 --aud --output "output" "input"

Any idea's?

LigH
3rd December 2010, 08:22
Does the video play back in half-speed, or does it play to its expected duration and repeat once, or ... ?!

Did the original video have twice the framerate (e.g. 50 fps)?

Any MediaInfo analysis of the original available?

TopDonn
3rd December 2010, 15:32
Does the video play back in half-speed, or does it play to its expected duration and repeat once, or ... ?!

Did the original video have twice the framerate (e.g. 50 fps)?

Any MediaInfo analysis of the original available?

The original video is NTSC 29.97fps.

The encoded video plays at normal speed but then repeats once. I have tested with multiple sources and this issue always happens.

I also tested it with a MeGUI preset (x264:AVCHD) and the same thing happened, so i don't think its something to do with the my preset as it happening for default presets as well.

This issue only started after the update to version 0.3.5.28

Sharktooth
3rd December 2010, 15:52
post the complete log

TopDonn
3rd December 2010, 18:03
post the complete log

Here is the log:-

[Information] Log
-[Information] AutoEncode job generation log
--[Information] Split Size : null
--[Information] Eliminating duplicate filenames
---[Information] Video output file: C:\Users\TopDonn\Videos\Temp\Faith Evans - All Night Long.264
---[Information] Muxed output file: C:\Users\TopDonn\Videos\Temp\Faith Evans - All Night Long (Retail).mp4
---[Information] Encodable audio stream 0: C:\Users\TopDonn\Videos\Temp\Faith Evans - All Night Long.m4a
-[Information] AutoEncode job generation log
--[Information] Split Size : null
--[Information] Eliminating duplicate filenames
---[Information] Video output file: C:\Users\TopDonn\Videos\Temp\Faith Evans - All Night Long.264
---[Information] Muxed output file: C:\Users\TopDonn\Videos\Temp\Faith Evans - All Night Long-muxed.mp4
---[Information] Encodable audio stream 0: C:\Users\TopDonn\Videos\Temp\Faith Evans - All Night Long.m4a
-[Information] Log for job41 (audio, Faith Evans - All Night Long.wav -> Faith Evans - All Night Long.m4a)
--[Information] [12/3/2010 10:28:51 AM] Started handling job
--[Information] [12/3/2010 10:28:51 AM] Preprocessing
--[Information] Avisynth script
---[NoImage] DirectShowSource("C:\Users\TopDonn\Videos\Temp\Edits\Edited AVI's\Faith Evans - All Night Long.wav")
---[NoImage] EnsureVBRMP3Sync()
---[NoImage] return last
--[Information] Commandline used: -q 500 --mpeg-vers 4 -o "{0}" -
--[Information] [12/3/2010 10:28:51 AM] Encoding started
--[Information] [12/3/2010 10:28:51 AM] Encode thread started
--[Information] [12/3/2010 10:28:51 AM] Avisynth script environment opened
--[Information] [12/3/2010 10:28:51 AM] Script loaded
--[Information] Output Decoder
---[Information] Channels: 2
---[Information] Bits per sample: 32
---[Information] Sample rate: 48000
--[Information] Commandline: C:\Users\TopDonn\Downloads\Encoding\MEGUI\tools\faac\faac.exe -q 500 --mpeg-vers 4 -o "C:\Users\TopDonn\Videos\Temp\Faith Evans - All Night Long.m4a" -
--[Information] [12/3/2010 10:28:51 AM] Encoder process started
--[Information] Output from encoder via stdout
---[NoImage] Freeware Advanced Audio Coder
---[NoImage] FAAC 1.28
---[NoImage] Quantization quality: 500
---[NoImage] Bandwidth: 24000 Hz
---[NoImage] Object type: Low Complexity(MPEG-4) + M/S
---[NoImage] Container format: MPEG-4 File Format (MP4)
---[NoImage] Encoding - to C:\Users\TopDonn\Videos\Temp\Faith Evans - All Night Long.m4a
---[NoImage] frame | bitrate | elapsed/estim | play/CPU | ETA
---[NoImage] 10668/10668 (100%)| 169.2 | 33.6/33.6 | 6.77x | 0.0
--[Information] [12/3/2010 10:29:25 AM] Postprocessing
---[Information] Deleting intermediate files
--[Information] [12/3/2010 10:29:25 AM] Job completed
-[Information] Log for job42 (video, Faith Evans - All Night Long.avs -> )
--[Information] [12/3/2010 10:29:25 AM] Started handling job
--[Information] [12/3/2010 10:29:25 AM] Preprocessing
--[Information] Job commandline: "C:\Users\TopDonn\Downloads\Encoding\MEGUI\tools\x264\x264.exe" --profile main --level 3 --preset slow --pass 1 --bitrate 2000 --stats "C:\Users\TopDonn\Videos\Temp\Faith Evans - All Night Long.stats" --keyint 21 --min-keyint 11 --qpmin 10 --vbv-bufsize 2000 --vbv-maxrate 2500 --subme 7 --trellis 0 --sar 1:1 --output NUL "C:\Users\TopDonn\Videos\Temp\Edits\AVS Files\Faith Evans - All Night Long.avs"
--[Information] [12/3/2010 10:29:26 AM] Encoding started
--[Information] Standard output stream
--[Information] Standard error stream
---[NoImage] avs [info]: 640x480p 1:1 @ 24000/1001 fps (cfr)
---[NoImage] x264 [info]: using SAR=1/1
---[NoImage] x264 [info]: using cpu capabilities: MMX2 SSE2Slow SlowCTZ
---[NoImage] x264 [info]: profile Main, level 3.0
---[NoImage]
---[NoImage] x264 [info]: frame I:360 Avg QP:19.11 size: 29333
---[NoImage] x264 [info]: frame P:1660 Avg QP:21.93 size: 14136
---[NoImage] x264 [info]: frame B:3436 Avg QP:22.96 size: 6738
---[NoImage] x264 [info]: consecutive B-frames: 3.7% 10.4% 26.3% 59.6%
---[NoImage] x264 [info]: mb I I16..4: 41.1% 0.0% 58.9%
---[NoImage] x264 [info]: mb P I16..4: 39.8% 0.0% 0.0% P16..4: 55.7% 0.0% 0.0% 0.0% 0.0% skip: 4.5%
---[NoImage] x264 [info]: mb B I16..4: 6.6% 0.0% 0.0% B16..8: 41.1% 0.0% 0.0% direct:31.1% skip:21.1% L0:28.7% L1:38.6% BI:32.7%
---[NoImage] x264 [info]: direct mvs spatial:99.4% temporal:0.6%
---[NoImage] x264 [info]: coded y,uvDC,uvAC intra: 57.1% 83.8% 46.9% inter: 29.1% 55.8% 2.4%
---[NoImage] x264 [info]: i16 v,h,dc,p: 46% 23% 18% 13%
---[NoImage] x264 [info]: i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 21% 20% 19% 4% 9% 6% 7% 6% 9%
---[NoImage] x264 [info]: i8c dc,h,v,p: 43% 26% 21% 11%
---[NoImage] x264 [info]: Weighted P-Frames: Y:23.0% UV:18.0%
---[NoImage] x264 [info]: kb/s:2010.11
---[NoImage] encoded 5456 frames, 26.71 fps, 2010.11 kb/s
--[Information] [12/3/2010 10:32:51 AM] Postprocessing
---[Information] Deleting intermediate files
--[Information] [12/3/2010 10:32:51 AM] Job completed
-[Information] Log for job43 (video, Faith Evans - All Night Long.avs -> Faith Evans - All Night Long.264)
--[Information] [12/3/2010 10:32:51 AM] Started handling job
--[Information] [12/3/2010 10:32:51 AM] Preprocessing
--[Information] Job commandline: "C:\Users\TopDonn\Downloads\Encoding\MEGUI\tools\x264\x264.exe" --profile main --level 3 --preset slow --pass 2 --bitrate 2000 --stats "C:\Users\TopDonn\Videos\Temp\Faith Evans - All Night Long.stats" --keyint 21 --min-keyint 11 --qpmin 10 --vbv-bufsize 2000 --vbv-maxrate 2500 --subme 7 --trellis 0 --sar 1:1 --output "C:\Users\TopDonn\Videos\Temp\Faith Evans - All Night Long.264" "C:\Users\TopDonn\Videos\Temp\Edits\AVS Files\Faith Evans - All Night Long.avs"
--[Information] [12/3/2010 10:32:52 AM] Encoding started
--[Information] Standard output stream
--[Information] Standard error stream
---[NoImage] avs [info]: 640x480p 1:1 @ 24000/1001 fps (cfr)
---[NoImage] x264 [info]: using SAR=1/1
---[NoImage] x264 [info]: using cpu capabilities: MMX2 SSE2Slow SlowCTZ
---[NoImage] x264 [info]: profile Main, level 3.0
---[NoImage]
---[NoImage] x264 [info]: frame I:360 Avg QP:20.59 size: 25384
---[NoImage] x264 [info]: frame P:1660 Avg QP:21.69 size: 14165
---[NoImage] x264 [info]: frame B:3436 Avg QP:22.88 size: 7010
---[NoImage] x264 [info]: consecutive B-frames: 3.7% 10.4% 26.3% 59.6%
---[NoImage] x264 [info]: mb I I16..4: 36.4% 0.0% 63.6%
---[NoImage] x264 [info]: mb P I16..4: 16.6% 0.0% 18.9% P16..4: 34.1% 17.1% 9.2% 0.0% 0.0% skip: 4.2%
---[NoImage] x264 [info]: mb B I16..4: 1.4% 0.0% 2.9% B16..8: 42.2% 11.2% 3.0% direct:16.9% skip:22.4% L0:38.0% L1:48.4% BI:13.7%
---[NoImage] x264 [info]: direct mvs spatial:90.8% temporal:9.2%
---[NoImage] x264 [info]: coded y,uvDC,uvAC intra: 61.4% 91.0% 65.7% inter: 24.2% 55.9% 3.4%
---[NoImage] x264 [info]: i16 v,h,dc,p: 57% 18% 7% 18%
---[NoImage] x264 [info]: i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 20% 17% 20% 7% 8% 7% 7% 7% 7%
---[NoImage] x264 [info]: i8c dc,h,v,p: 43% 25% 20% 13%
---[NoImage] x264 [info]: Weighted P-Frames: Y:23.7% UV:18.0%
---[NoImage] x264 [info]: ref P L0: 57.6% 10.7% 19.1% 6.5% 4.1% 1.8% 0.2%
---[NoImage] x264 [info]: ref B L0: 86.3% 9.6% 3.1% 0.9%
---[NoImage] x264 [info]: ref B L1: 95.2% 4.8%
---[NoImage] x264 [info]: kb/s:1994.74
---[NoImage] encoded 5456 frames, 6.83 fps, 1994.74 kb/s
--[Information] Final statistics
---[Information] Video Bitrate Desired: 2000 kbit/s
---[Information] Video Bitrate Obtained (approximate): 1994 kbit/s
--[Information] [12/3/2010 10:46:13 AM] Postprocessing
---[Information] Deleting intermediate files
----[Information] [12/3/2010 10:46:13 AM] Successfully deleted C:\Users\TopDonn\Videos\Temp\Faith Evans - All Night Long.stats
----[Information] [12/3/2010 10:46:13 AM] Successfully deleted C:\Users\TopDonn\Videos\Temp\Faith Evans - All Night Long.stats.mbtree
--[Information] [12/3/2010 10:46:13 AM] Job completed
-[Information] Log for job44 (mux, Faith Evans - All Night Long.264 -> Faith Evans - All Night Long-muxed.mp4)
--[Information] [12/3/2010 10:46:13 AM] Started handling job
--[Information] [12/3/2010 10:46:13 AM] Preprocessing
--[Information] Job commandline: "C:\Users\TopDonn\Downloads\Encoding\MEGUI\tools\mp4box\mp4box.exe" -add "C:\Users\TopDonn\Videos\Temp\Faith Evans - All Night Long.264:fps=23.976" -add "C:\Users\TopDonn\Videos\Temp\Faith Evans - All Night Long.m4a#trackID=1" -tmp "C:\Users\TopDonn\Videos\Temp" -new "C:\Users\TopDonn\Videos\Temp\Faith Evans - All Night Long-muxed.mp4"
--[Information] [12/3/2010 10:46:14 AM] Muxing started
--[Information] Standard output stream
---[NoImage] AVC-H264 import - frame size 640 x 480 at 23.976 FPS
---[NoImage] Import results: 5456 samples - Slices: 360 I 1660 P 3436 B - 1 SEI - 279 IDR
---[NoImage] Stream uses B-slice references - max frame delay 2
---[NoImage] IsoMedia import - track ID 1 - Audio (SR 48000 - 2 channels)
---[NoImage] Saving C:\Users\TopDonn\Videos\Temp\Faith Evans - All Night Long-muxed.mp4: 0.500 secs Interleaving
--[Information] Standard error stream
--[Information] [12/3/2010 10:46:21 AM] Postprocessing
---[Information] Deleting intermediate files
----[Information] [12/3/2010 10:46:21 AM] Successfully deleted C:\Users\TopDonn\Videos\Temp\Faith Evans - All Night Long.264
----[Information] [12/3/2010 10:46:21 AM] Successfully deleted C:\Users\TopDonn\Videos\Temp\Faith Evans - All Night Long.m4a
--[Information] [12/3/2010 10:46:21 AM] Job completed

Sharktooth
3rd December 2010, 18:53
the mp4box commandline seems ok. try using yamb for muxing and if it works as expected, replace the mp4box in megui with the one that comes with yamb.

TopDonn
3rd December 2010, 20:06
the mp4box commandline seems ok. try using yamb for muxing and if it works as expected, replace the mp4box in megui with the one that comes with yamb.

Tried the workaround above and it did not work either. It's quite strange.

Sharktooth
5th December 2010, 14:55
what doesnt work? YAMB or the mp4box swap?

TopDonn
5th December 2010, 18:35
what doesnt work? YAMB or the mp4box swap?

The mp4box swap. When i swapped it MeGUI crashes at the mux stage.

Sharktooth
6th December 2010, 02:18
could you try muxing the video and audio tracks with YAMB?

TopDonn
6th December 2010, 03:09
could you try muxing the video and audio tracks with YAMB?

Already did that it failed as well, the resulting encode had twice the length it should have. I'm not sure if you are able to reproduce the issue but i have been able to consistenly reproduce it.

Sharktooth
6th December 2010, 04:10
it's really weird. can you also post your AVS script?

TopDonn
6th December 2010, 05:13
it's really weird. can you also post your AVS script?

The AVS Script is as simple as it gets

AVISource("C:\Users\TopDonn\Videos\Temp\Edits\Edited AVI's\Faith Evans - All Night Long.avi", audio=true)
ConvertToYV12()

The avi plays correctly in VLC so its not the file that i'm using.

My guess to narrow down the issue is to check if anyone else has seen this issue (I was able to reproduce it using the AVCHD preset).

I have all the files updated as well.

Thanks

lych_necross
6th December 2010, 07:19
The AVS Script is as simple as it gets

AVISource("C:\Users\TopDonn\Videos\Temp\Edits\Edited AVI's\Faith Evans - All Night Long.avi", audio=true)
ConvertToYV12()

The avi plays correctly in VLC so its not the file that i'm using.

My guess to narrow down the issue is to check if anyone else has seen this issue (I was able to reproduce it using the AVCHD preset).

I have all the files updated as well.

Thanks
What happens if you use DShowSource or FFVideoSource instead of AVISource?

TopDonn
6th December 2010, 18:35
What happens if you use DShowSource or FFVideoSource instead of AVISource?

Tried with DirectShowSource same result.

The source material is definately not the problem as it plays fine and encodes fine in another application.

So far the only clue as to the source of the problem is the update to version 0.3.5.28.

I already updated to 0.3.5.29 and the same issue is happening.

I may just do a fresh install at this point and see what happens.

Music Fan
6th December 2010, 20:17
Does it happen when you open your script in Virtual Dub ?

TopDonn
6th December 2010, 21:47
Does it happen when you open your script in Virtual Dub ?

The script works fine in Virtual Dub.

The issue only occrus in MeGUI, isloating it is the problem

Music Fan
6th December 2010, 22:37
Very weird. You could maybe try Hybrid, another x264 encoding program ;
http://forum.doom9.org/showthread.php?t=153035

Zathor
6th December 2010, 23:21
TopDonn: If I understand you correctly the issue occurs only if you mux the x264 encode with MP4Box. It does not occur if you use only the x264 encode. Is this correct? If yes then try once again another muxer e.g. this one: http://megui.org/auto/MP4Box-0.4.6-rev2125.zip

Also please disable the "Force Decoding via DirectShow" in your audio profile and maybe switch to neroenc.

Additionally please upload the source file or at least a part of the file where you can reproduce the error.

TopDonn
6th December 2010, 23:54
TopDonn: If I understand you correctly the issue occurs only if you mux the x264 encode with MP4Box. It does not occur if you use only the x264 encode. Is this correct? If yes then try once again another muxer e.g. this one: http://megui.org/auto/MP4Box-0.4.6-rev2125.zip

Also please disable the "Force Decoding via DirectShow" in your audio profile and maybe switch to neroenc.

Additionally please upload the source file or at least a part of the file where you can reproduce the error.

Hi, the problem occurs regardless of what muxer i use.

Let me however try the workarounds that you have mentioned and will get back with the results

TopDonn
7th December 2010, 01:14
TopDonn: If I understand you correctly the issue occurs only if you mux the x264 encode with MP4Box. It does not occur if you use only the x264 encode. Is this correct? If yes then try once again another muxer e.g. this one: http://megui.org/auto/MP4Box-0.4.6-rev2125.zip



This worked! I replaced the the mp4box in MeGUI with the one from the above URL and voila, back to working perfectly.

What's weird is that i had already tried replacing it with the one from Yamb as suggested by Sharktooth but that did not work. Sharktook mentioned earlier that recent versions of mp4box are a PITA. Yup, i guess they are.

Anyway, issue solved. :thanks:

pequickit
7th December 2010, 10:56
Hi...

I just set up MeGUI for the 1st time the other day to replace AutoGK that I've used to compress TV captures in the past. I have to admit right up front here that I'm not the brightest lamp in the room when it comes to most video work. After a couple of days now, I've managed to get a basic grasp on converting MPEG2 captures to xvid avi files and h.264 MP4 files with MeGUI.

But I ran into a problem converting some VOB files on an old DVD that were encoded a bit oddly, and though I've managed to get a reasonably transcoded MP4, I have to force smplayer to a 4:3 AR in order to have it display properly. Smplayer reports the file's AR as 1.6162, while both GSpot and MPC see it as 1.333. This isn't a huge problem, but I'd really like to understand what's happening here for future reference.

The storage frame for the original DVD video was set to 544x480, the image is anamorphic, and was letterboxed with 18 pixels on the left, 8 pixels on the right, and 2 pixels on the bottom. And the frame rate is 29.970. Here's a frame:

http://oi51.tinypic.com/d49yq.jpg

I originally had problems getting MeGUI's AVS Script Creator to write an avs file that would result in a file that could display the proper display AR. The tool reports the video as having an input DAR of ITU 4:3 PAL (1.367521), yet to the right of the selection box it reports NTSC. DGIndex also reports it as NTSC. But I guess it's neither, having been created by some software that's ancient history to me at this point.

What I did was to run 'auto crop', set 'clever anamorphic encoding' to 'resize to mod 16', ran interlacing analysis and saved the AVS file. But I could tell that the transcoded video was slightly squeezed horizontally. I looked at the AVS file and found anamorphic encoding was resizing the video as follows:

global MeGUI_darx = 21
global MeGUI_dary = 16

I just changed the values to:

global MeGUI_darx = 4
global MeGUI_dary = 3

The result displayed properly in MPC, WMP, Quicktime Player, and Total Video Player. Here's a screen capture:

http://oi51.tinypic.com/2v9u6id.jpg

Only smplayer had to have 4:3 forced, as by default it displays it at the value of 1.6162 that it's reporting the AR to be.

This is really the 1st time I've dealt directly with anamorphic transcoding which I'm just now learning about as I learn MeGUI. So I'm wondering if there is a better solution to this problem than editing that AVS file as I've done. GSpot reports the following for the transcoded file:

Codec: avc1 - Name: H.264/MPEG-4 AVC
Storage frame: 544x480
sar: 1.100 (11:10)
par: (none)
dar: 1.333(4:3)
fps: 23.976

For some reason MeGUI changed the source file's original frame rate of 29.970 to 23:976. I don't know enough about video to know if that may be contributing to smplayer's problems

GSpot reports the following for the source file:

Codec: MPEG2 - Name: MPEG-2
Storage frame: 544x480
sar: 1.133(17:15)
par: 1.176 (20:17)
dar: 1.333(4:3)
fps: 29.970

Hopefully someone here can tell me if there's a better way to achieve my goal.

I also hope this is the proper place to be asking about this.

Thanks
pq

jwscuba
11th December 2010, 00:38
OK, so I am really trying to work with MeGui to see if I can get better encodes than I do with handbrake. Although handbrake seem to make the process alot simpler.

Are there any places to find up to date guides for MeGui. And some tips (best profiles, best codecs to use). I search the forums and there is alot of information but it seems like it is al either old versions of MeGui with old presets and setting that don't exist. Any I am just wondering. If not maybe some help.

I am wanting to basically convert my DVD video_ts folder to mp4. I want to set up an autoencode setting that will pretty much just work (I will accept some loss in quality to not have to set and test things every time).

I want to end up with a file that has:
1.The video stream (x.264_Unrestricted (DXVA) or x.264_Max Compatibility (DXVA); just how uncompatible is the unrestricted)
2. Surround sound audio stream (was thinking NDAAC-HE48Kbps as i heard faac is not as good)
3. AC3 passthrough (my guess is I have to mux this in at the end somehow)
4. Subtitles (forced subtitles and if possible CC so if I mute subtitles come up realizing that the playback software would have to support that but would want it there just in case)

Would also love to know if there is a way to embeed the cover art and metadata at the time the files is encoded/muxed. Watching a buddy try to add coverart to his itunes library for his movies and it takes him about 6min each movie. I don't currently use iTunes (media center uses the folder.jpg) but don't want to have to go through what he is if down the road I get an appleTV or somthing. Would just liek to have it there.

Anyhow, sorry for the tone of questions. Hopefully someone could help.

pequickit
12th December 2010, 02:24
Are there any places to find up to date guides for MeGui.

These don't all address your questions, and they're all not up-to-date, but here's a few URLs that got me up and running:

Convert DVD to XviD with meGUI (http://www.afterdawn.com/guides/archive/me_gui_convert_to_xvid.cfm)
how to DVDRIP to XVID.AVI (http://www.techenclave.com/guides-and-tutorials/how-to-dvdrip-to-xvid-avi-117556.html)
MeGUI/Basic DVD Ripping Guide/Ripping (http://mewiki.project357.com/wiki/MeGUI/Basic_DVD_Ripping_Guide/Ripping)
Windows 7 - Video Encoding x264 (MeGUI) (http://www.sevenforums.com/tutorials/104382-video-encoding-x264-megui.html)
MeGUI H.264 Conversion Guide (http://www.digital-digest.com/articles/MeGUI_H.264_Conversion_Guide_page1.html)
OneClick Encoder and AutoEncode Walk-Through Guides (https://forum.doom9.org/showthread.php?p=1235583#post1235583)

ariefjuga
12th December 2010, 08:41
hi, i found the problem when using the latest stable version of megui. When i choose slow first pass in x264 config, then i try to check my result file with mediainfo, it still have "fast_pskip=1" is it bug or something?
Another question, how to cut and deleting some middle part of our video?

thanks :)

nurbs
12th December 2010, 12:54
When i choose slow first pass in x264 config, then i try to check my result file with mediainfo, it still have "fast_pskip=1" is it bug or something?
Fast pskip has nothing to do with the "slow first pass" option.
Slow first pass only means that the same settings will be used in first pass as in the second. The mediainfo of your output will be the same regardless, since the first pass doesn't write a file.
Fast pskip is an analysis option. You can activate it via the advanced options if you like. The only x264 inbuilt preset that uses fast_pskip=0 is preset placebo.

LigH
12th December 2010, 14:52
The only x264 inbuilt preset that uses fast pskip is preset placebo.

To be correct: "--preset placebo" is the only preset which includes "--no-fast-pskip", means: "fast pskip" is per default enabled in all presets except "placebo"

Lighto
12th December 2010, 14:59
hi, i found the problem when using the latest stable version of megui. When i choose slow first pass in x264 config, then i try to check my result file with mediainfo, it still have "fast_pskip=1" is it bug or something?
Another question, how to cut and deleting some middle part of our video?

thanks :)

AVS Cutter in MeGUI.

Music Fan
12th December 2010, 18:33
AVS Cutter in MeGUI.
I believe it cuts only avisynth scripts, so it's not very useful because we can do it with avisynth's trim option.
To cut AVC videos, there is Cut Assistant, AviDemux, Yamb, MPEG Streamclip, VideoReDo, Boilsoft Video Splitter, ...

LigH
12th December 2010, 19:21
Or you may have to edit the AviSynth script manually:

before = Trim()
after = Trim()
AlignedSplice(before, after)

Lyle_JP
12th December 2010, 19:56
AVS Cutter in MeGUI.

Great, but how do you cut the sound file in exactly the same place so it will sync up?

nurbs
12th December 2010, 20:06
Great, but how do you cut the sound file in exactly the same place so it will sync up?
AVS cutter in MeGUI, if you reencode the audio.

Lyle_JP
12th December 2010, 20:18
AVS cutter in MeGUI, if you reencode the audio.

I wasn't aware that audio used frame numbers. Or do I need an AssumeFPS statement?

L4a-Thompson
12th December 2010, 20:21
if i convert hd material to mkv full hd with me-gui i get a perfect mkv file.
but if i mux the file to a bluray with ts muxer and make an image with imgburn i get a realy bad video because it is full with arthefacts and powerdvd can`t play the bluray

has anybody this problem to?

my way to convert:
hd stream extractor -> get the streams
DgavC index -> get the dga file

my avs script has 4 lines
LoadPlugin("D:\DGAVCDecode.dll")
AVCSource("C:\project.dga")
asharp(2,3,1.3,hqbf=true)
tweak(sat=1.09)
this i load in megui

the settings for the x264 i use only the preset verry slow and by tuning: Film

after the converting i use tsmuxer to get the bluray strukture and made an image with imgburn
what i doing wrong

nurbs
12th December 2010, 20:25
I wasn't aware that audio used frame numbers. Or do I need an AssumeFPS statement?
You can load the files the AVS Cutter produces in the audio encoding tab. Cut your video, load the cuts file with the audio and I suspect things will work out.

ariefjuga
13th December 2010, 12:03
Fast pskip has nothing to do with the "slow first pass" option.
Slow first pass only means that the same settings will be used in first pass as in the second. The mediainfo of your output will be the same regardless, since the first pass doesn't write a file.
Fast pskip is an analysis option. You can activate it via the advanced options if you like. The only x264 inbuilt preset that uses fast_pskip=0 is preset placebo.

how to disable/enable it in the setting?

AVS Cutter in MeGUI.

i already try with avs cutter. but the command in this setting is just to cut begining part and end part of video but not middle part of it. or maybe there is another command in avs cutter i dont understand?

Or you may have to edit the AviSynth script manually:

before = Trim()
after = Trim()
AlignedSplice(before, after)

oh, is it another command which i looking for? but my friend, can you explain to me what value i suppose to fill in this "()" symbol?

Great, but how do you cut the sound file in exactly the same place so it will sync up?

You can load the files the AVS Cutter produces in the audio encoding tab. Cut your video, load the cuts file with the audio and I suspect things will work out.
do you mean to load avs script after we edit with avs cutter? :confused:

Lighto
13th December 2010, 12:09
i already try with avs cutter. but the command in this setting is just to cut begining part and end part of video but not middle part of it. or maybe there is another command in avs cutter i dont understand?



You can cut the middle part of a video.
Use the zone start and zone end button preview window to select exactly which part of the video do you want to be encoded out.

For the audio you can use the audio cutter or just select the cut file in the audio tab.

Music Fan
13th December 2010, 12:22
It's really easier with avisynth. Trim cut audio and video and they stay synchronized.

LigH
13th December 2010, 13:35
oh, is it another command which i looking for? but my friend, can you explain to me what value i suppose to fill in this "()" symbol?

Sorry ... I will not read the AviSynth documentation for you. "RTFM" = Read The F..amous Manual. Do it - it is good. It was installed on your harddrive already (by MeGUI probably).

a) C:\Program files\Avisynth 2.5\Docs\English\index.htm (or at a similar location)

b) http://avisynth.org/mediawiki/Trim if you prefer it online.

You should have understood the implicit use of the special clip variable "last" (which can be omitted in many cases) and the difference between parameter declaration and usage of functions. So all you need are the numbers of the first and the last frame to be copied by each Trim function call.

Sharktooth
14th December 2010, 02:34
@LigH: megui does not install avisynth. it just tells you to donwload it if you havent it installed.

LigH
14th December 2010, 09:26
Nevertheless - one who wants to use MeGUI must have installed AviSynth. No matter if MeGUI provides the installer or not, it is a prerequisite.

Knowing AviSynth may not be a requirement to use MeGUI ... but it is very recommendable to be able to circumvent limitations of a GUI.

Sharktooth
14th December 2010, 15:23
avisynth IS required for megui. it's just it isnt distributed with it. so, i dont have idea of what version of avisynth the user istalled...

Tuik
23rd December 2010, 12:48
I'm using MeGUI 0.3.3.0 with CCCP, Nero Audio and AviSynth 2.5.8 on Windows 7. This is the first time I tried encoding a video (an mkv) after reinstalling Windows 7. Unlike earlier (before the reinstall of windows 7 and with MeGUI 0.3.1.1056) the audio preprocessing takes a very long time. When the audio encoding begins it shows Preprocessing... ***PLEASE WAIT*** for well over 10 minutes before the encoding actually begins. I also have MeGUI 0.3.1.1056 on my desktop running Windows XP SP3 but the audio preprocessing doesn't take more than a few seconds (the desktop has lower specs too).

Why does it take so long with Windows 7? Could I be doing wrong or is this a known issue? :stupid:


I have the same problem. How do i fix this?

Zathor
23rd December 2010, 13:11
As the status is saying - it is the preprocessing. That is no problem, but if you want it faster then disable e.g. "normalize" in the audio settings.

amgeex
23rd December 2010, 17:30
I'm constantly getting errors when using CQMs with xvid_encraw:

-[Error] [23/12/2010 09:08:52 a.m.] Process exits with error code: -1073741819

That error always happens at the end of the second pass when using Sharktooth's EQM V3HR. Didee's 6of9 doesn't work either. Sharktooth's EQM V3UHR (rev2) works without problems. Why could this be happening?

Sharktooth
24th December 2010, 03:05
try disabling the adaptive quantization option

amgeex
24th December 2010, 18:14
try disabling the adaptive quantization option Thanks, that made the CQMs work without problems. I thought EQM V3HR worked well with AQ, but that's another matter... Thanks Sharktooth!

blah123
27th December 2010, 12:54
This is problem with DSS2 with some H264 file muxed intro M2TS. When I try to use DSS2, MeGUI gives this:

http://ifotos.pl/img/blad_qsqsrr.png

Sharktooth
27th December 2010, 15:07
that's a runtime error but it's not strictly bound to megui. it's probably caused by directshow filters configuration on your system.

LigH
28th December 2010, 00:19
Try to index the M2TS file first with a native AviSynth decoder (DG*Dec*, FFMS2), and open the index file as video source, instead of the M2TS file.

luke83
28th December 2010, 13:04
Is there IVTC filter in megui?
I couldn't find it :/

Lighto
28th December 2010, 13:26
Is there IVTC filter in megui?
I couldn't find it :/

AVS Script Creator > Script > Load DLL > TIVTC.dll

Not 100% sure if this is what you're looking for though.

luke83
28th December 2010, 14:45
AVS Script Creator > Script > Load DLL > TIVTC.dll

Not 100% sure if this is what you're looking for though.

Thanks ;)
Why it doesn't appear among the filters?

EDIT:
Can megui give uncompressed videos as output?

Lyle_JP
28th December 2010, 22:20
Is there IVTC filter in megui?
I couldn't find it :/

Under Deinterlacing on the filters tab, indicate your source type as "Film". TIVTC will come up as the default filter. Decomb is another option.

Sharktooth
29th December 2010, 03:30
@luke83: why megui should output uncompressed video? there is no need for an ENCODER GUI to actually NOT encode the video...

LigH
29th December 2010, 09:41
Well ... you may use MeGUI to build the AviSynth script you would use for an encode - and stop here. The AviSynth script itself will output uncompressed video ... to the following encoder.

But as "AviSynth script builder" specifically, there might be better GUIs. And after all, a text editor is still the "best" (meaning the most flexible). All GUIs with a distance to the source code have their own limitations, based on their workflow. So instead, use the documentation, learn AviSynth. A recommendable "lower level GUI" (still source based, but with some widget support) would be AvsP(mod).

cryphog
1st January 2011, 02:32
Are the Stable Servers still online or should I switch to the Development Servers?

Zathor
1st January 2011, 10:28
They are online but you can of course switch to the development ones.

cryphog
1st January 2011, 14:10
Ok Thanks. Was just wandering because their has not been any updates for a while. Will stick with the stable server! ;)