2646
|
1 DXR3/H+ video/audio output plugins manual by David Holm
|
|
2 =======================================================
|
|
3
|
3186
|
4 2001-11-27: -ao dxr3 now works, still a few bugs though
|
|
5 you might have to reload the em8300 modules
|
|
6 after a playback or you might get static the
|
|
7 next time you use the dxr3 audio interface.
|
|
8
|
2646
|
9 1. Introduction
|
|
10
|
|
11 The DXR3 and Hollywood+ are two not too different mpeg-(1/2) and ac3
|
|
12 hardware playback cards that came at about the same time as the first
|
|
13 dvd-rom drives hit the market. At that time most computers weren't
|
|
14 powerful enough for synced software dvd playback. And even the faster
|
|
15 (intel-based) computers had troubles with artifacts.
|
|
16 Sigma Designs came up with the great idea to create a hardware
|
|
17 mpeg-(1/2), ac3 decoder. Sigma Designs are known for their realmagic
|
|
18 hardware (or they bought the company who came up with the first
|
|
19 realmagic boards, I don't know which).
|
|
20 Later Creative Labs thought, hey, we also wan't this product, and to
|
|
21 distribute it with our dvd-drives (the DVD Encore packages if I recall
|
|
22 correctly). So they bought the designs for the Hollywood plus and
|
|
23 replaced the circuit used to produce a proper video feed for tv's
|
|
24 called adv7170 or adv7175a depending on which h+ board you own with
|
|
25 a bt865. The reason for this is beyond my understanding as this seems
|
|
26 complete illogical to me, but I have had great experiences with
|
|
27 bt(brooktree) circuits in the past, so I don't mind.
|
|
28 Well, nowadays most people have no use for a mpeg-(1/2) or ac3
|
|
29 hardware decoder since most computers these days have no problem doing
|
|
30 this in software and have cycles left for posprocessing (removing of
|
|
31 artefacts and other garbage produced by compression).
|
|
32 These days, you have two uses for this card:
|
|
33 1. You have a slow computer which you use for vcd/dvd playback
|
|
34 2. You discover what I have done with the implementation of this as
|
|
35 an audio/video output device for mplayer (read on and you'll find
|
|
36 out).
|
|
37
|
|
38
|
|
39
|
|
40 2. Requirements
|
|
41
|
|
42 * First of all you will need the DXR3/H+ drivers properly installed,
|
|
43 including the dev-api.
|
2770
|
44 These can be downloaded from dxr3.sourceforge.net (I suggest using
|
|
45 the CVS version since most of the time I use the latest features
|
|
46 which are only available through cvs)
|
2646
|
47
|
|
48 * <mplayerdir>/libavcodec from ffmpeg (only required if you intend to
|
|
49 play formats other than mpeg-(1/2), highly recommended!) there are
|
|
50 two ways of doing this:
|
|
51 1. Download and install ffmpeg from ffmpeg.sourceforge.net.
|
|
52 Configure it with --enable-shared
|
|
53 2. Download ffmpeg from ffmpeg.sourceforge.net, copy the entire
|
|
54 contents from <ffmpegdir>/libavcodec into <mplayer>/libavcodec
|
|
55 (symlinking won't work!). Then edit <mplayerdir>/libavcodec/utils.c
|
|
56 and move the line containing register_avcodec(&mpeg1video_encoder);
|
|
57 out of the CONFIG_ENCODERS #ifdef block and place it outside, for
|
|
58 instance below register_avcodec(&rawvideo_encoder);
|
|
59
|
|
60 * Run <mplayerdir>/configure and make sure that DXR3/H+ support =yes
|
|
61 and optionally that libavcodec or ffmpeg.so = yes
|
|
62
|
|
63 From here on compilation (of at least my code ;) should go without
|
|
64 problems.
|
|
65
|
|
66
|
2770
|
67
|
2646
|
68 3. Usage
|
|
69
|
|
70 After installation you will have two new outdevices in mplayer:
|
|
71 -vo dxr3 For video output
|
3186
|
72 -ao dxr3 For audio output
|
2646
|
73
|
2770
|
74 MPEG-1, MPEG-2, VCD and DVD Notes
|
2646
|
75 There are some notes to take into account here for optimum playback.
|
|
76 When playing any mpeg-(1/2) file, this including usage of the "-dvd"
|
|
77 and "-vcd" options you must either add the "-vc mpegpes" or edit
|
|
78 codecs.conf and make sure videocodec mpegpes is listed above mpeg12.
|
|
79 If you fail to do this you will only get software playback which kinda
|
|
80 spoils most of the useful features of this card except for tv-out ;).
|
|
81 Remember that if you edit the codecs.conf file and move the mpegpes
|
|
82 section will have to specify "-vc mpeg12" if you want to playback
|
2770
|
83 any of these video types _without_ "-vo dxr3"!
|
2646
|
84
|
2770
|
85 DIVX Notes
|
|
86 When playing divx's add "-vc odivx", if you get any other divx codec
|
|
87 to run faster tell me which one because I'll be interested in how it
|
|
88 could possibly be any faster than OpenDivX4Linux...
|
|
89
|
3186
|
90 Other codecs:
|
|
91 Currently they don't work. I'm working on implementing libvo2 which
|
|
92 will be a much more convenient and faster way of working with
|
|
93 vo<->codec interaction. If libvo2 takes longer to develop than I
|
|
94 have estimated perhaps I'll add more codec support to libvo. Otherwise
|
|
95 you'll just have to wait for libvo2. (there is an implementation
|
|
96 for other codecs, but I think it's pretty broken currently ;)
|
2646
|
97
|
|
98
|
|
99
|
3186
|
100 4. Contacting me
|
2646
|
101
|
2770
|
102 You can contact me either by e-mailing me, <dholm@iname.com> or by using
|
2646
|
103 icq: 798427
|
2770
|
104 Feedback, bugreports and general suggestions are appreciated (preferably
|
|
105 by e-mail). My name is David Holm for those of you who are incapable of
|
|
106 reading a heading. ;)
|
2646
|
107
|
|
108
|