Log in

View Full Version : x264 re-encoding with MeGUI


Raffa
3rd February 2009, 17:01
Hi all,

I have an xbox360 and as you know it doesn’t support mkv files. So in this case I can either use GotSend to create mp4 file from the mkv or to re-encode it using MeGUI. But since I want to see the video with subtitle then I must go with the second option using one of the x264 presets available in MeGUI. So what is the most optimal preset for re-encoding an existing mp4 file? I have used the xbox360 fast preset but it takes too much time on my Athlon X2 4600.

rack04
3rd February 2009, 17:03
Why don't you just re-encode and mux the source to mp4 instead of mkv?

terminate
3rd February 2009, 19:03
If it is only the mkv container that bothers you, then you can use MKVextractGUI.exe which is included in \megui\tools\mkvmerge. With MKVextractGUI.exe you can demux the mkv-file into h264, aac and a subtitle track and then remux it with the megui-mp4-muxer or with Yamb to a new mp4-file, goes really fast and needs no reencoding.

Raffa
3rd February 2009, 21:54
Thank you all for your reply.

I have tried to mux the subtitle inside the mp4 container but my Xbox didn't recognize it :(

As far as I know, the Xbox360 doesn't support external subs. So I am left with hardcording it..

Raffa
4th February 2009, 16:44
Any help please.....

How to re-encode an existing x264 video for an xbox360???

rack04
4th February 2009, 16:59
Any help please.....

How to re-encode an existing x264 video for an xbox360???

What container is the h264 video in?

1a.) If the container is mkv use MKVExtractGUI to extract h264 video and audio.
1b.) If the container is mp4 use YAMB to extract h264 video and audio.
2.) Index h264 video with DGAVCIndex.
3.) Create avisynth script file to frame serve the dga file.
4.) Encode using MeGUI Xbox video profile.

acidsex
8th February 2009, 22:51
I tried doing this with some of my earlier encodes but the demux audio sometimes ended up out of sync when remuxed. Is there anyway to see what the audio delay of a file is so that when we remux to mp4, that it is in sync?

[P]ako
9th February 2009, 14:46
Check the FPS of the source and of the remuxed mp4. I am sure they are not the same. Use something like Gspot or Avinaptic.

acidsex
9th February 2009, 19:22
Here is my current workflow:

1. Import MKV into TSMuxer
2 Convert MKV to MT2S
3. Use DGAVCdec to demux audio to get audio delay
4. Demux MKV using TSMuxer
5. Import demuxed audio into MeGUI then to MP4 Muxer.

This takes forever. Is there anyway to import the MKV file into MeGUI and pass through the video and just convert my audio to AAC 5.1?

I have a ton of videos done for a client according to their specs (wanted MKV originally) now they find out that their customers request the mp4 format for ipod playback and so they can wrap the mp4 file in flash.

Anyone have any suggestions on how to improve this work flow?

Sharktooth
9th February 2009, 19:24
... using the avisynth script creator...
1. DirectShowSource("you_file.mkv")
2. Encode...

acidsex
9th February 2009, 19:30
but isn't avisynth just for the video portion? is there any chance to can provide an example of the script I should using because every time I try to use the avisynth creator inside MeGUI, it crashes and I get this error message: Problem Event Name: APPCRASH
Application Name: MeGUI.exe
Application Version: 0.3.1.1012
Application Timestamp: 498c3f3f
Fault Module Name: StackHash_20fc
Fault Module Version: 6.0.6001.18000
Fault Module Timestamp: 4791a7a6
Exception Code: c0000374
Exception Offset: 000b015d
OS Version: 6.0.6001.2.1.0.768.3
Locale ID: 1033
Additional Information 1: 20fc
Additional Information 2: bfd002c46f028fcf9a55514d61f9d7c4
Additional Information 3: 33cd
Additional Information 4: d6fdaca80281288ae4703ccfb0a50b89

Sharktooth
9th February 2009, 19:36
and who told you avisynth is only for video?
load the avs as audio source too...
about the crash, check your system. something is really screwed up.

acidsex
9th February 2009, 19:42
Ok heres the steps I went through. Opened MeGUI, went under Avi Synth Creator, selected my MKV file and then MeGUI crashes. Is there a specific file I need to have in my AviSynth Plugins directory?

Sharktooth
9th February 2009, 20:30
no. if it crashes then something on your system is messed up (load the mkv in graphedit and post a screenshot).

acidsex
9th February 2009, 20:38
http://i40.tinypic.com/15x0274.png

acidsex
9th February 2009, 23:57
could this be a FFDshow problem?

acidsex
11th February 2009, 22:43
Ok, went back to XP last night and can import and encode existing MKV files. Is there anyway I can set the video portion of the MKV to pass through to the final muxing in the encoding process or do I still have to demux the MKV to get my video out of it? I would like to keep the entire process inside MeGUI if I can.

poisondeathray
11th February 2009, 22:50
No video passthru in megui

You could try avidemux for your task:

Open the .mkv
video=>copy
audio=>aac , setup the options for bitrate & 5.1 channel
format=>.mp4