Active Topics

 


Reply
Thread Tools
Posts: 111 | Thanked: 50 times | Joined on May 2015
#11
Originally Posted by ontime View Post
ah, right
for manual stop, press Ctrl+c in the same terminal
or
send SIGINT (kill -2 $PID) to gstreamer:
Code:
kill -2 `pidof gst-launch-0.10`
Thank you for this. And what do you think about my problems with playing recorded file audio.m4a.
 

The Following 2 Users Say Thank You to NotMicro For This Useful Post:
Posts: 29 | Thanked: 88 times | Joined on Oct 2015
#12
wrong stopped or crash - lack metadata in file
if you have mplayer:
Code:
mplayer -quiet -slave -frames 0 -vo null -ao null -identify audio.m4a
 

The Following 3 Users Say Thank You to ontime For This Useful Post:
Posts: 111 | Thanked: 50 times | Joined on May 2015
#13
Originally Posted by ontime View Post
wrong stopped or crash - lack metadata in file
if you have mplayer:
Code:
mplayer -quiet -slave -frames 0 -vo null -ao null -identify audio.m4a

Thank you once again for this outstanding solutions. I am really very very impressed. You are a real audio professsional !! Problem solved thanks to your advice how to stop recording. After this, file is correct and fully playable.
If you would be so kind please answer for some questions, what may have been useful for many users.

1. If I am recording quiet sounds some clicking is heard in the background. No matter if this is wav or m4a audio and which application is used for recording. This problem was also described in this thread:

http://talk.maemo.org/showthread.php?t=54860

2. When I am recording sound using, for example, recorder app high volume sounds are almost always oversteered. In VoiceNote or when recording video with standard camerra application are not.
Do you know why is it so?

3. Is there any difference between recording "m4a" sound with the standard camera application and this method you have proposed? I mean set of commands.

4. What is the meaning of output-format parameter. What could have happen when this is different from 0.
 

The Following 2 Users Say Thank You to NotMicro For This Useful Post:
Posts: 29 | Thanked: 88 times | Joined on Oct 2015
#14
1. If I am recording quiet sounds some clicking is heard in the background. No matter if this is wav or m4a audio and which application is used for recording. This problem was also described in this thread:

http://talk.maemo.org/showthread.php?t=54860
put here sample with this clicking noise

2. When I am recording sound using, for example, recorder app high volume sounds are almost always oversteered. In VoiceNote or when recording video with standard camerra application are not.
Do you know why is it so?
try this in xterm
Code:
amixer -qc0 set PGA 0
and
Code:
alsamixer -c0
When you click Tab, you'll see all capture settings. You can use arrow keys to adjust it.
or
You can use different audio source instead of 'source.hw0':

source.voice (hardware dsp)
source.record

Code:
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
3. Is there any difference between recording "m4a" sound with the standard camera application and this method you have proposed? I mean set of commands.
camera application vs gstreamer:
- audio bitrate - 128kbps vs you can choose
- audio rate - 48000Hz vs 44100Hz
- audio source - source.record vs you can choose (ad 2.)

- both has one channel
- the same codec - nokiaaacenc
- the same container - hantromp4mux

4. What is the meaning of output-format parameter. What could have happen when this is different from 0.
Code:
gst-inspect-0.10 nokiaaacenc
(0): RAW - AAC Raw format (it needs container)
(1): ADTS - Audio Data Transport Stream format (can be streams directly into playable aac file)
(2): ADIF - Audio Data Interchange Format

Last edited by ontime; 2017-06-27 at 17:10.
 

The Following 3 Users Say Thank You to ontime For This Useful Post:
Posts: 111 | Thanked: 50 times | Joined on May 2015
#15
Originally Posted by ontime View Post
put here sample with this clicking noise



try this in xterm
Code:
amixer -qc0 set PGA 0
and
Code:
alsamixer -c0
When you click Tab, you'll see all capture settings. You can use arrow keys to adjust it.
or
You can use different audio source instead of 'source.hw0':

source.voice (hardware dsp)
source.record

Code:
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


camera application vs gstreamer:
- audio bitrate - 128kbps vs you can choose
- audio rate - 48000Hz vs 44100Hz
- audio source - source.record vs you can choose (ad 2.)

- both has one channel
- the same codec - nokiaaacenc
- the same container - hantromp4mux



Code:
gst-inspect-0.10 nokiaaacenc
(0): RAW - AAC Raw format (it needs container)
(1): ADTS - Audio Data Transport Stream format (can be streams directly into playable aac file)
(2): ADIF - Audio Data Interchange Format



Here are the samples of clicking noise. I have noticed that when sim card is "active" clicking noise has higher frequency; when the phone is in offline mode this frequency is lower. Audio04 is the sample of this first situation, Audio05 for the second one. Additionally, in this second situation I hear probably more distortions to the recorded sound.
Attached Files
File Type: zip audio04.zip (380.8 KB, 115 views)
File Type: zip audio05.zip (370.2 KB, 106 views)
 

The Following 2 Users Say Thank You to NotMicro For This Useful Post:
Posts: 111 | Thanked: 50 times | Joined on May 2015
#16
Originally Posted by ontime View Post
You can use different audio source instead of 'source.hw0':

source.voice (hardware dsp)
source.record
Do you know what is the difference in parameters and quality of recorded sound using these sources? And why source.voice has hardware dsp support and others have not?

Last edited by NotMicro; 2017-07-03 at 13:31.
 

The Following 2 Users Say Thank You to NotMicro For This Useful Post:
Posts: 111 | Thanked: 50 times | Joined on May 2015
#17
Originally Posted by ontime View Post
this set gain for it (0-127), here is 60
Code:
amixer -qc0 set PGA 60
Is this a setting for all types of recording source(that is - microphone) ? What is the default value of this parameter? Has N900 option to use AGC in recording? And how to turn it on?
 

The Following 2 Users Say Thank You to NotMicro For This Useful Post:
Posts: 29 | Thanked: 88 times | Joined on Oct 2015
#18
I have noticed that when sim card is "active" clicking noise has higher frequency; when the phone is in offline mode this frequency is lower
If audio04.m4a and audio05.m4a was recorded by build in mic or headset mic? How do you recognize if sim card is active or not? Are you meaning active sim card as gsm online or making call / send / receive sms?

source.voice (hardware dsp)
source.record
Do you know what is the difference in parameters and quality of recorded sound using these sources? And why source.voice has hardware dsp support and others have not?
I think source.voice has 8000kHz by default.
source.record has wider range 8000, 11025, 16000, 22050, 44100, 48000 [kHz] or sth like that.

Why don't you check its quality? You can use gstreamer for that. Source.voice is optimized for better understanding human voice through gsm transmision and maybe for some background noise cancellation.

Is this a setting for all types of recording source(that is - microphone) ? What is the default value of this parameter?
default is 0, I think. It's for headset mic and fm radio at least.

Has N900 option to use AGC in recording? And how to turn it on?
yes, is has
Code:
amixer -qc0 cset name='AGC Switch' on
amixer -qc0 cset name='AGC Switch' off
or you can find it in
Code:
alsamixer -c0
can be changed by 'm' key
 

The Following 3 Users Say Thank You to ontime For This Useful Post:
Posts: 111 | Thanked: 50 times | Joined on May 2015
#19
Thank you once again for your complete answer. It is really something !!

Originally Posted by ontime View Post
If audio04.m4a and audio05.m4a was recorded by build in mic or headset mic? How do you recognize if sim card is active or not? Are you meaning active sim card as gsm online or making call / send / receive sms?
It was recorded by build-in mic. Active means gsm online. I didn't test recording during making call yet.

Last edited by NotMicro; 2017-07-05 at 15:41.
 

The Following 2 Users Say Thank You to NotMicro For This Useful Post:
Posts: 111 | Thanked: 50 times | Joined on May 2015
#20
Originally Posted by ontime View Post
Why don't you check its quality? You can use gstreamer for that.
Could you, please, explain how to use gstreamer to test quality of recording. And what quality means - parameters of recordng (for example - sample frequency) or levels, oversteering etc. ?
 

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

Tags
audio recording, nokia n900


 
Forum Jump


All times are GMT. The time now is 22:34.