Live streaming from Android app to Youtube - android

Is it possible to stream video from Android app to Youtube in live mode (to live channel on Youtube)?
I would like to do that but by streaming a previously-saved file from the Android device (not streaming video from the device's camera).
I'm looking for the simplest solution to do that (without a need for any intermediate servers, etc.), specifically for the purpose of streaming from Android (but the question is more about Youtube API).
If it is possible, where should I start with?

No. Unless you are an offical YouTube partner on their magic happy list. They know who they are, and it doesn't sound like you are one of them. Sorry.
From an announcement on their blog:
Today, we'll also start gradually rolling out our live streaming beta
platform, which will allow certain YouTube partners with accounts in
good standing to stream live content on YouTube.
Remember that Youtube Live is only a year old. The state of things very well may change in the short to medium term future.
In the mean time, have a look at services that may meet your needs, like justin.tv or ustream.com

It can be done :) To answer the question: you kind of need to dig in very deep into things like MediaCodec, H264 video encoder, Adobe's RTMP specification, the FLV media container format, and several other things.
Disclaimer: I am the author of that app.

Yes... if you are willing to pay quite a lot of money.
There is an app called "Screen Stream Mirroring" available on the Play Store. There is a limited free version (which I have tried and seems to only stream for around 10 minutes) and there is a paid version, but it's a lot of money for what you're getting: £3.99 (about $6.05 as of 06/09/2015 according to xe.com).
Feel free to try them out: Click here for free version or Click here for paid version.

You can stream your videos live to hangout and at the end they may be uploaded into your yourtube.
More info:
http://www.google.com/+/learnmore/hangouts/onair.html

You have to enable live streaming on your Youtube account.
But problem is that you need to call someone from Hangouts and that person need to answer your call. Then your stream goes live to Hangouts and your linked Youtube channel. It is impossible to make live stream without at least one person answering that "call".

According to this youtube page, it is possible: http://youtube-eng.blogspot.com.tr/2014/10/watchme-live-stream.html

Related

Live video broadcasting SDK

I need to develop App for live broadcasting video to AWS.
From back-end I get link (like: rtp://111.11.11.1:5000 ) and need to stream to it. By stream i mean: broadcast video from device camera to this link. I have no experience in streaming, so decided to use some SDK.
I've spent a lot of time googling it, but didn't find anything useful (some SDKs support only RTMP, or RTSP links, some are not alive anymore, etc).
The only workable solution for now in Wowza, which is quit expensive.
Can somebody recommend some free, or not expensive SDK, or any solution?

How can Periscope App broadcast the video so successful?

Twitter's new application Periscope broadcasts video. I watched a broadcast just a couple minutes ago first time and I wonder that how can it stream live video without any freezing or annoying freezing (Actually I didn't see any freezing but maybe there was somebody has) on 3g? 2 or 3 weeks ago I have tried Twitter's video post feature and it was a disastrous. What is the difference between live streaming and recorded video uploading? Or is it difference between iPhone and Android?
The answer is not that simple.
HLS is for example how they do it on the web and how Meerkat does that using short segment sizes to speed up the buffering and playlist creation that HLS creates.
On mobile they show a 2-3 seconds latency which I never saw using HLS.
Sniffing the connections themselves I see that on mobile they are using RTMP which is way more expensive and way less scalable to give that experience.
Here is a short article talking about that - note the comments about the rtmp playback:
http://www.alamtechstuffs.com/periscope-livestreaming-app/
There's no secret, it's a well established technique which is not Twitter specific.
Uploaded videos are fetched using pseudo-streaming (progressive download) while the live stream is delivered using adaptive bitrate streaming which means there are multiple renditions of the same live stream for different bandwidths. The player can then choose one version that makes the most of your connection.
http://en.wikipedia.org/wiki/Adaptive_bitrate_streaming

Screencast from Google Glass

I'm looking for an efficient way to stream what Google Glass's camera is seeing in real time. I know there're several alternatives, including MyGlass, but I'd like to build my own app since it will have several extra features.
My first approach was to just send frame by frame to the server, letting server side to compose the video, but I'm guessing there must be a more efficient approach. Anyone who can point me in the right direction to a better approach?
MyGlass does not deliver live video casting, nothing even close to this. I have easily built an RTSP streaming app around the wonderful libstreaming library, which has recently been updated to support Google Glass. Worked smoothly (but with some lag) over WiFi at 320x240 resolution with H264 codec.
See this example for generically doing this in android: http://www.mattakis.com/blog/kisg/20090708/broadcasting-video-with-android-without-writing-to-the-file-system

Youtube video blocked on mobile bypass

Is there anyway to bypass the blocked videos on mobile? First I tried to fire up normal youtube intent, then I used WebView (using both video and iframe tags), and lastly I changed the user agent of WebView to a desktop client but none of the above mentioned way worked. I tried rtsp to stream the video using VideoView but it would only give me a low quality 3gp video, which is what Youtube API gives.
I am running out of options. Any help would be highly appreciated.
Thanks!
I ran into the same thing with some of our videos on YouTube and found out that only YouTube controls if it will be allowed to show on a mobile. We never found a work-around for it other than hosting the video on our server or using Vimeo. But as it stands,YouTube has control over mobile viewing. Also do you have that video monetized? Monetizing a video on YouTube can also cause them to not allow it on mobile especially if it has any content that YouTube is saying is a Third Party or Copyright infringement. They told us we had third party content when it was all shot by us. Further reading in that problem showed that YouTube's new digital fingerprint is the main culprit for creating a new wave of problems for users trying to upload their own videos they made and own. i.e., a user tried to upload a video of his backyard with birds in it and the birds were singing. When he tried to upload it, YouTube said it was Copyrighted! How do you Copyright bird chirps everyone is now asking!
So try Vimeo or use your own server to deliver the content. Sorry I can't offer more help.
I remember being able to bypass the block as a user by asking the desktop version of the YouTube site and then watching the video with the (not updated anymore) Flash Player for Android. So maybe you could try pretending to be the Flash Player when asking for the video from your app. Maybe use a network sniffer to see what it's doing.
User "OMA" gave an answer (use 'Desktop Mode'), that sometimes works and is easy to try.
Next up is this Site (or a similar one): http://www.mobileyt.com/ which accepts an URL, then shows your Video.
A Proxy Server might assist you with access, particularly if it is a 'Country Restriction' (for Mobile, but does not mention the Country Restriction only the Mobile one). Any ADs served to that Country may be poorly received (Language / Customs); so it is blocked.
You can try a Spoofing Application for your Mobile Browser (Hint: Spoof you Browse with the Opera Browser OR use Explorer 10 on WinXP they won't be ready for that).
Combining those techniques can assist in difficult cases. You can also resort to downloading the Video and playing it with MX Player or VLC (for Mobile).
Good luck, and if at first you don't succeed ...

Android how to video record, upload, transcode, download, play

I'm researching the development of an Android (2.2) app/service that will enable users to record short (I do emphasize short, < 30seconds) video on their phones and then upload that video (HTTP) to a server that will then transcode the video to other formats. That same user can download videos from other Android users and play them.
Now, I get a bit lost with everyones recommended approaches to all the issues in doing something like this because I haven't seen any ask this in a cohesive context. Ideally I would like a non commercial solution to this (as in no vendor/service being needed for the the video hosting/transcoding), but, feel free to include those as a recommendation (I've marked this as a wiki) as I know many like to use youtube and vimeo for the middle layer in all this.
The questions are
What server technologies do you
recommend for hosting and
transcoding?
What technology do you
recommend for streaming the video (it
would be nice to offer a high and
low quality encoding depending on
the users network connection)
What video format and software do you recommend for converting the uploaded video on the server to be viewable later by other Android owners.
Im assuming it's bad to do any transcoding on the phone prior to upload (battery/proc issues), but, if I'm wrong with that assumption what do you recommend?
Some things that may help you...
The video will only need to render on an Android device, and in the future in a webkit html5 browser.
Bandwidth isnt cheap (even with numerous 30 second videos), so a good mix of video quality and video file size is important (streaming if needed to ensure quality vs. download).
This is for android 2.2 devices with a video camera of course and medium to high density screen of 800x400 min.
Open source solutions (server to receive the uploads, code to do the transcoding, server to do the streaming) are preferred, but not required.
CDN's are an option, but I don't think that really figures in to the picture right now.
Check out this page to see all the video formats that Android supports for encoding and decoding.
http://developer.android.com/guide/appendix/media-formats.html
For encoding use FFmpeg or a service like encoding.com

Categories

Resources