如何使用 mencoder 将帧提取到特定目录?

发布于 2024-12-29 07:50:33 字数 267 浏览 3 评论 0原文

我似乎无法将图像提取到特定目录中。

我当前运行的命令是

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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

╰つ倒转 2025-01-05 07:50:33

您需要 -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.

古镇旧梦 2025-01-05 07:50:33

该命令与 ffmpeg 配合得很好。如果您想转换 1080p 视频并且计算机速度较慢,也没关系,它会按照自己的速度进行转换。

ffmpeg -i "Katy Perry - Firework.mp4" image%08d.png

%08d 格式似乎遵循常见的 printf 格式。它生成一个类似 image00000001.png 的文件名。

ffmpeg 可以将整个视频转换为图像。

https://www.ffmpeg.org/ffmpeg.html#Video-and -Audio-grabbing

我找不到有关特定输出目录的任何信息,但似乎在 Windows 上您可以使用“.”浏览目录。

ffmpeg -i "Katy Perry - Firework.mp4" ./temp/image%08d.png

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.

ffmpeg -i "Katy Perry - Firework.mp4" image%08d.png

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 '.'

ffmpeg -i "Katy Perry - Firework.mp4" ./temp/image%08d.png
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文