ffmpeg for recording - how to increase the volume

Ask questions about Arch Linux ARM. Please search before making a new topic.

ffmpeg for recording - how to increase the volume

Postby permitivity » Sun Dec 01, 2013 8:16 pm

Hello,
I have two Pogoplugs, one of them acting as the microphone and the audio stream is piped to another Pogoplug. Both the mic and the speaker part use ffmpeg.

$this->bbcode_second_pass_quote('', '
')#Microphone/audio source (IP address 192.168.1.42)
ffmpeg -re -f alsa -i plughw:0 -acodec mp2 -ab 192000 -ar 48000 -ac 1 -filter 'bandpass=f=1000:csg=0:width_type=q:w=.806' -f rtp rtp://192.168.1.41:1234


#Speaker (IP address 192.168.1.41)
ffmpeg -i rtp://192.168.1.42:1234 -f alsa default


On the speaker side, I can use alsamixer to increase the volume. But how do I increase the recording volume on the microphone side? Running alsamixer on the microphone Pogoplug, I can see the "Mic" setting, but it's not editable like the speaker setting is. On the screen shot below, the "F3:Playback" is highlighted. I want to go to F4:capture, but hitting F4 makes me exit alsamixer.

Since the microphone is a USB microphone (Samson mic), I have a feeling this needs to be part of the ffmpeg command, but my search through ffmpeg turned up nothing, and ffmpeg is used for so many other things it's been pretty confusing reading about it.

Here's a screen shot of what alsamixer gives me:
Image

If anyone has suggestions on how to go about this, please let me know.
permitivity
 
Posts: 141
Joined: Mon Feb 18, 2013 3:08 am

Re: ffmpeg for recording - how to increase the volume

Postby permitivity » Sun Dec 01, 2013 8:37 pm

This almost got me there, but not quite:

If I do "amixer" command, I see the mic is set to 0.
$this->bbcode_second_pass_code('', '[root@alarm system]# amixer
Simple mixer control 'Speaker',0
Capabilities: pvolume pswitch pswitch-joined
Playback channels: Front Left - Front Right
Limits: Playback 0 - 44
Mono:
Front Left: Playback 26 [59%] [-15.00dB] [on]
Front Right: Playback 26 [59%] [-15.00dB] [on]
Simple mixer control 'Bass',0
Capabilities: volume volume-joined
Playback channels: Mono
Capture channels: Mono
Limits: 0 - 96
Mono: 47 [49%]
Simple mixer control 'Bass Boost',0
Capabilities: pswitch pswitch-joined
Playback channels: Mono
Mono: Playback [off]
Simple mixer control 'Treble',0
Capabilities: volume volume-joined
Playback channels: Mono
Capture channels: Mono
Limits: 0 - 96
Mono: 48 [50%]
Simple mixer control 'Mic',0
Capabilities: cvolume cvolume-joined pswitch pswitch-joined cswitch cswitch-joined
Playback channels: Mono
Capture channels: Mono
Limits: Capture 0 - 15
Mono: Playback [on] Capture 15 [100%] [15.00dB] [on]
Simple mixer control 'Auto Gain Control',0
Capabilities: pswitch pswitch-joined
Playback channels: Mono
Mono: Playback [off]
')

And I'm unable to change it:
$this->bbcode_second_pass_quote('', '[')root@alarm system]# amixer set Mic 100
Simple mixer control 'Mic',0
Capabilities: cvolume cvolume-joined pswitch pswitch-joined cswitch cswitch-joined
Playback channels: Mono
Capture channels: Mono
Limits: Capture 0 - 15
Mono: Playback [on] Capture 15 [100%] [15.00dB] [on]
permitivity
 
Posts: 141
Joined: Mon Feb 18, 2013 3:08 am


Return to User Questions

Who is online

Users browsing this forum: No registered users and 9 guests