j***@astraweb.com
2024-06-09 13:11:07 UTC
JP Gilliver, I could not find the post but i recall you saying that the audio quality parm was
unnecessary when using yt-dlp.
You were correct there because elsewhere you have mentioned that you do not use extra parms, with some
exceptions when needed.
BUT, I am using yt-dlp with parms and i found out recently the when and why I need the audio-quality
parm.
~~~~from yt-dlp help file~~~~~~~
Post-Processing Options:
-x, --extract-audio Convert video files to audio-only files
(requires ffmpeg and ffprobe)
--audio-format FORMAT Format to convert the audio to when -x is
used. (currently supported: best (default),
aac, alac, flac, m4a, mp3, opus, vorbis,
wav). You can specify multiple rules using
similar syntax as --remux-video
--audio-quality QUALITY Specify ffmpeg audio quality to use when
converting the audio with -x. Insert a value
between 0 (best) and 10 (worst) for VBR or a
specific bitrate like 128K (default 5)
...
~~~~~~~~~~~~~~
I use this bat for converting to mp3's and the -x option calls the ffmpeg.exe <---- and it is ffmpeg
requires the audio quality option --
~~~~~~ yta.bat~~~~~~~
%yt% -x --audio-format mp3 --audio-quality 1 %1
~~~~~~~~~~~~~~~~~~~
(reason for the audio-format mp3 -- mpc 6, which I use for the XP machine has no idea what a .webm
file is.)
yt has been set as a system variable (%yt%) in the child environment with a couple of arguments and a
directory change to the youtube-dl directory -- but from a bat named yt in windows/System 32, named that
for simplicity and so that i can reuse 'yt' as a bat name in the youtube-dl directory because of the
hierarchy of batch file execution.
jim (or jack, no matter)
unnecessary when using yt-dlp.
You were correct there because elsewhere you have mentioned that you do not use extra parms, with some
exceptions when needed.
BUT, I am using yt-dlp with parms and i found out recently the when and why I need the audio-quality
parm.
~~~~from yt-dlp help file~~~~~~~
Post-Processing Options:
-x, --extract-audio Convert video files to audio-only files
(requires ffmpeg and ffprobe)
--audio-format FORMAT Format to convert the audio to when -x is
used. (currently supported: best (default),
aac, alac, flac, m4a, mp3, opus, vorbis,
wav). You can specify multiple rules using
similar syntax as --remux-video
--audio-quality QUALITY Specify ffmpeg audio quality to use when
converting the audio with -x. Insert a value
between 0 (best) and 10 (worst) for VBR or a
specific bitrate like 128K (default 5)
...
~~~~~~~~~~~~~~
I use this bat for converting to mp3's and the -x option calls the ffmpeg.exe <---- and it is ffmpeg
requires the audio quality option --
~~~~~~ yta.bat~~~~~~~
%yt% -x --audio-format mp3 --audio-quality 1 %1
~~~~~~~~~~~~~~~~~~~
(reason for the audio-format mp3 -- mpc 6, which I use for the XP machine has no idea what a .webm
file is.)
yt has been set as a system variable (%yt%) in the child environment with a couple of arguments and a
directory change to the youtube-dl directory -- but from a bat named yt in windows/System 32, named that
for simplicity and so that i can reuse 'yt' as a bat name in the youtube-dl directory because of the
hierarchy of batch file execution.
jim (or jack, no matter)