java - Microphone UDP live audio streaming -


I am trying to write a Java program to send live microphone data to UDP, then get data in VLC. I'm basically using the same code to package the stream and when sending them. When I get data in VLC, then I do not get anything. I'm having a bunch of input but none of this is interpreted as audio data. It tries to solve this information as mpga or mpgv, but I am pretty sure that it is being sent as raw audio. Is there a problem at the end of VLC? Should I configure VLC to get a specific format? Or is there no problem in my program, as the VLC can explain it? You should do a capture of a live microphone data in a file and find out what this format is. After this transfer the file to VLC (if it makes sense), to see if VLC can face it in that form.

If you are going to use UDP in the long run, then you need to make sure that the audio format you are using is the chunks of data between the audio stream due to the network packet loss Can cope with the loss. If not, then you should use TCP instead of UDP.


Comments

Popular posts from this blog

sql - dynamically varied number of conditions in the 'where' statement using LINQ -

asp.net mvc - Dynamically Generated Ajax.BeginForm -

Debug on symbian -