I have a problem about html5 video playing on IE 9
I'm using .mov to play the video.
Some of videos play but some is not play.
Example:
I clicked video1.mov and it play.
I clicked video2.mov and it is not play.
Is there a problem about the codec of the video?
What should I do?
Thanks.
EDIT:
Check this image.
http://i.stack.imgur.com/iXwCK.png
Left Side Image - That video is play.
Right Side Image - That video is not play.
May be it is because of the codec. I think it requires video encoding with the H.264 codec and audio encoding with the ACC codec.
Did you download these files separately or encoded them massively together?
If you downloaded them separately, it may because of different encoding codecs.
Related
I have a few video files with mpeg4 format, these are not playing properly in the HTML5 player. There is sound but no picture.
Link apscservices.com/kishen_test.html
The file is working in offline players like vlc and wmp.
MP4 files can contain video and audio in a variety of formats with different profiles. However what is commonly supported in an MP4 file for HTML5 video is H.264 video (also known as MPEG-4 Part 10 or MPEG-4 AVC) High Profile or lower (i.e. no more than bit depth 8, with 4:2:0 chroma subsampling), and AAC-LC or MP3 audio. If you are using a supported audio format but an unsupported video format then you may hear sound but see no picture.
In your case you are using MPEG-4 Part 2 video, which is not commonly supported by browsers, with AAC-LC audio.
I have implemented a MPMoviePlayer in my app and when I try it with a sample video in .mov format it works well. But when I change movie-clip to a .mP4 or m4v it does not work, the app crashes (I have tried with a bunch of different movie-files. What can be wrong? Does anyone else have this problem?
I don't know if this answers your question, but I did a quick search on supported file formats.
Another S.O. Answer:
Supported Formats
This class supports any movie or audio files that already play correctly on an iPod or iPhone. This includes both streamed content and fixed-length files. For movie files, this typically means files with the extensions .mov, .mp4,.mpv, and .3gp and using one of the following compression standards:
1. H.264 Baseline Profile Level 3.0 video, up to 640 x 480 at 30 fps. (The Baseline profile does not support B frames.)
2. MPEG-4 Part 2 video (Simple Profile)
If you use this class to play audio files, it displays a white screen with a QuickTime logo while the audio plays. For audio files, this class supports AAC-LC audio at up to 48 kHz, and MP3 (MPEG-1 Audio Layer 3) up to 48 kHz, stereo audio.
So that would be my guess why :)
Coulndt you just convert to MOV ?
Edit:
Link to SO answer where quote is taken from:
Link
I am creating an iPhone application, which can play many media formats. I am not able to play AVI file format, where as I am able to play other formats (for e.g. MP3, MP4, MOV etc). When I try to play AVI, it shows black screen and display is hidden. Any suggestions on what I can do to fix this issue?
Take a look at this tutorial on playing video with ffmpeg and SDL, both available for the iPhone.
An ffmpeg and SDL Tutorial or How to Write a Video Player in Less Than 1000 Lines
It's written in C, but consider it pseudocode, and adapt it in Objective C accordingly.
.avi is a container format, not a specific audio/video codec. Depending on the contents of the .avi container, it may or may not be possible to decode the video on an iOS device (due to hardware limitations). If it is possible to decode the video in real time, you may have some luck using the libav (aka ffmpeg) library to decode it.
I want to make simple project which play flash video file from online.
I've searched some articles and read carefully.
But I can't understand, how to play flash video files on iPad by Code.
So I need help from you.
Please.
Simply put, without being jailbroken, No you cannot.
The closest thing to being able to view flash in iOS is Frash, and I am not even sure if it is actively being developed or supported any more.
You can always check out the open source project for Frash. by Comex.
All IOS devices don´t support Flash player, but is be possible to use a Javascript or HTML5 player for video.
No, iWhatever's currently do not and to the best of my surfing knowledge, have no intention of supporting flash format due to some argument between apple and adobe.
At the end of the day, the Flash video format is a container for a movie that’s been compressed by some codec. If you can get to the source file, you know the format of the container, you know the codec that was used to encode the video, and you know how to write code to convert that into audio streams and video frames, then yes, you can play Flash videos on the iPad.
So, to recap:
Get the Flash video file.
Get to the encoded video data in the Flash file.
Decode the video and convert it, either into raw audio and video or to another format that the iPad can play.
Play the result of #3.
Needless to say, this is quite the endeavor. It’s better to download the movies to your desktop and convert them there before loading them into your application.
Yes you can! The question is whether or not you can play the video itself not whether or not ipads support flash player.
the answer is this.. new versions of "flash video" have a f4v file extension. These videos are basically a h.264 mp4 files. You "may" be able to play it in an ipad simply by renaming it to .mp4
If that doesn't work then use a utility like Miro to convert your "flash video" to a format that your ipad will accept. http://www.mirovideoconverter.com/
This excellent article explains how to do fully compatible video on the web. http://diveintohtml5.ep.io/video.html However, I'm bothered that it requires the video to be encoded and stored three times.
What is the advantage of using < video > h264/ogg/webm + flash h264 vs doing browser detection for h264 compatible browsers and rendering a < video > tag, otherwise rendering a flash player to play the same h264 video? In this case Safari, Chrome, Andoid, and iOS would use the video tag, while IE, FireFox, and Opera would use Flash.
Advantages for encoding as h264, ogg, and webm:
This would catch the case of Firefox and Opera users who did not have Flash installed (should not be an issue with my user base)
Use < video > more frequently (although I don't see this as an actual advantage to end users)
Advantages for encoding only in h264 and playing in either < video > or Flash player
Only encode once, not three times
Only store once, not three times (save money on CDNs)
See this post: http://dev.innovationfactory.eu/2011/05/31/html5-video-for-all-browsers-including-ie-9/
We use the h.264 format for now, although we'd much rather see MS and Apple support WebM.
File sizes for our demo file:
.webm: 2.5 MB
.theora.ogv: 4.4 MB
.mp4: 5.8 MB
File converted using the Miro video converter.