Video Streaming - Android Software Development

Im hoping to create an app that allows 2 phones to stream video to each other, much like Qik, but it will have a completely different purpose. How would one go about streaming? Could I do it with a server on both phones and do it directly between the phones only or would i need a server online? Could I just have video files uploaded as they are recorded and downloaded by the other phone while still being uploaded, or would I need some type or proprietary server to allow for video streaming? Anything else I should know about to help me get started?
Thanks in advanced.

Bump. Any ideas on video streaming?

Related

Can you really stream flash to Core player?

HI!
I read a comment by a user that he was able to use Opera to stream flash directly to Core player...he does not remember how he set that up if even had to....anyone has any ideas of this?
shaolin95 said:
HI!
I read a comment by a user that he was able to use Opera to stream flash directly to Core player...he does not remember how he set that up if even had to....anyone has any ideas of this?
Click to expand...
Click to collapse
while coreplayer does infact support flash i dont think there is a program to do this... There use to be something called FlashVideoBundle that worked with PIE and TCPMP with certain sites. Which was one of my favorite programs. You could also download the videos. This was about 3-4 years ago. While the idea is great idk why nobody has tried this again.
Hm, good question... I stream avi's off my media center to tcpmp all the time, havent tried flv yet... will test and report
Thanks, waiting for your results!
Yes. TCPMP successfully streamed a .flv to my phone via wifi from my NAS media center. you just need the correct address of the serve and loc. of the .flv you want to stream, should work fine
Do you think it would be possible to stream South Park Episodes from South Park Studios for example or maybe from VEOH.com?
Sorry I am kinda of noobish when it comes to this.
umm, it MIGHT be possible if you know the exact location of the .flv you want to stream. Its usually difficult seeing as how you dont exactly know the web developers method for cataloging content.
for example last nite I tried to stream a flash video from ebaumsworld and while the addy I plugged into tcpmp was correct, it only showed me the folder tree and didnt allow access to subfolders. try it, its neat
I will give it a shot thanks!

Streaming Video to EVO

UPDATE: VLC Stream and Convert does everything for me now. I can browse the server directory and watch movies transcoded. There is still a tiny bit of audio lag, but no where near as bad as my methods below.
I am on CM6 nightly.
--- original post ---
Just wanted to share what I use to stream both pre-recorded and live video to the native video player on the EVO. I am using the latest Ubuntu 10.04 with VLC and a Video4Linux compatible BTTV card. The settings I have here are 320x180 res at a very low bitrate as I use this mostly over 3G. Adjust the 'width' 'height' 'vb' and 'ab' to your pleasure.
This is a work-in-progress and any other methods or contributions are greatly appreciated!
To play a movie:
Code:
# vlc -v video.avi -I dummy --sout "#transcode{vcodec=h264,venc=x264{no-cabac,level=12,vbv-maxrate=384,vbv-bufsize=1000,keyint=75,ref=3,bframes=0},width=320, height=180,acodec=mp4a,ab=64,vb=384}:rtp{dst=,port=4555,sdp=rtsp://server:4555/stream.sdp,mp4a-latm}"
To Watch my Dish Network feed (Composite):
Code:
vlc -v vlc -v v4l2:///dev/video0 :v4l2-standard=3:v4l2-standard=45056 :v4l2-chroma= :v4l2-input=1 :v4l2-audio-input=0 :v4l2-io=1 :v4l2-width=640 :v4l2-height=480 -I dummy --sout "#transcode{vcodec=h264,venc=x264{no-cabac,level=12,vbv-maxrate=384,vbv-bufsize=1000,keyint=75,ref=3,bframes=0},width=320, height=180,acodec=mp4a,ab=64,vb=384}:rtp{dst=,port=4555,sdp=rtsp://server:4555/stream.sdp,mp4a-latm}"
To Watch my home security cameras (ATSC US Cable #104):
Code:
vlc -v v4l2:///dev/video0 :v4l2-standard=3:v4l2-standard=45056 :v4l2-chroma= :v4l2-input=0 :v4l2-audio-input=0 :v4l2-io=1 :v4l2-width=640 :v4l2-height=480 :v4l2-tuner=0 :v4l2-tuner-frequency=673250 -I dummy --sout "#transcode{vcodec=h264,venc=x264{no-cabac,level=12,vbv-maxrate=384,vbv-bufsize=1000,keyint=75,ref=3,bframes=0},width=320, height=180,acodec=mp4a,ab=64,vb=384}:rtp{dst=,port=4555,sdp=rtsp://server:4555/stream.sdp,mp4a-latm}"
------
Start Movie Client Stream on Android:
- Open browser
- Browse to “rtsp://server:4555/stream.sdp”
- Watch stream!
** Also worth noting the VLC HTTP interface seems to be working partially and apparently you may be able to setup playlists and such within there. I mainly am using this method to view live content so I havent explored much of that yet.
** Someone with more time than I could theoretically whip up a simple PHP page that enumerates a directory and launches vlc for video library type of support.
Thanks OP.
Forgive my ignorace. But for stored content, this doesn't start the stream until the Android client opens it, right? Not sure since you say that you usually use it for live streams.
I've been looking for a way to stream movies from my 7MC box to the EVO. This might work if the windows version of VLC has the same function. What kind of quality can you get from a stream on the local network vs. WAN?
Well I've been trying this on the windows machine and I'm starting to think this is not a very polished solution. What I would like is to be able browse the media in folders and start a video stream all from android. I'm not sure how possible this is. I have found so far:
Gmote - can only stream one format I think. I don't feel like converting
Orb - closer, but I'd really like to do all this through the home wifi network, not involving an orb server at all. Plus the video quality is a bit less that what I was hoping for.
VLC - can supposedly transcode on the fly from nearly any format to mp4 to play on Android. But I don't see a way to start a stream from android. I can use the HTTP interface to start the player but I don't see how to start a stream or browse more than a playlist (can't create one).
Maybe I missed something.
I've been trying to get the VLC Stream and Convert app to work, I can control VLC player on my PC but I can't get the streaming to work.
Is our phone supposed to play the H.264 stream fine? It seems like zonyl got it working, I tried all different video sizes and I'm using the mp4 latm audio, but nothing shows up on screen when it's playing, no sound, nothing.
Anyone have any advice?
Search market for AndroStream... Supposedly an app that uses VLC for streaming AND lets you initiate streams from your phone. I tried it but couldn't get it to stream over WAN.
nhutpham said:
I've been trying to get the VLC Stream and Convert app to work, I can control VLC player on my PC but I can't get the streaming to work.
Is our phone supposed to play the H.264 stream fine? It seems like zonyl got it working, I tried all different video sizes and I'm using the mp4 latm audio, but nothing shows up on screen when it's playing, no sound, nothing.
Anyone have any advice?
Click to expand...
Click to collapse
VLC Stream and Convert does everything for me now. I can browse the server directory and watch movies transcoded.
I am on CM6 nightly.
Any advice on settings and such?
I can browse and everything, but when it plays I get nothing except the moving bar and the timer starts running.
I'm on the rooted stock froyo rom.
I've been trying to get the VLC Stream and Convert app to work, I can control VLC player on my PC but I can't get the streaming to work.
Is our phone supposed to play the H.264 stream fine? It seems like zonyl got it working, I tried all different video sizes and I'm using the mp4 latm audio, but nothing shows up on screen when it's playing, no sound, nothing.
Anyone have any advice?
Click to expand...
Click to collapse
VLC Stream and Convert does everything for me now. I can browse the server directory and watch movies transcoded.
I am on CM6 nightly.
Click to expand...
Click to collapse
Thanks for the tip. I'll try it out. Will this work on a sense Rom tho? Might have to flash cm6
nhutpham said:
Any advice on settings and such?
I can browse and everything, but when it plays I get nothing except the moving bar and the timer starts running.
I'm on the rooted stock froyo rom.
Click to expand...
Click to collapse
I'm just running with the stock settings for the most part. Changed the resolution to whatever my bandwidth can tolerate at the time and make sure audio sync is turned on.
Sent from my PC36100 using XDA App
Got to try this app last night. Wow, very cool. Easy setup (visit the devs website), decent video quality, easily browse the pc for media. Dev has a donation version that i'll pick up for sure.
Another +1 for this app. Wish it did a better job with aspect ratios, but it still streams most of my media great.
Sent from my blah blah blah blah
hate to necro a thread but im trying to set this up for over 3g/4g. any luck? if so, what settings am I missing?
I know its 2 months old.
Anyone have any tips on setting up the VLC convert app to work with Mac. I am unable to find the file that the developer is suggesting I modify.
Thanks
engagedtosmile said:
hate to necro a thread but im trying to set this up for over 3g/4g. any luck? if so, what settings am I missing?
Click to expand...
Click to collapse
Don't know if you've done it already but, turn on your wifi (no need to connect to a network, just turn on)
read this http://traveldevel.com/vlc-stream-convert/streaming-over-3g

Divx / MKV Playback streamed or AllShare?

Just picked up my Vibrant today (Bell Canada version). So far, I am very happy.
However, one thing I thought I would be able to do with this phone (since it is DivX HD certified), would be to stream DivX over the network to it - either via Astro / SMB, or via the AllShare UPNP it comes with - without having to convert them.
Alas, neither of these seem to work. All I ever get is "video format not supported" or some-such from the built-in video player.
In anyone able to STREAM DivX avi or mkv files to this phone? I know my UPNP setup works because my BluRay player (also a Samsung, with "AllShare", BTW) can play it fine.
Based on my testing, Allshare's media playback definitely does not support all of the media formats/codecs that the primary video player supports. So while DivX and MKV videos work fine copied to your SD card, the current version of Allshare may not stream them wirelessly. I simply get an error message stating "Sorry, this video cannot be played"
This could be a matter of Allshare simply not using the same codecs, pending a possible update. ::crossing fingers:: Since both MKV and DivX are open standards, I don't imagine it would be a licensing / copyright restriction. I've personally found that while most XviD videos stream fine, a few will not. I haven't yet narrowed down the specifics.
I connected to my laptop with Windows Media Player, XBMC, and Samsung PC Share Manager thus far. Some of what I've read about various DLNA media servers suggest that real-time conversion may be an option in cases. These UPnP Media Adaptors transcode the files as it comes across. I have yet to look into that as a work-around but remain hopeful. [Update: It sounds like Nero Media Home may handle this well]
Ultimately, I foresee the Galaxy S (Transdroid) and DD-WRT (Transmission, uShare, external HDD) routers becoming the nexus of many home entertainment centers.
Yeah... the device I use for my UPNP server is a router... so real-time conversion is for sure not an option.
Given that the player can play these files, it seems silly that AllShare can't read them. AllShare *is using* the native player. So it is somehow messing with the files, or making the wrong guesses as to what it can play.
I might contact Saumsung support about this, maybe if people raise a stink about it it will be fixed in the Sept. update?
I have a Captivate, but I'm running into exactly the same problem.
I've used every "DLNA" supporting media server out there, transcoding or not, AllShare on my Galaxy S will not play it. It browses just fine, pictures work fine too, but video is a no-go.
What's really weird, is even after I get the "Sorry, this video cannot be played" error, if I go to properties->details, it shows me the correct duration, but a file size of "256.00GB". And I know the file in question plays beautifully when loaded onto my SD card, or the phone's internal memory. So what the heck is going on? Getting this to work on the Galaxy S would be an absolutely killer feature and I really hope more people get involved with this.
Shammyh said:
I have a Captivate, but I'm running into exactly the same problem.
I've used every "DLNA" supporting media server out there, transcoding or not, AllShare on my Galaxy S will not play it. It browses just fine, pictures work fine too, but video is a no-go.
What's really weird, is even after I get the "Sorry, this video cannot be played" error, if I go to properties->details, it shows me the correct duration, but a file size of "256.00GB". And I know the file in question plays beautifully when loaded onto my SD card, or the phone's internal memory. So what the heck is going on? Getting this to work on the Galaxy S would be an absolutely killer feature and I really hope more people get involved with this.
Click to expand...
Click to collapse
I already sent a question to Samsung support through their website about it... I suggest you do the same. If enough people ask about it maybe a fix will make it into the rom update... there is obviously something wrong with it.
Unfortunately most on this forum seem to be using AllShare to play media from the phone on the TV, not the other way around.
same problem but it wont play any thing, including MP3's. I have media tomb setup as a media server and I can browse it all day long but cant stream a single anything.....really annoying.
I have been able to stream mp4 videos from my NMT device (DragonTech ioBox, the A100-series of NMT hardware). That's it, though. No other formats will stream although I can browse for everything.
These are 720p mp4 files that I grabbed from YouTube.
i have the same problem too:/ dno wut to do!!!
MV10 said:
I have been able to stream mp4 videos from my NMT device (DragonTech ioBox, the A100-series of NMT hardware). That's it, though. No other formats will stream although I can browse for everything.
These are 720p mp4 files that I grabbed from YouTube.
Click to expand...
Click to collapse
So.... UPNP problems are usually due to the headers sent to the player. If we knew what headers were being sent to the phone that *worked*, we might be able to know how to fix it.
I don't suppose you know how to use Wireshark? You can use it to sniff your network and see the HTTP headers being sent from your DLNA server to the phone.
Not familiar with it, but I'm a developer In Real Life, I can figure it out. I'll have a look.
Samsung support == horrible
So this is the email i sent
AllShare Player, Supported Formats
I am wondering what media formats the AllShare DLNA client on the Galaxy S can play?
I have several Divx HD media files that play fine when copied directly to the phone, but when I try to play them using the AllShare DLNA client (streamed from a non-transcoding DLNA server), they do not play.
What are the formats supported by the AllShare client, and what mime types is it expecting for those formats?
Is there any planned update to allow the AllShare client to support the same formats the phone does from the filesystem?
Click to expand...
Click to collapse
This is how they respond.
Thank you for submitting your inquiry to Samsung.
Please try MP4 format.
Thanks
Click to expand...
Click to collapse
Basically, they totally ignored the question.
What's more, if i try to reply, the form is busted.
*Frustration*
the thing with allshare i think is that whatever youre playing it on, has to be compatible with the file type.
i have a samsung c6500 bluray player that i use for allshare through vibrant which plays basically all formats, and i have no issue streaming anything to it through the phone.
theking52 said:
the thing with allshare i think is that whatever youre playing it on, has to be compatible with the file type.
i have a samsung c6500 bluray player that i use for allshare through vibrant which plays basically all formats, and i have no issue streaming anything to it through the phone.
Click to expand...
Click to collapse
This thread is about doing the exact opposite.
The SGS/Vibrant can play Divx HD, heck it even has the Divx HD certified logo on the box. But if you try to stream it to the phone with AllShare, it does not work. If you copy it to the phone with USB, it works fine. So, AllShare is busted.
I don't want to play movies from my phone to my TV, I can't even think when I would ever want to do that. But playing movies or TV from my media server on my phone while lying in bed, that is something I may want to do occasionally.
This is strange as I am not having ANY problems with streaming divx Avi files and even 720p M4V files through AllShare to my phone. I am however not able to stream my MKV files.
The only thing I see different is that I use Twonky for my UPNP server running from a Nettop PC I have setup as a server. They do have a trial for Twonky for those that want to see if it works for them. http://www.twonky.com/
The biggest disappointment for me is that AllShare FORCES wifi. I was hoping I could hack that feature out of AllShare through the Vibrant dumps available here, but I cant seem to find what Im looking for. In truth Im kind of new to editing code, so Im really just taking guess most of the time.
The reason I want this to work over 3g is that a simple VPN should allow me access to my UPNP server from where ever I am. At present I have this setup using Hamachi VPN on several PCs that belong to friends and family. This allows them access to my Twonky UPNP server that they can browse with XBMC. My Fios 30Mb up/ 30Mb down connection will even allow them to stream 720p video from me. I dont even notice the hit to my bandwidth sense UPNP is pretty light in terms of bandwidth.
Anybody want to take a stab at getting the wifi only portion of AllShare removed?
Same here. I have Twonky running on my unRAID server and I'm able to stream MP3s, JPGs, and DivX AVI files without a problem. However, as soon as I touch an MKV file I get an error. I really don't see why as I can play them back locally on my phone. Has anyone gotten anywhere with this?
mac1978 over on Android Forums has tried renaming MKV files with AVI extensions and he says that works. Absolutely ridiculous. Does this mean that AllShare has blacklisted MKVs, or is there some sore of glitch in the supported file format list? Either way, it's clear this is a software issue on Samsung's part. Any idea how we can get it fixed?
http://androidforums.com/samsung-ca...re-streaming-samsung-bs-my-final-impasse.html
The AllShare player itself isn't that intuitive. Considering Samsung is launching a PMP based on our phones seems ridiculous considering it's shortcomings. Maybe it will spark more development in this area.
EDIT: This post suggests the feature was working post 2.2. Does anyone have a Galaxy S still on 2.1 that can test this out for us?
http://samsunggalaxysforums.com/sho...es-via-ALLSHARE-since-upgrading-to-Froyou-2.2
EDIT 2: There seems to be another thread on this in the i9000 forum. No one has anything really there either.
http://forum.xda-developers.com/showthread.php?t=801423&page=2
brunes said:
Basically, they totally ignored the question.
*Frustration*
Click to expand...
Click to collapse
Yes, well, at least you could get an email address. It appears the Canadian website doesn't even HAVE email support. All they give you is a phone number (1-800-726-7864) which as of right now, redirects you to the American support line who are unable to even talk to you. I was able to get the correct number from them (1-905-542-3837) and told them about the redirection issue. Hopefully they will resolve that.
Anyway, the girl I spoke to was just as unhelpful. She was friendly about it, but after looking it up she said the reason was because of "codecs?" and that AllShare can't do MKV. It can only stream MP3s and AVIs, or some other nonsense. Clearly the case is not codecs because as some have observed if you change an MKV extension to AVI it plays. It is using the correct codecs on the phone just fine. AllShare is just rejecting the MKV container for some reason.
Because this is phone support there's no way to really escalate things, so I was hoping someone could get a hold of a Canadian Samsung Mobile Support email address? If not maybe a helpful American can contact the US support team and find out what is going on.

[Q] Make .mp4 streamable in Android?

I want to make a .mp4 streamable, I have tried every program that is out on the internet. Also I know by a guy I asked, that you must have at least 2 programs to make it streamable, and that the second program is not know by many peoples.
So does anybody know anything? I will be VERY grateful. Also I would buy you a beer or two
Thanks.
Do you have MP4Box? If so you can easily add the -isma and -inter 500 settings to add streaming optimizations to the movie. The other key is that you have a web server that supports byte level gets such as apache.
If you can provide more details about the MP4, what codecs it uses, bitrates, etc.
Good luck,
Rick
rfryar said:
Do you have MP4Box? If so you can easily add the -isma and -inter 500 settings to add streaming optimizations to the movie. The other key is that you have a web server that supports byte level gets such as apache.
If you can provide more details about the MP4, what codecs it uses, bitrates, etc.
Good luck,
Rick
Click to expand...
Click to collapse
Strange, I did as you said and uploaded to my server (it runs Lite Speed, its like apache) In the emulator the video plays, but after a while i get an error: "Sorry, this video cannot be played" BUT THE VIDEO KEEPS PLAYING! lol?
Or is that just a emulator problem? I don't have a "crappy" android phone near me so I can test it. My phone has a streaming player built in that streams almost everything. So my phone didn't have any problem streaming it.
Well thanks anyway!

[Q] Clear.Fi - I don't get something.

We all know that the A500 can't play most regular video formats such as DiVX and so on natively, so can anyone explain to me how come the Clear.Fi app is able to read these files well enough to generate thumbnails of them, but fails when I try to play them?
It doesn't make sense to me... How can it make a thumbnail of a random frame from the video if it can't read the encoding?
Yes, I know I can use Moboplayer to play back, and I do... Just trying to work out how Clear.Fi can make thumbnails of files it can't play.
I was just wondering the exact same thing today, any ideas anyone?

Categories

Resources