2.1. Támogatott formátumok

Az MPlayer a következő egységeket/formátumokat ismeri :

Megjegyzés: realmedia-val (.ra/.rm) kapcsolatban lásd a FAQ-t!

Fontos tisztázni egy elterjedt tévhitet. Amikor az emberek egy .AVI kiterjesztésű file-t látnak, azonnal azt mondják hogy az nem MPEG file. Ez nem igaz. Legalábbis nem ebben a formában. Ha azt mondod nekik hogy ez a file tartalmazhat MPEG videot is, kinevetnek. Nyugodtan verd bucira a fejüket, és küldd el őket RTFM-be.

Ugyanis, a codec nem egyenlő a file formátummal.
A video codec-ek például a következők: MPEG1, MPEG2, DivX, Indeo5, 3ivx.
És a video formátumok: MPG, VOB, AVI, ASF.

Elméletben nyugodt szívvel beletehetsz OpenDivX videot és MP3 audiot egy .MPG formátumú file-ba. Annyi a probléma hogy a legtöbb lejátsz nem fogja lejátszani, mert MPEG1 videot és MP2 audiot várnak (az .MPG-ben nem lehet megadni hogy milyen formátumban van benne a video és audio, mint például az .AVI-ban). Van tegyél MPEG1 videot .AVI-ba. Például az ffmpeg tud ilyen fileokat létrehozni.

Audionál a codec és formátum gyakorlatilag ugyanazt jelenti.

2.1.1. Video formátumok

2.1.1.1. MPG, VOB, DAT file-ok

  • MPG : this is the most basic form of MPEG file formats. Contains MPEG1 video, and MP2 audio.
  • VOB : this is the MPEG file format on DVDs. Contains optionally encoded MPEG2 video, and usually AC3 audio.
    Read the DVD section !
  • DAT : this is the MPEG file format on Video CDs. It's the same as the MPG, but due to the nature VCDs are created and Linux is designed, the DAT files can't be played nor copied from VCDs. You have to use the -vcd option to play the VideoCD.
  • One important feature for MPGs is that they have a field to describe the aspect ratio of the video stream within. For example SVCDs have 480x480 resolution video, and in the header that field is set to 4:3, so it's played at 640x480. AVI files don't have this field, so one has to scale it during encoding.

    2.1.1.2. AVI file-ok

    Designed by Micro$oft, the AVI (Audio Video Interleaved) is a widespread multipurpose format, currently used mostly for DivX and DivX4 videos. Has many known drawbacks, and inabilities (for example in streaming). Has support for one video stream, and 99 audio streams. Can be as big as 2Gb. There exists an extension for it to be bigger, called OpenDMS. M$ currently strongly discourages its use and propagates ASF/WMV. Not if anybody cares.
    NOTE : DV cameras can create two types of AVI format, one is the usual and playable, the other is neither.

    2.1.1.3. ASF/WMV file-ok

    ASF is a new very undocumented fileformat from M$, and WMV is its successor. They are very commercial, and anyone who writes an opensource parser for them, soon meets certain doom. While creating the parser, it was obvious to see how bulky, shit, and unusable they are. Not if anybody would expect something else from M$.

    2.1.1.4. QT/MOV file-ok

    They are Apple's formats. Not much to say, basically well designed, multipurpose, streamable, many features etc. Kinda hard to find documentation, but we think the parser is perfect.

    2.1.1.5. VIV file-ok

    Hey this is new code in MPlayer, be gentle! Seeking is currently nonexistent, audio too. TODO : complete this section.

    2.1.2. Audio formátumok

    Currently MPlayer is still a Movie and not a Media player, thus the pure audio formats (for example MP3, WAV, audio ASF) are unplayable. Use xmms, mpg123 or whatever.