QTMovieView supported formats - macos

I am developing a media player using QTKit framework in Mac OS X (v 10.6). I have used QTMovieView control for the same but there is a problem. The issue is that mov files are played perfectly but avi files and similar formats are not playing properly by properly I mean that though I have added a document type for public.avi file type but only sound is coming and there is no visual output in the player. Been trying to play the same using Quicktime (v 10) but no avail.
Could anyone point me in the right direction?

AVI as well as MOV are just movie containers. Usually a movie file contains a video track and an audio track. When in comes to playback it depends on the particular codecs used to compress the tracks. Quicktime can read AVI files, but it needs the certain codec to play the video.
You need to find out what video codec was used in your movie. There are number of apps that can display this information. For example VLC Player.
If Quicktime does not play it with default set of codecs, most likely the codec is Divx.
After you have found out what codec is used install the certain Quicktime component.

From documentation..and see supported formats..
Audio formats
AIFF, MP3, AU, WAV, uLaw
Video formats
AVI, AVR, DV, M-JPEG, MPEG-1, MPEG-2, MPEG-4
Codecs
AAC, AVI, AVR, DV, M-JPEG, MPEG-1, MPEG-2, MPEG-4, , OpenDML, 3GPP,
3GPP2, AMC, H.264
Web streaming formats
HTTP, RTP, RTSP

Related

FFMPEG Directshow capture windows media player compatible

I am using an FFMPEG component in embarcadero C++ Builder to capture video from a Direct show video camera. The capture works fine and gives me good quality mp4 files which I can play back using VLC player or FFMPEG, but the video file is not compatible with windows media player and windows won't give the nice video image when you view a file list with windows explorer.
I have seen suggestions which say you simply need to set the capture format to YUV420P, however if I do this, FFMPEG raises an exception -5 (input / Output error) and the capture device will not open.
Is there any other setting I should be looking at to allow FFMPEG to open the camera and capture the stream so media player will accept it.

How can this MP4 be played in Firefox? From what I know Firefox doesn't support MP4

I found this mp4 from the site Giphy. To my surprise it plays in Firefox. Does anyone know how that can be? Normally I have to generate two versions of every video file, mp4 and webm. It would be nice to not have to do that.
Here's the file:
http://media2.giphy.com/media/yoJC2NG0MLnSoEPjIA/giphy.mp4
Firefox will use an mp4 library is a suitable one is on the system that Firefox is running on:
Firefox/Firefox for Android/Firefox OS supports the format in some cases, but only when a third-party decoder is available, and the device hardware can handle the profile used to encode the MP4.
source
If you can use HTML5 I'd suggest the video tag like the following. I figured you'd want controls so I added the controls attribute to the video tag; you could also add autoplay if you want that. I tested it on IE11 and the current versions of Firefox and Chrome. works for all of those. Having alternate versions isn't a bad idea, but mp4 is pretty universal on modern browsers.
<video controls>
<source src="http://media2.giphy.com/media/yoJC2NG0MLnSoEPjIA/giphy.mp4" type="video/mp4">
<source src="http://media2.giphy.com/media/yoJC2NG0MLnSoEPjIA/giphy.webm" type="video/ogg">
Your browser does not support the video tag.
</video>
As to why:
MP4 H.264 (AAC or MP3) The MP4 container format with the H.264 video
codec and the AAC audio codec is natively supported by desktop/mobile
Internet Explorer, Safari and Chrome, but Chromium and Opera do not
support the format. IE and Chrome also support the MP3 audio codec in
the MP4 container, but Safari does not. Firefox/Firefox for
Android/Firefox OS supports the format in some cases, but only when a
third-party decoder is available, and the device hardware can handle
the profile used to encode the MP4.
Note: MP4s encoded with a high profile will not run on lower end
hardware, such as low end Firefox OS phones. The MPEG media formats
are covered by patents, which are not freely licensed. All the
necessary licenses can be bought from MPEG LA. Since H.264 is
currently not a royalty free format, it is unfit for the open web
platform, according to Mozilla [1, 2], Google [1, 2] and Opera.
However, since royalty free formats are not supported by Internet
Explorer and Safari, Mozilla has decided to support the format anyway,
and Google never fulfilled their promise to remove support for it in
Chrome.
Reference: https://developer.mozilla.org/en-US/docs/Web/HTML/Supported_media_formats

Android MediaPlayer Internal subtitles

I need to show internal subtitles with android MediaPlayer.
I am playing a .ts stream, subtitles are coming on a seperate stream with DVB sub codec.
Currently working on Android 4.2.2, DVB sub is not supported with native media player.
Any Alternative?
You can take a look at Google's open source video player https://github.com/google/ExoPlayer
They don't have DVB, but you can either add your own parser or if you already have it somewhere, then just plug it to the player.
Otherwise, if you want to do it with MediaPlayer, then you need to keep track of current playback time and display the subtitles on top in a separate view.

Video stored on Windows Azure blob doesn't work with VideoJS (with Chrome)

I want to store .mp4 videos to display them in a HTML5 player (videojs).
I have a Problem on Chrome browser : I can't moving seek-bar back or forward in the video (stored on Azure). This problem does not arise if I host the video on another server.
I have checked the mime type (video/mp4). Have You Encountered this problem?
Apparently it is possible that the problem comes from the Accept-Ranges: bytes (not present in HTTP response).
Here is the link in question: http://tbf.azurewebsites.net/fr/media/unrealistic-expectations-10000-dollars
Thank you very much,
Best regards
Formats supported by Chrome are H-264, VP8 (WebM video part), Theora for video and MP3, AAC, Vorbis for audio. MPEG-4 Visual is not supported (Chromium issue 54036).
So, Chrome can play .mp4 with H-264 video but not MPEG-4 Visual video.
https://stackoverflow.com/a/12174154/1384539

Playing mp3 Audio files in WP7

I want to stream an audio from server using windows phone 7
the audio extension is mp3. I have tried Mp3MediaStreamSource class but the problem was that it downloads all the audio then start playing it.
I want to know what is the best way to play audio in WP7 for platform 7.0 ( with buffering -> not waiting until the entire audio file is downloaded.
Thanks in advance
I use Background Audio agent do stream mp3 radio broadcast. Take a look at this tutorial http://msdn.microsoft.com/en-us/library/hh202978(v=VS.92).aspx

Resources