如何使用 mencoder 将帧提取到特定目录?
我似乎无法将图像提取到特定目录中。
我当前运行的命令是
mplayer -vo jpeg CustomLogoAni.mp4
是否也可以设置文件的前缀?类似于 ffmpeg %d.jpg
组合图像时我运行命令:
mencoder "mf://*.jpg" -ovc x264 -o output.avi
但它不起作用。
有人可以帮忙吗?
I can't seem to extract images into a specific directory.
The current command I am running is
mplayer -vo jpeg CustomLogoAni.mp4
Is it also possible to set the prefix for the file? Similar to ffmpeg %d.jpg
When combining the images I run the command:
mencoder "mf://*.jpg" -ovc x264 -o output.avi
But it does not work.
Can anyone help?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
您需要
-vo jpeg:outdir=/tmp/frames/
输出到特定目录。我不相信前缀是可能的。You want
-vo jpeg:outdir=/tmp/frames/
for output to a specific directory. I don't believe a prefix is possible.该命令与 ffmpeg 配合得很好。如果您想转换 1080p 视频并且计算机速度较慢,也没关系,它会按照自己的速度进行转换。
%08d 格式似乎遵循常见的 printf 格式。它生成一个类似 image00000001.png 的文件名。
ffmpeg 可以将整个视频转换为图像。
https://www.ffmpeg.org/ffmpeg.html#Video-and -Audio-grabbing
我找不到有关特定输出目录的任何信息,但似乎在 Windows 上您可以使用“.”浏览目录。
This command works very well with ffmpeg. It doesn't matter if you want to convert a 1080p video and you have a slow computer, it converts it on its own pace.
The %08d format seems to follow the common printf format. It generates a filename like image00000001.png.
ffmpeg can convert a whole video into images.
https://www.ffmpeg.org/ffmpeg.html#Video-and-Audio-grabbing
I couldn't find any info on the specific output directory, however it seems that on Windows you can navigate thru directories with '.'