Teaonly / android-eye

Change your android phone to surveillance camera
Other
1.08k stars 492 forks source link

Audio Support or Stream Details/Example #29

Open halsafar opened 9 years ago

halsafar commented 9 years ago

Is it possible to show audio support in your html video player? I suppose it is just RAW mono pcm audio, so it shouldn't be to hard to figure out just curious as to why the example seems incomplete.

It would also be nice if you could just include on your main page README something about the media stream you have designed here. It appears you pass a block containing elementary h264 nal units and a block containing pcm audio. The h264 nal unit is without SPS/PPS information correct? I notice you push timing into the video header.

I am looking to take what you have done and decode the stream using Android MediaCodec.

halsafar commented 9 years ago

Upon further review. The audio is going through g726 encoder.

I was able to use vlc to play the elementary h264 stream, no audio.

I was able to use g726_decoder to pull out the g726 audio and convert to a WAV and listen.

I am still curious as to if the format you are sending is ready for MediaCodec, what information you are putting in the headers and where to dervice/get SPS/PPS information from.

allefeld commented 7 years ago

@halsafar how did you use VLC to get the stream? I couldn't figure out the URL for the actual video stream.