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 > General > Audio encoding

Reply
 
Thread Tools Search this Thread Display Modes
Old 23rd January 2017, 18:09   #1241  |  Link
GMJCZP
Registered User
 
GMJCZP's Avatar
 
Join Date: Apr 2010
Location: I have a statue in Hakodate, Japan
Posts: 744
Thanks, I will analyze your reply, thank you very much.
__________________
By law and justice!

GMJCZP's Arsenal
GMJCZP is offline   Reply With Quote
Old 26th February 2017, 20:07   #1242  |  Link
jones1913
random user
 
Join Date: May 2014
Location: #Neuland
Posts: 116
I've just packed a new release and wrote some lines to the wiki.

Have fun!
__________________
BeHappy Audio Transcoder > <Doom9 forum> <Gleitz forum> <GitHub>
MP4.tool GUI for MP4Box & L-SMASH muxer > https://www.mediafire.com/folder/3i6y6cbkyhblm/MP4.tool
jones1913 is offline   Reply With Quote
Old 26th February 2017, 21:41   #1243  |  Link
LigH
German doom9/Gleitz SuMo
 
LigH's Avatar
 
Join Date: Oct 2001
Location: Germany, rural Altmark
Posts: 6,779


I will.
__________________

New German Gleitz board
MediaFire: x264 | x265 | VPx | AOM | Xvid
LigH is offline   Reply With Quote
Old 27th February 2017, 00:36   #1244  |  Link
tebasuna51
Moderator
 
tebasuna51's Avatar
 
Join Date: Feb 2005
Location: Spain
Posts: 6,914
Thanks jones1913.
__________________
BeHappy, AviSynth audio transcoder.
tebasuna51 is offline   Reply With Quote
Old 16th June 2017, 16:43   #1245  |  Link
Richard1485
Guest
 
Posts: n/a
Is it possible to build this nightmode downmix into BeHappy but to normalize the matrix to prevent clipping?

Quote:
Originally Posted by robertcollier4 View Post

This "nightmode" preset uses the following channel matrix:
FL' = FC + 0.30*FL + 0.30*BL
FR' = FC + 0.30*FR + 0.30*BR
I'm not sure how to normalize the matrix myself. It looks as if it should be something like...

FL'= 0.2929 + 0.1875 + 0.1875
FR'= 0.2929 + 0.1875 + 0.1875

..but the total is significantly below 1.0. (I know that the total doesn't have to be exactly 1.0, but should it be this much less?)
  Reply With Quote
Old 16th June 2017, 21:39   #1246  |  Link
tebasuna51
Moderator
 
tebasuna51's Avatar
 
Join Date: Feb 2005
Location: Spain
Posts: 6,914
In FL' = FC + 0.30*FL + 0.30*BL

the max value is 1.6 then the normalized version is:

FL' = (1/1.6)*FC + (0.30/1.6)*FL + (0.30/1.6)*BL = 0.625*FC + 0.1875*FL + 0.1875*BL
__________________
BeHappy, AviSynth audio transcoder.
tebasuna51 is offline   Reply With Quote
Old 17th June 2017, 02:00   #1247  |  Link
Richard1485
Guest
 
Posts: n/a
Thank you! For some reason, I divided the value for FC by the wrong number. I knew something didn't look right. Would this work?

Code:
flr = GetChannel(a, 1, 2)
fcc = GetChannel(a, 3, 3)
lrc = MixAudio(flr, fcc, 0.1875, 0.625)
blr = GetChannel(a, 5, 6)
return MixAudio(lrc, blr, 1.0, 0.1875)
  Reply With Quote
Old 17th June 2017, 10:52   #1248  |  Link
tebasuna51
Moderator
 
tebasuna51's Avatar
 
Join Date: Feb 2005
Location: Spain
Posts: 6,914
Yes, this is the avs code for that downmix.
__________________
BeHappy, AviSynth audio transcoder.
tebasuna51 is offline   Reply With Quote
Old 18th June 2017, 17:19   #1249  |  Link
Richard1485
Guest
 
Posts: n/a
^ Thanks very much! If it would possible to build it into BeHappy at some point, that would be most useful. :-)
  Reply With Quote
Old 18th June 2017, 19:51   #1250  |  Link
tebasuna51
Moderator
 
tebasuna51's Avatar
 
Join Date: Feb 2005
Location: Spain
Posts: 6,914
Quote:
Originally Posted by Richard1485 View Post
^ Thanks very much! If it would possible to build it into BeHappy at some point, that would be most useful. :-)
Done.

Replace ...Behappy\extensions\d_DownMix.ext with the attached one.

You can edit d_DownMix.ext and add your mixes.
Attached Files
File Type: 7z d_DownMix.7z (1.1 KB, 49 views)
__________________
BeHappy, AviSynth audio transcoder.
tebasuna51 is offline   Reply With Quote
Old 18th June 2017, 19:56   #1251  |  Link
Richard1485
Guest
 
Posts: n/a
¡Eres muy trabajador!

Thanks for your help and hard work!
  Reply With Quote
Old 29th June 2017, 22:28   #1252  |  Link
siella
Registered User
 
siella's Avatar
 
Join Date: Mar 2007
Location: Turkey
Posts: 66
I changed url ext. of dts also upmix ext. doesnt have <LoadAvsPlugin> parameter for soxfilter.
I made stereo to 2.1 (lfe) upmix dsp plugin. only dts and ac3 encode give you 2.1 audio. when you dts encode you have to choose channel conf. (L,R) and click to Add lfe channel

Thanks for your effort, jones1913
Attached Files
File Type: zip d_UpMix.zip (6.3 KB, 56 views)
File Type: zip e_FFdcaenc.zip (12.7 KB, 54 views)
File Type: zip d_UpMixSt2.1.zip (566 Bytes, 48 views)
__________________
Behappy
BePack.v3.3BeHappy,BeSweet,BeLight,BeSplit,BeSliced,BdAC) with last plugin, encoder and extensions.
Avisynth Movie Screenshot, thumbnails creator

Last edited by siella; 30th June 2017 at 02:28.
siella is offline   Reply With Quote
Old 30th June 2017, 12:50   #1253  |  Link
tebasuna51
Moderator
 
tebasuna51's Avatar
 
Join Date: Feb 2005
Location: Spain
Posts: 6,914
Quote:
Originally Posted by siella View Post
I changed url ext. of dts
Thanks, I updated the link also in Doom9 thread then the e_FFdcaenc.ext update is not necessary.

Quote:
also upmix ext. doesnt have <LoadAvsPlugin> parameter for soxfilter.
Thanks, before only work if soxfilter.dll was in autoload plugins folder.

Quote:
I made stereo to 2.1 (lfe) upmix dsp plugin. only dts and ac3 encode give you 2.1 audio. when you dts encode you have to choose channel conf. (L,R) and click to Add lfe channel
I can't recommend use this upmix function:

Code:
l = GetLeftChannel(a)
r = GetRightChannel(a)
lfe = ConvertToMono(a).SoxFilter("lowpass 120","vol -0.5")
return MergeChannels(l,r,lfe)
Any audio player with 2.1 speakers do this job better with 2.0 input, because:

1) Make the lowpass cut (here 120 Hz) with the appropiate frecuency to the attached speakers.

2) Low frecuencies aren't eliminated from FL,FR and the audio player still extract them to subwoofer adding to LFE content.
That addition can cause a over-mix or a sub-mix if there phase shift's in the low pass sox filter.

Please don't mistake LFE channel with subwoofer speaker.
Any 2.1 audio player send to subwoofer the low frequencies present in all channels.

Is always a bad idea create a LFE channels if not present in source.
Never make 2.0 -> 2.1 or 5.0 -> 5.1
If you need 5.1 for some compatibility create a empty LFE.
__________________
BeHappy, AviSynth audio transcoder.
tebasuna51 is offline   Reply With Quote
Old 2nd July 2017, 23:32   #1254  |  Link
siella
Registered User
 
siella's Avatar
 
Join Date: Mar 2007
Location: Turkey
Posts: 66
thank you for information
do you recommend convert 5.1 to 2.1 with using orginal lfe channel ?
You know people doesnt use 5.1 system anymore, usually use soundbar.

Max bitrate of eac3 is variable for each sample rate so i updated eac3 ext.
Attached Files
File Type: zip e_FFmpeg.zip (12.2 KB, 52 views)
__________________
Behappy
BePack.v3.3BeHappy,BeSweet,BeLight,BeSplit,BeSliced,BdAC) with last plugin, encoder and extensions.
Avisynth Movie Screenshot, thumbnails creator

Last edited by siella; 3rd July 2017 at 02:48.
siella is offline   Reply With Quote
Old 3rd July 2017, 07:18   #1255  |  Link
LigH
German doom9/Gleitz SuMo
 
LigH's Avatar
 
Join Date: Oct 2001
Location: Germany, rural Altmark
Posts: 6,779
I am no expert in this regard ... but for movies, I would possibly keep the LFE (in case it contains extra cinematic effects), and convert the full range audio preferably with DPL-II (IMHO it sounds nice even with stereo speakers). Personal preference.
__________________

New German Gleitz board
MediaFire: x264 | x265 | VPx | AOM | Xvid
LigH is offline   Reply With Quote
Old 3rd July 2017, 11:23   #1256  |  Link
tebasuna51
Moderator
 
tebasuna51's Avatar
 
Join Date: Feb 2005
Location: Spain
Posts: 6,914
Quote:
Originally Posted by siella View Post
do you recommend convert 5.1 to 2.1 with using orginal lfe channel ?
You know people doesnt use 5.1 system anymore, usually use soundbar.
Downmix to save space disk is now not necesary at all, then the downmix is recommended to adecuate the input audio to the audio player:

1) Downmix to stereo 2.0, even with special mix prioritizing Center channel.
Recoded to AAC (or AC3 for very old players)
- To play with stereo TV's, old stereo only players or streaming.
- Is not recommended use the LFE channel in the mix (but you can try it)

2) Downmix to DPL 2.0 only recommended for old audio players without support for 5.1 input but with DPL decoder and surround speakers.
Recoded to 2.0 AC3 dpl marked.
Dolby do not recommend use the LFE channel in the mix (but you can try it)

3) Maybe a downmix 5.1 -> 2.1 for an audio system 2.1 speakers can work fine.
I never test that, but mix front and surround channels can't be bad for low frecuencies (surround channels don't have them normally).
BTW not all audio systems 2.1 have spdif input to support AC3 2.1 (or HDMI to support PCM 2.1), most of them have only 2.0 analog input and a mix 2.1 is unusable.

But I can't recommend a downmix for a soundbar than stand for a 5.1 (at least) input. Try to do their job before can be a problem, let apply their specific downmix.
__________________
BeHappy, AviSynth audio transcoder.

Last edited by tebasuna51; 3rd July 2017 at 11:57. Reason: add info
tebasuna51 is offline   Reply With Quote
Old 3rd July 2017, 17:08   #1257  |  Link
siella
Registered User
 
siella's Avatar
 
Join Date: Mar 2007
Location: Turkey
Posts: 66
Well actually i have plan making other language of movies 2.0 channels to 2.1 using lfe from 5.1 audio orginal language of movies. I have soundbar and i ll test if i find spare time
__________________
Behappy
BePack.v3.3BeHappy,BeSweet,BeLight,BeSplit,BeSliced,BdAC) with last plugin, encoder and extensions.
Avisynth Movie Screenshot, thumbnails creator

Last edited by siella; 3rd July 2017 at 17:13.
siella is offline   Reply With Quote
Old 3rd July 2017, 17:38   #1258  |  Link
LigH
German doom9/Gleitz SuMo
 
LigH's Avatar
 
Join Date: Oct 2001
Location: Germany, rural Altmark
Posts: 6,779
Every time someone has the great idea to mix channels from different audio streams into one, I can feel Agrajag crying: "Oh no, not again!"
__________________

New German Gleitz board
MediaFire: x264 | x265 | VPx | AOM | Xvid
LigH is offline   Reply With Quote
Old 3rd July 2017, 19:29   #1259  |  Link
siella
Registered User
 
siella's Avatar
 
Join Date: Mar 2007
Location: Turkey
Posts: 66
I think it will be fantasy
__________________
Behappy
BePack.v3.3BeHappy,BeSweet,BeLight,BeSplit,BeSliced,BdAC) with last plugin, encoder and extensions.
Avisynth Movie Screenshot, thumbnails creator
siella is offline   Reply With Quote
Old 21st December 2017, 13:36   #1260  |  Link
eca2424
Registered User
 
Join Date: Nov 2015
Posts: 3
BeHappy

Quote:
Originally Posted by siella View Post
I think it will be fantasy
Thanks for BePack Tools sir. That is most useful for me. I will Follow the updates for BeHappy and BePack. :-)
eca2424 is offline   Reply With Quote
Reply

Tags
behappy

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 08:59.


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