Log in

View Full Version : MeGUI: General Questions and Troubleshooting Thread


Pages : 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 [130] 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186

LigH
9th January 2012, 12:32
Not for me, its "root" is just merely a redirector now; try http://avisynth.org/mediawiki/Main_Page directly.

If you try to "traceroute" (Windows: Run "cmd.exe" and enter "tracert avisynth.org"), what is the result for you?

Music Fan
9th January 2012, 13:49
Not for me, its "root" is just merely a redirector now; try http://avisynth.org/mediawiki/Main_Page directly.
Thanks but it doesn't work either.

If you try to "traceroute" (Windows: Run "cmd.exe" and enter "tracert avisynth.org"), what is the result for you?
Amazing, I didn't know that comand.
I guess you are talking about the last line (they are 21 lines) ; it's apache2-pat.achird.dreamhost.com.

So, how do I go on avisynth.org now ?

LigH
9th January 2012, 14:25
Interesting. If traceroute finds a route, then you should be able to establish a connection between your PC and the AviSynth webserver. But if you can't load a website from it, then something seems to block HTTP transfers from it. Which kind of error does your webbrowser report?

Music Fan
9th January 2012, 18:39
Which kind of error does your webbrowser report?
"the server takes too long to respond" (I translate from french), while my connexion is fast (I can donwload files @ 4 MBps).
I use Firefox on Windows XP pro.

meshaun
10th January 2012, 00:56
Can I get a good guide on what "Deinterlacing" in MEGUi means? is it a must to use when processing a video ? will it increase quality?

tonyymmao
10th January 2012, 06:42
i just started using megui and i have a few questions

1)on the newest version, is portabe so u don't have to install it rite
2)how do i import presents after the first initial update, it tells import files but i don't where it is
3)i can't get the neroacc audio codec to work, which files do u copy and which folder do u put it in

LigH
10th January 2012, 08:38
@ tonyymmao:

1) MeGUI is "portable" as far as it (possibly) doesn't need to register itself in the system and can be configured for any location of its used helper applications. But it requires an installed AviSynth frameserver.

2) What kind of presets do you "need" to import? If you mean encoder profiles provided via the updater: Just select all and agree. Or do you want to use an additional archive of encoder profiles, to be unzipped to "megui\allprofiles"?

3) Download neroaacenc from the mentioned Nero AAC Encoder website, and unzip the content of its contained "win32" directory where you like, e.g. to "megui\tools\neroaac". Then configure the path to "neroAacEnc.exe" in the MeGUI options, just to make sure it is correct.
__

@ Music Fan:

Can you imagine any possibly blocking software in your Windows installation, e.g. a Personal Firewall, an Internet Security Suite, etc.?

For a possibly more verbose report of the succession, you could try to use wget for Win32 (one is included in the "bin" folder of the ZIP packages from wsusoffline.net), run
wget http://avisynth.org/mediawiki/Main_Page
in a console window, and check for reported issues here. The build used by wsusoffline is "verbose" by default, so it should hopefully print useful details.
__

@ meshaun:

"Deinterlacing" is nothing MeGUI specific. It is a basic issue of video processing in general. In the good old times of cathode ray tube TV sets, the video display was interlaced, the cathode ray displayed interwoven fields one after another on the TV screen, just like TV cameras recorded them in the same way. But PC monitors and modern flat screen TV sets don't work like that, they display the whole frame at the same time. And cinematic movies, recorded on photographic film, are not interlaced either.

If you look at frames on a PC monitor which were recorded interlaced by a TV camera, or which were processed by "Telecine" do adapt the cinematic frame rate to the TV frame rate, you'll spot "combing" in areas with enough motion, because you see content from two distinct moments of time at the same time. To get rid of this combing, you have to consider different measures depending on the reason why you see combing on a PC monitor: If the reason was Telecine, you have to use "IVTC" (Inverse Telecine); if the reason was interlaced recording by TV cameras, you may use "Deinterlacing"; if there is no combing, don't use any of them!

The whole thing is so complex, this is certainly not the right place to explain it verbosely. And unfortunately, I don't know any specific verbose guide where you can read "everything" about it. A possible starter could be Wikipedia articles about Interlaced video (http://en.wikipedia.org/wiki/Interlaced_video) and Telecine (http://en.wikipedia.org/wiki/Telecine), as well as the AviSynth External filters (http://avisynth.org/mediawiki/External_filters) documentations of the filters mentioned in chapters 2.7 (Deinterlacing) and 2.11 (IVTC and Decimation).

MeGUI has an integrated scan to detect and guess the probably present interlacing pattern, but the suggestion how to counter it is not always correct and reliable. The similar feature in HDConvertToX is slightly better.

Music Fan
10th January 2012, 14:31
@ Music Fan:

Can you imagine any possibly blocking software in your Windows installation, e.g. a Personal Firewall, an Internet Security Suite, etc.?
I have Antivir and the Window's firewall.
Same result with Antivir disabled.

For a possibly more verbose report of the succession, you could try to use wget for Win32 (one is included in the "bin" folder of the ZIP packages from wsusoffline.net), run
wget http://avisynth.org/mediawiki/Main_Page
in a console window, and check for reported issues here. The build used by wsusoffline is "verbose" by default, so it should hopefully print useful details.
I tried it and the result is : "failed : connection timed out. Retrying ...", even after the 18th try.
Same result with Antivir disabled.
I should maybe change anything in my firewall, but what ?

tebasuna51
11th January 2012, 02:46
...
3) Download neroaacenc from the mentioned Nero AAC Encoder website, and unzip the content of its contained "win32" directory where you like, e.g. to "megui\tools\neroaac". Then configure the path to "neroAacEnc.exe" in the MeGUI options, just to make sure it is correct.


I recommend unzip "neroAacEnc.exe" to "megui\tools\eac3to", because eac3to need the file at the same folder to convert audio to AAC with the Tools -> HD Streams Extractor.

Zathor
12th January 2012, 13:55
I have a question regarding "force film". Being in PAL-land I have very little experience with IVTC, but today's NTSC DVD encode..... well hours and hours of messing around with scripts and d2v files trying to get satisfactory results has at least given me a better understanding.

My problem was, I could encode the DVD using AutoGK and as is invariably the case, the result was perfect. MeGUI... not so much in places. Whenever I used MeGUI to analyse the video it stated it was progressive, which looking back now seems somewhat misleading as MeGUI's log file indicates it applied "force film" while indexing, which the way I now understand it alters the d2v file which in turn effects the analysis. It doesn't however change the fact the DVD is actually a hybrid (as reported by AutoGK). It wasn't until I eventually thought to give up on modifying the script and instead used the d2v file AutoGK created that MeGUI's analysis reported it as a hybrid and I could finally encode it correctly. From there I went on to experimenting with DGIndex, discovered the only d2v file which was "incorrect" was the one MeGUI created, and from there to MeGUI's log file which finally led me to understand why.

My question is (and while I still only have a vague understanding of when "force film" should be used), is force film normally applied by encoding programs by altering the d2v file to making the video appear to be purely progressive, or can it be applied after the analysis? Or can it at least be applied in such a way the user might be more likely to be aware of it, such as a pop-up prompt etc?

Maybe being in PAL-land maybe I'm missing something here, and I guess from now on I'll know to check the log file or index the DVD manually, but in my case at least I didn't have any reason to suspect MeGUI's d2v file would be any different to AutoGK's d2v file so I couldn't understand why the hours I spent trying to apply various IVTC methods (including simply using parts of AutoGK's script with MeGUI) wouldn't result in a satisfactory encode.

Sadly this setting has been introduced before I started to join the MeGUI project and as I am also living in PAL land I have not touched that topic very often. Therefore sadly I cannot say why this has been implemented and if it is still required. Maybe someone else can help us with that topic.

tonyymmao
12th January 2012, 23:24
@ tonyymmao:

1) MeGUI is "portable" as far as it (possibly) doesn't need to register itself in the system and can be configured for any location of its used helper applications. But it requires an installed AviSynth frameserver.

2) What kind of presets do you "need" to import? If you mean encoder profiles provided via the updater: Just select all and agree. Or do you want to use an additional archive of encoder profiles, to be unzipped to "megui\allprofiles"?

3) Download neroaacenc from the mentioned Nero AAC Encoder website, and unzip the content of its contained "win32" directory where you like, e.g. to "megui\tools\neroaac". Then configure the path to "neroAacEnc.exe" in the MeGUI options, just to make sure it is correct.
I recommend unzip "neroAacEnc.exe" to "megui\tools\eac3to", because eac3to need the file at the same folder to convert audio to AAC with the Tools -> HD Streams Extractor.
2)i guess i meant encoder profiles provided via the updater, but isn't that a but stupid, if miss a profile at the update that i might need in the future, there is no way for me to get it back until the next update
3) i'll try what u said, where specifically is the option that lets me configure the path?

Zathor
12th January 2012, 23:25
Btw maybe someone can bring some light here also:

A bug ticket has been created in the SF tracker:
Incorrect fps signaled when using FFVideoSource (http://sourceforge.net/tracker/?func=detail&aid=3463347&group_id=156112&atid=798476)
As a first reaction I had removed AssumeFPS() from the FFVideoSource() line but that causes problems as well with all kinds of video sources. So what to do? Add fpsnum/fpsden to FFVideoSource? That will not work with telecine sources I assume. So any help is appreciated.

tebasuna51
13th January 2012, 00:30
...
3) i'll try what u said, where specifically is the option that lets me configure the path?

Options -> Settings -> tab External Program Settings -> NeroAacEnc Location

LigH
13th January 2012, 07:59
About 2):

Centrally delivered encoder profiles are being deprecated already. In case of "Encoder settings" for x264, the average user should rely on Basic Settings, select an "Encoding Mode", a (speed) "Preset", a (content) "Tuning", and a (compatibility) "Target Playback Device". All other "Advanced Settings" are only for experienced users.

Earlier MeGUI versions used to offer a "Tx264" package with encoder settings for x264, but the most recent versions don't offer it anymore because the Basic Settings and the related default values inside x264 are already sufficient for most users, and the old profile XML files are not exactly compatible anymore.

ncatt published a collection of those profiles (http://forum.doom9.org/showpost.php?p=1338462&postcount=4915) which were made "loading compatible" for current MeGUI versions, nevertheless they are outdated now. I'm linking it despite not being recommendable anymore.

meshaun
14th January 2012, 02:44
Hello guys.
I want to make a video with the same settings which one of my friends did. I opened the video using mediainfo and I have the Encoding Settings. copying those settings and pasting on the Custom Command Line in MeGUI gives an error while encoding.

"Process exits with error code -1"

How's it possible to use the exact settings used by the earlier video?

the_weirdo
14th January 2012, 06:32
Hello guys.
I want to make a video with the same settings which one of my friends did.
Then why don't you ask him what settings he used?


How's it possible to use the exact settings used by the earlier video?
Uh... Of course it's possible. Because you're the one who encode it so you know the exact settings for it ;)

LeXXuz
14th January 2012, 07:21
Small question regarding the job queue.

When I have multiple indexing jobs or eac3to jobs in the queue and press the start button, Megui starts up to 3 jobs simultaneously which kills my hard drive. How do I get Megui to start just one job at a time?

rahzel
15th January 2012, 07:41
For ffms, why is the default and recommended value 1? Wouldn't 0 be ideal? Would setting it to 0 for a multi-core processor speed things up?

skinney6
15th January 2012, 07:58
what about surround sound? in handbrake i like the passthru but megui is diffrerent

Shevek
15th January 2012, 10:46
what about surround sound? in handbrake i like the passthru but megui is diffrerent

The MeGui indexing process (or HD Streams Extractor for HD sources) will demux the original audio for you to a separate file (likely .ac3 or .dts for surround audio)

If you leave the audio encoding section empty you can then use the Mux job to mux in that original audio to the encoded video.

I personally use the Auto-Encode function and so I ensure the "Add additional content" option is checked which then gives me muxing options and I can select the original audio.

Zathor
15th January 2012, 12:49
When I have multiple indexing jobs or eac3to jobs in the queue and press the start button, Megui starts up to 3 jobs simultaneously which kills my hard drive. How do I get Megui to start just one job at a time?

Just delete the other workers.

Zathor
15th January 2012, 12:50
For ffms, why is the default and recommended value 1? Wouldn't 0 be ideal? Would setting it to 0 for a multi-core processor speed things up?

Because when seeking in a file threads > 1 may cause problems and crash MeGUI.

rahzel
15th January 2012, 18:03
I see. Thanks.

djmasturbeat
16th January 2012, 08:29
for the m2ts muxer-
I am trying to input HD audio demuxed from m2ts within MeGUI
but I cannot select anything but dts, ac3 (and some non-BD audio),
should I just change the extension to core extensions dts and ac3? what can i do with LPCM?

thanks for any help

Music Fan
16th January 2012, 09:48
You should use TSMuxer to mux and demux m2ts files. You can mux the sound (LPCM or anything else) and the video after encoding (with MeGui).

JoeH
16th January 2012, 15:30
Because when seeking in a file threads > 1 may cause problems and crash MeGUI.

This problem is limited to interlaced material, right? Using progressive source with the setting to 0 I have never had any problems, and it is very noticeably faster (Core i7 920).

djmasturbeat
16th January 2012, 22:17
thanks
i do use tsmuxer *gui* a lot, but tsmuxer has the issue with LPCM tracks, tho :(
(yeah I know about pcm2tsmu, I am just slow with cli tools and i don't know of a good gui front end for that; but I guess I can deal with it and figure it out eventually, since i trudge my way through eac3to - with a lot of mistakes, just because most of the eac3to GUIs for it don't do everything eac3to does or act all wonky or w/e).

meshaun
17th January 2012, 12:37
If a .mkv has subs and I'm going to encode it to .mp4 using the OneClick. Leaving the subs makes the mp4 with selectable subs or ?
And also, I see that there is a new x264 encoder released. But MeGUI update on that wasn't released yet. Replacing the x264.exe in the tools folder makes it updated?

Zathor
17th January 2012, 21:43
for the m2ts muxer-
I am trying to input HD audio demuxed from m2ts within MeGUI
but I cannot select anything but dts, ac3 (and some non-BD audio)
Thanks for the report. Some file extensions are indeed missing. But you can select them already - just enter *.* in the file name box when earching for the file.

This problem is limited to interlaced material, right? Using progressive source with the setting to 0 I have never had any problems, and it is very noticeably faster (Core i7 920).
AVI was also not working in my tests.

If a .mkv has subs and I'm going to encode it to .mp4 using the OneClick. Leaving the subs makes the mp4 with selectable subs or?
No, currently not. But also in the future not all kinds of subtitel get migrated as mp4 supports lesser subtitel formats than mkv.

And also, I see that there is a new x264 encoder released. But MeGUI update on that wasn't released yet. Replacing the x264.exe in the tools folder makes it updated?
Yes, but I have uploaded it a few minutes ago.

djmasturbeat
20th January 2012, 18:54
thanks for the info. didn't know I could use a wildcard for name and ext to see all files :D

stranno
20th January 2012, 21:15
Why the raw-aac is only avalible on FAAC? I want raw-aac on Nero one, its annoying to convert to aac-mp4 and then demux with mp4box

hello_hello
23rd January 2012, 22:23
Sadly this setting has been introduced before I started to join the MeGUI project and as I am also living in PAL land I have not touched that topic very often. Therefore sadly I cannot say why this has been implemented and if it is still required. Maybe someone else can help us with that topic.

Just to revisit my question as I noticed an option in MeGUI today which I'd completely forgotten about, or ignored because I didn't understand it.....

I asked a while back about MeGUI altering the D2V file to make the video appear to be film (if that's the correct way to put it) or to "force film". I wondered how force film was usually implemented as I live in PAL-Land so don't have to worry about that sort of thing much and it seemed odd to me it'd be done by changing the D2V file itself.

Anyway, the MeGUI option I discovered today is a check box which enables "Auto Force Film at X%", which was selected (set to 95%). So I went to the help file which says:
"Auto Force Film at: Allows you to configure auto force filming in the D2V creation stage. If you don't know what this means, leave it alone. "

Okay, so I assume that was my problem (I recently discovered MeGUI alters the D2V file while trying to work out why I couldn't seem to encode or analyze a DVD correctly).
While I know Zathor lives in PAL land too I'll ask a couple of questions in case someone else can enlighten me.....

- Firstly, what's the point of "force film" at all? Even if the video is 99% film why would you want to treat the 1% which isn't as though it is?
- Secondly, do GUIs normally alter the D2V file to apply force film? AutoGK doesn't seem to, but then I'm not sure I've ever seen it state "force film" in the log file. "Pure Film" yes, but "force film", no.
- Thirdly, am I correct in assuming disabling the force film option in MeGUI will stop it from ever altering the D2V file, and is there a reason why I shouldn't disable it?

Thanks.

LigH
24th January 2012, 07:54
Just a personal opinion:

If content is detected as telecined, in theory the Inverse Telecine algorithm is trivial, so DGDecode.dll could apply it while decoding. But reality is a bitch – a little mistake, a cut in the movie, and the pattern order gets shifted: Then the rest of the movie would be messed from that point if the decoder would continue with the first detected inversion pattern.

It is probably safer to let the video pass as it is encoded, and delegate the IVTC process to smarter adaptive AviSynth filters like TFM+TIVTC.

hello_hello
24th January 2012, 11:26
So your answer implies disabling force film and trying to do it properly is a good thing?

LigH
24th January 2012, 11:56
"Trying to do it properly" is always a good thing... ;)

But I can't speak from experience if the IVTC feature in DGMPGDec is reliable enough in all cases. I live in the PAL area, we have no Telecine. Please be patient for a more experienced user to reply...

I remember, though, that accidently enabling it sometimes resulted in 20 fps videos, which are really nonsense.

And like all automatic detections, there is never a guarantee. Norm conversions are hell.

hello_hello
24th January 2012, 17:17
Yeah I'm in PAL-land myself so I'm not terribly experienced with this sort of thing. Thanks for the info.

djmasturbeat
26th January 2012, 04:08
this is interesting to note, especially since I am in NTSC land. I would like to know more input and opinions about the force film of the D2V.

now to my question that I came here for:
for pre-rendering would it be possible to use UT Video codec or Lagarith Lossless Video Codec?
http://forum.doom9.org/showthread.php?p=1527090#post1527090
http://lags.leetcode.net/codec.html
Can someone tell me how to use these for pre-rendering in place of huffyuv? do i call this with avs? I see them brought up in some other areas and wondering how to use them in prerendering for x264 with MeGUI.

thanks!

the_weirdo
26th January 2012, 04:25
now to my question that I came here for:
for pre-rendering would it be possible to use UT Video codec or Lagarith Lossless Video Codec?
http://forum.doom9.org/showthread.php?p=1527090#post1527090
http://lags.leetcode.net/codec.html
Yes.
Can someone tell me how to use these for pre-rendering in place of huffyuv? do i call this with avs? I see them brought up in some other areas and wondering how to use them in prerendering for x264 with MeGUI.

thanks!

AFAIK, those lossless codecs don't have command line interface (it would be nice if they had). You must access them via an application that support VfW interface like VirtualDub.

Asmodian
26th January 2012, 06:15
Force Film is a standard option in DGIndex.

See the docs (http://neuron2.net/dgmpgdec/DGIndexManual.html#FieldOp) for a good explanation but if you understand IVTC it is just IVTC for the parts that might need it.

I have found it to work quite well if used at >95% but a more sophisticated IVTC can sometimes be needed even then, if you see combing artifacts it missed something. I have never found an IVTC that works 100% though many are quite good.

If content is detected as telecined, in theory the Inverse Telecine algorithm is trivial, so DGDecode.dll could apply it while decoding. But reality is a bitch – a little mistake, a cut in the movie, and the pattern order gets shifted: Then the rest of the movie would be messed from that point if the decoder would continue with the first detected inversion pattern.

I am pretty sure it isn't quite that simple of an IVTC. :D

djmasturbeat
26th January 2012, 06:57
Yes.


AFAIK, those lossless codecs don't have command line interface (it would be nice if they had). You must access them via an application that support VfW interface like VirtualDub.

is there anything else that supports vfw interface or is there a way to output raw avc with virtual dub? i mostly (re)encode for BDs.

nvm - i realized i am just using this as a temp .avi output with lossless codec for prerendering, so it doesn't matter that it is stored in avi wrapper. I can just import that avi output into megui, index it and start 2 pass from that output? is that about right?

hello_hello
26th January 2012, 09:30
Force Film is a standard option in DGIndex.

See the docs (http://neuron2.net/dgmpgdec/DGIndexManual.html#FieldOp) for a good explanation but if you understand IVTC it is just IVTC for the parts that might need it.

I have found it to work quite well if used at >95% but a more sophisticated IVTC can sometimes be needed even then, if you see combing artifacts it missed something. I have never found an IVTC that works 100% though many are quite good.

I read the docs and I think I understand the principle but I'm still not sure I'm getting my head around it correctly. At least not the way force film is implemented in MeGUI.

What happened in my case is I was converting the same DVD using both AutoGK and MeGUI. AutoGK reported it as a hybrid (mostly film) I think, and it's output looked fine.
MeGUI on the other hand reported "progressive" after the analysis and there was combing in a few places.
"Okay" I thought, "I'll just change the analysis results manually". Didn't help. I copied the IVTC parts from AutoGK's script. Still didn't help. It wasn't until I eventually decided to use AutoGK's D2V file that I finally discovered what was going on, because then running an analysis using MeGUI produced the same result as AutoGK and the encode looked perfect.

My first thought after discovering force film was being applied by "altering" the D2V file was "fair enough, but why isn't there a way for MeGUI to tell me that?" Followed by "is this the way it's normally done?".
Then I wondered what the point is of even keeping the analysis option enabled if after force film has been applied there's no point running it? Wouldn't it make more sense for the analysis section to automatically default to "progressive" and not allow an analysis to be run? Or even to display "force film has been applied"?

Since discovering and disabling the "force film" option in MeGUI's settings I assume I'll never have the same problem again, but especially for someone like me who's not used to dealing with IVTC, having MeGUI's analysis ability still enabled after force film has been applied doesn't seem logical.... unless I'm missing something.

(Force film to me also seems to be the same thing as saying "if 95% is correct that's good enough" but maybe I'm missing something there too)

On a side note.... I started a new thread trying to have MeGUI's analysis options explained, but so far there's been no replies. If anyone would like to tackle it.....
http://forum.doom9.org/showthread.php?t=163906

phate89
26th January 2012, 19:51
Hi.. i have a problem with megui..
I think it's a bug..
When i load an as script sometimes it crashes.. not always.. randomly with different scripts, different videos.. it crashes when it's showing the preview... with no error message or log..
But when i rebooted my pc i find some error message about megui... one is a dep violation.. so i disable dep and i solved the crashes.. now it don't crash anymore...
But i think it should work even with dep enabled right?

Inspector.Gadget
27th January 2012, 02:24
Hi.. i have a problem with megui..
I think it's a bug..
When i load an as script sometimes it crashes.. not always.. randomly with different scripts, different videos.. it crashes when it's showing the preview... with no error message or log..
But when i rebooted my pc i find some error message about megui... one is a dep violation.. so i disable dep and i solved the crashes.. now it don't crash anymore...
But i think it should work even with dep enabled right?

If you are using DirectShowSource(), and I'd bet you are, somewhere you have a Directshow filter that isn't behaving correctly (probably came with a codec pack or bundled with proprietary software like PowerDVD).

phate89
27th January 2012, 02:30
If you are using DirectShowSource(), and I'd bet you are, somewhere you have a Directshow filter that isn't behaving correctly (probably came with a codec pack or bundled with proprietary software like PowerDVD).

no i usually use ffvideosource

JoeH
27th January 2012, 09:01
is there anything else that supports vfw interface or is there a way to output raw avc with virtual dub? i mostly (re)encode for BDs.

nvm - i realized i am just using this as a temp .avi output with lossless codec for prerendering, so it doesn't matter that it is stored in avi wrapper. I can just import that avi output into megui, index it and start 2 pass from that output? is that about right?

Should work. Cf. also here (http://forum.doom9.org/showthread.php?t=163647) and here (http://forum.doom9.org/showthread.php?t=163649) for a similar solution.

LigH
27th January 2012, 09:18
@ djmasturbeat:

VirtualDub doesn't export raw AVC. The x264.exe may; and loading an AVI file via the AviSynth function AviSource should be so trivial, you could even put it in a batch file which creates a script on the fly that uses the filename of the parameter as base filename for the created script file, calls x264 with the just generated script, and possibly deletes the script afterwards.

Just the correct output in YV12 space requires some additional efforts, it may depend on the exactly used AVI codec if it can deliver YV12 by itself [AviSource(..., pixel_type="YV12")] or has to be converted from packed-pixel formats [AviSource(...).ConvertToYV12(interlaced={false|true})]. A wrong decision about the interlacing will result in false colors.

But it is not always useful to have x264 encode to raw AVC, because such files often lack of useful information, like the frame rate. If the following tools in the chain support MP4 or MKV as well, consider to prefer them as output.

djmasturbeat
28th January 2012, 00:38
i have a lot to learn about IVTC, deinterlacing, pixel and color space, etc
thanks for the tips

one thing tho, for encoding to BD, I don't want to save as mkv or mp4, but only as raw AVC. yes, it doesn't include the fps and other useful info, but one thing I have read over and over* is to not store the AVC as mkv, only as ES. about the only time I use mkv for encoding to BD is if i am taking a VC-1 stream, i pretty much have to remux to mkv to even index it first, then encode from that mkv.
sort of like needing to remux VC-1 to mkv to index and encode from, the lossless codec (huffy, lagarith, intel indeo, etc) stage for pre-rendering saving as an avi, i think would be a bit different than saving my final output as mkv, if I understand this correctly.


*this thread, among a few others I can't find advise to never store the output as mkv
http://forum.doom9.org/showthread.php?t=154533

after re-reading your post some more i see you suggest to use them in the supply chain if possible, not necessarily as a final output.
But I am still wondering if putting the ES in an mkv container will screw it up as people mention in places like the encoding for bluray thread. Can someone knowledgeable about x264 and Blu-Ray encoding tell me? Is it just for my final output that I want to avoid anything but the ES?

poisondeathray
28th January 2012, 00:58
VirtualDub doesn't export raw AVC.

Actually x264vfw can from vdub , it has to be specified in the command line box

There is a dummy AVI exported along with the .264 video

I remember this from a couple years back, raw avc export and was verified in scenarist - see this page and the next few after it. (But I haven't done it recently)
http://forum.doom9.org/showthread.php?t=98247&page=29

djmasturbeat
28th January 2012, 04:37
thanks for the info
I am curious if, in place of the temp.avi, i can have the same .264/.avc output from some of the lossless codecs while using VDub as pre-rendering.
Or can x264 be used for pre-rendering if i use a lossless pass at first (-q 0)? I have never used lossless settings in x264 so i don't know if they would work in a similar way of not taking too long to pass, but to speed up later passes.

I guess I am a curious noob, more than anything else, wanting to experiment more with several different lossless and near-lossless codecs for pre-rendering (and maybe for other things), since there appear to be quite a few but only huffyUV available in MeGUI.

I think it would be really cool to see VDub enabled in MeGUI; having all of VDub launched within or at the very least incorporate something like the "Ctrl-P" compression window and all of its abilities to select different vfw codecs and apply settings changes to them. But really, I also think the full VDub interface would be nice to have, especially as it allows many of the same filters as AVS (even use vdub plugins in avs), but vdub is possibly a bit easier to use for the cli-impaired :P
Should I maybe address this in MeGUI feature requests instead to do things properly?


Back to color space, pixel format, and lossless codecs, and all that. A few responses ago there I said I need to learn more about that, can someone give me a good beginners place to learn more about this?

Also back to a topic, also a few posts above, that being about info not stored in raw AVC, such as fps (hence the suggestion for mp4 and mkv); this reminds me of something I encountered when I was going to try encoding on my friend's PC with some stuff he uses for work to compare it with x264. it seems maybe color and pixel info are not stored either is that correct? If so, would that normally be correctly stored in the muxed m2ts container of a retail disc? Or how is this information usually determined?
Is there a certain Pixel Format or Color space most or all AVC is encoded to? Does it differ between commercial Blu-Rays and the output from home cameras?
While I was fooling around on my friend's workstation, I took demuxed h264/AVC from a retail bluray disc that I have encoded from this disc previously with x264 just fine. I fed the demuxed avc stream from the retail disc into Cinevision to see what kind of output it would give me compared to x264. long story short it told me (looked up my notes I made) "It was not possible to detect all input parameters from the specified source, please confirm that all processes marked in red are correct" and the fields marked as red were scan type (I know it is progressive) "Field" (n/a as it is progressive) and "Pixel Format." I mostly didn't know how to determine The Pixel Format selections and to know if it selected the correct format, so i never did my encoding since I didn't want to waste hours encoding with the avc pixel format tagged incorrectly. If I get to go back over and play with his workstation I would like to try a test again against that or another disc i have done previous encodes of. Might be fun to compare the against the results of x264 which look incredible to me.
when i load the raw avc or the BluRay into Mediainfo, there is no Pixel format information. "color space" gives me some similar-looking FourCC code, but what it told me is not even an option for Pixel Format in Cinevision's drop down. I want to know how the Pixel Format can be determined.
I am pretty confused what the relation and differences between color space and pixel format are. I don't know anything about this stuff, really, as I said above in this post and a few posts earlier, and obviously I think I should start learning this and how to determine these things, as it appears I better understand this stuff a bit better to learn how to encode video and not just use scripts/profiles without understanding them; I also think I need to know this if I want to use the lossless codecs for pre-rendering. I am curious about more information on any of these topics -- ones that start out talking to me like I know nothing, but I could use having links to things that get more advanced if i begin to understand the simpleton stuff =D.

Any good help and links for a noob would be greatly appreciated =)

hello_hello
28th January 2012, 06:43
I think it would be really cool to see VDub enabled in MeGUI; having all of VDub launched within or at the very least incorporate something like the "Ctrl-P" compression window and all of its abilities to select different vfw codecs and apply settings changes to them. But really, I also think the full VDub interface would be nice to have, especially as it allows many of the same filters as AVS (even use vdub plugins in avs), but vdub is possibly a bit easier to use for the cli-impaired :P
Should I maybe address this in MeGUI feature requests instead to do things properly?

Can't use just create the script with MeGUI then open it with VirtualDub?