I have MPEG-2 TS file recorded on my STB . VLC media information for the clip is
Type : Video
codec: Mpeg-1/2 video(mpgv)
Type : audio
codec: MPEG AAC Audio(mp4a)
I currently do not have Mpeg2 video parser so the clip wont play at all.
But just out of curiosity i reused the existing H.264 video parser for the above clip and the clip started playing.
I am very confused over this. why is this happening? Is there any chance H.264 and Mpeg2 related? Is it something to do with codec and container format?
Guys please explain in detail....
MPEG-2 TS is just the container. h.264 and AAC are the 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 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.
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/