Mercurial > mplayer.hg
annotate TOOLS/README @ 16407:ba2b36441de7
Avoid some short forms, some consistency, wording and typo fixes.
author | diego |
---|---|
date | Tue, 06 Sep 2005 16:36:26 +0000 |
parents | 131464cb3dfb |
children | fce59530dcfd |
rev | line source |
---|---|
14801 | 1 README for the TOOLS directory |
2 ============================== | |
3 | |
4 Preamble | |
5 -------- | |
6 | |
7 In this directory you can find some nice scripts and code that makes | |
8 using MPlayer and MEncoder easier, for example scripts for DVD track | |
9 encoding in three pass mode or creating SVCDs from a movie. | |
10 | |
11 MPlayer scripts in the TOOLS dir | |
12 -------------------------------- | |
13 | |
14 midentify | |
15 | |
16 Author: Tobias Diedrich | |
17 | |
18 Description: Runs 'mplayer -identify' for all arguments while preventing | |
19 video window flashing. | |
20 | |
21 Usage: midentify file1 [file2 ...] | |
22 | |
23 | |
24 mpconsole | |
25 | |
26 Author: Rich Felker | |
27 | |
28 Description: Script to run MPlayer on the console (fbdev/mga_vid/etc.) without | |
29 the console text and/or flashing cursor getting in the way. | |
30 | |
31 Usage: mpconsole [mplayer options] | |
32 | |
33 | |
34 mplmult.sh | |
35 | |
36 Author: Reimar Dffinger | |
37 | |
38 Description: Example how to output video on multiple windows in sync. Might | |
39 be even more useful in combination with -vo ggi to distribute | |
40 the video arbitrarily. | |
41 | |
42 Usage: mplmult.sh <n> <options> | |
43 n number of MPlayer instances that display the video | |
44 options any options you would pass to MPlayer, more than | |
45 one file will usually not work | |
46 | |
47 | |
48 x2mpsub.sh | |
49 | |
50 Author: Gabucino | |
51 | |
52 Description: Converts the subtitles in the current directory into MPsub | |
53 format (subtitles go in ./converted-subtitles/). | |
54 | |
55 Usage: x2mpsub.sh | |
56 | |
57 | |
58 mp.pl | |
59 | |
60 Author: Felix Bnemann | |
61 | |
62 Description: Small helper script that allows to play multiple files with | |
63 MPlayer. Wildcards are supported. | |
64 | |
65 Usage: mp.pl <parameters> <files> | |
66 Where <parameters> are all possible command line switches | |
67 for MPlayer and <files> can be either a list of files, | |
68 like file1 file2 file3 and/or a wildcard definition, | |
69 like *.avi. | |
70 | |
71 example: mp.pl -vo x11 /dvd/VIDEO_TS/VTS_05_*.VOB movie.asf | |
72 | |
73 | |
74 wma2ogg.pl | |
75 | |
76 Author: Peter Simon | |
77 | |
78 Description: Converts WMA files to Ogg or MP3. | |
79 | |
80 Usage: wma2ogg [options] <-f FILE1 | -f FILE2 ... | -a> | |
81 -f, -file filename | |
82 -a converts all WMA files in the current directory | |
83 -t output filetype (ogg, mp3) [default=ogg] | |
84 -lame I wanna use L.A.M.E. sure enough! | |
85 -br bitrate (kb/s) [default=from the WMA] | |
86 -del remove WMA file(s) after the transcoding | |
87 | |
88 | |
89 | |
90 MEncoder scripts in the TOOLS dir | |
91 --------------------------------- | |
92 | |
93 divx2svcd | |
94 | |
95 Author: Miklos Vajna | |
96 | |
97 Description: A simple utility that creates an SVCD from a video in an AVI | |
98 container. | |
99 | |
100 Usage: divx2svcd <input_avi> [options] | |
101 see 'divx2svcd -h' for more info | |
102 | |
103 | |
104 mencvcd | |
105 | |
106 Author: Jrgen Hammelmann | |
107 | |
108 Description: Converts DVD (or anything else that MPlayer plays) to (S)VCD | |
109 | |
110 Usage: mencvcd <basename> [mencvcd options] [mplayer options] | |
111 see 'mencvcd -h' for more info | |
112 | |
113 Note: Requires MPlayer, mjpegtools, VCDImager, cdrdao, and optionally | |
114 LAME, tooLAME and SoX. | |
115 | |
116 | |
117 dvd2divxscript.pl | |
118 | |
119 Author: Florian Schilhabel | |
120 | |
121 Description: Yet another DVD to divx helper script. | |
122 This script encodes a DVD track in three pass mode to MPEG-4 with | |
123 libavcodec. Optionally it writes the resulting movie file to | |
124 CD-ROM the corresponding audio track to MP3. It can also shut | |
125 down the computer when it finishes. If you like, you can | |
126 watch the MEncoder output on /dev/tty8. | |
127 | |
128 Usage: --help show help | |
129 --abr (AudioBitRate) Please enter the desired bitrate this | |
130 can be either [96|128|192] kbit/sec (default: 128). | |
131 --lang Specify the Language of the audio track this can be | |
132 for example <en> or <de> (default: <de>). | |
133 --dvd Specify the DVD track you want to encode. | |
134 --cdsize Specify the size of your CD-ROM (default: 700MB). | |
135 --shutdown Shutdown the system, when the encoding process has | |
136 finished. Needs appropriate privileges. | |
137 --out Specify the name of your encoded movie. The file | |
138 extension will be appended automatically. | |
139 --writecd Takes the newly created movie and writes it to a | |
140 CD-ROM. | |
141 --writedev cdrecord device identifier, for example 0,1,0 | |
142 --speed writing speed (default: 4) | |
143 --dvd-device device to pull the video off (default: /dev/dvd) | |
144 | |
145 | |
16267
c2e581684e17
Aconvert allows mencoder to (easily) encode from an audio only file (hack).
jonas
parents:
16245
diff
changeset
|
146 aconvert |
c2e581684e17
Aconvert allows mencoder to (easily) encode from an audio only file (hack).
jonas
parents:
16245
diff
changeset
|
147 |
c2e581684e17
Aconvert allows mencoder to (easily) encode from an audio only file (hack).
jonas
parents:
16245
diff
changeset
|
148 Author: Jonas Jermann |
c2e581684e17
Aconvert allows mencoder to (easily) encode from an audio only file (hack).
jonas
parents:
16245
diff
changeset
|
149 |
c2e581684e17
Aconvert allows mencoder to (easily) encode from an audio only file (hack).
jonas
parents:
16245
diff
changeset
|
150 Description: A hack to allow MEncoder to read respectively encode from audio |
c2e581684e17
Aconvert allows mencoder to (easily) encode from an audio only file (hack).
jonas
parents:
16245
diff
changeset
|
151 only files. |
c2e581684e17
Aconvert allows mencoder to (easily) encode from an audio only file (hack).
jonas
parents:
16245
diff
changeset
|
152 |
c2e581684e17
Aconvert allows mencoder to (easily) encode from an audio only file (hack).
jonas
parents:
16245
diff
changeset
|
153 Usage: aconvert <"input file"> <"output file"> <"options"> |
c2e581684e17
Aconvert allows mencoder to (easily) encode from an audio only file (hack).
jonas
parents:
16245
diff
changeset
|
154 If no options are specified the following is assumed: |
c2e581684e17
Aconvert allows mencoder to (easily) encode from an audio only file (hack).
jonas
parents:
16245
diff
changeset
|
155 -oac lavc -lavcopts acodec=mp3:abitrate=192 |
c2e581684e17
Aconvert allows mencoder to (easily) encode from an audio only file (hack).
jonas
parents:
16245
diff
changeset
|
156 |
c2e581684e17
Aconvert allows mencoder to (easily) encode from an audio only file (hack).
jonas
parents:
16245
diff
changeset
|
157 Note: The script is probably bash dependent and it's just a quick |
c2e581684e17
Aconvert allows mencoder to (easily) encode from an audio only file (hack).
jonas
parents:
16245
diff
changeset
|
158 hack, feel free to improve it (or much better: fix mencoder ;). |
c2e581684e17
Aconvert allows mencoder to (easily) encode from an audio only file (hack).
jonas
parents:
16245
diff
changeset
|
159 |
c2e581684e17
Aconvert allows mencoder to (easily) encode from an audio only file (hack).
jonas
parents:
16245
diff
changeset
|
160 |
14801 | 161 |
162 Tech scripts in the TOOLS dir | |
163 ----------------------------- | |
164 | |
165 fastmem.sh | |
166 | |
167 Author: Arpi | |
168 | |
169 Description: benchmark/testbed for fastmemcpy stuff | |
170 | |
171 Usage: fastmem.sh | |
172 | |
173 | |
174 sws-test | |
175 | |
176 Author: Michael Niedermayer | |
177 | |
178 Description: Very simple script to generate PNG images from a video with all | |
179 -sws methods. | |
180 | |
181 Usage: sws-test <video-file> <start-pos> <res> | |
182 | |
183 example: sws-test abc.avi 10 160:120 | |
184 | |
185 | |
186 calcbpp.pl | |
187 | |
188 Author: Moritz Bunkus | |
189 | |
190 Description: A script that calculates the $bpp for a movie, mentioned in | |
191 DOCS/tech/encoding-tips.txt, see that document for more info. | |
192 | |
193 Usage: calcbpp.pl <resolution> <aspect ratio> <bitrate> <fps> | |
194 resolution: the cropped but unscaled resolution | |
195 (use '-vf cropdetect') | |
196 aspect ratio: the encoded aspect ratio. All DVDs come at | |
197 720x576 but contain a flag that tells the player | |
198 wether it should display the DVD at an aspect | |
199 ratio of 4/3 (1.333) or at 16/9 (1.777). Have a | |
200 look at MPlayer's output - there's something | |
201 about 'prescaling'. That's what you are looking | |
202 for. | |
203 bitrate: the video bitrate in kbit/s | |
204 fps: the fps | |
205 | |
206 example: calcbpp.pl 720x440 16/9 896 25 | |
207 | |
208 | |
209 countquant.pl | |
210 | |
211 Author: Moritz Bunkus | |
212 | |
213 Description: Counts the quantizers used for the encoding, mentioned in | |
214 DOCS/tech/encoding-tips.txt, see that document for more info. | |
215 | |
216 Usage: countquant.pl < divx2pass.log | |
217 It will print out which quantizer was used how often. If you see | |
218 that e.g. the lowest quantizer (vqmin=2) gets used for > 95% of | |
219 the frames then you can safely increase your picture size. | |
220 | |
221 | |
222 perlbench.pl | |
223 | |
224 Author: Felix Bnemann | |
225 | |
226 Description: fastmemcpy benchmark script | |
227 | |
228 Usage: perlbench.pl | |
229 | |
230 | |
231 plotpsnr.pl | |
232 | |
233 Author: Jonas Jermann | |
234 | |
235 Description: Draw PSNR log graphs using gnuplot. | |
236 | |
237 Usage: plotpsnr.pl [options] <file> | |
238 -h, --help Display this help message | |
239 -quant Display quantizers | |
240 -size Display size | |
241 -psnr Display PSNR | |
242 -iframes Display I-frames | |
243 -pframes Display P-frames | |
244 -bframes Display B-frames | |
245 -aframes Display all frames in different colors | |
246 -cmp <file2> Compare two files | |
247 -qs <style> Quantizer style | |
248 -ss <style> Size style | |
249 -ps <style> PSNR style | |
250 | |
251 Default: -quant -size -psnr -qs "p" -ss "i" -ps "p" | |
252 | |
253 Note: Requires gnuplot. Comparison is based on file2. Comparison | |
254 assumes that the frame numbers of both files fit. | |
255 | |
256 | |
257 asfinfo | |
258 | |
259 Author: Arpi | |
260 | |
261 Description: a simple ASF header display program | |
262 | |
263 Usage: asfinfo <filename.asf> | |
264 | |
265 Note: Also see MPlayer's -identify option. | |
266 | |
267 | |
268 avi-fix | |
269 | |
270 Author: Arpi | |
271 | |
272 Description: A simple tool to fix chunk sizes in RIFF AVI files. | |
273 | |
274 Usage: avi-fix [-fix] <badfile.avi> | |
275 | |
276 Note: It does not check or fix the index, to do this use | |
277 'mencoder -forceidx -oac copy -ovc copy'. | |
278 | |
279 | |
280 bios2dump | |
281 | |
282 Author: Nick Kurshev | |
283 | |
284 Description: Extract your PC BIOS and save it to file. | |
285 | |
286 Usage: As argument requires DOS interrupt number in hexadecimal form. | |
287 As output - will write 64KB file which will named: | |
288 SSSS_OOOO.intXX | |
289 where: SSSS - segment of BIOS interrupt handler | |
290 OOOO - offset of BIOS interrupt handler | |
291 XX - interrupt number which was passed as argument | |
292 | |
293 | |
16241 | 294 checktree.sh |
295 | |
296 Author: Ivo van Poorten | |
297 | |
16245 | 298 Description: Check the source tree for anomalies. |
16241 | 299 |
300 Usage: checktree.sh -help | |
301 | |
302 Note: This script is meant for developers to check the current (CVS) | |
16245 | 303 source tree and/or the patches they are working on. |
16241 | 304 |
305 | |
14801 | 306 cpuinfo |
307 | |
308 Author: Jrgen Keil | |
309 | |
310 Description: the prototype ../cpuinfo.c | |
311 | |
312 Note: Used by configure to emulate /proc/cpuinfo on non-Linux systems. | |
313 | |
314 | |
315 dump_mp4 | |
316 | |
317 Author: Arpi | |
318 | |
319 Description: MPEG4-ES stream inspector, dumps the stream startcodes. | |
320 | |
321 | |
322 fastmemcpybench | |
323 | |
324 Author: Felix Bnemann | |
325 | |
326 Description: benchmark/testbed for fastmemcpy stuff | |
327 | |
328 Note: Also see fastmem.sh. | |
329 | |
330 | |
331 mem2dump | |
332 | |
333 Author: Nick Kurshev | |
334 | |
335 Description: Dump memory block to file. | |
336 | |
337 Usage: As argument requires absolute address of memory dump and its | |
338 length (in hexadecimal form). | |
339 As output - will write file which will be named: | |
340 memADDR_LEN.dump | |
341 where: ADDR - given address of memory | |
342 LEN - given length of memory | |
343 | |
344 | |
345 movinfo | |
346 | |
347 Author: Arpi | |
348 | |
349 Description: Show QuickTime MOV file structure. | |
350 | |
351 Usage: movinfo <filename.mov> | |
352 | |
353 | |
354 png2raw | |
355 | |
356 Author: Arpi | |
357 | |
358 Description: PNG to RAW image converter, used by .raw font creators. | |
359 | |
360 Usage: png2raw <file1> [file2...] | |
361 | |
362 | |
363 vivodump | |
364 | |
365 Author: Arpi | |
366 | |
367 Description: Dump H.263 frame headers from VIVO files. | |
368 | |
369 Usage: vivodump <input_file> <output_file> | |
370 | |
371 | |
16300 | 372 |
14801 | 373 Miscellaneous scripts in the TOOLS dir |
374 -------------------------------------- | |
375 | |
376 subedit.pl | |
377 | |
378 Author: Michael Klepikov | |
379 | |
380 Description: A script for pipelined editing of subtitle files. | |
381 | |
382 Usage: subedit.pl [switches] | |
383 -if,--input-format <fmt> input format; supported: SRT (default: SRT) | |
384 -of,--output-format <fmt> output format; supported: SRT | |
385 (default: input format) | |
386 -s,--shift <time> shift all subtitles by <time> | |
387 (format: [-]hh:mm:ss,fraction) | |
388 -c,--scale <time> scale by adding <time> to overall duration | |
389 -f,--split-from <time> drop subtitles that end before <time> | |
390 -t,--split-to <time> drop subtitles that start after <time> (will | |
391 truncate timing if it overlaps a boundary) | |
392 -r,--renumber renumber SRT subtitles in output | |
393 -d,--debug enable debug output | |
394 -h,--help help message | |
395 | |
396 | |
397 w32codec_dl.pl | |
398 | |
399 Author: Tom Lees | |
400 | |
401 Description: This script will use the Windows Media Player codec download | |
402 infrastructure to aquire the codecs listed in codecs.conf and put | |
403 them in a directory named "codecs/" below the current directory. | |
404 | |
405 Usage: w32codec_dl.pl <codecs.conf location> | |
406 | |
407 Note: You will need the libwww-perl stuff and the cabextract utility | |
408 which can be found at http://www.kyz.uklinux.net/cabextract.php3. | |
409 | |
410 | |
15705
e7dcc698718b
Document install-divx5.sh and install-w32codecs.sh.
diego
parents:
14801
diff
changeset
|
411 install-divx5.sh |
e7dcc698718b
Document install-divx5.sh and install-w32codecs.sh.
diego
parents:
14801
diff
changeset
|
412 |
e7dcc698718b
Document install-divx5.sh and install-w32codecs.sh.
diego
parents:
14801
diff
changeset
|
413 Author: Andrea Menucci, thuglife |
e7dcc698718b
Document install-divx5.sh and install-w32codecs.sh.
diego
parents:
14801
diff
changeset
|
414 |
e7dcc698718b
Document install-divx5.sh and install-w32codecs.sh.
diego
parents:
14801
diff
changeset
|
415 Description: Downloads and installs DivX 5 codecs from divx.com. |
e7dcc698718b
Document install-divx5.sh and install-w32codecs.sh.
diego
parents:
14801
diff
changeset
|
416 |
e7dcc698718b
Document install-divx5.sh and install-w32codecs.sh.
diego
parents:
14801
diff
changeset
|
417 Usage: install-divx5.sh install |
e7dcc698718b
Document install-divx5.sh and install-w32codecs.sh.
diego
parents:
14801
diff
changeset
|
418 install-divx5.sh uninstall |
e7dcc698718b
Document install-divx5.sh and install-w32codecs.sh.
diego
parents:
14801
diff
changeset
|
419 |
e7dcc698718b
Document install-divx5.sh and install-w32codecs.sh.
diego
parents:
14801
diff
changeset
|
420 |
e7dcc698718b
Document install-divx5.sh and install-w32codecs.sh.
diego
parents:
14801
diff
changeset
|
421 install-w32codecs.sh |
e7dcc698718b
Document install-divx5.sh and install-w32codecs.sh.
diego
parents:
14801
diff
changeset
|
422 |
e7dcc698718b
Document install-divx5.sh and install-w32codecs.sh.
diego
parents:
14801
diff
changeset
|
423 Author: Andrea Menucci, thuglife |
e7dcc698718b
Document install-divx5.sh and install-w32codecs.sh.
diego
parents:
14801
diff
changeset
|
424 |
e7dcc698718b
Document install-divx5.sh and install-w32codecs.sh.
diego
parents:
14801
diff
changeset
|
425 Description: Downloads binary codecs from mplayerhq.hu and installs them |
e7dcc698718b
Document install-divx5.sh and install-w32codecs.sh.
diego
parents:
14801
diff
changeset
|
426 on a Debian system. |
e7dcc698718b
Document install-divx5.sh and install-w32codecs.sh.
diego
parents:
14801
diff
changeset
|
427 |
e7dcc698718b
Document install-divx5.sh and install-w32codecs.sh.
diego
parents:
14801
diff
changeset
|
428 Usage: install-w32codecs.sh install |
e7dcc698718b
Document install-divx5.sh and install-w32codecs.sh.
diego
parents:
14801
diff
changeset
|
429 install-w32codecs.sh uninstall |
e7dcc698718b
Document install-divx5.sh and install-w32codecs.sh.
diego
parents:
14801
diff
changeset
|
430 |
e7dcc698718b
Document install-divx5.sh and install-w32codecs.sh.
diego
parents:
14801
diff
changeset
|
431 |
15829
96b84e3a0d96
vobsub time-adjust tool by Gbor Farkas < gabor AH nekomancer POUM net >
gpoirier
parents:
15705
diff
changeset
|
432 vobshift.py |
96b84e3a0d96
vobsub time-adjust tool by Gbor Farkas < gabor AH nekomancer POUM net >
gpoirier
parents:
15705
diff
changeset
|
433 |
96b84e3a0d96
vobsub time-adjust tool by Gbor Farkas < gabor AH nekomancer POUM net >
gpoirier
parents:
15705
diff
changeset
|
434 Author: Gbor Farkas |
96b84e3a0d96
vobsub time-adjust tool by Gbor Farkas < gabor AH nekomancer POUM net >
gpoirier
parents:
15705
diff
changeset
|
435 |
96b84e3a0d96
vobsub time-adjust tool by Gbor Farkas < gabor AH nekomancer POUM net >
gpoirier
parents:
15705
diff
changeset
|
436 Description: Adjust the time-info in vobsub files |
96b84e3a0d96
vobsub time-adjust tool by Gbor Farkas < gabor AH nekomancer POUM net >
gpoirier
parents:
15705
diff
changeset
|
437 |
96b84e3a0d96
vobsub time-adjust tool by Gbor Farkas < gabor AH nekomancer POUM net >
gpoirier
parents:
15705
diff
changeset
|
438 Usage: vobshift.py in.idx out.idx +8.3 |
96b84e3a0d96
vobsub time-adjust tool by Gbor Farkas < gabor AH nekomancer POUM net >
gpoirier
parents:
15705
diff
changeset
|
439 Will shift the time by 8.3 seconds |
96b84e3a0d96
vobsub time-adjust tool by Gbor Farkas < gabor AH nekomancer POUM net >
gpoirier
parents:
15705
diff
changeset
|
440 |
96b84e3a0d96
vobsub time-adjust tool by Gbor Farkas < gabor AH nekomancer POUM net >
gpoirier
parents:
15705
diff
changeset
|
441 |
14801 | 442 subrip.c |
443 | |
444 Author: Kim Minh Kaplan | |
445 | |
446 Description: Transform VOBsub subtitles into Subrip text subtitles using | |
447 GOCR/JOCR. | |
448 | |
449 Usage: subrip <vobsub basename> [subid [output filename] ] | |
450 | |
451 Note: Requires at least JOCR/GOCR 0.37. | |
452 You will have to change the 'vobsub_id' value if you want a | |
453 subtitle different from number 0. Hint: You can view the | |
454 subtitle that is being decoded with "display subtitle-*.pgm". | |
455 | |
456 | |
457 alaw-gen.c | |
458 | |
459 Author: Arpi | |
460 | |
461 Description: Generates alaw/ulaw tables. | |
462 | |
463 Note: Created to work around a past license issue, no longer useful. | |
15887 | 464 |
465 | |
466 avisubdump.c | |
467 | |
468 Author: Tobias Diedrich | |
469 | |
470 Description: Dumps vobsub soft subtitles streams embedded in avi files. | |
471 | |
472 Usage: avisubdump <avi> | |
16298 | 473 |
16300 | 474 |
475 | |
16298 | 476 Format conversion scripts in the TOOLS dir |
477 ------------------------------------------ | |
478 | |
479 302m_convert.c | |
480 | |
481 Author: Reimar Dffinger | |
482 | |
483 Description: Converts D-Cinema Audio (SMPTE 302M?) to WAV. | |
484 | |
485 Usage: 302m_convert <in.302> <out.wav> | |
486 | |
487 | |
488 360m_convert.c | |
489 | |
490 Author: Reimar Dffinger | |
491 | |
16300 | 492 Description: Converts D-Cinema Video (MPEG-2 in GXF, SMPTE 360M) to MPEG-ES. |
16298 | 493 Use -demuxer mpeges to play the converted file. |
494 | |
495 Usage: 360m_convert <in.gxf> <out.m2v> |