Order Now AdSolution Sign Up | Login » Bits on the Run Sign Up | Login »

Supported Video and Audio Formats

Purpose

This guide lists all the media file formats the JW Player supports: video, sound, images and YouTube clips.

Introduction

Single media files can be grouped using playlists and streamed over http or rtmp instead of downloaded. Both options do not change the set of supported media formats.   Note that  the player always tries to recognize a file format by its extension. If no suitable extension is found, the player will presume you want to load a playlist! Work around this issue by setting the type option.

CONTENTS

Video

The player supports video (type=video) in the following formats:

H.264 ( .mp4, .mov, .f4v )

Video in either the MP4 or Quicktime <http://en.wikipedia.org/wiki/Quicktime> container format. These files must contain video encoded with the H.264 codec and audio encoded with the AAC codec. H264/AAC video is today’s format of choice. It can also be played on a wide range of (mobile) devices.

Note: If you cannot seek within an MP4 file be before it is completely downloaded, the cause of this problem is that the so-called MOOV atom (which contains the seeking information) is located at the end of your video. Check out this little application to parse your videos and fix it.

FLV ( .flv )
Video in the Flash Video container format. These files can contain video encoded with both the ON2 VP6 codec and the Sorenson Spark codec. Audio must be in the MP3 codec. FLV is a slightly outdated format. It is also unique to Flash.

 

Note: If the progress bar isn’t running with your FLV file, or if your video dimensions are wrong, this means that your FLV file doesn’t have metadata. Fix this by using the small tool from buraks.com.

3GPP ( .3gp, .3g2 )
Video in the 3GPP container format. These files must contain video encoded with the H.263 codec and audio encoded with the AAC codec. Used widely for mobile phones because it is easy to decode. More and more devices switch to H264 though.
AAC ( .aac, .m4a )
Audio encoded with the AAC codec. Indeed, this is not video! However, the player must use the video type to playback this audio, since the sound type only supports MP3. State of the art codec, widely supported.

Sound

The player supports sounds (type=sound) in the following formats:

MP3 ( .mp3 )

Audio encoded with the MP3 codec. Though not as good as AAC, MP3 is very widely used. It is also support by nearly any device that can play audio.

Note: If you encounter too fast or too slow playback of MP3 files, it contains variable bitrate encoding or unsupported sample frequencies (eg 48Khz). Please stick to constant bitrate encoding and 44 kHz. The free iTunes software has an MP3 encoder built-in.

Images

The player supports images (type=image) in the following formats:

JPEG ( .jpg )
Images encoded with the JPEG algorythm. No transparency support.
PNG ( .png )
Images encoded with the PNG algorythm. Supports transparency.

Images encoded with the GIF algorythm. Supports transparency, but pixels can only be opaque or 100% transparent.

Note: The player does NOT support animated GIFs.

SWF ( .swf )
Drawings/animations encoded in the Adobe Flash format. Supports transparency.

Note: Though SWF files load in the player, it is discouraged to use them. The player cannot read the duration and dimensions of SWF files. Custom scripts inside these SWF files might also interfere with (or break) playback.

YouTube

The player includes native support for playing back Youtube videos (type=youtube). Youtube playback is automatically enabled when the file option is assigned to the URL of a YouTube video (e.g. http://www.youtube.com/watch?v=WuQnd3d9IuA).

The player uses the official YouTube API for this functionality, so this is definetily not a hack. Youtube officially support playback of its content in third-party players like the JW Player.

The YouTube API is accessed through a bridge, the separate yt.swf file included in the player download.

Note: In order for Youtube videos to play, you must upload the yt.swf file to the same directory as the player.swf.