Log in

View Full Version : MeGUI + .mkv as audio source problems


CodecUnknown
28th June 2010, 19:44
Greetings everyone,

I've got a kind of strange problem while using MeGUI and encoding an audio while having the .mkv as audio source.
The problem that occurs is that when the audio is done encoding it sounds like speed up and pitched up, something like the chipmunks you could say.
However, if I demux the audio and than attempt to encode it, it works perfectly fine.
Now I wonder what could be the cause of the problem and how can it be fixed?

The audio that's in the container is a RAW .aac file.

Inspector.Gadget
28th June 2010, 19:47
Run MediaInfo against the file and post the text output of that view in a CODE box in this thread.

CodecUnknown
28th June 2010, 19:56
Run MediaInfo against the file and post the text output of that view in a CODE box in this thread.

Nice swift reply thanks, here's the output
I put a few breaks at the encoding settings, otherwise it would run in a really long line. Hope you don't mind.


General
Complete name : --
Format : Matroska
File size : 392 MiB
Duration : 23mn 51s
Overall bit rate : 2 296 Kbps
Encoded date : UTC 2010-06-03 08:46:55
Writing application : mkvmerge v3.2.0 ('Beginnings') built on Feb 12 2010 16:46:17
Writing library : libebml v0.7.9 + libmatroska v0.8.1
Cover : Yes / Yes / Yes / Yes / Yes / Yes / Yes / Yes / Yes / Yes / Yes / Yes

Video
ID : 2
Format : AVC
Format/Info : Advanced Video Codec
Format profile : High@L5.1
Format settings, CABAC : Yes
Format settings, ReFrames : 12 frames
Muxing mode : Container profile=Unknown@5.1
Codec ID : V_MPEG4/ISO/AVC
Duration : 23mn 51s
Width : 1 280 pixels
Height : 720 pixels
Display aspect ratio : 16:9
Frame rate : 23.976 fps
Color space : YUV
Chroma subsampling : 4:2:0
Bit depth : 8 bits
Scan type : Progressive
Title : --
Writing library : x264 core 92 r1510 33d382a
Encoding settings : cabac=1 / ref=12 / deblock=1:0:0 / analyse=0x3:0x113 / me=umh /
subme=10 / 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=1 / chroma_qp_offset=-2 / threads=12 / sliced_threads=0 /
nr=0 / decimate=1 / interlaced=0 / constrained_intra=0 / bframes=8 / b_pyramid=2 / b_adapt=2 / b_bias=0 / direct=1 / wpredb=1 /
wpredp=2 / keyint=300 / keyint_min=25 / scenecut=40 / intra_refresh=0 / rc_lookahead=80 / rc=crf / mbtree=1 / crf=18.0 /
qcomp=0.70 / qpmin=10 / qpmax=51 / qpstep=4 / ip_ratio=1.40 / aq=1:0.60
Language : Japanese

Audio
ID : 3
Format : AAC
Format/Info : Advanced Audio Codec
Format version : Version 4
Format profile : LC
Format settings, SBR : No
Codec ID : A_AAC
Duration : 23mn 51s
Channel(s) : 2 channels
Channel positions : Front: L R
Sampling rate : 48.0 KHz
Title : --
Language : Japanese

Text
ID : 1
Format : ASS
Codec ID : S_TEXT/ASS
Codec ID/Info : Advanced Sub Station Alpha
Title : --
Language : English

Blue_MiSfit
2nd July 2010, 21:32
Hmm.. that's cute! Seems like a MeGUI bug to me. Your video is 720p24, and the audio is vanilla 2ch LC-AAC, nothing unusual here...

I'd just run eac3to directly on the MKV. Seems like the simplest solution...

Derek

tebasuna51
3rd July 2010, 01:54
...
However, if I demux the audio and than attempt to encode it, it works perfectly fine...

This is always the best choice.

CodecUnknown
6th July 2010, 00:31
Thanks guys, I suppose itīs just MeGUI acting up.
Iīll just demux the audio too, an extra step but if that works, why not.

Sharktooth
7th July 2010, 02:38
could you tell the exact procedure you used to encode the audio?

CodecUnknown
7th July 2010, 11:49
could you tell the exact procedure you used to encode the audio?

I used the .mkv file as source for the audio.
Then I use Nero AAC as my audio profile with the following settings:

Downmix to stereo
Samplerate at original
Normalize peeks to 100
ABR 40kbits

Same settings but using the demuxed aac as source works but using the mkv as source doesn't.

Sharktooth
7th July 2010, 13:24
ok, could you please try again enabling Force decoding via Directshow in the audio preset?

tebasuna51
7th July 2010, 15:14
Is the default for this kind of input:
--[NoImage] Avisynth script
---[NoImage] DirectShowSource("D:\Test\test.mkv", video=false)
---[NoImage] EnsureVBRMP3Sync()
---[NoImage] 6<=Audiochannels(last)?x_d...(ConvertAudioToFloat(last)):last
---[NoImage] Normalize()
Work in my system, but we can't know how work in other DirectShow system.

Edit: and this work only for first audio track, if we need other audio track we need extract (MkvExtract) always the audio (or use other tool like eac3to: MeGUI -> Tools -> HD Stream Extractor)

CodecUnknown
7th July 2010, 18:56
ok, could you please try again enabling Force decoding via Directshow in the audio preset?

Didn't help, it wielded the same result.
It's most likely to be a codec problem because I'm running a 64bit OS, but I don't know which certain codec is causing this.

~

EDIT:

I think I might have gotten this to work, not sure if this is really what fixed it but it works now, on the 64bit system I installed the 32bit version of FFDshow. Downloaded the Windows 7 codectweaker and set things to decode with ffdshow.