NotMicro
|
2017-06-05
, 12:01
|
Posts: 111 |
Thanked: 50 times |
Joined on May 2015
|
#1
|
|
2017-06-05
, 12:23
|
|
Posts: 6,447 |
Thanked: 20,981 times |
Joined on Sep 2012
@ UK
|
#2
|
with unacceptable quality (48 kHz, 2 channel 128 kbit/s).
Can anybody tell me how to record compressed sound with good quality.
ffmpeg -i file.wav file.mp3
|
2017-06-05
, 17:18
|
|
Community Council |
Posts: 1,669 |
Thanked: 10,225 times |
Joined on Nov 2014
@ Lower Rhine
|
#3
|
|
2017-06-05
, 17:30
|
Posts: 29 |
Thanked: 88 times |
Joined on Oct 2015
|
#4
|
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
amixer -qc0 set PGA 60
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
amixer -q cset name='Capture Switch' on amixer -qc0 cset name='PGA Capture Switch' on
|
2017-06-12
, 11:43
|
Posts: 111 |
Thanked: 50 times |
Joined on May 2015
|
#5
|
- if you want rec from headset mic, in xterm:
this set gain for it (0-127), here is 60Code: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
- if you want rec from builded in mic, in xterm:Code:amixer -qc0 set PGA 60
make sure that capture is on: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
Code:amixer -q cset name='Capture Switch' on amixer -qc0 cset name='PGA Capture Switch' on
|
2017-06-13
, 08:18
|
Posts: 29 |
Thanked: 88 times |
Joined on Oct 2015
|
#6
|
|
2017-06-13
, 09:39
|
Posts: 119 |
Thanked: 217 times |
Joined on Feb 2015
@ Poland
|
#7
|
for usb stereo mic, you need:
- driver for it which will be working on n900
- h-e-n - it's in repository
- OTG cable
- some app that can rec from your mic (gstreamer, audacity, etc)
it's simple when you have all that components
second solution but not perfect:
- use build in mic as left channel
- use headset mic as right channel
- mix both into audio file (maybe gsteamer can do that)
minijack in n900 has only one input, so only mono (can be multiplexed, but that need specific mics and specific app on n900, not worth of thinking)
I use nokia e52 for record stereo sound. It has build in two mics.
|
2017-06-13
, 11:55
|
Posts: 29 |
Thanked: 88 times |
Joined on Oct 2015
|
#8
|
Or even better use Nokia n9. It.by default records nice videos with stereo sound. It also suppports stereo line-in(not sure about n900, its video cable is compatible, maybe stereo too).
You can use similar gstreamer hacks, but there are already good apps for stereo/mono recording.eith input
|
2017-06-23
, 12:53
|
Posts: 111 |
Thanked: 50 times |
Joined on May 2015
|
#9
|
- if you want rec from headset mic, in xterm:
this set gain for it (0-127), here is 60Code: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
- if you want rec from builded in mic, in xterm:Code:amixer -qc0 set PGA 60
make sure that capture is on: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
Code:amixer -q cset name='Capture Switch' on amixer -qc0 cset name='PGA Capture Switch' on
|
2017-06-23
, 13:41
|
Posts: 29 |
Thanked: 88 times |
Joined on Oct 2015
|
#10
|
kill -2 `pidof gst-launch-0.10`
Tags |
audio recording, nokia n900 |
Thread Tools | |
|