Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Upsampling MQA files to original resolution with sox
03-07-2017, 19:55
Post: #1
Upsampling MQA files to original resolution with sox
Can you do what's proposed in this CA threat with MinimStreamer?

https://www.computeraudiophile.com/forum...esolution/

Quote:
general usage:
sox -S input.mqa.flac output.flac -vsM 352800

so with the above MQA file:
sox -S 2L-087_06_stereo_DXD_FLAC.mqa.flac MQA_upsampled.flac rate -vsM 352800

Now playback

MQA_upsampled.flac
2L-087_stereo-DXD_06.flac

********
I already us SOXR for transcoding. If I understand the post correctly you could play decode and play MQA files this way.

Or am I mistaken? ... If so, please feel free to remove this post.
Find all posts by this user
Quote this message in a reply
04-07-2017, 02:20
Post: #2
RE: Upsampling MQA files to original resolution with sox
I think this would work using convOut in stream.options to pass the necessary upsampling parameters to libsoxr but it will be a few days before I can try it.
Find all posts by this user
Quote this message in a reply
04-07-2017, 19:59
Post: #3
RE: Upsampling MQA files to original resolution with sox
(04-07-2017 02:20)simoncn Wrote:  I think this would work using convOut in stream.options to pass the necessary upsampling parameters to libsoxr but it will be a few days before I can try it.

That would be great! Thank you!
Find all posts by this user
Quote this message in a reply
04-07-2017, 21:31
Post: #4
RE: Upsampling MQA files to original resolution with sox
I haven't been able to find a way to get ffmpeg to pass the -vsM options (or equivalent) to the libsoxr library. Any suggestions would be appreciated.
Find all posts by this user
Quote this message in a reply
Today, 06:09
Post: #5
RE: Upsampling MQA files to original resolution with sox
(04-07-2017 21:31)simoncn Wrote:  I haven't been able to find a way to get ffmpeg to pass the -vsM options (or equivalent) to the libsoxr library. Any suggestions would be appreciated.
I believe computeraudiophile.com has come up with some simple changes to ffmpeg, but would require compiling a forked version. I'm not interested in mqa but in using sox, convolving, and some custom resampling programs, though mqa could be easily handled with sox. I created a ffmpeg script that parses the file name and passes it to sox. Unfortunately it appears to play, but without sound. I'm not sure what minimstreamer is expecting back from sox, raw format? Does this have the potential to work, before I pursue it too far?

FILE_NAME="$(echo "$@" | awk -F'-i | -vn' '{print $2}')"
sox -q -D "${FILE_NAME}" -t raw -r 192000 -e signed-integer -c 2 -b 24 --endian little -

Thanks again,
Mike
Find all posts by this user
Quote this message in a reply
Post Reply 


Forum Jump:


User(s) browsing this thread: 1 Guest(s)