View Single Post
Posts: 111 | Thanked: 50 times | Joined on May 2015
#9
Originally Posted by ontime View Post
- 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

I am very sorry for long delay in my answers. Thank you very much once again for your posts. I have though more questions:

- how to stop recording
- when I use commands described in your post I get file "audio.m4a" but it is not playable (even no time of recording is seen in any player). It has size but it seems that there is nothing in it.
 

The Following 3 Users Say Thank You to NotMicro For This Useful Post: