我可以使用什么来自动拍摄视频快照

发布于 2024-07-11 19:42:20 字数 277 浏览 5 评论 0原文

我可以使用什么命令行实用程序来创建我制作的视频的缩略图预览? 我不想要 Windows 制作的单个拇指,我想要一个包含 30 个或更少镜头的大 jpg 文件,这样我就可以在不运行它的情况下预览电影。

我要么需要一个可以一次执行批处理的应用程序,要么需要一个命令行实用程序,这样我就可以循环遍历文件夹或w/ei需要并将其提供给实用程序。 我正在考虑破解 ffplay 来做到这一点,我不知道我会让自己陷入什么境地,所以这是推荐的吗? (我多次使用SDL,从来没有使用过它的YUV设置,也没有使用过ffmpeg)

What command line util can i use to create a thumbnail preview of a video i made? I do not want a single thumb that windows make, i want a large jpg file that has 30 or less shots so i can preview the movie w/o running it.

I either need an app that can do a batch at once or a command line util so i can loop through a folder or w/e i need and feed it to the util. I was thinking of hacking up ffplay to do this, i dont know what i am getting myself into so is that recommended? (i used SDL many times, never its YUV settings nor with ffmpeg)

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

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

发布评论

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

评论(5

沫雨熙 2024-07-18 19:42:20

您可以使用 ffmpeg 来执行帧提取,这是我完成类似操作的方法

ffmpeg -i my_input_video.flv -y -an -sameq -f image2 -r 1 my_frame_%05d.jpg
  • -i my_input_video.flv 指定输入file
  • -y 覆盖输出文件
  • -an 禁用音频(我们将视频转码为一系列 jpeg,我们不需要音频)
  • -sameq - 使用与源相同的质量
  • -f image2 将输出格式设置为 image2(图像序列)
  • -r 参数是每秒的帧数,因此上面的命令将每秒生成一个 jpeg。

一旦你收集了 jpeg,你就可以使用 ImageMagick montage 命令来构建蒙太奇图像。

You can use ffmpeg to perform frame extraction, here's how I've done something similar

ffmpeg -i my_input_video.flv -y -an -sameq -f image2 -r 1 my_frame_%05d.jpg
  • -i my_input_video.flv specifies the input file
  • -y overwrite output files
  • -an disables audio (we're transcoding a video to a series of jpegs, we don't need audio)
  • -sameq - use same quality as source
  • -f image2 sets the output format to image2 (an image sequence)
  • The -r parameter is the frames per second, so the above command will produce one jpeg per second.

Once you have your collection of jpegs, you can use ImageMagick montage command to build a montage image.

〆凄凉。 2024-07-18 19:42:20

您可以使用MTN。 它可以扫描整个目录并为找到的每个视频创建缩略图。

You could use MTN. It can scan whole directories and create thumbnails for every video found.

蒲公英的约定 2024-07-18 19:42:20

使用 mplayer:

mplayer -vo jpeg -frames 1 your_file

将提取第一帧。

Use mplayer:

mplayer -vo jpeg -frames 1 your_file

Will extract the first frame.

不寐倦长更 2024-07-18 19:42:20

Potplayer 可以自动为文件夹甚至子文件夹中的一批视频生成缩略图。 只需点击几下即可。

  1. 将您想要获取缩略图的所有视频添加到播放列表中(您可以通过转到菜单“打开-打开文件夹...”来执行此操作)
  2. 选择播放列表中的所有视频并右键单击它们。
  3. 在弹出菜单中选择“创建缩略图图像...”。
  4. 自定义输出文件夹、缩略图数量、图像大小和其他设置。
  5. 单击“确定”。

Potplayer can automatically generate the thumbnails for a batch of videos in folders or even in subfolders. It just takes a few clicks.

  1. Add all the videos you want to get thumbnails from to the playlist (You can do this by go to menu "Open-Open Folder...")
  2. Select all the videos in playlist and right click on them.
  3. Select "Create Thumbnail Image(s)..." in pop-up menu.
  4. Custom the output folder, number of Thumbnails, image size and other setting.
  5. Click "OK".
朕就是辣么酷 2024-07-18 19:42:20

Media Player Classic 可以制作一个集合(称为另存为缩略图;矩阵为 4x4),但是仅来自单个文件。

Media Player Classic can make a collection (it's called save as thumbnail; with matrix i.e. 4x4), but only from a single file.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文