New: XDA launches forum for app developers. Discuss coding, tools, marketing, and more.
XDA Developers Android and Mobile Development Forum
Forgot your password?
 
Post Reply+
Tip us?
 
tallnerd1985
Old
#1  
tallnerd1985's Avatar
Senior Member - OP
Thanks Meter 42
Posts: 293
Join Date: Dec 2008
Location: Vancouver, WA
Default Streaming Hi-Quality Videos To Android With Tversity and nswPlayer

Hello everyone,

I have pieced together a tutorial to get hi-quality Video Streaming to your Android phone over Wi-Fi or 3G. For those of you using Orb Mycast for years, like I have, have noticed that the quality is unbearable and down right atrocious until I rediscovered Tversity again.

Here are some items you will need:

1: Tversity installed on PC where media is stored

2: nswPlayer installed on Android phone from market
Its the only player for Android that picks up on .mp4 files without having to download the file all the way

3: Handbrake encoder from handbrake.org for converting your movies to a lower resolution and optimizing for progessive playback

Optional: Setup your PC for Static IP and Port Fowarding if you want to stream via 3G if away from home. Go to www.portforward.com for detailed tutorials on how to set this up.

Encoding Movies for Progressive Streaming Playback

Before you begin encoding your video for playback, here are some things to look at to keep the video quality hi while making the smallest video size available. You want to look at the resolution/bitrate of the movie you are encoding and if you are like me and get your movies off of uTorrent or such, you want to keep the same quality. You want to keep the bitrate match to the resolution size by converting it such so that if you have a movie file that runs at 729kbps at a resolution width of 672, when you downsize the file to a resolution width of 320 then the bitrate should be 346kbps to match.

In Handbrake, go ahead and select iPhone legacy as the profile for encoding.

Next, check off the Web Optimized button so that the file can played progressively, if not, you will get an error message saying "illegal file".

After loading your source and destination, make sure the destination file is saved as yourmoviefile.mp4 instead of yourmoviefile.m4v because you will also get a "illegal file" error.

Under Picture, change anamorphic encoding to none and make sure "Keep Aspect Ratio" is check marked. Next, changed the width down to 320 and the height will automatically change with it.

Under Video, change to Avg Bitrate to match your width resolution like I explained above and then you are ready to encode when hit the start button.
Bear in mind that this might take a little while depending on your PC's Hardware specs. If you have any issues using Handbrake, visit their forums for any fixes that you need.

Setting Up Tversity For Streaming

I will not go into detail about setting Tversity on your PC such as configuring the libraries and such but I will go over settings that need to be in place for this to work.

Under Settings in the Transcoder section, make sure under "When To Transcode" make sure its set to never. The reason behind this is I havent figured a way for Android to pickup on the stream without waiting for it to fully transcode.

Next under General Settings, under Home Network, make sure you plug in your PC's IP address so that way your phone has access to your video files.

For this part, you would have had to setup your PC for a static IP instead of being a random IP that is given when your PC gets turned on each time. If you got to www.portforward.com for detail tutorials on setting up a static IP.

Optional:Under General Settings in the Home Network Section, there is an option for "the media server should accept requests......" which will let you access your media over 3G on your phone. To set this up, after you check mark that you want access, go ahead and setup a username and password to let you login from outside your network.
As before, you need your PC setup as a static IP but also you have setup your home router to Port Forward requests from Port 41952 to your PC's Static IP. Go to www.portforward.com for instructions on how to setup port forwarding.

Install A Android Media Player That Will Pickup On Progressive MP4

So far the only media player that works for this so far is the "nswPlayer" that you can download for free off the market.
If anybody has found a better player that works for this solution, please let me know so I can test it out.

Last But Not Least, Lets Stream A Video To Our Phone!!

For Home Wi-Fi Streaming Only

Open your web browser in your Android Phone, input your PC's Static IP such as "192.168.1.XXX:41952/lib"(Replaced the XXX's with Your IP address that you previously setup), from here, you will be navigated to Tversity's mobile WAP GUI. Navigate from here where you setup your video files in your library to appear. After that, select your video file and if all is setup correctly, then either you will get a popup saying with default player would you like to use or it will go straight to nswPlayer and start playing the movie.

For Streaming Over 3G or Another High-Speed Wi-Fi Connection

The only difference here that we are going to do is navigate our Android Browser to your home's IP Address which can be found easily if you go to www.whatsmyip.org from your home PC. For example it will look like this, 98.246.64.55:41952/lib to access Tversity away from home.
WARNING: Streaming from outside your network will take a long time for your movies to buffer to nswPlayer. It has taken well over 2 minutes for the movie to play sometimes over 3G. Thats why we try to get the movie as small as possible to stream faster over 3G.

All and all, thats about it. This should get you up and running on streaming to Hi-Quality video files to your Android phone wherever you are at. I will update this tutorial with any helpful updates I get from the community on what works better or my own discoveries as time goes on.
 
aghanim
Old
(Last edited by aghanim; 16th November 2010 at 02:02 AM.)
#2  
Junior Member
Thanks Meter 0
Posts: 1
Join Date: Sep 2009
Thanks for the wonderful tutorial. I'm using the Samsung Vibrant with nswPlayer and I keep getting "Illegal File" what am I doing wrong? Do I have to use handbrake to encode my files? I downloaded them as .avi and they run fine off my SD card.
 
tallnerd1985
Old
#3  
tallnerd1985's Avatar
Senior Member - OP
Thanks Meter 42
Posts: 293
Join Date: Dec 2008
Location: Vancouver, WA
Yes you have to encode each video to be the correct format as well as enabling it be stream byte by byte. If you want to stream while on the same network as the pc with your video files, you could use Allshare to stream via DLNA if you have Windows media player setup to manage your media library.

I am going to play with this setup to see if I can avoid pre-converting the video file because the Galaxy S has some codecs that other Android handsets dont have. Maybe I can figure out if it can stream avi containers.

Sent from my SCH-I500 using XDA App
iPhone vs Android
Quote:
Originally Posted by Engadget Commenter
"Regardless if you think you phone is better than someone else's phone, it still wont get you laid!"
 
tomparrish
Old
#4  
Junior Member
Thanks Meter 1
Posts: 20
Join Date: Dec 2009
Thanks for the tut. arcMedia Player will play the avi streaming formats.
 
e-zzy1
Old
#5  
Member
Thanks Meter 3
Posts: 38
Join Date: May 2010
the Android Movies app lets you watch Movies in HD you will need wifi or 4G though.

check it out for yourself:


https://market.android.com/details?i...=search_result
 
raymond4
Old
#6  
raymond4's Avatar
Senior Member
Thanks Meter 205
Posts: 1,238
Join Date: Aug 2010
Location: millville new jersey

 
DONATE TO ME
Does anyone know why this app have been removed? I purchased this app and it did worked but lately it hasn't been working. Has anyone have this problem?

Sent from my PG86100 using XDA Premium App
 
2leaponover1
Old
#7  
Senior Member
Thanks Meter 21
Posts: 396
Join Date: May 2009
Seems like a lot of work, but it must pay off.

As far as Android Movies is concerned i was able to watch one movie in excellent quality. I knew they would probablyl get shut down at some point. Now there is just a msg in the app saying that they will be back and to be patient. Eh, it was like renting a movie for $2 knowing the caveat would be that it may be a one time deal. I was very impressed by the quality and i wasn't even on 4g.

Hey OP, any idea about orb for Android. Months ago i heard a talk about it and a lot of people were complaining about the quality. Any experience on your end?
Nottach, Faux, what more do you want?
 
dazednconfused
Old
#8  
dazednconfused's Avatar
Recognized Themer / Recognized Developer
Thanks Meter 11967
Posts: 4,853
Join Date: Jan 2011
Location: Charleston, WV

 
DONATE TO ME
Quote:
Originally Posted by e-zzy1 View Post
the Android Movies app lets you watch Movies in HD you will need wifi or 4G though.

check it out for yourself:


https://market.android.com/details?i...=search_result
I bought the Android Movies app and now its gone. Can't find it and can't get a response from the developers.
I need the apk to redownload but I guess im out of luck.

Sent from my Nexus S 4G using XDA Premium App
 
Brainze
Old
#9  
Senior Member
Thanks Meter 20
Posts: 457
Join Date: Jan 2008
Location: Somewhere Near ATX
I would tell you to purchase "Amatsu" from the Market, but the developers are thieves and crooks.

They sold "free android movies", which was vaporware. It never functioned... Only had a date on it staying when it would be working again. It then disappeared & Amatsu took it's place. Now Amatsu doesn't work!
I'm not weird, i'm an "Aspie" ...
 
tallnerd1985
Old
#10  
tallnerd1985's Avatar
Senior Member - OP
Thanks Meter 42
Posts: 293
Join Date: Dec 2008
Location: Vancouver, WA
Default Update

Hey guys,

Sorry that I have been absent for some time but I have movesd on to better ways of taking your collection on the go. Right now I am part of the Alpha team over at WWW.plexapp.com which is a better way of organizing your media collection with their free server software along with a small payment for their client on Android. Go check it out, you guys won't be disappointed.
iPhone vs Android
Quote:
Originally Posted by Engadget Commenter
"Regardless if you think you phone is better than someone else's phone, it still wont get you laid!"

Tags
mp4, orb, progressive, streaming, tversity

XDA PORTAL POSTS

Avoid Framework Bootloops on Xperias Running Jelly Bean

If you’re a Sony device owner running a stock Android Jelly Bean firmware and … more

Forum Added for the Samsung Galaxy Mega

What do you do when the Galaxy Note line is simply not big enough? You get theSamsung Galaxy Mega. … more

Voice Control Your Phone with Tasker and AutoVoice – XDA Developer TV

XDA Developer TV Producer Kevin set up his phone to respond to … more

Guide to Take Better Control of Your Volume Levels

Would you like to know one of the things that really annoys me on a daily basis? Tough, … more