Stream video from Glass camera - Glass Development

Hey, I'm trying to port an Android app which streams video from the camera over to Google Glass. I have the streaming video code, but I can't get it working on Glass. Has anyone been able to get streaming video from glass working?
For anyone interested, the error I'm getting in Logcat is MediaRecorder "start failed -12"

I too am looking into porting glass into a streaming application my company has. Wonder if there is a way to replace streaming with the phones camera and instead use glass as the media input.

Now That GDK is out - you can try and work your way from there.
I'm also testing it out now.

Related

TV Out Performance ?

I'm very curious with TV Out Picture Quality? It's better than Touch Pro or not, what about the resolution (still 480x800 on TV or not) ? My dream is use this features to surf internet on my 50 inch HDTV
For what it's worth, I tested it with video and Video-googles - and it works just great.
The video googles are "only" 640x480 , I did not test internet & stuff like that - if I find an old-fashion TV - I'll test .
(in my house, there is only MediaPortal + DLP projector/and 30" displays) - without composite input. - Projector does have, but they are installed so nicely into ceiling, it's hard to get to.)
Here a review: http://www.youtube.com/watch?v=1bOD17rMSKI
If you want I can get some pictures of the device showing on an LCD projector tomorrow. Let me know.
Thanks Bro, It would very nice if we can see it on picture , I hope we can view all Pro2 activity on tv out like video call, editing office mobile, reading ebook/comic, playing games and many more that will make Pro2 as our media center, very
OK sorry for the delays people, I haven't forgotten.
All content is hosted on my home server so can't guarantee the speeds or availability.
All photos were taken in a moderately dark room and the images shown on a 78" 4:3 IWB (interactive whiteboard) with a 4:3 projector. Hence the image is letterboxed.
When running in TV-out mode, the phone will REMAIN in landscape mode even when the keyboard closed.
My first tests were with CorePlayer. I was also unable to play and show movies in CorePlayer properly, there was weird blue bands running all over the screen during playback. I also tried the YouTube Player which worked fine though.
Core Player Image showing the blue band issue (it's much more noticeable in the video below).
CorePlayer Video
YouTube Player Video
(The videos are in MP4 format. Play with VLC if you have problems viewing.)
The quality seems OK but due to the limitations of composite video, you if there is too much fine detail its going to look like s**t. For example check the following shots of Opera both zoomed in and out.
Zoomed In
Zoomed In (Close-up)
You can see when zoomed out that the text is not very readable.
Zoomed Out
Zoomed Out (Close-up)
On connection of the cable you get a default launch screen.
First Connection Prompt
Home screen looks like you'd expect.
Home Screen
A game running (Kevtris 2, for those interested )
File Manager
File Manager (close-up)
Seems I screwed up my port forwarding and the links were all dead. Sorry .
Try again now.
Comments welcome.
links doesn't seem to be working for me

watching streaming video

has anyone been able to watch streaming video fo a live feed or any feeds without it skipping parts?
i was watching vampire diaries episode i watched before with my g/f and it jumped a few scenes (but the same stream was perfect on the pc before)
also, anyone have sites that work with the windows movie streaming app?
i'm trying to watch the olympics, but has so far failed to find a place to watch on my tp2 really want to watch the canada vs us game while at work when they face off again....
anyone else fair better than me?
kajiri said:
has anyone been able to watch streaming video fo a live feed or any feeds without it skipping parts?
i was watching vampire diaries episode i watched before with my g/f and it jumped a few scenes (but the same stream was perfect on the pc before)
also, anyone have sites that work with the windows movie streaming app?
i'm trying to watch the olympics, but has so far failed to find a place to watch on my tp2 really want to watch the canada vs us game while at work when they face off again....
anyone else fair better than me?
Click to expand...
Click to collapse
Have you tried the Skyfire browser yet?
It's not perfect...but it will display the video content of almost any website (not Hulu).

[Q] Converting Video for WP7

Hi all,
just wondering what people are using to convert .avi/.mkv/etc to mp4/wmv/etc so Zune/Wp7 can use them?
ATM i'm using anyvideoconverter and converting the video's to "Zune HD" but it seems to leave a black border of about 5mm around every edge of the video which is really annoying me, so anyone got any other good ones?
Only confirmed ones please, i've used dozens of Conversion apps that say they'd do the job but in reality they don't, so only post if you've used one for WP7/Zune.
Just convert your Video to MP4 or WMV with WVGA resolution.
Audio said:
Hi all,
just wondering what people are using to convert .avi/.mkv/etc to mp4/wmv/etc so Zune/Wp7 can use them?
ATM i'm using anyvideoconverter and converting the video's to "Zune HD" but it seems to leave a black border of about 5mm around every edge of the video which is really annoying me, so anyone got any other good ones?
Only confirmed ones please, i've used dozens of Conversion apps that say they'd do the job but in reality they don't, so only post if you've used one for WP7/Zune.
Click to expand...
Click to collapse
I think this application should solve your problem....you can adjust everything....
http://www.any-video-converter.com/products/for_video_free/
It was great,I use it to convert videos for my android and Iphone...and it is very flexible.You can adjust the bit rate,size...almost everything...and it is free...
That's what i'm using at them minute sylau as i said in my post
Audio said:
ATM i'm using anyvideoconverter and converting the video's to "Zune HD" but it seems to leave a black border of about 5mm around every edge of the video which is really annoying me...
Click to expand...
Click to collapse
Do you know of a good one which will let me just convert to mp4 WVGA Paul?
*EDIT* Just found This Thread which Recommends a GUI for MENCoder called "SUPER". My dealings with MENCoder have been great in the past so i'll give it a go and let others know what it's like.
FWIW the Microsoft way is to use Expression encoder for WMV. It's free, it's nice, and it does a good job encoding, so if you want WMV you should use that one.
paul_43 said:
Just convert your Video to MP4 or WMV with WVGA resolution.
Click to expand...
Click to collapse
My Zune does not even want to read WMV files so I can not upload. I have multiple copies of DVD's/Blu-Ray's with digital copie of movie for portable devices.
I can copy those movies to my PC and watch them, I can watch them on HD2 but zune doesn ot see them so I can not copy them on to phone. They are all in WMV or MP4 format.
MP4 don't work in Zune!
I tested with this videos: http://cid-e9230930f20e0820.office.live.com/browse.aspx/Windows Phone 7 Ads
deleted, please ignore this message
Same problem, I have digital copy's of blu-ray's that came with them, they play using WMV but the Zune Software won't see them and won't play them.
Download 'Expression Encoder'. There's an option to encode specifically for Zune.
Portos2008 said:
MP4 don't work in Zune!
I tested with this videos: http://cid-e9230930f20e0820.office.live.com/browse.aspx/Windows Phone 7 Ads
Click to expand...
Click to collapse
Funny as phone by default records in mp4
Mabe the audio stream?
I was just playing around with this last night, and the biggest issue was the audio stream. While it plays h264 streams up to the High Profile level 3.0, it did not like an AC3 stream. I had to demux a video that I had in an mkv container, convert the audio to AAC and remux into an mp4 container. Microsoft has a whole detailed table of stream type compatibility with bit rates, profiles, etc. I can't seem to post links, so search for it at the msdn dot microsoft dot com under this title "Supported Media Codecs for Windows Phone". The list on the WP7 consumer site sucks btw.
The AAC has two compatible types, AAC-LC and HE-AACv1 or v2.
I used MeGui to redo the audio, and yamb to mux it.
Thanks dgetz, here is the link to msdn.
Audio said:
Hi all,
just wondering what people are using to convert .avi/.mkv/etc to mp4/wmv/etc so Zune/Wp7 can use them?
ATM i'm using anyvideoconverter and converting the video's to "Zune HD" but it seems to leave a black border of about 5mm around every edge of the video which is really annoying me, so anyone got any other good ones?
Only confirmed ones please, i've used dozens of Conversion apps that say they'd do the job but in reality they don't, so only post if you've used one for WP7/Zune.
Click to expand...
Click to collapse
for the time being i have been using "HTC Touch HD Video Converter"
http://forum.xda-developers.com/showthread.php?t=467112
Seems to work very well
anyone try clonedvd mobile. I have used this in the past with the sony psp settings and gotten very good results, just a very small black strip (maybe 1-2mm) across the top and bottom of the screen (on my hd2).
Portos2008 said:
MP4 don't work in Zune!
I tested with this videos: http://cid-e9230930f20e0820.office.live.com/browse.aspx/Windows Phone 7 Ads
Click to expand...
Click to collapse
I can confirm that MP4 works on the Focus, using TV shows previously converted for my iPhone 4
I use handbrake on Windows and Mac to convert my videos, using the settings from
http://lifehacker.com/5572037/handbrake-presets-for-your-new-ipad-or-iphone-4
The results have been good, but using the frame(middle) setting shown in that article does bump up the file size a good amount, and as I'm sure a lot of you have heard, storage space isn't so easy to come by on WP7 yet...
Handbrake
I too can vouch for handbrake. All of the videos I have made for my ipod touch with it work just fine on the Focus. Unfortunately, the library I have for the touch is lower resolution, with videos at about 1/2 DVD resolution and at 500kbps encode rate. I end up with about 500 MB for the about 90 min. It is nice because they don't take up a lot of room, but still look decent. When output to a standard definition TV they look fine as well.
When I first put a few of these home videos on the Focus the lower quality was immediately noticeable. To see how I could push the phone, in my reply above I took a full DVD resolution video 720x400 (16x9 non-anamorphic) and corrected the audio stream. That video looks gorgeous on the Focus screen and is great for showing off the phone. It also takes up over 2.5 GB!!!! It is encoded at a rate of about 2100 kbps. As with any video encoding for a mobile device you have to make your own decision about resolution, encoding rate, etc in that constant game of quality versus size.
One thing to note. If there are black bars on your video, then either you have a video that was not encoded in a proportion that matches your screen or it was hard coded with the black bars. The second thing should be rare nowadays (eliminating this wasted information space was the point of an anamorphic DVD). The first is actually very common. IF your media is a studio movie, almost every action film these days comes at 2.35:1 instead of 16:9=1.77:1. Personally I like viewing any of my content in the way it was originally intended to be viewed and don't ever re-proportion anything. At the moment I am not sure if the Focus/WP7 'stretches' videos. I know on my ipod touch this was an option you could toggle by double tapping the video during playback...
Maybe I will play around with a few options tonight and report back.
have a zunehd and remember seeing this thread on abi
anythingbutipod.com/forum/showthread.php?t=58183
it converts the audio of any avi/mkv and keeps the video the same, so converting only takes a few mins, and zune software recognizes it..for the zunehd anyways, maybe someone can try w/ wp7
Since I couldn't find right settings for MediaCoder (best video converter ever).
I was using Prism Video Converter for my Omnia7.
About settings for prism:
For .wmv use as video compresor WMV9 and for sound WMAV9, i am not changing the resolution as it is not bothering me at all. All files (mostly avi or mkv) played smooth after conversion.
If anybody have good settings for MediaCoder I will be much appreciated for sharing.
Thx
Okay, so MP4forHD works. The quality still isn't stunning, but it'll do for now (i guess.) However, i've encountered an issue with contrast. All my blacks appear as dark grays, which drives me nuts

[Q] Video player that can ZOOM/CROP???

I have tried a bunch of different video players (RockPlayer, MX, Mobo, mVideo) and NONE of them can zoom or crop the video to make it fill the full screen without stretching. I'm starting to think this is a problem with our phones and not the video players because they all have the option to zoom/crop, it just doesn't work. It's really annoying, I have a bunch of movies and they are all in 2.35:1 so they look tiny and render this gorgeous screen pretty useless for watching them. Anybody else experiencing this issue? Solutions?
So nobody watches movies on this thing huh?
I suggest you VLC Media Player (Pre-Alpha) with 5 differents zooms: simply the best!
Check out the Act 1 player app -- I know that one does various cropping, etc.
u2mir said:
Check out the Act 1 player app -- I know that one does various cropping, etc.
Click to expand...
Click to collapse
act 1 doesn't work in many samsung (mine too) mounting gingerbread, but vlc works like a charm.

[Q]XviD playback choppy on SGH-T989?

Hi. I got a SGH-I727 (AT&T Galaxy S2 Skyrocket), which has the same 1.5ghz dual core Snapdragon processor as SGH-T989, and I'm curious if the SGH-T989 has the same issues with XviD encoded with the XviD 1.2.1 codec (aka bitstream XviD0050).
To verify that I wasn't going out of my mind, I fired up my old Galaxy S(I9000), and the same XviD videos played buttery smooth on it. But my SGH-I727 plays videos at about 2/3 of the fps. So for example, the XviD that should be 23.97 fps play at about 16fps. And 29.97 fps videos play at 20fps. Can someone try firing up a XviD on the SGH-T989?
On a side note, XviD encoded with DivX503b* play just fine (mainly because they are just DivX files in disguise). None of the other video codecs seem to have any problems. The problem is that 99% of my videos I want to watch are are encoded with XviD 1.2.1, so it is a real drag.
I've tried every player in the market. And even though software decoding delivers perfect fps, the resolution is pixelated. On Hardware Acceleration, they all seem to play back with the same level of choppiness. The only one showing any promise is the BS Player lite, but it is incredibly buggy, although the framerate is there.
Players that I've tried:
Dice Player
MX Player
BS Player lite
Mobo
VPlayer
Rock Player
None of these players play XviD files as smooth as my I9000 (Samsung Galaxy S). If the XviD plays fine on the SGH-T989, can someone use something like SystemApp Remover and make a backup of VideoPlayer.apk? I would seriously appreciate it. I've been trying to find a solution since the day I got my GSII Skyrocket. Thanks in advance!
i use MoboPlayer and it works fine on my AVI and MKV files
i'll need to find some DviX files to try and see if i can reproduce the problem you are describing
might simply be an encoding issue, DivX has always been a flaky encoder wrapper of choice to use
Samsung Demo HD Videos
hey you can try these
HD Samsung BoA - I Did It For Love.divx http://www.multiupload.com/SOLIRYEP5E
HD Samsung 2NE1 - Fire (Space Version).divx http://www.multiupload.com/L5ZGGPOH0U
HD Samsung Wonder Girls - Nobody.divx http://www.multiupload.com/MBAQMQS20A
they play smooth and nsync with audio
set your Mobo Player to play with Hardware Decoding
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
Thanks for your inputs. The problem is that DivX is not choppy. But XviD is choppy. Specifically XviD 1.2.1 encoded XviDs, which is the majority of all video files I have and it is the format that I wish to download in the future. (Mainly TV Shows)
What I mean by choppy is, the movements are not smooth if you can tell the difference between 24fps vs 16fps. You can see the affect by doing a software decode, and noticing the smoothness of movement in comparison to the HW decode mode. As far as I can tell, every other Samsung Galaxy S and S2's can do HW decode, and have the motion as smooth as you see with the SW decode. Mobo on HW decode only produces the same choppiness that the standard Video player is capable of.
Can someone test this with XviD's? I would like some solid confirmation that it is either the Snapdragon processor (so SGH-T989 would have the same issue), or just my phone (SGH-i727 Skyrocket).
i do watch a lot of TV shows (Warehouse 13, Eureka, Terra Nova, Animes, etc, etc) from my phone as well, but they are all H.264 encoded
i'll need to dig through my old archives to find old Xvid encoded files.
unless you have some samples readily available
I also play alot of xvid and have noticed the weird lag that xvid gives too, on almost all the players out there, even with mobo on hardware (mobo still lets the phones software to use the hardware to decode, so mobo still isn't doing the heavy lifting so u still get xvid choppyness). So I bought Dice Player (true hardware decoding control) and it works 100 percent fine now and i love that player also, i love the scrubbing feature of the seek bar!
pychobj2001 said:
I also play alot of xvid and have noticed the weird lag that xvid gives too, on almost all the players out there, even with mobo on hardware (mobo still lets the phones software to use the hardware to decode, so mobo still isn't doing the heavy lifting so u still get xvid choppyness). So I bought Dice Player (true hardware decoding control) and it works 100 percent fine now and i love that player also, i love the scrubbing feature of the seek bar!
Click to expand...
Click to collapse
Hi pychobj2001, thank you for your reply. You're not the first one to point out Dice Player. Someone pointed this out on the SGH-I727 forum as well, but I tried the trial, then I ended up buying the full version for ~$5, and it still is choppy. Not getting the smooth 23.97 and 29.97fps I can get on much older Galaxy S devices... I've tested it with 5 XviD files of different shows, but all encoded with XviD0050 (1.2.1). Dice player seems to be maybe marginally better, if it is any better at all. If you really want to see what smooth fps looks like try BS Player lite. Unfortunately, it is really buggy, but you can see moments of smooth playback that even Dice Player can't seem to do. I'm looking for that level of smoothness without the messed up picture. SW decoding delivers the same amount of smoothness, but at the cost of having to see pixelation.
AllGamer said:
i do watch a lot of TV shows (Warehouse 13, Eureka, Terra Nova, Animes, etc, etc) from my phone as well, but they are all H.264 encoded
i'll need to dig through my old archives to find old Xvid encoded files.
unless you have some samples readily available
Click to expand...
Click to collapse
Yeah, H.264 is perfect on these devices. It would be nice if everyone on the Internet forgot about XviD and used H.264 and DivX for my sake. Unfortunately, I have 2 terabytes of XviD video that I would rather not re-encode.
The whole point of getting the Galaxy S2 was that I would never have to re-encode anything. I owned an iPhone for 2 years and what I ended up doing was encoding about 16GB of videos to H.264, but I never bothered to re-encode anything after that, so I was watching the same dang videos for 2 years. That is why I would never buy an iPhone again. Anyway, sorry for the rant.
so i found a recent XviD
Assassin's.Creed.Embers.2011. in .XviD.
AllGamer said:
so i found a recent XviD
Assassin's.Creed.Embers.2011. in .XviD.
Click to expand...
Click to collapse
I got a hold of the Assassin's Creed XviD file. Verified it was XviD0050 (1.2.1). This video plays at about 20fps, when you should be seeing 24fps. For example, at the 3:10 mark, during the zoom in, the zoom in should be totally smooth, not like someone is flipping through stop motion animation. If you want to see how smooth it should be, you can enable software decoding to get the smooth playback. The downside of software decoding is that the images look pixelated.
All the other Galaxy phones are able to produce the smooth playback at 24fps, but with the upscaled image quality hardware encoding provides. Just not on the on the Snapdragon processors.
If you have a friend with a Exynos processor, play the same video side by side with your Snapdragon device. But prepare to be disappointed knowing although your should be able to do it, it isn't doing it. And there are no current player in the android market that can play xvid files as smooth as an out of the box Exynos-based Galaxy S/S2.
I've finally found a solution. CineXPlayer. The features and interface is very basic and slight amateurish that music is acceptable during load up (luckily it disables), but all I care about is the video quality because choppy frame rates is noticeable during the entire duration. Better than DicePlayer when playing XviD files because DicePlayer still does choppy XviD playback on the Snapdragon devices. CineXPlayer is $2. Well worth the money. Haven't tested any other media formats because I can just use the Videos app for every other format because the phone does it well without the need for a 3rd party app. It will be nice if I can open streams with CineXPlayer using a DLNA device, but that is not top priority. It will be a nice addon to CineXPlayer whenever they get around to it. Case closed as far as I'm concerned.
Lucidmike said:
I've finally found a solution. CineXPlayer. The features and interface is very basic and slight amateurish that music is acceptable during load up (luckily it disables), but all I care about is the video quality because choppy frame rates is noticeable during the entire duration. Better than DicePlayer when playing XviD files because DicePlayer still does choppy XviD playback on the Snapdragon devices. CineXPlayer is $2. Well worth the money. Haven't tested any other media formats because I can just use the Videos app for every other format because the phone does it well without the need for a 3rd party app. It will be nice if I can open streams with CineXPlayer using a DLNA device, but that is not top priority. It will be a nice addon to CineXPlayer whenever they get around to it. Case closed as far as I'm concerned.
Click to expand...
Click to collapse
Agreed and downloaded.
Lucidmike said:
I've finally found a solution. CineXPlayer. The features and interface is very basic and slight amateurish that music is acceptable during load up (luckily it disables), but all I care about is the video quality because choppy frame rates is noticeable during the entire duration. Better than DicePlayer when playing XviD files because DicePlayer still does choppy XviD playback on the Snapdragon devices. CineXPlayer is $2. Well worth the money. Haven't tested any other media formats because I can just use the Videos app for every other format because the phone does it well without the need for a 3rd party app. It will be nice if I can open streams with CineXPlayer using a DLNA device, but that is not top priority. It will be a nice addon to CineXPlayer whenever they get around to it. Case closed as far as I'm concerned.
Click to expand...
Click to collapse
pativets said:
Agreed and downloaded.
Click to expand...
Click to collapse
Try playing a DD5.1 file, doesnt work. But the video is good...
dboy75 said:
Try playing a DD5.1 file, doesnt work. But the video is good...
Click to expand...
Click to collapse
What kind of videos use that file type? Never heard it before so don't think it'll be a problem for me.
pativets said:
What kind of videos use that file type? Never heard it before so don't think it'll be a problem for me.
Click to expand...
Click to collapse
Its not the video part, an xvid with dolby digital 5.1 audio encoded. In case you were going to watch on a big screen through hdmi the player doesnt support 5.1 audio.
Guys, I've stumbled onto a strange workaround. You don't need CineXPlayer but you may need to be rooted.
Basically, there is a bug in the skyrocket OS. When a hardware video overlay is enabled, the video becomes choppy. CineXPlayer does not use the hardware overlay the same way, that is why the video is not choppy. A workaround was that I downloaded gamecih2 (not gamecih available from Android Market). Gamecih2 is availablehere http://www.cih.com.tw/download.
Why have gamecih2 toolbar running in the foreground? I have no idea but it solves the xvid choppiness issue! Strange yes, but effective. You will notice the diff immediately. Try killing the toolbar and the choppiness returns. Just have it running before you start the vid. You can even make the gamecih2 toolbar transparent.
Now...if you a real stickler like myself about video quality you will notice the stock hardware decoding, while it has improved to near perfection, is still not perfect. It drops a frame or two every now and then. There is a solution. You need to use the gamecih2 toolbar with DicePlayer. Try the DicePlayer Trial with the gamecih2 toolbar. This combo will make your Skyrocket play your XviD as good as the original Galaxy S. I'm not sure if it does DD5.1 audio, but definitely try it out.
Why not just use CineXPlayer? You can, but I've realized although the player plays as smooth as using the gamecih2 floating toolbar work-around with DicePlayer, the features on the CineXPlayer is lacking (UI, streaming support, DD5.1 support), and the quality of the images is off by just a hair on the CineXPlayer.
Solution 1:
CineXPlayer* $2
*limitations: no streaming support, no DD5.1, outdated UI
Solution 2:
gamecih2* (run this app, make it transparent before you start your video in any player)
DicePlayer (optional $5.38, not absolutely necessary unless you are looking for absolute perfect playback.)
*this toolbar requires your device to be rooted.
regarding the Xvid choppiness
i actually found the same bug in my home theatre PC quad core with 4 GB RAM when running XMBC
however if i use another Video Player, then the Xvid bug goes away.
seems like anything encoded in Xvid is just bad over all, and you need good paid software to compensate for its problems
playing any other media files format / encoders, have no problem even when they are 720p or 1080p files
why Xvid is so crap?

Categories

Resources