Excuse me, can Google protobuf be used to parse video streams?
The client is Android, and the server is C++, using netty+protobuf communications, server connection monitors, and now want to get video streams from the server.I'm not sure it will work。
Related
I need do following with my web app.
1.Stream audio from webpage & submit to google cloud speech API & get the result. For that I want to know following?
1.how can i get the audio stream from webpage (access microphone) & submit to
speech API by using web socket or javasdk.
There is a sample for streaming api in java sdk samples but it loading file
from local files. Not real time reading from microphone.
2.How can i do text-to-speech using google cloud API.
Any help would be appreciated.
Thanks,
Pradeep
Wowza gives me rtsp://, rtmp:// and m3u8 streams. I want to send this to Google Cloud Speech API, so it transcribes the streaming on the fly.
This API seems to be able to receive only pure byte representation, and the samples on Github show how to do it with a file.
How can I achieve this with the Wowza links?
EDIT: My question is different. In the other question I ask for services that offer that functionality and in this I'm talking of Google Cloud Speech specifically, and how to do it with that API.
One way to get the raw data from a RTSP/RTMP stream would be to use FFMPEG as a client piping the data into your app (FFMPEG providing the transcoding as necessary)
https://ffmpeg.org/ffmpeg-protocols.html
rtmp://[username:password#]server[:port][/app][/instance][/playpath]
I am trying to develop an app for live channels streaming
But getting trouble when try to play from m3u play list .
http://jan.newmarch.name/android/StreamingAudio.html
This above link describe Streaming Audio from m3u play list . But I want to
Streaming Video from m3u play list .
Look into VLC as it has strong streaming capabilities, and support for probably any video/audio format. You will need to integrate libvlc in your app and pass command-line options to the libvlc.
If i understood your question correctly, you want to set up a video streaming server. The mostly common video streaming format for internet is HLS, which uses m3u8 playlists. You can start with ffmpeg using this tutorial (or any of tens of the others):
http://www.bogotobogo.com/VideoStreaming/ffmpeg_http_live_streaming_hls.php
However there are a lot of possible approaches depending on your project scale and requirements.
Finally I got the answer
You can parse m3u play list Using by m3u playlist parser Library in java or U Can create custom m3u play list parser also.
I would like share the link one of the m3u playlist parser Library
I need to mix the audio streams from multiple RTMP streams. I would like to use the Java Sound API, because it works well for mixing (as discussed in a previous question, Combining multiple sound streams in Java) - I have already successfully tried it for files.
I am pretty sure that AudioInputStream should be able to do real-time streams, as is indicated in this FAQ: http://www.jsresources.org/faq_audio.html#ais_length_unknown
What I don't know is how I can get the audio portion of the RTMP stream and get an AudioInputStream from it. Are there any (RTMP) libraries that do that or that I could extend for that purpose?
Any other suggestions on how to mix audio of rtmp streams?
Thanks in advance!
ffmpeg library may help you. look in to http://ffmpeg.org. It supports rtmp protocol and also can extract/merge audio streams. You may only need to invoke ffmpeg from your java code.
One of my friend wants to build a mobile site. He also has a couple of video files that should be streamed on to visitors mobile when chosen. I want to know if there exists a library to stream a video over rtsp in java. I tried this one http://www.csee.umbc.edu/~pmundur/courses/CMSC691C/lab5-kurose-ross.html. But it had too many incomplete code and was giving errors.
VLC has a nice streaming (over RTSP) functionality. Maybe you could look at streaming in VLCj: http://code.google.com/p/vlcj/wiki/Streaming
May be you should try Xuggle with this tutorial: http://www.javacodegeeks.com/2010/05/rtmp-to-rtsp-re-stream-using-wowza-and.html
RTSP is the negotiation protocol you can use something like JBoss Netty for tat. Then you need something to stream the media itself which is done via RTP. You can use Gstreamer (which has Java binding)