I have a stock trading membership website, on which I put up stock videos on stock trading days. Currently, I have them in .swf and I am quiet happy with what I offer. Lately, my members are asking for availability on iPhone / iPad too, which means, I have to convert or upload new videos in one of the universally accepted formats, i.e., .mp4. I have tested few settings with the video conversion, but, up to, 640 x 480 resolution worked well on iPhone / iPad but for web viewing, it was disaster. I usually offer videos in 980 x 620 size. I changed the size to 800 x 600 and it was Okay for web, but iPhone / iPad din't do well. I am using JWPlayer for the test.
I want to ask, what format of the video should I use, which will work for all platforms. I want to keep the video size down, and as well 1 file for all platforms. Is there anything that I can do to achieve this?
Will be very thankful if someone helps me out on this.
Thanks!
I don't think this is really a code related issue but since I'm here:
Definitely use mp4 it works on all your desired platforms.
Definately stick with JWPlayer, I use it to stream to web and iPhone.
To keep the "file size down" and if you are encoding offline use handbrake http://handbrake.fr/
Using that software you will see some pre-sets for iDevices including iPhone and iPod mp4 / m4v file output. A new version of the software has just been released so it may include a pre-set for iPad too.
Personally I have a pre-set that is 720x400 which runs on iPod touch 2ndGen and iPhone very well.
Unfortunately one file does not suit all your target platforms. However, with JWPlayer you are able set it up with bitrate switching such that the best possible version of the different video files is delivered to the target platform:
http://www.longtailvideo.com/support/jw-player/jw-player-for-flash-v4/27/bitrate-switching
The JWPlayer will also deliver to Flash and HTML5 enabled browsers.
Related
We are working on a prototyp application using unity3d. Your goal is to create a fluid and fun to use cross platform app.
The problem we facing right now is streaming (h.264 - mp4) video content over the web. This will be a major feature of our app.
I have already tried MovieTextures and the www class but it seems the files must be in ogg format which we can not provide. On the other hand handheld.playfullscreenmovie seems to be an android and ios only feature which uses the build in video player. This would be great if it would be supported on other platforms (e.g. Win8-Phone) as well.
Is there another cross platform option to stream (h.264 - mp4) video content over the web and display in full screen or as gui object? Or are there any plans to support something like this in the near future? Or is there a stable plugin for such a task?
Thanks
As of Unity 5 Handheld.PlayFullScreenMovie supports Windows Phone and Windows Store as per http://docs.unity3d.com/ScriptReference/Handheld.PlayFullScreenMovie.html
On Windows Phone 8, Handheld.PlayFullScreenMovie internally uses Microsoft Media Foundation for movie playback. On this platform, calling Handheld.PlayFullScreenMovie with full or minimal control mode is not supported.
On Windows Store Apps and Windows Phone 8.1, Handheld.PlayFullScreenMovie internally uses XAML MediaElement control.
On Windows Phone and Windows Store Apps, there generally isn't movie resolution or bitrate limit, however, higher resolution or bitrate movies will consume more memory for decoding. Weaker devices will also start skipping frames much sooner at extremely high resolutions. For example, Nokia Lumia 620 can only play videos smoothly up to 1920x1080. For these platforms, you can find list of supported formats here: Supported audio and video formats on Windows Store
mp4 is not a streamable container. If you read the ISO specification, you will see that MP4 can not be streamed. This is because the MOOV atom can not be written until all frames are know and accounted for. This 100% incompatible for live video. There are supersets of MP4 used in DASH that make this possible. Essentially, they create a little mp4 (called a fragment) file every couple seconds. Alternatively you can use a container designed for streaming such as FLV or TS.
You will probably need to step outside the unity sdk a bit to enable this.
I have a 10MB QuickTime VR file and I was wondering if it would be possible to play it on an iPod/iPhone/iPad?
I've seen multiple messages about the subject around but nobody could give a straight answer if the iPhone fully support this format, partly support the format or doesn't support the format at all. If this format is supported, which OS version supports it?
Nope, I don't have an iPhone at my disposal to check this, unbelievable right?
Gilad.
It's not possible to use QTVR at all, it's never been developed by apple on iPhone
but there are some other similar object you can use.
take a look at my old answer to a similar:
How to rotate QTVR image 360 degree in iPhone?
There's an app called iPano which views QTVRs, both panoramas and objects. It's ideal for viewing them and it let's you keep a collection of them on your phone. And it's really neat on the iPad too!
I'm building an iPhone app for a mobile film festival.
The app will make it possible for the users to watch the submitted short films over wi-fi, 3g, and edge (really?)
The movies will have a duration between 30sec to 2minutes max. (ste
Would you recommend using .3gp format above .mp4 ? Any reason/advantage to prefer one format?
I will manually re-encode all the videos for the iphone app.
thanks
Louis
mp4 with the H.264 codec is very well supported at a hardware level
Sounds like a cool app. iOS devices prefer h.264 video. For video to play in an iOS app on 3g, you need to encode them for Apple's HTTP Live Streaming. That's their version of adaptive bit rate encoding. Every Mac shipped with Leopard or Snow Leopard includes a segmenter with their other utilities, but it can only handle one file at a time. There's a help article on Apple's video utilities here:
http://developer.apple.com/library/ios/#documentation/NetworkingInternet/Conceptual/StreamingMediaGuide/UsingHTTPLiveStreaming/UsingHTTPLiveStreaming.html
Encoding.com can also do the video encoding and segmenting for you. (Disclaimer: I work there. :) You can check out how to get this up and running using Amazon and Encoding.com on the site and if you'd like to talk to someone about it you can just schedule a free consultation with us. We're here to help.
mp4 (i think the extension has to be *.m4v if you want it to use with itunes) with h.264 as codec
reasons: standard iphone format, better quality, better compression
Is it possible to analyze the images without taking a foto on the iPhone ?
I want to analyze some matrix codes, without taking any foto. I saw this on some Nokia models and it's quite impressive: really fast!
On the iPhone, I've seen analyzing codes after taking a snapshot (or photo), and it's slower.
Also the iPhone camera is not good as some other mobile cameras.
I'm refering to iPhone 3G/3GS.
thanks,
r.
Yes.
Under iOS 4.x, you can use the new AVFoundation Framework to access camera pixel buffers on the 3G and 3GS, as well as the newer iPhone 4, without taking a photo/snapshot. The newer devices have higher resolution camera's.
I don't know if it's possible. But I think you should take a look at the AVCamDemo Apple's Code from de WWDC 2010. I think it could help you even if I didn't read a lot of code (juste compiled tje xCode project and tried it)
(Sorry but I can't find back the link)
You should be able to find the code in your emails if you are registred as an iPhone Developer. Or maybe on the developer.apple.com/iphone/ website.
By the way, don't think doing it on iPhone 3G (impossible I think). The iPhone 3GS should be fast enough for this kind of app.
Good Luck !
I am building this iphone app for a client and they have a large set of flash video files that they need to play/stream to the iphone. I understand that the iphone doesnt natively support flv playback but isnt there anything I can do to get around this problem?
In case it helps, they are using the akamai flash player on their website to play these video files.
Thanks in advance.
Yes! - You can convert all the videos to m4v format.
There's a javascript hack available, but it will only work if it's installed on the clients web server. It's also pretty clunky and slow and will likely murder battery life.
A workaround, since you're working with video, is to convert to mp4 format.
Short answer: no flash, but conversion will do what you need.
akamai actually supports "auto-packaging" of h.264 content which may be your best option here. By uploading 1 or more h.264 files you can use those to both serve your Flash player, and akamai will also auto-package them for iPhone (chunking them into .ts files and creating an .m3u8 reference file for dynamic mobile streaming).
This allows you to not have separate encodes for mobile and web, thus saving money and time so you can leverage your existing archive.