1 |
On Tue, May 1, 2012 at 1:35 PM, Stroller <stroller@××××××××××××××××××.uk> wrote: |
2 |
> |
3 |
> On 1 May 2012, at 17:37, Claudio Roberto França Pereira wrote: |
4 |
> |
5 |
>> You almost got it: |
6 |
>> |
7 |
>> $ eix -c w32 |
8 |
>> [N] dev-util/w32api (--): Free Win32 runtime and import library definitions |
9 |
>> $ eix -c win32 |
10 |
>> [N] media-libs/ ((~)20071007-r4): Windows 32-bit binary |
11 |
>> codecs for video and audio playback support |
12 |
>> |
13 |
>> |
14 |
>> It's also a use flag for vlc and mplayer (that's for my setup, |
15 |
>> probably other players support it too), it will pull the package for |
16 |
>> you. |
17 |
> |
18 |
> I believed that upstream mplayer considered the win32codecs USE flag (or the equivalent --whatever build-time flag) to be depreciated. |
19 |
> |
20 |
> AIUI win32codecs, as per the description, uses Microsoft *binary* blobs to do the decoding. If I `emerge -f win32codecs` and look inside the tarball, I see a bunch of .dll files. |
21 |
> |
22 |
> I believe that mplayer will just use its own open-source decoding code in the absence of this package. |
23 |
> |
24 |
> I am certainly able to play back .wmv files here without win32codecs installed. Admittedly, I'm using xbmc to do that, and haven't recently tested using VLC or mplayer, but I would avoid installing that package unless I was sure I needed it. |
25 |
|
26 |
There are containers, and there are codecs. Containers organize and |
27 |
schedule multiple media streams (be they audio or video) to be played |
28 |
simultaneously in a synchronized fashion. Codecs, by contrast, |
29 |
actually encode or decode media streams from one bitstream to another. |
30 |
(Typically for compression purposese). |
31 |
|
32 |
WMV, mp4, WAV, etc. are all names given to container formats. WMV |
33 |
might contain h264 internally, or it might contain one of the |
34 |
"Microsoft Video" codecs, or it might even contain MPEG or MPEG2. And |
35 |
any of a number of different codecs. |
36 |
|
37 |
You use a muxer to pack audio, video and text streams into a |
38 |
container, and a demuxer to split them back out. mplayer, ffmpeg, |
39 |
libavcodec, vlc and friends...they're all going to have good support |
40 |
for just about any *container* format you might see; container formats |
41 |
are easy to reverse-engineer. |
42 |
|
43 |
The w32codecs package is about being able to decode the |
44 |
patent-protected and/or not-yet-reverse-engineered *codecs* that you |
45 |
can't easily get without having the DLL files from a Windows box. |
46 |
Sometimes there are open-source alternatives. Sometimes there aren't. |
47 |
Sometimes that's because of patent issues, sometimes that's because |
48 |
there aren't enough useful samples, and sometimes that's because |
49 |
nobody cares about a codec nobody's seriously used since 1997. |
50 |
|
51 |
-- |
52 |
:wq |