我有一些大约 2k kbps 的流撕裂,我想减少。
ffmpeg -ss 4:00 -to 4:10 -i in.mp4 -an -vcodec libx265 -crf 26 -preset slow 26s.mp4
ffmpeg -ss 4:00 -to 4:10 -i in.mp4 -an -vcodec libx265 -crf 26 -preset slow -vf fps=30 26sr.mp4
Run Code Online (Sandbox Code Playgroud)
第一个是 60 fps 和 839 KB。第二个是 30 fps 和 807 KB。为什么差别这么小?
如果我在 cmd 中以 结束一行^
,它将要求更多输入。
D:\some\folders>do ^
More? stuff
Run Code Online (Sandbox Code Playgroud)
假设do
我不想每次做事情时都输入,所以我把它放在一个 .bat 中,假设stuff
每次我想做的事情都不一样。所以我创建了以下 .bat 文件:
do ^
Run Code Online (Sandbox Code Playgroud)
我运行它并期望它要求More?
这样我就可以输入我的stuff
. 但事实并非如此。它永远无所作为。我如何使它工作?
我想在 .m4a 文件上使用程序,但该程序无法处理 .m4a。但是,它可以处理 .aac,并且文件的编解码器是 MPEG-4 AAC。有没有办法在不重新编码的情况下转换为 .aac (最好转换回来)?
(替代解决方案:有人有无损分割 .m4a 文件的好程序吗?mp3DirectCut 很糟糕,但不能处理 .m4a。)
我想用 .bat 文件处理我的 youtube 下载,如下所示:
youtube-dl -o path\%(title)s.%(ext)s --audio-format best -x ^
url
Run Code Online (Sandbox Code Playgroud)
它在 cmd 中运行良好,但是当我将它放入 .bat 并运行它时,我得到以下信息:
Usage: youtube-dl [OPTIONS] URL [URL...]
youtube-dl: error: Cannot download a video and extract audio into the same file! Use "path\(ext)s.%(ext)s" instead of "path\(ext)s" as the output template
Run Code Online (Sandbox Code Playgroud)
我可以通过替换%(title)s.%(ext)s
来让它工作%(title)s%(ext)s.%(ext)s
。当我运行 .bat 时,cmd 会像这样解释它:
youtube-dl -o path\(ext)s.(ext)s --audio-format best -x url
Run Code Online (Sandbox Code Playgroud)
我得到一个名为(ext)s.m4a
.
如何使用我想要的路径获取正确命名的文件?
batch-file ×2
aac ×1
audio ×1
cmd.exe ×1
codec ×1
command-line ×1
ffmpeg ×1
m4a ×1
video ×1
windows ×1
youtube-dl ×1