read


Fresh off of an upgraded install I noticed many things were broken with the audio, so we’re going to uninstall PulseAudio first.
<ol><li>In a terminal, type the following:</li>
<pre style="background-image: URL(http://2.bp.blogspot.com/_z5ltvMQPaa8/SjJXr_U2YBI/AAAAAAAAAAM/46OqEP32CJ8/s320/codebg.gif); background: #f0f0f0; border: 1px dashed #CCCCCC; color: black; font-family: arial; font-size: 12px; height: auto; line-height: 20px; overflow: auto; padding: 0px; text-align: left; width: 99%;"> $su -
$yum remove pulseaudio
</pre>
<li>Restart your computer now.</li>
Now that you’re back, open a terminal and type the following:

<pre style="background-image: URL(http://2.bp.blogspot.com/_z5ltvMQPaa8/SjJXr_U2YBI/AAAAAAAAAAM/46OqEP32CJ8/s320/codebg.gif); background: #f0f0f0; border: 1px dashed #CCCCCC; color: black; font-family: arial; font-size: 12px; height: auto; line-height: 20px; overflow: auto; padding: 0px; text-align: left; width: 99%;"> su -
yum install pulseaudio alsa-plugins-pulseaudio pulseaudio-esound-compat pulseaudio-libs pulseaudio-libs-glib2 pulseaudio-module-zeroconf pulseaudio-libs-zeroconf xmms-pulse pulseaudio-module-gconf wine-pulseaudio xine-lib-pulseaudio pulseaudio-utils pulseaudio-module-bluetooth gst-mixer padevchooser paman paprefs pavucontrol pavumeter
</pre>
This will reinstall PulseAudio and all the extras we need to work with.

[Skip this step if you can live with time-scheduling, skipping is not recommended]
<li>Next, run the following as root: (or open “/etc/pulse/default.pa” manually as root)</li>
<pre style="background-image: URL(http://2.bp.blogspot.com/_z5ltvMQPaa8/SjJXr_U2YBI/AAAAAAAAAAM/46OqEP32CJ8/s320/codebg.gif); background: #f0f0f0; border: 1px dashed #CCCCCC; color: black; font-family: arial; font-size: 12px; height: auto; line-height: 20px; overflow: auto; padding: 0px; text-align: left; width: 99%;"> gedit /etc/pulse/default.pa
</pre>
and replace the line:

<pre style="background-image: URL(http://2.bp.blogspot.com/_z5ltvMQPaa8/SjJXr_U2YBI/AAAAAAAAAAM/46OqEP32CJ8/s320/codebg.gif); background: #f0f0f0; border: 1px dashed #CCCCCC; color: black; font-family: arial; font-size: 12px; height: auto; line-height: 20px; overflow: auto; padding: 0px; text-align: left; width: 99%;"> load-module module-hal-detect </pre>with:
<pre style="background-image: URL(http://2.bp.blogspot.com/_z5ltvMQPaa8/SjJXr_U2YBI/AAAAAAAAAAM/46OqEP32CJ8/s320/codebg.gif); background: #f0f0f0; border: 1px dashed #CCCCCC; color: black; font-family: arial; font-size: 12px; height: auto; line-height: 20px; overflow: auto; padding: 0px; text-align: left; width: 99%;"> load-module module-hal-detect tsched=0
</pre>
Save your changes. This will disable time-scheduling.

<li>Next, run the following as root: (or open “/etc/pulse/daemon.conf” manually as root)</li>
<pre style="background-image: URL(http://2.bp.blogspot.com/_z5ltvMQPaa8/SjJXr_U2YBI/AAAAAAAAAAM/46OqEP32CJ8/s320/codebg.gif); background: #f0f0f0; border: 1px dashed #CCCCCC; color: black; font-family: arial; font-size: 12px; height: auto; line-height: 20px; overflow: auto; padding: 0px; text-align: left; width: 99%;"> gedit /etc/pulse/daemon.conf </pre>
then change the lines:

<pre style="background-image: URL(http://2.bp.blogspot.com/_z5ltvMQPaa8/SjJXr_U2YBI/AAAAAAAAAAM/46OqEP32CJ8/s320/codebg.gif); background: #f0f0f0; border: 1px dashed #CCCCCC; color: black; font-family: arial; font-size: 12px; height: auto; line-height: 20px; overflow: auto; padding: 0px; text-align: left; width: 99%;"> ; realtime-scheduling = no </pre>with:
<pre style="background-image: URL(http://2.bp.blogspot.com/_z5ltvMQPaa8/SjJXr_U2YBI/AAAAAAAAAAM/46OqEP32CJ8/s320/codebg.gif); background: #f0f0f0; border: 1px dashed #CCCCCC; color: black; font-family: arial; font-size: 12px; height: auto; line-height: 20px; overflow: auto; padding: 0px; text-align: left; width: 99%;"> ; realtime-scheduling = yes
</pre>
also, change the line:

<pre style="background-image: URL(http://2.bp.blogspot.com/_z5ltvMQPaa8/SjJXr_U2YBI/AAAAAAAAAAM/46OqEP32CJ8/s320/codebg.gif); background: #f0f0f0; border: 1px dashed #CCCCCC; color: black; font-family: arial; font-size: 12px; height: auto; line-height: 20px; overflow: auto; padding: 0px; text-align: left; width: 99%;"> ; default-fragment-size-msec = 25 </pre>with:
<pre style="background-image: URL(http://2.bp.blogspot.com/_z5ltvMQPaa8/SjJXr_U2YBI/AAAAAAAAAAM/46OqEP32CJ8/s320/codebg.gif); background: #f0f0f0; border: 1px dashed #CCCCCC; color: black; font-family: arial; font-size: 12px; height: auto; line-height: 20px; overflow: auto; padding: 0px; text-align: left; width: 99%;"> default-fragment-size-msec = 10
</pre>
save your changes.

Restart your computer completely again.

<li>Now, open System, Preferences, Advanced Volume Control and make sure that PCM, Master, and the various PulseAudio devices under the “Device:” menu aren’t muted and are raised to adequate volume levels.</li>
<li>Next, open Applications, Sound, Video, PulseAudio Device Chooser
and make sure the Default Server, Default Sink, and Default Source are all set to Default.</li>
<li>After that, in the device chooser, select the “Volume Control” option in the menu and go through each tab making sure none of the streams are muted.</li>
<li>Now, go to the Configuration tab and for Internal Audio - Profiles set it to the appropriate profile until you hear audio from an audio file. If you’re hearing audio already then it is probably set to the proper profile already. Experiment with the profiles using an audio file of some sort, playing it. I used Michael Jackson’s (R.I.P) Beat It.</li>
The wrong profile means no audio will come from your sound card at all. Example: I didn’t hear any sound because my profile was set to digital and not analogue, because analogue is what my sound card supports.

If you are not hearing any audio at all then you need to check the last 3 routines we just went through. (The advanced volume controls for mutes, Defaults of the Device Chooser, volume control in the device chooser for wrong settings)

</ol>You’re done! Now you can finally enjoy your audio in Fedora.

<h3></h3><h3>Notes</h3>Notes sidenote: I also noticed the time-scheduling feature can also cause lagging in video playback; which is why I like it better disabled.

If you’re still having PulseAudio issues then please open a support thread and ask for help. Now, I shall continue to the next part of my guide.


<h3>Fixing video playback issues with VLC Media Player</h3>Before we start to fix VLC Media Player, I would like to ask you to Download this file as we’re going to use it, for testing, later. I chose this file because it is going to give you a fair amount of problems playing it with the default settings.

We are going to fix the chopping, skipping and stutter of the audio with VLC Media Player that some of you been experiencing.

First, open VLC and go to Tools &gt; Preferences. (CTRL+P for those who cant find it)
The options should already be set to simple; hit the Audio tab and change Output: Type to Pulseaudio audio output; As shown in the picture below.

Now, change the Show settings option to All and go to Input / Codecs &gt; Access Modules &gt; File; Change the caching value to 1500 (there are 1000 milliseconds in a second)

You can adjust this a little higher or lower later. As long as it’s 1000 or above, it should be fine. (I ultimately ended up lowering mine to around 1300, personally)

Now, that video I had you download? Now it’s time to test VLC. Open the video file in VLC and press play, watching it from beginning to end. You are watching it for things like glitches in the audio and the audio cutting off half way through the video. If everything is fine with the audio and video, you’re done! If not, continue to the next part of this tutorial.
(If it’s an audio issue still then you may want to check your settings or open a support thread)
You can try playing the video and skipping around back-and-forth to see if the audio crashes out, but it shouldn’t with the settings in this tutorial.

http://forums.fedoraforum.org/showthread.php?t=225660

If there is screen tearing in the video (slices in the video images) you may want to try changing the video output settings. (assuming your CPU/GPU is fast enough to handle the video)
In Tools &gt; Preferences (Simple) go to the Video tab and change Display: Output to various options and play the video until the tearing stops. (experiment) I have mine set to OpenGL because I have OpenGL drivers installed for my video card.

(If it’s an issue still after your experimentation, then you may want to open a support thread)

There are more things you can do in-depth, which can degrade video quality, but those are better left for a support thread.

Hope this guide has solved your audio and video issues.

Blog Logo

Daniel Gomez Rico


Published

Image

MakinGIANTS

The findings and tips records of an Android-iOS-TheWholeShabang group

Back to Overview