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. |
|
|
Thread Tools | Search this Thread | Display Modes |
8th November 2019, 00:51 | #201 | Link |
...?
Join Date: Nov 2005
Location: Florida
Posts: 1,420
|
Ah, here it is in opusenc's manpage:
Code:
--serial n Force use of a specific stream serial number, rather than one that is randomly generated. This is used to make the encoder deterministic for testing and is not generally recommended. |
8th November 2019, 01:04 | #202 | Link | |
Registered User
Join Date: Jan 2019
Location: Russia
Posts: 105
|
Quote:
|
|
23rd February 2021, 19:37 | #204 | Link |
Pig on the wing
Join Date: Mar 2002
Location: Finland
Posts: 5,733
|
What is the proper way to re-encode a 3/1-channel track with Opus? At least Mediainfo thinks Opus maps two channels to the rear while the proper order is L R C Cb.
__________________
And if the band you're in starts playing different tunes I'll see you on the dark side of the Moon... |
23rd February 2021, 20:47 | #205 | Link | |
Moderator
Join Date: Feb 2005
Location: Spain
Posts: 6,915
|
Seems opus only support these channels mapping:
Quote:
__________________
BeHappy, AviSynth audio transcoder. |
|
24th February 2021, 01:22 | #206 | Link | |
SuperVirus
Join Date: Jun 2012
Location: Antarctic Japan
Posts: 1,351
|
Quote:
if you want PROPER multichannel encoding just go with AC3, DTS, MLP /TrueHD and DTS-HD. |
|
24th February 2021, 06:06 | #208 | Link |
Pig on the wing
Join Date: Mar 2002
Location: Finland
Posts: 5,733
|
Yes, that's what I thought I'd have to do if Opus couldn't work with the original order. I recall that the eac3to thread had at least one case like this, just have to dig the magic Avisynth script from there
__________________
And if the band you're in starts playing different tunes I'll see you on the dark side of the Moon... |
24th February 2021, 11:57 | #209 | Link |
Moderator
Join Date: Feb 2005
Location: Spain
Posts: 6,915
|
You can use:
ffmpeg -i input310 -af "pan=5.0|FL=FL|FR=FR|FC=FC|BL=0.707BC|BR=0.707BC" -ab 192k output50.opus But warning, MediaInfo v20.09 have a bug and inform output50.opus like: Channel layout : L R Lb Rb LFE a inexistent opus channel layout But after decoded output50.opus by ffmpeg or opusdec have the correct channel mapping: Channel layout : L R C Lb Rb
__________________
BeHappy, AviSynth audio transcoder. |
24th February 2021, 13:19 | #210 | Link | |
Pig on the wing
Join Date: Mar 2002
Location: Finland
Posts: 5,733
|
Quote:
__________________
And if the band you're in starts playing different tunes I'll see you on the dark side of the Moon... |
|
24th February 2021, 16:15 | #211 | Link |
Guest
Posts: n/a
|
Tebasuna has already provided an easy solution with ffmpeg, but if anyone wants to go from 4.0 to 5.0 with AviSynth:
Code:
#double back channel fl=WavSource("l.wav") fr=WavSource("r.wav") c=WavSource("c.wav") bc=WavSource("bc.wav").Amplify(0.707)# preserve global volume MergeChannels(fl,fr,c,bc,bc) Last edited by Richard1485; 19th March 2021 at 13:35. Reason: added Amplify(0.707) |
25th February 2021, 11:19 | #213 | Link | |
Moderator
Join Date: Feb 2005
Location: Spain
Posts: 6,915
|
In order to obtain a correct channel mapping from AviSynth I recommend use BeHappy with this .avs:
Quote:
Now the AviSynth output is a WAVE_FORMAT_EXTENSIBLE with the correct channelmask and must be encoded correctly by any encoder compatible (ffmpeg,qaac,opus,flac,...) [EDIT] If you don't want install BeHappy you can try this command line: wavi INPUT310.avs - /M 55 | opusenc --ignorelength --bitrate 192 - output50.opus I attach the last Chikuzen wavi encode There are also rewavi with similar sintax: rewavi INPUT310.avs - -x 55 | opusenc --ignorelength --bitrate 192 - output50.opus Out of BeHappy the default AviSynth output is 16 bits, if you want more precission you can add to .avs the line: global OPT_AllowFloatAudio=True And also Avs2pipemod Avs2pipemod INPUT310.avs -extwav=float | opusenc --ignorelength --bitrate 192 - output50.opus It can work here because the default channel mask for 5 channels is 55 but Avs2pipemod can't supply the desired channel mask like wavi/rewavi For big files maybe the wavi-AviSynth 32 bits can crash.
__________________
BeHappy, AviSynth audio transcoder. Last edited by tebasuna51; 25th February 2021 at 14:18. Reason: Add info |
|
|
|