Welcome to Doom9's Forum, THE in-place to be for everyone interested in DVD conversion.

Before you start posting please read the forum rules. By posting to this forum you agree to abide by the rules.

 

Go Back   Doom9's Forum > Video Encoding > MPEG-4 Encoder GUIs
Register FAQ Calendar Today's Posts Search

Reply
 
Thread Tools Search this Thread Display Modes
Old 25th June 2010, 11:20   #1181  |  Link
Vincent Vega
Registered User
 
Join Date: Feb 2004
Location: the tiny bubble of Creation
Posts: 189
audio: 3.1 to 2.0

i've run into the following issue trying to downmix + slow down 3.1 ac3 tracks to 2.0 ac3. i ended up with 3.1 encodes instead of 2.0. tried two similar source files. all relevant info (hopefully) given below. megui updated yesterday to all development updates.

Quote:
[Information] Versions
-[NoImage] MeGUI Version : 0.3.5.0
-[NoImage] OS : Windows Vista Ultimate Edition x64 SP2 (6.0.131072.6002)
-[NoImage] Latest .Net Framework installed : 4.0 (4.0.30319)
-[NoImage] Avisynth Version : 2.6.0.1

SOURCE01 [Mediainfo]:

Audio
Format : AC-3
Format/Info : Audio Coding 3
Mode extension : CM (complete main)
Duration : 1h 28mn
Bit rate mode : Constant
Bit rate : 384 Kbps
Channel(s) : 4 channels
Channel positions : Front: L C R, LFE

Sampling rate : 48.0 KHz
Stream size : 242 MiB (100%)

MEGUI AFTEN SETTINGS:

Downmix Multichannel to Stereo
Slow down 25 to 23.976
Normalize to 100%
Bitrate 192

RESULT01 [Mediainfo]:

Audio
Format : AC-3
Format/Info : Audio Coding 3
Mode extension : CM (complete main)
Duration : 1h 31mn
Bit rate mode : Constant
Bit rate : 192 Kbps
Channel(s) : 4 channels
Channel positions : Front: L C R, Side: C

Sampling rate : 48.0 KHz
Stream size : 126 MiB (100%)

MEGUI LOG:

[Information] Log for job3 (audio, SomeAudio01 T82 3_0ch 384Kbps DELAY 0ms.ac3 -> SomeAudio01 T82 3_0ch 384Kbps DELAY 0ms_new.ac3)
-[Information] [6/25/2010 12:41:31 AM] Started handling job
-[Information] [6/25/2010 12:41:31 AM] Preprocessing
-[NoImage] Avisynth script
--[NoImage] LoadPlugin("C:\Program Files (x86)\MeGUI\tools\avisynth_plugin\NicAudio.dll")
--[NoImage] NicAc3Source("D:\SomePath\SomeAudio01\SomeAudio01 T82 3_0ch 384Kbps DELAY 0ms.ac3")
--[NoImage] 6<=Audiochannels(last)?x_stereo208cbea08f954eb0bf2ecb10e06f2226(ConvertAudioToFloat(last)):last
--[NoImage] SSRC((AudioRate()*1001+480)/960).AssumeSampleRate(AudioRate())
--[NoImage] Normalize()
--[NoImage] return last
--[NoImage] function x_stereo208cbea08f954eb0bf2ecb10e06f2226(clip a)
--[NoImage] {
--[NoImage] fl = GetChannel(a, 1)
--[NoImage] fr = GetChannel(a, 2)
--[NoImage] c = GetChannel(a, 3)
--[NoImage] lfe = GetChannel(a, 4)
--[NoImage] sl = GetChannel(a, 5)
--[NoImage] sr = GetChannel(a, 6)
--[NoImage] l_sl = MixAudio(fl, sl, 0.2929, 0.2929)
--[NoImage] c_lfe = MixAudio(lfe, c, 0.2071, 0.2071)
--[NoImage] r_sr = MixAudio(fr, sr, 0.2929, 0.2929)
--[NoImage] l = MixAudio(l_sl, c_lfe, 1.0, 1.0)
--[NoImage] r = MixAudio(r_sr, c_lfe, 1.0, 1.0)
--[NoImage] return MergeChannels(l, r)
--[NoImage] }
-[NoImage] Commandline used: -readtoeof 1 -b 192 - "{0}"
-[Information] [6/25/2010 12:41:31 AM] Encoding started
-[Information] [6/25/2010 12:41:31 AM] Encode thread started
-[Information] [6/25/2010 12:41:31 AM] Avisynth script environment opened
-[Information] [6/25/2010 12:41:31 AM] Script loaded
-[Information] Output Decoder
--[NoImage] Channels: 4
--[NoImage] Bits per sample: 32
--[NoImage] Sample rate: 48000
-[NoImage] Commandline: C:\Program Files (x86)\MeGUI\tools\aften\aften.exe -readtoeof 1 -b 192 - "D:\SomePath\SomeAudio01\SomeAudio01 T82 3_0ch 384Kbps DELAY 0ms_new.ac3"
-[Information] [6/25/2010 12:41:31 AM] Encoder process started
-[NoImage] Output from encoder via stderr
--[NoImage] Aften: A/52 audio encoder
--[NoImage] Version git
--[NoImage] (c) 2006-2009 Justin Ruggles, Prakash Punnoor, et al.
--[NoImage] input format: Microsoft WAVE Floating-point 32-bit little-endian 48000 Hz 4-channel
--[NoImage] output format: 48000 Hz 3/1
--[NoImage] SIMD usage: MMX SSE SSE2 SSE3
--[NoImage] Threads: 2
--[NoImage] progress: 100% | q: 251.7 | bw: 9.0 | bitrate: 192.0 kbps
-[Information] [6/25/2010 12:57:40 AM] Postprocessing
--[Information] Deleting intermediate files
-[Information] [6/25/2010 12:57:40 AM] Job completed

------------------------------------------------------------------------------------------------------------------------

SOURCE02 [Mediainfo]:

Audio
Format : AC-3
Format/Info : Audio Coding 3
Mode extension : CM (complete main)
Duration : 1h 49mn
Bit rate mode : Constant
Bit rate : 384 Kbps
Channel(s) : 4 channels
Channel positions : Front: L C R, Side: C

Sampling rate : 48.0 KHz
Stream size : 301 MiB (100%)

MEGUI AFTEN SETTINGS:

Downmix Multichannel to Stereo
Slow down 25 to 23.976
Normalize to 100%
Bitrate 192

RESULT02 [Mediainfo]:

Audio
Format : AC-3
Format/Info : Audio Coding 3
Mode extension : CM (complete main)
Duration : 1h 54mn
Bit rate mode : Constant
Bit rate : 192 Kbps
Channel(s) : 4 channels
Channel positions : Front: L C R, Side: C

Sampling rate : 48.0 KHz
Stream size : 157 MiB (100%)

MEGUI LOG:

[Information] Log for job6 (audio, SomeAudio02 T82 3_1ch 384Kbps DELAY 0ms.ac3 -> SomeAudio02 T82 3_1ch 384Kbps DELAY 0ms_new.ac3)
-[Information] [6/25/2010 4:13:25 AM] Started handling job
-[Information] [6/25/2010 4:13:25 AM] Preprocessing
-[NoImage] Avisynth script
--[NoImage] LoadPlugin("C:\Program Files (x86)\MeGUI\tools\avisynth_plugin\NicAudio.dll")
--[NoImage] NicAc3Source("D:\SomePath\SomeAudio02\SomeAudio02 T82 3_1ch 384Kbps DELAY 0ms.ac3")
--[NoImage] 6<=Audiochannels(last)?x_stereo80cfe570cad743669b0ad15d5d30a008(ConvertAudioToFloat(last)):last
--[NoImage] SSRC((AudioRate()*1001+480)/960).AssumeSampleRate(AudioRate())
--[NoImage] Normalize()
--[NoImage] return last
--[NoImage] function x_stereo80cfe570cad743669b0ad15d5d30a008(clip a)
--[NoImage] {
--[NoImage] fl = GetChannel(a, 1)
--[NoImage] fr = GetChannel(a, 2)
--[NoImage] c = GetChannel(a, 3)
--[NoImage] lfe = GetChannel(a, 4)
--[NoImage] sl = GetChannel(a, 5)
--[NoImage] sr = GetChannel(a, 6)
--[NoImage] l_sl = MixAudio(fl, sl, 0.2929, 0.2929)
--[NoImage] c_lfe = MixAudio(lfe, c, 0.2071, 0.2071)
--[NoImage] r_sr = MixAudio(fr, sr, 0.2929, 0.2929)
--[NoImage] l = MixAudio(l_sl, c_lfe, 1.0, 1.0)
--[NoImage] r = MixAudio(r_sr, c_lfe, 1.0, 1.0)
--[NoImage] return MergeChannels(l, r)
--[NoImage] }
-[NoImage] Commandline used: -readtoeof 1 -b 192 - "{0}"
-[Information] [6/25/2010 4:13:25 AM] Encoding started
-[Information] [6/25/2010 4:13:25 AM] Encode thread started
-[Information] [6/25/2010 4:13:25 AM] Avisynth script environment opened
-[Information] [6/25/2010 4:13:26 AM] Script loaded
-[Information] Output Decoder
--[NoImage] Channels: 4
--[NoImage] Bits per sample: 32
--[NoImage] Sample rate: 48000
-[NoImage] Commandline: C:\Program Files (x86)\MeGUI\tools\aften\aften.exe -readtoeof 1 -b 192 - "D:\SomePath\SomeAudio02\SomeAudio02 T82 3_1ch 384Kbps DELAY 0ms_new.ac3"
-[Information] [6/25/2010 4:13:26 AM] Encoder process started
-[NoImage] Output from encoder via stderr
--[NoImage] Aften: A/52 audio encoder
--[NoImage] Version git
--[NoImage] (c) 2006-2009 Justin Ruggles, Prakash Punnoor, et al.
--[NoImage] input format: Microsoft WAVE Floating-point 32-bit little-endian 48000 Hz 4-channel
--[NoImage] output format: 48000 Hz 3/1
--[NoImage] SIMD usage: MMX SSE SSE2 SSE3
--[NoImage] Threads: 2
--[NoImage] progress: 100% | q: 260.8 | bw: 9.0 | bitrate: 192.0 kbps
-[Information] [6/25/2010 4:33:39 AM] Postprocessing
--[Information] Deleting intermediate files
-[Information] [6/25/2010 4:33:39 AM] Job completed
Vincent Vega is offline   Reply With Quote
Old 25th June 2010, 12:28   #1182  |  Link
tebasuna51
Moderator
 
tebasuna51's Avatar
 
Join Date: Feb 2005
Location: Spain
Posts: 6,915
Quote:
Originally Posted by Vincent Vega View Post
i've run into the following issue trying to downmix + slow down 3.1 ac3 tracks to 2.0 ac3. i ended up with 3.1 encodes instead of 2.0. tried two similar source files. all relevant info (hopefully) given below. megui updated yesterday to all development updates.
...
--[NoImage] 6<=Audiochannels(last)?x_stereo208cbea08f954eb0bf2ecb10e06f2226(ConvertAudioToFloat(last)):last
...
The downmix only work for ac3 5.1

You can create a specific avs file to downmix others channels configurations, for instance:

Code:
LoadPlugin("C:\Program Files (x86)\MeGUI\tools\avisynth_plugin\NicAudio.dll")
a=NicAc3Source("D:\SomePath\SomeAudio01\SomeAudio01 T82 3_0ch 384Kbps DELAY 0ms.ac3")
flr = GetChannel(a, 1, 2)
fcc = GetChannel(a, 3, 3)
lfe = GetChannel(a, 4, 4)
clf = MixAudio(fcc, lfe, 0.2929, 0.2929)
MixAudio(flr, clf, 0.4142, 1.0)
And input the .avs to Megui instead the ac3 file
Include the slowdown (if you need) and normalize after.

The downmix work fine for the first sample (L,R,C,LFE), with the second (L,R,C,S) you need this mix:
Code:
flr = GetChannel(a, 1, 2)
fcc = GetChannel(a, 3, 3)
lrc = MixAudio(flr, fcc, 0.4142, 0.2929)
sl  = GetChannel(a, 4)
sr  = Amplify(sl, -1.0)
blr = MergeChannels(sl, sr)
MixAudio(lrc, blr, 1.0, 0.2929)
__________________
BeHappy, AviSynth audio transcoder.

Last edited by tebasuna51; 25th June 2010 at 12:44.
tebasuna51 is offline   Reply With Quote
Old 25th June 2010, 12:59   #1183  |  Link
Vincent Vega
Registered User
 
Join Date: Feb 2004
Location: the tiny bubble of Creation
Posts: 189
thanks so much tebasuna51, i'll try that right away.

also i have a totally stupid question: i don't understand the sample02 chan configuration: L C R, Side: C; what is "Side: C"?

Edit: i just tried this second sample in Ac3 filter it shows left, center, right and.. SL (side left), what kinda weird configuration is that? could it be a broken (in some way) audio track?

Last edited by Vincent Vega; 25th June 2010 at 13:04.
Vincent Vega is offline   Reply With Quote
Old 26th June 2010, 03:01   #1184  |  Link
tebasuna51
Moderator
 
tebasuna51's Avatar
 
Join Date: Feb 2005
Location: Spain
Posts: 6,915
Quote:
Originally Posted by Vincent Vega View Post
also i have a totally stupid question: i don't understand the sample02 chan configuration: L C R, Side: C; what is "Side: C"?
A wrong translation:
L C R S (acmod 5 in ac3 header) means:
Left Center Right Surround

equivalent (after remapping) to wav channels
FL FR FC BC
FrontLeft FrontRight FrontCenter BackCenter

If you don't have a Back Center speaker a proper player must play the BC in BL-BR
__________________
BeHappy, AviSynth audio transcoder.
tebasuna51 is offline   Reply With Quote
Old 26th June 2010, 07:03   #1185  |  Link
Vincent Vega
Registered User
 
Join Date: Feb 2004
Location: the tiny bubble of Creation
Posts: 189
so if AC3Filter plays the Surround channel in SL only it's a bug in it? i've always liked valex's decoder so much.. what ds filter would you recommend that can handle such chan config properly?
Vincent Vega is offline   Reply With Quote
Old 26th June 2010, 11:36   #1186  |  Link
tebasuna51
Moderator
 
tebasuna51's Avatar
 
Join Date: Feb 2005
Location: Spain
Posts: 6,915
Quote:
Originally Posted by Vincent Vega View Post
so if AC3Filter plays the Surround channel in SL only it's a bug in it? i've always liked valex's decoder so much.. what ds filter would you recommend that can handle such chan config properly?
I always recommend use ffdshow instead AC3Filter.
With ffdshow you can remap (matrix mixer) the BC to BL-BR with 0.7071 coefficients.
__________________
BeHappy, AviSynth audio transcoder.
tebasuna51 is offline   Reply With Quote
Old 26th June 2010, 11:46   #1187  |  Link
Vincent Vega
Registered User
 
Join Date: Feb 2004
Location: the tiny bubble of Creation
Posts: 189
ok thanks for your time man.
Vincent Vega is offline   Reply With Quote
Old 29th June 2010, 14:54   #1188  |  Link
Sharktooth
Mr. Sandman
 
Sharktooth's Avatar
 
Join Date: Sep 2003
Location: Haddonfield, IL
Posts: 11,768
nice to see Zathor worked on MeGUI while i was away
Sharktooth is offline   Reply With Quote
Old 29th June 2010, 14:58   #1189  |  Link
Zathor
Registered User
 
Join Date: Nov 2009
Posts: 2,405
Quote:
Originally Posted by Sharktooth View Post
nice to see Zathor worked on MeGUI while i was away
Welcome back!
Zathor is offline   Reply With Quote
Old 29th June 2010, 15:01   #1190  |  Link
Sharktooth
Mr. Sandman
 
Sharktooth's Avatar
 
Join Date: Sep 2003
Location: Haddonfield, IL
Posts: 11,768
it seems you did a huge work zathor. thank you.
i guess i have to study the latest sources almost from scratch.
feel free to contact me and, obviously, give me some days and i will be back developing megui
Sharktooth is offline   Reply With Quote
Old 30th June 2010, 08:00   #1191  |  Link
JoeH
Registered User
 
Join Date: Jan 2009
Posts: 251
Good to see you back Sharktooth.
JoeH is offline   Reply With Quote
Old 30th June 2010, 11:23   #1192  |  Link
Taurus
Registered User
 
Taurus's Avatar
 
Join Date: Mar 2002
Location: Krautland
Posts: 903
A warm welcome back Mr. Shark.
Where have you been so long?
So maybe Zathor & Shark = the new dreamteam?
I really appreciate your work on MeGui
Taurus is offline   Reply With Quote
Old 30th June 2010, 11:36   #1193  |  Link
flebber
Practising Schemer
 
Join Date: Feb 2008
Location: Newcastle, Australia
Posts: 791
Has anyone else had trouble in megui with Warpsharp.dll and toon.dll.

I removed both dll's and my megui encodes perfectly. I replaced warpsharp.dll with the version from warpenterprises and it stopped the error.

But I re added toon.dll to my avisynth plugins and it cannot complete an encode with the toon.dll being used. Does anyone have a light toon/anime dll that plays well with megui. I haven't had to encode much anime previously.
flebber is offline   Reply With Quote
Old 30th June 2010, 13:22   #1194  |  Link
Sharktooth
Mr. Sandman
 
Sharktooth's Avatar
 
Join Date: Sep 2003
Location: Haddonfield, IL
Posts: 11,768
@flebber: it seems an avisynth problem more than a megui problem... try to find newer version of the toon plugin.

@Taurus: thanks, i had "troubles" of all kinds...

@JoeH: thanks
Sharktooth is offline   Reply With Quote
Old 30th June 2010, 13:49   #1195  |  Link
quantum5uicid3
Registered User
 
Join Date: Oct 2009
Posts: 176
changes to --level and --profile in their new location do not update the commandline below until after you close and save the x264 configuration dialog. and i still think they should be basic x264 settings.

edit
and i dont think the threads checkbox or field is working. nvm i think it's just doing the same thing as level and profile.

Last edited by quantum5uicid3; 30th June 2010 at 13:52.
quantum5uicid3 is offline   Reply With Quote
Old 30th June 2010, 13:52   #1196  |  Link
Sharktooth
Mr. Sandman
 
Sharktooth's Avatar
 
Join Date: Sep 2003
Location: Haddonfield, IL
Posts: 11,768
i think i read somewhere zathor is working on the x264 configuration window.
Sharktooth is offline   Reply With Quote
Old 30th June 2010, 20:57   #1197  |  Link
saint-francis
too much lurking
 
saint-francis's Avatar
 
Join Date: Sep 2006
Location: Valhalla
Posts: 668
Sharktooth, I am very glad to see you back!
I hope you health is up to speck and that all else is well with you.
saint-francis is offline   Reply With Quote
Old 1st July 2010, 15:37   #1198  |  Link
quantum5uicid3
Registered User
 
Join Date: Oct 2009
Posts: 176
some fixes to profiles. ***for latest x264***
1. added "--open-gop coded" to bluray and avchd presets.
2. force disabled bframes and soft enabled CABAC for iphone profile.
3. force disabled b-pyramid and soft enabled CABAC for psp profile.
3. and removed redundency of setting vbv to 10000 when level 3 is already set. *correction*

http://www.mediafire.com/?zgr5wz25iim
md5: 75f2898b57f84b501ab92b2d0c31161a

addition
i packaged ffm2-312 for the update server too just in case you hadn't had time. it seems stable.

http://www.mediafire.com/?qwgnnyjmmzc
md5: e8a202a143774340d7ee869ea52694f3

edit2:
wasnt thinking and disabled bframes completely on psp

also, the motorola droid supports --level 3.1 --profile baseline --ref 5 @ 856x480

Last edited by quantum5uicid3; 2nd July 2010 at 05:16.
quantum5uicid3 is offline   Reply With Quote
Old 1st July 2010, 17:40   #1199  |  Link
Octo-puss
Registered User
 
Join Date: Jan 2008
Posts: 571
Whoa, Sharktooth is back! Glad to see you! Has your health improved then??
Octo-puss is offline   Reply With Quote
Old 1st July 2010, 18:48   #1200  |  Link
Sharktooth
Mr. Sandman
 
Sharktooth's Avatar
 
Join Date: Sep 2003
Location: Haddonfield, IL
Posts: 11,768
im pretty good and recovering well but my health is OT here
however, thanks
Sharktooth is offline   Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 10:14.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.