09-04-2018, 01:43 AM | #1 |
Human being with feelings
Join Date: Nov 2008
Location: Stockholm Sweden
Posts: 23
|
Request - How to create omnitone splitted Ambisonic files
I/We have created a BLE headtracker (HW, Firmware and SW interface) to use with omnitone:
https://github.com/bossesand/OHTI As browsers appearently cannot read more than 8 channel audio files. I need assistance to find a simple way to automate a split of Second order or Third order ambix files into 2 files, named like this if the original example file is a 16 or 9 channel file var exampleSoundPathList = [ 'resources/3oa_example_ch0-ch7.wav', 'resources/3oa_example_ch8-ch15.wav' var exampleSoundPathList = [ 'resources/3oa_example_ch0-ch7.wav', 'resources/3oa_example_ch8-ch9.wav' The files can be wav, Opus/ogg or WebM. Best Regards Bo-Erik |
09-04-2018, 04:48 AM | #2 |
Human being with feelings
Join Date: Jul 2017
Posts: 24
|
You can automate a file/channel splitting quite easily. You only have to choose a program / platform / product.
There are some which come to mind: - Matlab (easiest to implement, but proprietary...) - Python (easy to implement, free, multi-platform, executable possible) - JUCE (not so easy for beginners, multi-platform, executable possible, GUI (drag&drop) / command line tool / ..., other handy features like resampling already exist). Btw: looking forward to your project! I am one of the developer of the MrHeadTracker project (https://git.iem.at/DIY/MrHeadTracker) and I am currently thinking about doing some kind of redesign (especially getting rid of the Serial2USB adapter by using the MIDIUSB library and a suitable MCU)! |
09-04-2018, 06:00 PM | #3 |
Human being with feelings
Join Date: Feb 2014
Posts: 240
|
I would suggest SoX instead (free)
|
09-10-2018, 03:43 AM | #4 |
Human being with feelings
Join Date: Nov 2008
Location: Stockholm Sweden
Posts: 23
|
Sadly SOX do not support Opus, And I want that.
I found one free linux tool that stated it can split opus, but beeing as old as I am I have now forgotten what it was... But will look for it again. I manually I can do Reaper / consolidate - export Tracks in to Opus. That is by selecting the tracks I want in one file and export it. If I Render a 8 track opus or Vorbis file I get lowpass filtering of the 8th track :-) Bo-Erik |
09-10-2018, 03:53 PM | #5 | ||
Human being with feelings
Join Date: Feb 2014
Posts: 240
|
Quote:
Quote:
Last edited by junh1024; 09-10-2018 at 04:43 PM. |
||
09-11-2018, 07:29 AM | #6 |
Human being with feelings
Join Date: Apr 2009
Location: Berlin, Germany
Posts: 1,248
|
I think this would work for the 3rd order version (untested) using sox and opusenc
Code:
sox 3oa_example.wav 3oa_example_ch0-ch7.wav remix 1 2 3 4 5 6 7 8 sox 3oa_example.wav 3oa_example_ch8-ch15.wav remix 9 10 11 12 13 14 15 16 opusenc 3oa_example_ch0-ch7.wav 3oa_example_ch0-ch7.ogg opusenc 3oa_example_ch8-ch15.wav 3oa_example_ch8-ch15.ogg |
09-23-2018, 08:39 AM | #7 |
Human being with feelings
Join Date: Nov 2008
Location: Stockholm Sweden
Posts: 23
|
Than you for your efforts to answer my question.
I have now in this late stage found out that this is no more an issue if the correct way to open the files are used. In JavaScript this is to use audioElement as the method to choose files to play. With audioElement I have been able to read and decode ambisonic 4, 9 and 16 channel OPUS files in Chrome to binaural. So the need do not longer exist for me :-). bo-Erik Sandholm Stockholm |
Thread Tools | |
Display Modes | |
|
|