How to send a Wowza Stream to Google Cloud Speech API? - java

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]

Related

Google Streaming Speech Recognition on an Audio Stream Java - Example App

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

Can Google protobuf parse video streams?

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。

Streaming Live TV channel from m3u play list

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

RTSP streaming of video files to 3gp

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)

What are my options if I want to compress a video before upload in Java?

I am uploading a video file which is in .mov or .mp4. I want to compress it (little loss of quality is acceptable) before uploading to Amazon S3. Is there a library in java which can accomplish that ? I found one called Xuggler but it looks a lot complex. Is there any other way ?
The best diy option is to use ffmpeg.
FFmpeg is a complete, cross-platform solution to record, convert and stream audio and video
It's is a command line tool so can be called by a java app. Here's a tutorial on how to encode to H.264
Another option is to outsource your encoding to an encoding service like encoding.com or Ankoder. Both those integrate with S3 and can upload the encoded videos to your S3 account.

Categories

Resources