tinattwang / spydroid-ipcamera

Automatically exported from code.google.com/p/spydroid-ipcamera
GNU General Public License v3.0
0 stars 0 forks source link

Sound support #3

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Hi folks, just to let you know that i have started to work on sound support

First, i have found out that we can't use the same MediaRecorder object for 
both sound and video. We would need to read the position of chunks in the moov 
atom. And the moov atom is only wrote when recording stops :(

So i guess we need two MediaRecorder objects, one set up to record sound, and 
another for recording video.

For the aac packetization process, the following rfcs seem to be relevant:

http://tools.ietf.org/id/draft-ietf-avt-rtp-mpeg2aac-01.txt
http://www.rfc-editor.org/rfc/rfc3640.txt

I still don't know how to detect aac frames in the stream. If you have any 
suggestions i would be glad to hear them.

Regards,

Original issue reported on code.google.com by FyHertz on 19 Sep 2011 at 9:42

GoogleCodeExporter commented 9 years ago
Good news, sound is now supported but there's still some work to do.
Bad news, format is not AAC but AMR NB. 
Streaming AAC seems really complicated, wiithout the moov atom there is no way 
to determine AAC frames size. Actually there is one way: decoding the frame but 
that's a lot of work.

AMR packetization process was on the other hand really easy to implement. 
Frames are 32 bytes long and that's all we need to know to packetize the stream.

Original comment by FyHertz on 26 Sep 2011 at 12:22

GoogleCodeExporter commented 9 years ago
wowza not support amr..
a little bit disappointed.
http://blog.csdn.net/arau_sh/article/details/6271374
I found some reference,
you can see the code in making aac rtp packet
but i dun know is it work or not.

Original comment by tck....@gmail.com on 26 Sep 2011 at 12:38

GoogleCodeExporter commented 9 years ago
hiiii...

I am able to stream video using your application but when i play it on vlc no 
sound is coming.can you please help me in this regard.

thanks

Original comment by iitkgpni...@gmail.com on 19 Oct 2011 at 6:12

GoogleCodeExporter commented 9 years ago
I have the same problem as iitkgpni... I am able to stream video from a 
motorola xoom running 3.0 but no sound. I checked logcat and it says the buffer 
is being overrun.

Thanks for a great app!

Original comment by maxlaw...@gmail.com on 23 Nov 2011 at 9:04

GoogleCodeExporter commented 9 years ago
If still someone have sound problem then this is for you.
I had the same problem no sound in vlc, but resolved my udp port 5004 was used 
by windows netword share service when i stopped that service i can hear sound.. 
:)

if using windows then check using following command
1) netstat -a -o -n and look for ports  and the corresponding pid
2) then use tasklist /FI "PID eq <pid>" 

then stop that process i hope it will work.. :)
Thanks for this project..

Original comment by hunain.m...@gmail.com on 12 Mar 2012 at 9:30

GoogleCodeExporter commented 9 years ago
I stop the process which using the port, but I still cannot hear the sound.
Any help please?

Original comment by tiendu...@gmail.com on 26 Mar 2012 at 2:04