PDA

View Full Version : MeGUI Does NOT Encode 5.1 OGG Vorbis


JPSiemer
23rd July 2008, 14:40
I'm using the latest 0.3.0.1017 release of MeGUI and I cannot get 5.1 OGG encoding to work. My source is a 5.1 DTS and I am telling MeGUI to "Keep Original Channels", but every time I end up with a 2 channel file. I think this is a bug that needs fixing!

Sharktooth
23rd July 2008, 14:44
dont crosspost: http://forum.doom9.org/showthread.php?p=1162136#post1162136
i already answered you in the other thread.

Kurtnoise
23rd July 2008, 14:53
I'm using the latest 0.3.0.1017 release of MeGUI and I cannot get 5.1 OGG encoding to work. My source is a 5.1 DTS and I am telling MeGUI to "Keep Original Channels", but every time I end up with a 2 channel file. I think this is a bug that needs fixing!
The bug is on your side...

[Information] Versions
MeGUI Version : 0.3.0.1017
OS : Microsoft Windows Vista Service Pack 1
Framework used : 2.0 SP1
[Information] Hardware
HDD : C:\ > 5% free
HDD : D:\ > 69% free
HDD : E:\ > 63% free
CPU : AMD Athlon(tm) 64 Processor 3200+
[Information] Log for job1 (audio, VTS_02_PGC_01_1 T89 DELAY 40ms.dts > VTS_02_PGC_01_1 T89 DELAY 0ms.ogg)
[Information] [23/07/2008 14:43:23] Started handling job
[Information] [23/07/2008 14:43:23] Preprocessing
Avisynth script
NicDtsSource("D:\8MINIMETERS\VIDEO_TS\VTS_02_PGC_01_1 T89 DELAY 40ms.dts", DRC=1)
DelayAudio(40.0/1000.0)
ConvertAudioToFloat()
Normalize()
6==Audiochannels(last)?GetChannel(last,1,3,2,5,6,4):last
ConvertAudioTo16bit()
return last
Commandline used: Q raw rawbits={2} rawchan={3} rawrate={1} quality 2.0 o "{0}"
[Information] [23/07/2008 14:43:23] Encoding started
[Information] [23/07/2008 14:43:23] Encode thread started
[Information] [23/07/2008 14:43:23] Avisynth script environment opened
[Information] [23/07/2008 14:43:24] Script loaded
[Information] Input
Channels: 6
Bits per sample: 16
Sample rate: 48000
Commandline: D:\dev\megui_all\megui\trunk\bin\x86\Release\tools\oggenc2\oggenc2.exe Q raw rawbits=16 rawchan=6 rawrate=48000 quality 2.0 o "D:\8MINIMETERS\VIDEO_TS\VTS_02_PGC_01_1 T89 DELAY 0ms.ogg"
[Information] [23/07/2008 14:43:24] Encoder process started
[Information] [23/07/2008 14:46:52] Job completed
[Information] [23/07/2008 14:46:53] Postprocessing


General
Complete name : D:\8MINIMETERS\VIDEO_TS\VTS_02_PGC_01_1 T89 DELAY 0ms.ogg
Format : OGG
File size : 21.2 MiB
Duration : 9mn 36s
Overall bit rate : 309 Kbps

Audio
Format : Vorbis
Format settings, Floor : 1
Duration : 9mn 36s
Bit rate : 420 Kbps
Channel(s) : 6 channels
Sampling rate : 48.0 KHz

JPSiemer
23rd July 2008, 14:59
Well it looks like its not a problem with the OGG encoder at all... I tried encoding the same file with Aften AC3 with "Keep Original Channels" and my output was a 2 Channel AC3. So the problem exists somewhere else...

So then I tried encoding some other files I have and I still kept getting the same things happening to me. Then I started to realize the problem... I'm using MKVs (each with a video and a 6-channel audio track) as my audio input in MeGUI. I assumed that MeGUI was smart enough to pick out the audio track and keep the channel information, but it doesn't -- it picks out the audio track, but it mixes it down to 2-channel every time. However, if I demux the audio track from the MKV and use that as the input, it will encode nomrally as a 6-channel file.

So is this a bug or did you guys intentionally code MeGUI to handle files in this manner?

Sharktooth
23rd July 2008, 15:01
have you read the kurtnoise reply?

JPSiemer
23rd July 2008, 15:04
Ya, I read his reply, but I assure you that its not a bug on my side. Yes, if I use a DTS as the input I get the proper 6-channel output, but if that same DTS is muxed in MKV, I get an incorrect 2-channel output.

Kurtnoise
23rd July 2008, 15:13
same player shoot again...

-[Information] Log for job2 (audio, Audio_dts_6ch.mka -> Audio_dts_6ch.ogg)
[Information] [23/07/2008 15:08:03] Started handling job
[Information] [23/07/2008 15:08:03] Preprocessing
Avisynth script
- DirectShowSource("D:\8MINIMETERS\VIDEO_TS\Audio_dts_6ch.mka")
- EnsureVBRMP3Sync()
- ConvertAudioToFloat()
- Normalize()
- 6==Audiochannels(last)?GetChannel(last,1,3,2,5,6,4):last
- ConvertAudioTo16bit()
- return last
Commandline used: -Q raw raw-bits={2} raw-chan={3} raw-rate={1} quality 2.0 -o "{0}" -
[Information] [23/07/2008 15:08:03] Encode thread started
[Information] [23/07/2008 15:08:03] Encoding started
[Information] [23/07/2008 15:08:03] Avisynth script environment opened
[Information] [23/07/2008 15:08:05] Script loaded
[Information] Input
- Channels: 6
- Bits per sample: 16
- Sample rate: 48000
Commandline: D:\dev\megui_all\megui\trunk\bin\x86\Release\tools\oggenc2\oggenc2.exe -Q raw raw-bits=16 raw-chan=6 raw-rate=48000 quality 2.0 -o "D:\8MINIMETERS\VIDEO_TS\Audio_dts_6ch.ogg" -
[Information] [23/07/2008 15:08:05] Encoder process started
[Information] [23/07/2008 15:11:42] Job completed
[Information] [23/07/2008 15:11:43] Postprocessing

General
Complete name : D:\8MINIMETERS\VIDEO_TS\Audio_dts_6ch.ogg
Format : OGG
File size : 21.5 MiB
Duration : 9mn 36s
Overall bit rate : 313 Kbps

Audio
Format : Vorbis
Format settings, Floor : 1
Duration : 9mn 36s
Bit rate : 420 Kbps
Channel(s) : 6 channels
Sampling rate : 48.0 KHz

Sharktooth
23rd July 2008, 15:23
maybe it's not so obvious to spot for a non-expert.

JPSiemer
23rd July 2008, 15:38
Ya, that is very strange. So now I narrowed it down to MKA's and MKV's beign the problem. So its something in the way my computer is handling these files... any suggestions for a fix?

JPSiemer
23rd July 2008, 15:43
Yes, expert I am not! But I do beleive in logic...

Okay, so this is my log...

-[Warning] Log for job1 (audio, Paranoid Park (Limited) (2007) ''720P'' [BD-x264+DTS@6CH].mka -> Paranoid Park (Limited) (2007) ''720P'' [BD-x264+DTS@6CH].ogg)
--[Information] [7/23/2008 9:33:40 AM] Started handling job
--[Information] [7/23/2008 9:33:40 AM] Preprocessing
--[NoImage] Avisynth script
---[NoImage] DirectShowSource("C:\Users\Jake Siemer\Desktop\Paranoid Park (Limited) (2007) ''720P'' [BD-x264+DTS@6CH].mka")
---[NoImage] EnsureVBRMP3Sync()
---[NoImage] ConvertAudioToFloat()
---[NoImage] Normalize()
---[NoImage] 6==Audiochannels(last)?GetChannel(last,1,3,2,5,6,4):last
---[NoImage] ConvertAudioTo16bit()
---[NoImage] return last
--[NoImage] Commandline used: -Q --raw --raw-bits={2} --raw-chan={3} --raw-rate={1} --quality 3.0 -o "{0}" -
--[Information] [7/23/2008 9:33:40 AM] Encoding started
--[Information] [7/23/2008 9:33:40 AM] Encode thread started
--[Information] [7/23/2008 9:33:40 AM] Avisynth script environment opened
--[Information] [7/23/2008 9:33:40 AM] Script loaded
--[Information] Input
---[NoImage] Channels: 2
---[NoImage] Bits per sample: 16
---[NoImage] Sample rate: 48000
--[NoImage] Commandline: C:\Program Files\MeGUI\tools\oggenc2\oggenc2.exe -Q --raw --raw-bits=16 --raw-chan=2 --raw-rate=48000 --quality 3.0 -o "C:\Users\Jake Siemer\Desktop\Paranoid Park (Limited) (2007) ''720P'' [BD-x264+DTS@6CH].ogg" -
--[Information] [7/23/2008 9:33:40 AM] Encoder process started

It's assuming the input is "Channels: 2". However, loading the same files as a DTS gives me the exact same logfile, but "Channels: 6"!

~bT~
23rd July 2008, 15:56
dont use directshow.

Kurtnoise
23rd July 2008, 18:24
So its something in the way my computer is handling these files... any suggestions for a fix?
assuming you use FFdshow in your filters chain, be sure to *uncheck* Mixer option in the Audio settings...


otherwise, what do you get in graphedit when you play this mkv file ?



edit: oh, and could you change the title of this thread also...

JPSiemer
24th July 2008, 01:45
"Force Decoding via DirectShow" is not checked in the Vorbis Configuration Dialog

And...

The "Mixer" option is uncheck in the FFD Audio Configuration

So...

I opened in Graphedit and realized that AC3Filter is handling this file. So I went into AC3Filter dialog and sure enough AC3Filter was set to 2.0. So I set it to "AS IS" and tried again and it works!

So...

AC3Filter was the problem. Case closed. Thanks for your help guys!