mirror of https://github.com/mpv-player/mpv
ao_pcm: fix references to -novideo
The option is -no-video. Remove the deprecated "fast" suboption, which did nothing and instructed the user to use "-novideo" instead. Fix a reference to -novideo in encoding.rst. Add a "generic" entry about -no-* to the list of renamed options. The change is already explicitly mentioned in the text above the table, but even if it's redundant, it makes it harder to overlook.
This commit is contained in:
parent
1085539bde
commit
358dc47314
|
@ -131,7 +131,7 @@ What works
|
||||||
* Using x264 presets/tunings/profiles (by using profile=, tune=, preset= in the
|
* Using x264 presets/tunings/profiles (by using profile=, tune=, preset= in the
|
||||||
-ovcopts)
|
-ovcopts)
|
||||||
* Deinterlacing/Inverse Telecine with any of mpv's filters for that
|
* Deinterlacing/Inverse Telecine with any of mpv's filters for that
|
||||||
* Audio file converting: mpv -o outfile.mp3 infile.flac -novideo -oac
|
* Audio file converting: mpv -o outfile.mp3 infile.flac -no-video -oac
|
||||||
libmp3lame -oacopts ab=320k
|
libmp3lame -oacopts ab=320k
|
||||||
* inverse telecine filters (confirmed working: detc, pullup, filmdint)
|
* inverse telecine filters (confirmed working: detc, pullup, filmdint)
|
||||||
|
|
||||||
|
|
|
@ -93,6 +93,7 @@ Command line switches
|
||||||
=================================== ===================================
|
=================================== ===================================
|
||||||
Old New
|
Old New
|
||||||
=================================== ===================================
|
=================================== ===================================
|
||||||
|
-no<opt> --no-<opt> (add a dash)
|
||||||
-nosound --no-audio
|
-nosound --no-audio
|
||||||
-use-filename-title --title="${filename}"
|
-use-filename-title --title="${filename}"
|
||||||
-loop 0 --loop=inf
|
-loop 0 --loop=inf
|
||||||
|
|
|
@ -127,11 +127,9 @@ static int init(struct ao *ao, char *params)
|
||||||
struct priv *priv = talloc_zero(ao, struct priv);
|
struct priv *priv = talloc_zero(ao, struct priv);
|
||||||
ao->priv = priv;
|
ao->priv = priv;
|
||||||
|
|
||||||
int fast = 0;
|
|
||||||
const opt_t subopts[] = {
|
const opt_t subopts[] = {
|
||||||
{"waveheader", OPT_ARG_BOOL, &priv->waveheader, NULL},
|
{"waveheader", OPT_ARG_BOOL, &priv->waveheader, NULL},
|
||||||
{"file", OPT_ARG_MSTRZ, &priv->outputfilename, NULL},
|
{"file", OPT_ARG_MSTRZ, &priv->outputfilename, NULL},
|
||||||
{"fast", OPT_ARG_BOOL, &fast, NULL},
|
|
||||||
{NULL}
|
{NULL}
|
||||||
};
|
};
|
||||||
// set defaults
|
// set defaults
|
||||||
|
@ -140,11 +138,6 @@ static int init(struct ao *ao, char *params)
|
||||||
if (subopt_parse(params, subopts) != 0)
|
if (subopt_parse(params, subopts) != 0)
|
||||||
return -1;
|
return -1;
|
||||||
|
|
||||||
if (fast)
|
|
||||||
mp_msg(MSGT_AO, MSGL_WARN,
|
|
||||||
"[AO PCM] Suboption \"fast\" is deprecated.\n"
|
|
||||||
"[AO PCM] Use -novideo, or -benchmark if you want "
|
|
||||||
"faster playback with video.\n");
|
|
||||||
if (!priv->outputfilename)
|
if (!priv->outputfilename)
|
||||||
priv->outputfilename =
|
priv->outputfilename =
|
||||||
strdup(priv->waveheader ? "audiodump.wav" : "audiodump.pcm");
|
strdup(priv->waveheader ? "audiodump.wav" : "audiodump.pcm");
|
||||||
|
@ -175,7 +168,7 @@ static int init(struct ao *ao, char *params)
|
||||||
priv->waveheader ? "WAVE" : "RAW PCM", ao->samplerate,
|
priv->waveheader ? "WAVE" : "RAW PCM", ao->samplerate,
|
||||||
ao->channels, af_fmt2str_short(ao->format));
|
ao->channels, af_fmt2str_short(ao->format));
|
||||||
mp_tmsg(MSGT_AO, MSGL_INFO,
|
mp_tmsg(MSGT_AO, MSGL_INFO,
|
||||||
"[AO PCM] Info: Faster dumping is achieved with -novideo\n"
|
"[AO PCM] Info: Faster dumping is achieved with -no-video\n"
|
||||||
"[AO PCM] Info: To write WAVE files use -ao pcm:waveheader (default).\n");
|
"[AO PCM] Info: To write WAVE files use -ao pcm:waveheader (default).\n");
|
||||||
|
|
||||||
priv->fp = fopen(priv->outputfilename, "wb");
|
priv->fp = fopen(priv->outputfilename, "wb");
|
||||||
|
|
Loading…
Reference in New Issue