How to enable "production quality with extra precision"?

OSS specific Linux discussion (x86/amd64)

Moderators: hannu, dev, cesium

tarik2cyprian
Member
Posts: 28
Joined: Thu Jan 24, 2013 7:04 pm

Re: How to enable "production quality with extra precision"?

Postby tarik2cyprian » Thu Jan 24, 2013 7:09 pm

How would I enable "production quality with extra precision" on ubuntu 12.04? I understand that you have it working on Arch.

I only have fast, high and off in the v-mix under the most recent Oss4.

igorzwx
Known Member
Posts: 1258
Joined: Sun Jun 28, 2009 9:31 pm

Re: How to enable "production quality with extra precision"?

Postby igorzwx » Thu Jan 24, 2013 9:04 pm

tarik2cyprian wrote:How would I enable "production quality with extra precision" on ubuntu 12.04? I understand that you have it working on Arch.

I only have fast, high and off in the v-mix under the most recent Oss4.


The "production quality with extra precision" somehow disappeared, and it was said that it did not exist.
What is available is the Russian "exact scientific resampler" (you may find it in this thread).

Although the "production quality with extra precision" ceased to exist, the crappy "production quality" can still be enabled. This was already explained by Cesium in this thread.
You may also want to read a manual on how to compile OSS4 from Mercurial https://help.ubuntu.com/community/OpenS ... rom_Source

In a word, it is very probable that you do not need that "production quality". What is your "ossinfo -v9"?

tarik2cyprian
Member
Posts: 28
Joined: Thu Jan 24, 2013 7:04 pm

Re: How to enable "production quality with extra precision"?

Postby tarik2cyprian » Thu Jan 24, 2013 11:34 pm

Thanks igor for the fast response. My ossinfo -v9 is below.

Code: Select all

Version info: OSS 4.2 (b 2006/201301242311) (0x00040100) OSS_HG
Hg revision: changeset: 948:233e1cedf15a, tag: tip, date: Thu Mar 01 21:05:56 2012 +0200, summary: Fixes for FreeBSD
Platform: Linux/x86_64 3.2.0-36-lowlatency #36-Ubuntu SMP PREEMPT Sat Jan 12 15:05:04 UTC 2013 (LANBOX-HT)

Number of audio devices:   2
Number of audio engines:   7
Number of MIDI devices:      1
Number of mixer devices:   2


Device objects
 0: osscore0 OSS core services
 1: oss_cmi878x0 Asus Xonar Essence ST (AV100) interrupts=7924 (7927)
 2: oss_usb0 USB audio core services

MIDI devices (/dev/midi*)
0: CMI8788 UART (MIDI port 1 of device object 1)
    Device file /dev/oss/oss_cmi878x0/mid0, Legacy device /dev/midi00
    Modes: IN/OUT , Available for use
    Caps:
    Minimum latency: Not indicated
    Device handle: PCI835d1043-0000:04:06.0-md01


Mixer devices
 0: CMedia CMI8788 (Mixer 0 of device object 1)
    Device file /dev/oss/oss_cmi878x0/mix0, Legacy device /dev/mixer0
    Priority: 10
    Caps:
    Device handle: PCI835d1043-0000:04:06.0-mx01
    Device priority: 10

 1: AC97 Input Mixer (CMI9780) (Mixer 1 of device object 1)
    Device file /dev/oss/oss_cmi878x0/mix1, Legacy device /dev/mixer1
    Priority: 2
    Caps:
    Device handle: PCI835d1043-0000:04:06.0-mx02
    Device priority: 2


Audio devices
Asus Xonar Essence ST (AV100) (MultiChannel)  /dev/oss/oss_cmi878x0/pcm0  (device index 0)
    Legacy device /dev/dsp0
    Caps: DUPLEX TRIGGER MMAP
    Modes: IN/OUT
      Engine      1: 0/Asus Xonar Essence ST (AV100) (MultiChannel)
                     Available for use
      Engine      2: 1/Asus Xonar Essence ST (AV100) (MultiChannel) (vmix)
                     Available for use
      Engine      3: 2/Asus Xonar Essence ST (AV100) (MultiChannel) (vmix)
                     Available for use
      Engine      4: 3/Asus Xonar Essence ST (AV100) (MultiChannel) (vmix)
                     Available for use
      Engine      5: 4/Asus Xonar Essence ST (AV100) (MultiChannel) (vmix)
                     Available for use
      Engine      6: 5/Asus Xonar Essence ST (AV100) (Multichannel)
                     Available for use
    Input formats (0x00001010):
      AFMT_S16_LE   - 16 bit signed little endian
      AFMT_S32_LE   - 32 bit signed little endian
    Output formats (0x00001010):
      AFMT_S16_LE   - 16 bit signed little endian
      AFMT_S32_LE   - 32 bit signed little endian
    Device handle: PCI835d1043-0000:04:06.0-au01
    Related mixer dev: -1
    Sample rate source: 0
    Preferred channel configuration: Not indicated
    Supported number of channels (min - max): 2 - 8
    Native sample rates (min - max): 32000 - 192000
    HW Type: Not indicated.
    Minimum latency: Not indicated

Asus Xonar Essence ST (AV100) (SPDIF)  /dev/oss/oss_cmi878x0/pcm1  (device index 1)
    Legacy device /dev/dsp1
    Caps: DUPLEX TRIGGER MMAP
    Modes: IN/OUT
      Engine      1: 6/Asus Xonar Essence ST (AV100) (SPDIF)
                     Available for use
    Input formats (0x00001410):
      AFMT_S16_LE   - 16 bit signed little endian
      AFMT_AC3      - AC3 (Dolby Digital) encoded audio
      AFMT_S32_LE   - 32 bit signed little endian
    Output formats (0x00001410):
      AFMT_S16_LE   - 16 bit signed little endian
      AFMT_AC3      - AC3 (Dolby Digital) encoded audio
      AFMT_S32_LE   - 32 bit signed little endian
    Device handle: PCI835d1043-0000:04:06.0-au02
    Related mixer dev: -1
    Sample rate source: 0
    Preferred channel configuration: Not indicated
    Supported number of channels (min - max): 2 - 2
    Native sample rates (min - max): 32000 - 192000
    HW Type: Not indicated.
    Minimum latency: Not indicated


Nodes
  /dev/dsp -> /dev/oss/oss_cmi878x0/pcm0
  /dev/dsp_in -> /dev/oss/oss_cmi878x0/pcm0
  /dev/dsp_out -> /dev/oss/oss_cmi878x0/pcm0
  /dev/dsp_ac3 -> /dev/oss/oss_cmi878x0/pcm1
  /dev/dsp_mmap -> /dev/oss/oss_cmi878x0/pcm0
  /dev/dsp_multich -> /dev/oss/oss_cmi878x0/pcm0


Thanks for letting me know about the Russian "exact scientific resampler". Do you know and provide me with instructions on how to use and install the Russian "exact scientific resampler" for configuration using Deadbeef and Audicious?
I know it is something you have to modify in the scripts of those audio programs but I don't know how.

igorzwx
Known Member
Posts: 1258
Joined: Sun Jun 28, 2009 9:31 pm

Re: How to enable "production quality with extra precision"?

Postby igorzwx » Fri Jan 25, 2013 1:49 am

tarik2cyprian wrote:Thanks igor for the fast response. My ossinfo -v9 is below.

Code: Select all

Version info: OSS 4.2 (b 2006/201301242311) (0x00040100) OSS_HG
Hg revision: changeset: 948:233e1cedf15a, tag: tip, date: Thu Mar 01 21:05:56 2012 +0200, summary: Fixes for FreeBSD
Platform: Linux/x86_64 3.2.0-36-lowlatency #36-Ubuntu SMP PREEMPT Sat Jan 12 15:05:04 UTC 2013 (LANBOX-HT)

Number of audio devices:   2
Number of audio engines:   7
Number of MIDI devices:      1
Number of mixer devices:   2


Device objects
 0: osscore0 OSS core services
 1: oss_cmi878x0 Asus Xonar Essence ST (AV100) interrupts=7924 (7927)
 2: oss_usb0 USB audio core services

MIDI devices (/dev/midi*)
0: CMI8788 UART (MIDI port 1 of device object 1)
    Device file /dev/oss/oss_cmi878x0/mid0, Legacy device /dev/midi00
    Modes: IN/OUT , Available for use
    Caps:
    Minimum latency: Not indicated
    Device handle: PCI835d1043-0000:04:06.0-md01


Mixer devices
 0: CMedia CMI8788 (Mixer 0 of device object 1)
    Device file /dev/oss/oss_cmi878x0/mix0, Legacy device /dev/mixer0
    Priority: 10
    Caps:
    Device handle: PCI835d1043-0000:04:06.0-mx01
    Device priority: 10

 1: AC97 Input Mixer (CMI9780) (Mixer 1 of device object 1)
    Device file /dev/oss/oss_cmi878x0/mix1, Legacy device /dev/mixer1
    Priority: 2
    Caps:
    Device handle: PCI835d1043-0000:04:06.0-mx02
    Device priority: 2


Audio devices
Asus Xonar Essence ST (AV100) (MultiChannel)  /dev/oss/oss_cmi878x0/pcm0  (device index 0)
    Legacy device /dev/dsp0
    Caps: DUPLEX TRIGGER MMAP
    Modes: IN/OUT
      Engine      1: 0/Asus Xonar Essence ST (AV100) (MultiChannel)
                     Available for use
      Engine      2: 1/Asus Xonar Essence ST (AV100) (MultiChannel) (vmix)
                     Available for use
      Engine      3: 2/Asus Xonar Essence ST (AV100) (MultiChannel) (vmix)
                     Available for use
      Engine      4: 3/Asus Xonar Essence ST (AV100) (MultiChannel) (vmix)
                     Available for use
      Engine      5: 4/Asus Xonar Essence ST (AV100) (MultiChannel) (vmix)
                     Available for use
      Engine      6: 5/Asus Xonar Essence ST (AV100) (Multichannel)
                     Available for use
    Input formats (0x00001010):
      AFMT_S16_LE   - 16 bit signed little endian
      AFMT_S32_LE   - 32 bit signed little endian
    Output formats (0x00001010):
      AFMT_S16_LE   - 16 bit signed little endian
      AFMT_S32_LE   - 32 bit signed little endian
    Device handle: PCI835d1043-0000:04:06.0-au01
    Related mixer dev: -1
    Sample rate source: 0
    Preferred channel configuration: Not indicated
    Supported number of channels (min - max): 2 - 8
    Native sample rates (min - max): 32000 - 192000
    HW Type: Not indicated.
    Minimum latency: Not indicated

Asus Xonar Essence ST (AV100) (SPDIF)  /dev/oss/oss_cmi878x0/pcm1  (device index 1)
    Legacy device /dev/dsp1
    Caps: DUPLEX TRIGGER MMAP
    Modes: IN/OUT
      Engine      1: 6/Asus Xonar Essence ST (AV100) (SPDIF)
                     Available for use
    Input formats (0x00001410):
      AFMT_S16_LE   - 16 bit signed little endian
      AFMT_AC3      - AC3 (Dolby Digital) encoded audio
      AFMT_S32_LE   - 32 bit signed little endian
    Output formats (0x00001410):
      AFMT_S16_LE   - 16 bit signed little endian
      AFMT_AC3      - AC3 (Dolby Digital) encoded audio
      AFMT_S32_LE   - 32 bit signed little endian
    Device handle: PCI835d1043-0000:04:06.0-au02
    Related mixer dev: -1
    Sample rate source: 0
    Preferred channel configuration: Not indicated
    Supported number of channels (min - max): 2 - 2
    Native sample rates (min - max): 32000 - 192000
    HW Type: Not indicated.
    Minimum latency: Not indicated


Nodes
  /dev/dsp -> /dev/oss/oss_cmi878x0/pcm0
  /dev/dsp_in -> /dev/oss/oss_cmi878x0/pcm0
  /dev/dsp_out -> /dev/oss/oss_cmi878x0/pcm0
  /dev/dsp_ac3 -> /dev/oss/oss_cmi878x0/pcm1
  /dev/dsp_mmap -> /dev/oss/oss_cmi878x0/pcm0
  /dev/dsp_multich -> /dev/oss/oss_cmi878x0/pcm0


Thanks for letting me know about the Russian "exact scientific resampler". Do you know and provide me with instructions on how to use and install the Russian "exact scientific resampler" for configuration using Deadbeef and Audicious?
I know it is something you have to modify in the scripts of those audio programs but I don't know how.


According to your "ossinfo -v9", the OSS4 driver for your Xonar supports a wide range of sample rates: 32000 - 192000 (Hz). This means that almost all sound files (except for DXD Waves and other super HiRes) can be played without sample rate conversion. Thus, OSS4 resamplers can be disabled. However, the driver does not support 24bit format.

An optimal configurations of the OSS4 mixer might be:

Code: Select all

$ ossmix
vmix0-enable ON|OFF (currently ON)
vmix0-src <Fast|High|High+|Production|OFF> (currently OFF)


This means that vmix is enabled, but vmix0-src (sample rate conversion) is disabled.
The format conversion is still enabled. I tend to use this configuration on my notebook with Intel HDA codec.

This configuration is preferable for playing HD video files, because it minimizes processor load. Everything else seems to work without problems (Skype, etc.) The only trouble-maker is Flash player. It can hijack the sound device, and other application would not be able to play sound. In this case, you can simply close a web page with Flash, or close your web browser. Another notorious trouble-maker is KDE notifier (it can be disabled in KDE preferences).

For playing HiRes FLACs you may want to install Petrov's plugins for Deadbeef and Audacious. They can be obtained by e-mail from Sergey Petrov (it is supposed that you have already tried his resampler).

Petrov's plugin for Deadbeef is easy to install. Just copy it to the Deadbeef folder:

Code: Select all

$ ls
oss_rate-i386.so 
oss_rate-x86_64.so
$ sudo cp oss_rate-i386.so /usr/lib/deadbeef/oss_rate.so


(Warning: it might be another folder on Ubuntu, a sort of "/usr/local/lib/deadbeef" or something else.)

Then you start Deadbeef, go to the preferences, enable Petrov's plugin and configure it (enable "exclusive" mode, select the sample rate you need, and so on). You may want to start deadbeef on terminal to see all info about playback. It might be helpful for troubleshooting. It might also be interesting, if you are playing surround sound.

Notice that the open source OSS4 plugin for Audacious (git-version) supports "exclusive mode", which can be enabled in "preferences".

Petrov's plugin for Audacious is the so-called "effect plugin", you can find it in "effects", if it is installed. It can be installed in a similar way:

Code: Select all

$ ls
fftrate-i386.so 
fftrate-x86_64.so
$ sudo cp fftrate-i386.so /usr/lib/audacious/Effect/fftrate.so


It might be another folder on Ubuntu.

If you have questions about Audacious/OSS4 sound quality settings, you may contact Michal viewtopic.php?f=3&t=3834&p=15221#p15221 He may also help with Petrov's plugins.
Attachments
2 DeadBeef Preferences - Configure Petrov's plugin.png.tar.gz
DeadBeef → Preferences → Configure plugin
(77.38 KiB) Downloaded 1386 times
1 Deadbeef Preferences - Sound.png.tar.gz
DeadBeef → Preferences → Sound
(20.64 KiB) Downloaded 1243 times

tarik2cyprian
Member
Posts: 28
Joined: Thu Jan 24, 2013 7:04 pm

Re: How to enable "production quality with extra precision"?

Postby tarik2cyprian » Fri Jan 25, 2013 3:40 am

Thanks once again Igor for this great info,

I believe my sound card can play 24 bit. I will have to give it a try and find out. I also noticed that flash is also buggy unless you close the webbrowser.

Do you happen to know what Petrov's email or contact information is so I can uptain the plugins? You can send it to me via pm if you want.

Thanks once again

igorzwx
Known Member
Posts: 1258
Joined: Sun Jun 28, 2009 9:31 pm

Re: How to enable "production quality with extra precision"?

Postby igorzwx » Fri Jan 25, 2013 4:47 am

tarik2cyprian wrote:I believe my sound card can play 24 bit. I will have to give it a try and find out.


Your soundcard might be able to play 24bit format, but the OSS4 driver for your soundcard does not seem to support such format. You may ask developers to fix this problem. Moreover, this driver is "beta", it might be buggy, it may also fail to play 192kHz sample rate.

tarik2cyprian wrote:Do you happen to know what Petrov's email or contact information is so I can uptain the plugins?


Try the resampler. It can be downloaded here: viewtopic.php?f=3&t=3543&start=45#p15974

tarik2cyprian
Member
Posts: 28
Joined: Thu Jan 24, 2013 7:04 pm

Re: How to enable "production quality with extra precision"?

Postby tarik2cyprian » Fri Jun 14, 2013 5:05 pm

Does anyone have a copy of Petrov's Exact Resampler plugins for Deadbeef. I have been contacting him since January up till now but he
never responds to any of my emails to provide me with this plugin.

Does he have new email address which I can contact him?

Or can somebody else provide me with this plugin for Deadbeef and send it to me via pm or my email address
which is iq4boogle@gmail.com.

Any help will be greatly appreciated

Regards

TCR

igorzwx
Known Member
Posts: 1258
Joined: Sun Jun 28, 2009 9:31 pm

Re: How to enable "production quality with extra precision"?

Postby igorzwx » Fri Jun 14, 2013 7:59 pm

tarik2cyprian wrote:Does anyone have a copy of Petrov's Exact Resampler plugins for Deadbeef. I have been contacting him since January up till now but he
never responds to any of my emails to provide me with this plugin.

Does he have new email address which I can contact him?

Or can somebody else provide me with this plugin for Deadbeef and send it to me via pm or my email address
which is iq4boogle@gmail.com.

Any help will be greatly appreciated

Regards

TCR


You may find Sergey Petrov on the Russian Ubuntu forum:

http://forum.ubuntu.ru/index.php?action=profile;u=12963
PetrovSE
Дата регистрации: 20 Декабрь 2007, 20:23:11
Время:14 Июнь 2013, 23:54:59
Последняя активность: Сегодня в 19:19:52


He was online today.

______________________________
EDIT:

Sergey Petrov's e-mail is still valid.
He allowed to publish his plugin and promised to deliver a new version as soon as he can.

Code: Select all

$ deadbeef
starting deadbeef 0.5.6
server_start
loading plugins from /home/igor/.local/lib/deadbeef
loading plugins from /usr/lib/deadbeef
loading plugin /usr/lib/deadbeef/oss_rate.so
oss: exclusive mode is activated!
Converter: fftrate (ver. 0.9)
Input  : 96000 Hz, 2 ch (0003), 24i bits
Output : 192000 Hz, 2 ch (0003), 32i bits
Params.: delay = 43 ms, sync: ON, transform: 'DCT' - 'Vorbis'
Matrix :
        FL      FR     
FL      1.000   -----   
FR      -----   1.000 


Petrov's plugin v.0.9 (exact scientific resampler) for DeadBeef player is in the attachment.
Screenshots: viewtopic.php?f=3&t=3543&start=90#p19207
Surround playback is supported.
See also: HOWTO: 5.1 Surround sound with OSS4 viewtopic.php?f=3&t=4408
The "exclusive mode" is supported. The purpose of it is to disable a "secret PulseAudio of OSS4" called "Cooked Mode"
http://manuals.opensound.com/developer/ ... DMODE.html
viewtopic.php?f=3&t=3834
This evil thing (Cooked Mode) resamples everything with the "Fast resampler" (open sourse crap).

See also: [HOWTO] Sonograms of HiRes FLACs and DXDs & Resampler Test viewtopic.php?f=3&t=4423
Attachments
Petrov_deadbeef_plugin_v0.9.tar.gz
Exact Scientific Resampler
(51.98 KiB) Downloaded 1264 times

tarik2cyprian
Member
Posts: 28
Joined: Thu Jan 24, 2013 7:04 pm

Re: How to enable "production quality with extra precision"?

Postby tarik2cyprian » Mon Aug 05, 2013 11:30 pm

Igorzwx,

I just wanted to say thank you so much for updating this thread for Petrov's Exact Resampler plugins for Deadbeef along with the other info. The last
time when I responed to this thread and you replied I did not see that info with the attached Exact Resampler plugins.

Thanks once again Igorzwx,

Regards

tarik2cyprian

tarik2cyprian
Member
Posts: 28
Joined: Thu Jan 24, 2013 7:04 pm

Re: How to enable "production quality with extra precision"?

Postby tarik2cyprian » Fri Sep 20, 2013 11:59 pm

Doese anyone have a plugin for deadbeef called a delta noise sharping plugin.

The file would be called dlta.so. If someone has this plugin or where I could find it would
be great.

Regards

tarik2cyprian

igorzwx
Known Member
Posts: 1258
Joined: Sun Jun 28, 2009 9:31 pm

Re: How to enable "production quality with extra precision"?

Postby igorzwx » Sat Sep 21, 2013 12:55 am

tarik2cyprian wrote:Doese anyone have a plugin for deadbeef called a delta noise sharping plugin.

The file would be called dlta.so. If someone has this plugin or where I could find it would
be great.


There is a "git", which is easy to find with Google. Keywords: "dlta.so deadbeef"
You have to compile it from the source.

If the code is too old, it may not work with the current version of DeadBeef.
In this case, you may try to contact the developer.

ossuserr
Known Member
Posts: 272
Joined: Thu Jan 08, 2015 12:01 am
Sound Card: audigy 2 zs platinum, esi juli
OS: gentu riced to bo0st
Location: Earth

Re: How to enable "production quality with extra precision"?

Postby ossuserr » Fri Jan 09, 2015 8:18 pm

Greetings, Igor. Where can i take source code of Petrov's resampler? Also which sound card would you recommend for professional use with oss driver? I could only find 32-bit deb file but i need source code to compile 64-bit.

igorzwx
Known Member
Posts: 1258
Joined: Sun Jun 28, 2009 9:31 pm

Re: How to enable "production quality with extra precision"?

Postby igorzwx » Fri Jan 09, 2015 11:26 pm

ossuserr wrote: Where can i take source code of Petrov's resampler?

Both Petrov's resampler and Petrov's plugin for DeadBeef player are "closed source".

ossuserr wrote: which sound card would you recommend for professional use with oss driver?

For "professional use", you may need a sort of "professional audio device". Right?
You may try a kind of LynxTwo soundcards _http://manuals.opensound.com/usersguide/lynxtwo.html
They are said to be "professional".
NOTE: It makes sense to search the forum for "LynxTwo" to find out which of LynxTwo cards work with OSS4.

The "closed source" driver for LynxTwo is here: _http://www.opensound.com/download.cgi

ossuserr wrote: I could only find 32-bit deb file, but i need source code to compile 64-bit.


OSS4 can be compiled from git:

_http://www.opensound.com/
OSS v4.2 build 2010 for Linux, Solaris, FreeBSD and UnixWare announced.
Browse the Open Sound Git Repository
Get the source code using GIT:

Code: Select all

git clone git://opensound.git.sourceforge.net/gitroot/opensound/opensound


If you have problems with "git", you may ask for help on Gentoo forum.
See also:
_http://wiki.gentoo.org/wiki/OSS
_https://wiki.archlinux.org/index.php/Open_Sound_System
_https://help.ubuntu.com/community/OpenSound

Notice that all your questions are off-topic.
You may better start a new thread for each of them.

ossuserr
Known Member
Posts: 272
Joined: Thu Jan 08, 2015 12:01 am
Sound Card: audigy 2 zs platinum, esi juli
OS: gentu riced to bo0st
Location: Earth

Re: How to enable "production quality with extra precision"?

Postby ossuserr » Fri Jan 09, 2015 11:37 pm

1 What's the point to keep Petrov's driver closed source?
2 By 32-bit i meant the fttrate Petrov's plugin in deb form. And since there is no open source for it we can't compile it to use instead of samplerate in alsa. Can Petrov provide 64bit of fftrate?
3 Lynx is too expensive. I meant some cheap cards like M-audio or esi juli level.

igorzwx
Known Member
Posts: 1258
Joined: Sun Jun 28, 2009 9:31 pm

Re: How to enable "production quality with extra precision"?

Postby igorzwx » Fri Jan 09, 2015 11:51 pm

ossuserr wrote:Can Petrov provide 64bit of fftrate?

It was already provided (in this thread), and it was downloaded 651 times.

ossuserr wrote:Lynx is too expensive. I meant some cheap cards like M-audio or esi juli level.

This question is off-topic. Please start a new thread for it.


Return to “Linux”

Who is online

Users browsing this forum: No registered users and 4 guests