Mercurial > mplayer.hg
comparison DOCS/sound.html @ 8950:8fd72eae8886
Small updates for correctness and consistency.
author | diego |
---|---|
date | Mon, 13 Jan 2003 23:45:14 +0000 |
parents | 5b73c925436e |
children | ebc368360ea2 |
comparison
equal
deleted
inserted
replaced
8949:d07ab8e088a9 | 8950:8fd72eae8886 |
---|---|
255 </DL> | 255 </DL> |
256 | 256 |
257 | 257 |
258 <H5><A NAME="af_resample">2.3.2.3.1 Up/Down-sampling</A></H5> | 258 <H5><A NAME="af_resample">2.3.2.3.1 Up/Down-sampling</A></H5> |
259 | 259 |
260 <P>MPlayer fully supports sound up/down-sampling. This filter can be used if you | 260 <P>MPlayer fully supports sound up/down-sampling through the |
261 <CODE>resample</CODE> filter. It can be used if you | |
261 have a fixed frequency sound card or if you are stuck with an old sound card | 262 have a fixed frequency sound card or if you are stuck with an old sound card |
262 that is only capable of max 44.1kHz. This filter is automatically enabled if | 263 that is only capable of max 44.1kHz. This filter is automatically enabled if |
263 it is necessary, but it can also be explicitly enabled on the command line. It | 264 it is necessary, but it can also be explicitly enabled on the command line. It |
264 has three switches:</P> | 265 has three switches:</P> |
265 | 266 |
266 <DL> | 267 <DL> |
267 <DT><CODE>srate <8-192></CODE></DT> | 268 <DT><CODE>srate <8000-192000></CODE></DT> |
268 <DD>is an integer used for setting the output sample | 269 <DD>is an integer used for setting the output sample |
269 frequency in Hz. The valid range for this parameter is 8kHz to 192kHz. If | 270 frequency in Hz. The valid range for this parameter is 8kHz to 192kHz. If |
270 the input and output sample frequency are the same or if this parameter is | 271 the input and output sample frequency are the same or if this parameter is |
271 omitted the filter is automatically unloaded. A high sample frequency | 272 omitted the filter is automatically unloaded. A high sample frequency |
272 normally improves the audio quality, especially when used in combination | 273 normally improves the audio quality, especially when used in combination |
289 best quality is given by <CODE>2</CODE> but this method also suffers from | 290 best quality is given by <CODE>2</CODE> but this method also suffers from |
290 the highest CPU load.</DD> | 291 the highest CPU load.</DD> |
291 </DL> | 292 </DL> |
292 | 293 |
293 <P>Example:<BR> | 294 <P>Example:<BR> |
294 <CODE>mplayer -af resample=44100:0:1</CODE></P> | 295 <CODE>mplayer -af resample=44100:0:0</CODE></P> |
295 | 296 |
296 <P>would set the output frequency of the resample filter to 44100Hz using exact | 297 <P>would set the output frequency of the resample filter to 44100Hz using exact |
297 output frequency scaling and linear interpolation.</P> | 298 output frequency scaling and linear interpolation.</P> |
298 | 299 |
299 | 300 |
343 channel 0 to channels 0 to 3. Channel 4 and 5 will contain silence.</P> | 344 channel 0 to channels 0 to 3. Channel 4 and 5 will contain silence.</P> |
344 | 345 |
345 | 346 |
346 <H5><A NAME="af_format">2.3.2.3.3 Sample format converter</A></H5> | 347 <H5><A NAME="af_format">2.3.2.3.3 Sample format converter</A></H5> |
347 | 348 |
348 <P>This filter is a sample format converter. It is automatically enabled when | 349 <P>The <CODE>format</CODE> filter converts between different sample formats. It |
349 needed by the sound card or another filter.</P> | 350 is automatically enabled when needed by the sound card or another filter.</P> |
350 | 351 |
351 <DL> | 352 <DL> |
352 <DT><CODE>bps <number></CODE></DT> | 353 <DT><CODE>bps <number></CODE></DT> |
353 <DD>can be <CODE>1</CODE>, <CODE>2</CODE> or <CODE>4</CODE> and denotes the | 354 <DD>can be <CODE>1</CODE>, <CODE>2</CODE> or <CODE>4</CODE> and denotes the |
354 number of bytes per sample. This switch is required, leaving it empty | 355 number of bytes per sample. This switch is required, leaving it empty |
362 <CODE>be</CODE> (little or big endian). This switch is required, leaving it | 363 <CODE>be</CODE> (little or big endian). This switch is required, leaving it |
363 empty results in a runtime error.</DD> | 364 empty results in a runtime error.</DD> |
364 </DL> | 365 </DL> |
365 | 366 |
366 <P>Example:<BR> | 367 <P>Example:<BR> |
367 <CODE>mplayer media.avi -af format=4:float</CODE></P> | 368 <CODE>mplayer -af format=4:float media.avi</CODE></P> |
368 | 369 |
369 <P>would set the output format to 4 bytes per sample floating point | 370 <P>would set the output format to 4 bytes per sample floating point |
370 data.</P> | 371 data.</P> |
371 | 372 |
372 | 373 |
373 <H5><A NAME="af_delay">2.3.2.3.4 Delay</A></H5> | 374 <H5><A NAME="af_delay">2.3.2.3.4 Delay</A></H5> |
374 | 375 |
375 <P>This filter delays the sound to the loudspeakers in order to make the sound | 376 <P>The <CODE>delay</CODE> filter delays the sound to the loudspeakers such that |
376 in the different channels arrive at the same time to the listening position. | 377 the sound from the different channels arrives at the listening position |
378 simultaneously. | |
377 It is only useful if you have more than 2 loudspeakers. This filter has a | 379 It is only useful if you have more than 2 loudspeakers. This filter has a |
378 variable number of parameters:</P> | 380 variable number of parameters:</P> |
379 | 381 |
380 <DL> | 382 <DL> |
381 <DT><CODE>d1:d2:d3...</CODE></DT> | 383 <DT><CODE>d1:d2:d3...</CODE></DT> |
404 by 0ms and the center channel by 7ms.</P> | 406 by 0ms and the center channel by 7ms.</P> |
405 | 407 |
406 | 408 |
407 <H5><A NAME="af_volume">2.3.2.3.5 Software volume control</A></H5> | 409 <H5><A NAME="af_volume">2.3.2.3.5 Software volume control</A></H5> |
408 | 410 |
409 <P>This filter is a software volume control. Use this filter with caution since | 411 <P>Software volume control is implemented by the <CODE>volume</CODE> audio |
412 filter. Use this filter with caution since | |
410 it can reduce the signal to noise ratio of the sound. In most cases it is best | 413 it can reduce the signal to noise ratio of the sound. In most cases it is best |
411 to set the level for the PCM sound to max, leave this filter out and control | 414 to set the level for the PCM sound to max, leave this filter out and control |
412 the output level to your speakers with the master volume control of the mixer. | 415 the output level to your speakers with the master volume control of the mixer. |
413 If there is an external amplifier connected to the computer (this is almost | 416 If there is an external amplifier connected to the computer (this is almost |
414 always the case), the noise level can be minimized by adjusting the master | 417 always the case), the noise level can be minimized by adjusting the master |
439 utilized.</P> | 442 utilized.</P> |
440 | 443 |
441 | 444 |
442 <H5><A NAME="af_equalizer">2.3.2.3.6 Equalizer</A></H5> | 445 <H5><A NAME="af_equalizer">2.3.2.3.6 Equalizer</A></H5> |
443 | 446 |
444 <P>This filter is a 10 octave band graphic equalizer, implemented using 10 IIR | 447 <P>The <CODE>equalizer</CODE> filter represents a 10 octave band graphic |
448 equalizer, implemented using 10 IIR | |
445 band pass filters. This means that it works regardless of what type of audio | 449 band pass filters. This means that it works regardless of what type of audio |
446 is being played back. The center frequencies for the 10 bands are:</P> | 450 is being played back. The center frequencies for the 10 bands are:</P> |
447 | 451 |
448 <TABLE BORDER="0" WIDTH="100%"> | 452 <TABLE BORDER="0" WIDTH="100%"> |
449 <TR><TD>Band No.</TD><TD>Center frequency</TD></TR> | 453 <TR><TD>Band No.</TD><TD>Center frequency</TD></TR> |
478 <CODE>mplayer -af equalizer=11:11:10:5:0:-12:0:5:12:12 media.avi</CODE></P> | 482 <CODE>mplayer -af equalizer=11:11:10:5:0:-12:0:5:12:12 media.avi</CODE></P> |
479 | 483 |
480 <P>would amplify the sound in the upper and lower frequency region while | 484 <P>would amplify the sound in the upper and lower frequency region while |
481 canceling it almost completely around 1kHz.</P> | 485 canceling it almost completely around 1kHz.</P> |
482 | 486 |
487 | |
483 <H5><A NAME="af_panning">2.3.2.3.7 Panning filter </A></H5> | 488 <H5><A NAME="af_panning">2.3.2.3.7 Panning filter </A></H5> |
484 | 489 |
485 <P>This filter can be used for mixing the channels arbitrarily. It is basically | 490 <P>Use the <CODE>pan</CODE> filter to mix channels arbitrarily. It is basically |
486 a combination of the volume control and the channels filter. There are two | 491 a combination of the volume control and the channels filter. There are two |
487 major uses for this filter: </P> | 492 major uses for this filter: </P> |
488 | 493 |
489 <OL> | 494 <OL> |
490 <LI>Down-mixing many channels to only a few, stereo to mono for example.</LI> | 495 <LI>Down-mixing many channels to only a few, stereo to mono for example.</LI> |
520 example).</P> | 525 example).</P> |
521 | 526 |
522 | 527 |
523 <H5><A NAME="af_sub">2.3.2.3.8 Sub-woofer</A></H5> | 528 <H5><A NAME="af_sub">2.3.2.3.8 Sub-woofer</A></H5> |
524 | 529 |
525 <P>This filter adds a sub woofer channel to the audio stream. The audio data | 530 <P>The <CODE>sub</CODE> filter adds a sub woofer channel to the audio stream. |
531 The audio data | |
526 used for creating the sub-woofer channel is an average of the sound in channel | 532 used for creating the sub-woofer channel is an average of the sound in channel |
527 0 and channel 1. The resulting sound is then low-pass filtered by a a 4th | 533 0 and channel 1. The resulting sound is then low-pass filtered by a a 4th |
528 order Butterworth filter with a default cutoff frequency of 60Hz and added to | 534 order Butterworth filter with a default cutoff frequency of 60Hz and added to |
529 a separate channel in the audio stream. Warning: Disable this filter when you | 535 a separate channel in the audio stream. Warning: Disable this filter when you |
530 are playing DVDs with Dolby Digital 5.1 sound, otherwise this filter will | 536 are playing DVDs with Dolby Digital 5.1 sound, otherwise this filter will |
552 <P>would add a sub-woofer channel with a cutoff frequency of 100Hz to output | 558 <P>would add a sub-woofer channel with a cutoff frequency of 100Hz to output |
553 channel 4.</P> | 559 channel 4.</P> |
554 | 560 |
555 <H5><A NAME="af_surround">2.3.2.3.9 Surround-sound decoder</A></H5> | 561 <H5><A NAME="af_surround">2.3.2.3.9 Surround-sound decoder</A></H5> |
556 | 562 |
557 <P>This filter is a decoder for matrix encoded surround sound. Dolby Surround is | 563 <P>Matrix encoded surround sound can be decoded by the <CODE>surround</CODE> |
564 filter. Dolby Surround is | |
558 an example of a matrix encoded format. Many files with 2 channel audio | 565 an example of a matrix encoded format. Many files with 2 channel audio |
559 actually contain matrixed surround sound. To use this feature you need a sound | 566 actually contain matrixed surround sound. To use this feature you need a sound |
560 card supporting at least 4 channels. This filter has one parameter:</P> | 567 card supporting at least 4 channels. This filter has one parameter:</P> |
561 | 568 |
562 <DL> | 569 <DL> |
571 </DL> | 578 </DL> |
572 | 579 |
573 <P>Example:<BR> | 580 <P>Example:<BR> |
574 <CODE>mplayer -af surround=15 -channels 4 media.avi</CODE></P> | 581 <CODE>mplayer -af surround=15 -channels 4 media.avi</CODE></P> |
575 | 582 |
576 <P>would add a surround sound decoding with 15ms delay for the sound to the rear | 583 <P>would add surround sound decoding with 15ms delay for the sound to the rear |
577 speakers.</P> | 584 speakers.</P> |
578 | 585 |
579 | 586 |
580 | 587 |
581 | 588 |