Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- I used the answer at the link below to successfully set Dynamic Range Compression on my Ubuntu media box running Ubuntu 14.04
- http://superuser.com/questions/162107/realtime-sound-post-processing-sound-effects-ubuntu-10-04/162114#162114
- I created a super simple bash script to run those commands back to back. It looks like this
- <!-- language: lang-bash -->
- #!/bin/bash
- pacmd load-module module-ladspa-sink sink_name=ladspa_out \
- plugin=mbeq_1197 label=mbeq \
- control=11.621622,10,4.594594,2.702703,0,0, \
- -1.621622,-0.270270,-5.405406,-3.513514,-8.648648, \
- -5.675676,-4.054054,1.351351,9.189189 &&
- pacmd load-module module-ladspa-sink sink_name=sc4m \
- plugin=sc4m_1916 label=sc4m control=1,1.5,401,-30,20,5,12 &&
- pacmd set-default-sink sc4m
- How can I get this to run on system startup?
- I can run this no problem from my home directory, or from /usr/bin/compress_audio.sh but it won't run on boot. I tried adding /usr/bin/compress_audio.sh to /etc/rc.local but no dice. I'm thinking that maybe the PulseAudio daemon doesn't start until after rc.local is run, but I'm not sure what to do in that case.
- I have another line in /etc/rc.local
- <code>nohup plexmediaserver &</code>
- and I'm not sure if that may be problematic?
- Thanks for any suggestions or advice!
- Edit: I tried putting just the pacmd commands into /etc/rc.local and I still have to manually run /etc/rc.local after boot in order to get DRC working. This is driving me absolutely bonkers. Does the user that runs /etc/rc.local not have access to pacmd maybe?
- Edit2: Changed /etc/rc.local to <code>su [user] -c '/usr/bin/compress_audio.sh > /home/gsparx/audio_compress.log'</code> to hopefully force the user and log. When I run /etc/rc.local as root, it logs correctly and adds the DRC. On boot, it does not log nor does it enable DRC, so it seems like it's not running at all.
- Edit3: Tried adding those configurations to /etc/pulse/system.pa to no avail as well
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement