LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 02-14-2020, 07:47 PM   #1
gus3
Member
 
Registered: Jun 2014
Distribution: Slackware (x86 and ARM)
Posts: 247

Rep: Reputation: Disabled
Thumbs up a particular use-case for PulseAudio


I have a video of a drum & bugle corps performance, but the audio in it isn't the greatest. I have another, better recording of the audio, but no video.

Apparently, my MPlayer config is set to adjust the *global* volume on the sound card, not just its own volume. Oops.

"pavucontrol" made easy work of muting the audio from MPlayer, giving me the better audio from XMMS to go with the video.

Color me impressed! I wasn't sure what to think of PulseAudio when it PatV made it officially part of Slackware (I had a hard time getting it to work on my old desktop) but this definitely put a couple check-marks in the "plus" column.
 
Old 02-14-2020, 08:37 PM   #2
ReFracture
Member
 
Registered: Oct 2007
Location: Utah
Distribution: Slackware-current
Posts: 76

Rep: Reputation: 105Reputation: 105
I always had a lot of audio problems as a general user on Linux.. they went away when PulseAudio came around.. so for all the hate it gets I personally wouldn’t ever want to go back to pure alsa.
 
1 members found this post helpful.
Old 02-15-2020, 11:22 AM   #3
GazL
LQ Guru
 
Registered: May 2008
Posts: 5,386
Blog Entries: 18

Rep: Reputation: 3196Reputation: 3196Reputation: 3196Reputation: 3196Reputation: 3196Reputation: 3196Reputation: 3196Reputation: 3196Reputation: 3196Reputation: 3196Reputation: 3196
No need for pulseaudio for that. mplayer has a 'softvol' option (which I always use) to allow it to have an independent volume control.


Have you considered using ffmpeg to replace the poor quality sound stream in the video file with the good one? Something like:
ffmpeg -i video.mp4 -i goodsound.mp3 -map 0:v -map 1:a -c:v copy -c:a copy vid_with_better_sound.mp4

You might need to play around with either audio or video delay to get them to sync properly, but if you google the subject you'll find a lot of examples.
 
1 members found this post helpful.
Old 02-15-2020, 11:22 AM   #4
GazL
LQ Guru
 
Registered: May 2008
Posts: 5,386
Blog Entries: 18

Rep: Reputation: 3196Reputation: 3196Reputation: 3196Reputation: 3196Reputation: 3196Reputation: 3196Reputation: 3196Reputation: 3196Reputation: 3196Reputation: 3196Reputation: 3196
No need for pulseaudio for that. mplayer has a 'softvol' option (which I always use) to allow it to have an independent volume control.


Have you considered using ffmpeg to replace the poor quality sound stream in the video file with the good one? Something like:
ffmpeg -i video.mp4 -i goodsound.mp3 -map 0:v -map 1:a -c:v copy -c:a copy vid_with_better_sound.mp4

You might need to play around with either audio or video delay to get them to sync properly, but if you google the subject you'll find a lot of examples.
 
1 members found this post helpful.
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Can't Get Sound from Pulseaudio -- PulseAudio Will Not Start JasonC10203 Linux - Software 4 11-29-2016 12:18 AM
Bypass pulseaudio problems and crashes when you don't have pulseaudio. Rinndalir Linux - Software 1 08-31-2016 02:00 PM
[SOLVED] Squeeze + Pulseaudio + Alsa and USB Midi device causes Pulseaudio crash mad4linux Debian 1 01-26-2011 04:57 AM
Winecfg crashes on sound tab with Pulseaudio and no 'sounddrivers' without pulseaudio William (Dthdealer) Linux - Software 5 06-13-2010 08:30 AM
How to assign one particular process to particular CPU, in multiprocessor Architeture sudha Linux - General 1 01-23-2005 11:53 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 02:24 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration