View Single Post
Posts: 29 | Thanked: 88 times | Joined on Oct 2015
#4
- if you want rec from headset mic, in xterm:
Code:
gst-launch-0.10 -e pulsesrc device=source.hw0 ! audio/x-raw-float,channels=1 ! audioconvert ! nokiaaacenc bitrate=64000 output-format=0 ! hantromp4mux ! audio/x-m4a ! filesink location=/home/user/MyDocs/audio.m4a
amixer -qc0 set "Input Select" ADC
this set gain for it (0-127), here is 60
Code:
amixer -qc0 set PGA 60
- if you want rec from builded in mic, in xterm:
Code:
amixer -qc0 set "Input Select" "Digital Mic"
gst-launch-0.10 -e pulsesrc device=source.record ! audio/x-raw-float,channels=1 ! audioconvert ! nokiaaacenc bitrate=64000 output-format=0 ! hantromp4mux ! audio/x-m4a ! filesink location=/home/user/MyDocs/audio.m4a
make sure that capture is on:
Code:
amixer -q cset name='Capture Switch' on
amixer -qc0 cset name='PGA Capture Switch' on

Last edited by ontime; 2017-06-05 at 22:44.
 

The Following 7 Users Say Thank You to ontime For This Useful Post: