Log in

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


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

Bitlord
9th November 2008, 10:14
are you sure that your audio file from DVD is 3.1 ???

maybe that's why the encoder fails...


I saw now that the audio is 4.1, but i don't know if it matters...
That might be why it fails. But, i don't want to keep the original audio because it's too big. Does anyone know any other audio converting programs?

tebasuna51
9th November 2008, 20:42
I saw now that the audio is 4.1, but i don't know if it matters...
That might be why it fails. But, i don't want to keep the original audio because it's too big. Does anyone know any other audio converting programs?

This channel config isn't supported by aac. We need make a downmix to 2.0 or a upmix to 5.1.

Also we need know if is a 2/2.1 (FL,FR,BL,BR,LFE) or a 3/1.1 (FL,FR,FC,S,LFE)

If your source is an AC3 2/2.1 (if is DTS change the 'Ac3' for 'Dts') and you want less space is better a downmix DolbyProLogic. You need write an avs file with:

a = NicAc3Source("x:\path\input.ac3")
flr = GetChannel(a, 1, 2)
bl = GetChannel(a, 3)
br = GetChannel(a, 4)
sl = MixAudio(bl, br, 0.3714, 0.2144)
sr = MixAudio(bl, br, -0.2144, -0.3714)
blr = MergeChannels(sl, sr)
MixAudio(flr, blr, 0.4142, 1.0)
Normalize()

You can open this avs in MeGUI and encode to aac 128 Kb/s.

Frank_UK
12th November 2008, 23:16
I have encoded a few video files with megui using xvid 2 pass balanced and anamorphic encoding (non-mod16; original video size 720x576; no resize; DAR 1.778).

Gspot shows the output avi as 716x576 (resized); SAR 1.243 (~5:4); PAR 1.427 (~10:7); DAR 1.774 (~16:9)

Windows media player using ffdshow decoder ignores the DAR and displays video at 5:4

encoding using same settings but using x264 displays correctly at 16:9

Is there a workaround for this behaviour?

Bitlord
14th November 2008, 07:22
This channel config isn't supported by aac. We need make a downmix to 2.0 or a upmix to 5.1.

Also we need know if is a 2/2.1 (FL,FR,BL,BR,LFE) or a 3/1.1 (FL,FR,FC,S,LFE)

If your source is an AC3 2/2.1 (if is DTS change the 'Ac3' for 'Dts') and you want less space is better a downmix DolbyProLogic. You need write an avs file with:

a = NicAc3Source("x:\path\input.ac3")
flr = GetChannel(a, 1, 2)
bl = GetChannel(a, 3)
br = GetChannel(a, 4)
sl = MixAudio(bl, br, 0.3714, 0.2144)
sr = MixAudio(bl, br, -0.2144, -0.3714)
blr = MergeChannels(sl, sr)
MixAudio(flr, blr, 0.4142, 1.0)
Normalize()

You can open this avs in MeGUI and encode to aac 128 Kb/s.

Thanks for your help, but i gave up on it ^^'

SlipGun
15th November 2008, 22:38
I can't seem to get the lossless profile to work with MeGui. I get terrible artifacting and color imbalance (see here --this is a daytime shot) (http://img139.imageshack.us/img139/6434/losslesswl1.jpg) that I do not get with the same profile and version of x264 in Staxrip. Currently using 1028.

b66pak
16th November 2008, 19:46
hi,


i have a question regarding profiles in megui.

i have an iphone and my girlfrien a psp.

i found that encoding with iphone profile will result in a .mp4 (h264 + aac lc) file that is not recognized by psp and encoding with psp profile will result in a .mp4 (h264 + aac lc) file that is not recognized by iphone.

to avoid double encoding i ask if it is a middle ground profile for both iphone and psp...


best regards
_

eastfamily
20th November 2008, 20:20
I started recording TV shows this year using a OnAir GT Usb tuner for digital over the air HD. THe format that comes out is TS. I start by using dgindex, then avisynth script creator, and then make cuts accordingly to take out commercials. I have all the latest builds of mp4box, besplit, etc.

On just about every episode of any show I record and convert, the audio gets more out of sync the further into the show and more commercial breaks I cut out. Any possible ideas to help a newer guy out? Thanks to this forum, a lot of great info here.

I have however notice that I can make a clip of just certain cuts, and the audio is fine, it just gets out of sync when the whole show is thrown together.

Jeff

eastfamily
21st November 2008, 17:38
Something to follow up on, I think it's MP4Box that is the problem. I did the exact same processing that I have been trying but I set the encoder to make the files MKV instead and then I switched the file extension over to MP4 and now I have no problems. Also, using the raw data and muxing in something like YAMB works as well, but inside MEGUI it gives me the out of sync issues still.

Sharktooth
21st November 2008, 19:11
I can't seem to get the lossless profile to work with MeGui. I get terrible artifacting and color imbalance (see here --this is a daytime shot) (http://img139.imageshack.us/img139/6434/losslesswl1.jpg) that I do not get with the same profile and version of x264 in Staxrip. Currently using 1028.
x264 has a new lossless mode.
the only decoder that actually supports it is coreavc.
:search:

@b66pak: DONT CROSSPOST!

@eastfamily: can yuo please describe your procedure step by step?

@MeGui
22nd November 2008, 02:03
I have tried to encode this file zillion times and i still have delay on audio.
Can someone try to download and see if nothing's wrong with original file, coz could be...

720p "Resonant Chamber"

http://www.animusic.com/downloads.html

Regards...

Kurtnoise
22nd November 2008, 09:45
none such issues for me here...give us more details.

jamos
24th November 2008, 04:11
having a issue loading any VC-1 encoded videos with megui in vista 64 bit. Get a Avisynth error: timeout while waiting to show graph when I load my avs file (using avisynth 2.57). Is there a filter I need to add or update? Works fine in xp 32 bit, but I like the 2.5 hour encode times with vista vs 12 hours with xp. H264 videos work fine with this setup in vista.

ok playing with latest ffdshow builds I now can get it loaded but the screen is garbled so thinking this is a ffdshow issue. The ffdshow on my xp machine handles it well so need to find out what version im using on that machine.

Finally fixed it. Got rid of using FFdshow and used Haali Media Splitter 1.7.401.3 works great with VC-1 files in Vista 64.

eastfamily
25th November 2008, 01:06
I start by recording my shows using a OnAir USB GT using their recording program, the files are recorded to TS format. I then put the files in the D2V creator inside MEGUI.

I then resize the files inside Avisynth Script creator to 720p, auto crop them, and analyze them for the particular type of source (hybrid, progressive, interlaced), I use the automated suggestions from the analyzer, then I save the script.

Then I open up AVS Cutter and cut out the commercials (using fade or no transition both give me the sync issues). I add the cuts to the script, save the cuts in a CLT file, and then cut the audio with audio cutter using the cut file.

Then I queue up the avs and the cut audio into the inputs of MEGUI's fronted, tell it to auto encode using the "Standalone PS3 Xbox 360" profile modified to be at Mainline instead of High profile, the AVC leve is 4.1. The audio is set at 128kbps adaptive bitrate AAC-LC.

The encoding takes about 3-5 hours total depending on the filesize and usually ends up with the audio being out of sync, with each commercial break cut making the sync issue worse.

It seems like an issue with MP4Box, but the weird thing is, if I make it encode the files to MKV, then extract the raw video and use YAMB to mux it, the sync is good.

I havent tried just encoding the raw audio and video then using YAMB with the files. I'd like to avoid using MKV and YAMB if I don't have to, so if you have a good solution, awesome. Thanks.

Jeff

Sharktooth
25th November 2008, 15:23
well, encode to raw then use YAMB and report back.

soulstaker
26th November 2008, 23:20
I have encoded a few video files with megui using xvid 2 pass balanced and anamorphic encoding (non-mod16; original video size 720x576; no resize; DAR 1.778).

Gspot shows the output avi as 716x576 (resized); SAR 1.243 (~5:4); PAR 1.427 (~10:7); DAR 1.774 (~16:9)

Windows media player using ffdshow decoder ignores the DAR and displays video at 5:4

encoding using same settings but using x264 displays correctly at 16:9

Is there a workaround for this behaviour?

You are using .avi for xvid? It doesn't support anamorphic video...

Frank_UK
27th November 2008, 00:04
You are using .avi for xvid? It doesn't support anamorphic video...

Thanks for the reply.

That explains it. I will use non anomorphic video for xvid.

ANGEL_SU
23rd December 2008, 16:03
You are using .avi for xvid? It doesn't support anamorphic video...

I ever tried mplayer2.exe and it can correctly display anamorphic avi file w/ffdshow codec - much wiser than his brother.

Sharktooth
23rd December 2008, 20:49
and this is not the place to report bugs...

alown
25th December 2008, 17:46
Sorry, i am not sure where to ask this. But how do i get the subtitles on my .vob to be on my .mkv. I also have a .ifo is that's needed.

cweb
25th December 2008, 18:08
Sorry, i am not sure where to ask this. But how do i get the subtitles on my .vob to be on my .mkv. I also have a .ifo is that's needed.
Try something like dvdsubedit to extract your subtitles.

AkumaX
26th December 2008, 05:57
Not sure if I could post here, but if this is the wrong thread, someone point me to a place ;)

I have 2 problems:

1)
DirectShowSource
XviD encoding sometimes "glitches"
- on a 2 Pass HQ, does 500fps on the 1st pass
- after 2nd pass is done, resulting file size is around 3gb, when it's supposed to be 600mb (my target)
- a "normal" encode is only 200fps on the 1st pass
doesn't happen all the time... but increasing in frequency more and more

2) x264 Encoding
DirectShowSource
1280x720, specifying 5000kbps, 2pass, resulting file size should be 2.5gb for my file
- actual ends up being 200mb

Sigh, why is this happening...

BlackPrince
28th December 2008, 14:44
Shark thx for all the great work!! Keep on going!

And 1 thing at last...

I have done many updates (megui-updater) and after that, i started the AVS Script Creator, = FAILURE

The "MediaInfoWrapper.dll" was crashed and megui restarted! I have deinstalled megui, reninstalled meg =it works, than the update programme started and crashed again!

http://www.abload.de/thumb/meguism4u.gif (http://www.abload.de/image.php?img=meguism4u.gif)

Kurtnoise
28th December 2008, 14:53
you should read the other megui related posts...:rolleyes:

BlackPrince
28th December 2008, 14:55
now i have :D my fault :P

Sharktooth
28th December 2008, 18:52
you should also thank kurtnoise and the other devs...
im actually not much active.

Chumbo
28th December 2008, 20:27
May I add a couple "wish list" items please?
- Add Select All and Deselect All buttons on Import dialogs
- Allow multiple selections on import dialogs

Thank you.

Sharktooth
28th December 2008, 20:35
right click...

Chumbo
28th December 2008, 21:27
LOL, how about that? I'll give it a try the next time it pops up. :)

Drake008@
31st December 2008, 22:28
Say is it possible to code for example the xvid and x264 encoder that it uses NVIDIA Graphics card and/or the normal CPU? I just want to see how fast the GPU can handle encoding.

Sharktooth
2nd January 2009, 02:31
it's offtopic and it has already been discussed on the AVC forum
MeGUI is a Graphical User Interface that uses other tools for encoding stuff...

yesgrey
3rd January 2009, 12:28
Why not including the "--aud" option when we select the RAWAVC file format? Some mkv muxing tools only accept h264 raw streams which contains the AUDs.
Yes, I know I can put the option myself, but when we update the profiles they come without that option, and we could start an encoding forgetting to add it again... I could request the adition to the profiles, but I believe the right place should be in megui... What do you think?

Sharktooth
3rd January 2009, 14:41
what are those mkv muxing tools?

Guest
3rd January 2009, 14:57
I don't know about MKV but transport streams require AUDs by spec. I believe they should be included in all cases, as the overhead is relatively small.

Sharktooth
3rd January 2009, 15:08
uhm, ok.

Guest
3rd January 2009, 15:18
From ISO/IEC 13818-1:2000/Amd.3:2004 (E) (Amendment 3: Transport of AVC video data over ITU-T Rec. H.222.0 | ISO/IEC 13818-1streams) paragraph 2.14.1:

Each AVC access unit shall contain an access unit delimiter NAL Unit;

NOTE 2 – ITU-T Rec. H.264 | ISO/IEC 14496-10 requires that an access unit delimiter NAL Unit, if present, is the
first NAL Unit within an AVC access unit. Access unit delimiter NAL Units simplify the ability to detect the
boundary between pictures; they avoid the need to process the content of slice headers, and they are particularly useful for the Baseline and Extended profiles where slice order can be arbitrary.

yesgrey
3rd January 2009, 16:00
what are those mkv muxing tools?
eac3to. It only supports h264 streams with AUDs.

Kurtnoise
3rd January 2009, 16:05
this is not a switch from mkv tools but an option from the x264 itself (or added in the bitstream afterward for eac3to)...

yesgrey
3rd January 2009, 16:41
Why not including the "--aud" option when we select the RAWAVC file format? Some mkv muxing tools only accept h264 raw streams which contains the AUDs.

this is not a switch from mkv tools but an option from the x264 itself (or added in the bitstream afterward for eac3to)...

Yes, I know (see my quote above), that's why I think it would be a good idea to megui automatically set it when we select RAWAVC file format...

buzzqw
4th January 2009, 13:42
afaik (but i hope to be in error) -aud isn't an official option, but added with a patch

BHH

Kurtnoise
4th January 2009, 13:55
afaik (but i hope to be in error) -aud isn't an official option, but added with a patch

it's in the main branch, not added via a patch...:)


it will be included in the next megui release.

yesgrey
4th January 2009, 14:18
it will be included in the next megui release.

:thanks:

Guest
4th January 2009, 16:14
it will be included in the next megui release. Thanks. How so? Always present or only when encoding RAWAVC? I prefer the former because it makes remuxing from MP4 and MKV to transport easy because the AUDs are already there.

Kurtnoise
4th January 2009, 16:54
for the moment, it's enabled only for raw avc but I can enable it for all output types. :) Ok, for you ?

Guest
4th January 2009, 17:50
Yes, all output types would be fine.

Note that the AUD overhead for a typical movie is less than 1MByte.

buzzqw
5th January 2009, 09:27
it's in the main branch, not added via a patch...:)


it will be included in the next megui release.

thanks! good to know

BHH

pihug12
5th January 2009, 17:18
I don't read all the last pages of this topic but why you don't update MKVMerge to 2.4.1 ?
http://www.bunkus.org/videotools/mkvtoolnix/

Thank you for this great software !
pihug12 :cool:

Sharktooth
5th January 2009, 17:30
... done ...
however, not all updates are necessary...

swashbuckle
6th January 2009, 02:04
hi guys, im new to megui and have a question...

i'm trying to re-encode an MKV file because my Western Digital HD TV Media Player doesn't support MKV files encoded with Vorbis audio.

however the MKV file i'm trying to re-encode has dual audio tracks. how do I select only the 2nd audio track to be encoded as the 'audio input'? I don't see any option to do so and I can only encode the first track...

Sharktooth
6th January 2009, 02:27
there is no option. you have to extract the tracks using MKVExtract and re-encode them.
however, you will loose quality... you better re-rip your audio tracks from your original media and re-encode using those as sources.

Coryu
10th January 2009, 10:04
I have a problem with the meGUI, use the Windows Vista Ultimate x64 and when I try to upload a video to work with, I always closed meGUI with the typical error "Not Responding" I have to give him a program and not close works.

Does anyone know how can I fix it?

Ah! Sorry for my English, but I am Spanish and I find it a lot.