MinimServer Forum

Full Version: Transcoding only multichannel dsf files
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2 3
Hi Simon,

Would it be possible to restrict dsf:wav24;176 transcoding only to multichannel files, and if so, how?

Thanks,
Jacob
You can enable selective transcoding by stream type, sample rate and bit depth but not by the number of channels.
Thank you, Simon. Either way, I am chuffed about discovering the transcoding option and that it works at all. I have a related question, so I will follow-up here.

In my setup I have a universal disc player which correctly recognizes 4- and 5-channel files, both from discs and streaming over home network. My AVR correctly recognizes 5 channel files, but sees 4 channel ones as stereo. This is a common issue, so SACD manufacturers typically add silent channels to multichannel mixes to make the files 5.0 or 5.1. I have some 4.0 SACDs encoded as 5.0 with silent centre channel. I can play them just fine from disc, but when streaming dsf files ripped from them with transcoding to wav, I am getting stereo only. Could it be that transcoding drops silent channels on the fly? If so, is there any way to prevent this from happening.
MinimStreamer uses FFmpeg for transcoding, so this is controlled by how FFmpeg handles this situation. If FFmpeg is dropping the silent channel by default, there might be an FFmpeg option to preserve the silent channel. You can specify FFmpeg options in MinimStreamer using the stream.options property.

From a quick look at the FFmpeg documentation, it seems the -map_channel option (see this section) might enable you to control this. The description of -map_channel mentions using "-l" to map a muted channel.

I have no experience with multichannel audio and no equipment that can play these files, so it would be difficult for me to try experiments to find the correct -map_channel setting for your situation. I hope this pointer will enable you to make some progress.
Thank you, Simon. From the examples it seems like it's about muting an existing non-silent channel. Either way, the chances of me succeeding in setting it up are too slim to pursue this, so I will be using flac conversions for these files.
It is possible the following might work:

ffmpeg -i INPUT -map_channel 0.0.0 -map_channel 0.0.1? -map_channel 0.0.2? -map_channel 0.0.3? -map_channel 0.0.4? OUTPUT

assuming FFmpeg recognizes five channels in the input, or perhaps

ffmpeg -i INPUT -map_channel 0.0.0 -map_channel 0.0.1? -1 -map_channel 0.0.2? -map_channel 0.0.3? OUTPUT


if FFmpeg only recognizes four channels in the input.

In stream.options, these would be:

convOut=-map_channel 0.0.0 -map_channel 0.0.1? -map_channel 0.0.2? -map_channel 0.0.3? -map_channel 0.0.4?

convOut=-map_channel 0.0.0 -map_channel 0.0.1? -map_channel -1 -map_channel 0.0.2? -map_channel 0.0.3?
Thank you very much, Simon. I understand that this is more of a me-problem with ffmpeg than anything else, and I do appreciate the follow up.

Unfortunately, I am getting an error message: 'convOut' option incorrect for converter; correct highlighted value and retry. I googled around, found your advice on installing ffmpeg from the SynoCommunity, did so, restarted MinimServer, but to no avail.
After installing the ffmpeg package, you need to set the MinimStreamer stream.converter property to /var/packages/ffmpeg/target/bin/ffmpeg. After you have done this, the settings I posted should work. I have confirmed this on my DS118.
Thank you, Simon. I got the ffmpeg package to work, but unfortunately the map_channel solution does nothing to solve the issue and adds some white noise.

I suspect that the problem may lie in not respecting the channel layout during transcoding or inability to read it correctly from dsf files. LFE needs to be skipped with 5 channel files. I think it may not be, which would make 5 channel files get transcoded to 4.1 with the side/back right speaker getting omitted. In support of this, 5.1 dsf files with silent centre and LFE get transcoded just fine.

I tried experimenting with the channelmap and pan options, always ending up with a syntax error. I would be grateful if you could please provide some pointers on how to incorporate these in Minimstreamer.
Please post the option strings that gave a syntax error. Any option string containing a comma needs to be enclosed in double-quote characters, as described in this section.
Pages: 1 2 3
Reference URL's