douzuita7325 2010-09-28 05:44
浏览 202
已采纳

如何在视频缩略图中插入播放按钮?

I'm creating thumbnails from videos using ffmpeg and it's working fine.

But now I want to add a play button image at the center of the thumbnail image and store them.

I've used CSS to get that, but I want to know whether there is any method to create thumbnails with the given image at the center.

  • 写回答

2条回答 默认 最新

  • donglie7778 2010-09-28 05:48
    关注

    Yes, you can use a library such as GD or ImageMagick.

    But, why don't you continue to do it with CSS? You can keep the play button separate for maintainability, use JPEG for thumbnails (play buttons generally don't look good when encoded as JPEGs).

    I would only recommend combining them if there was some need to have them always there (exposing them via an API, for one).

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论
查看更多回答(1条)

报告相同问题?

悬赏问题

  • ¥15 程序不包含适用于入口点的静态Main方法
  • ¥15 素材场景中光线烘焙后灯光失效
  • ¥15 请教一下各位,为什么我这个没有实现模拟点击
  • ¥15 执行 virtuoso 命令后,界面没有,cadence 启动不起来
  • ¥50 comfyui下连接animatediff节点生成视频质量非常差的原因
  • ¥20 有关区间dp的问题求解
  • ¥15 多电路系统共用电源的串扰问题
  • ¥15 slam rangenet++配置
  • ¥15 有没有研究水声通信方面的帮我改俩matlab代码
  • ¥15 ubuntu子系统密码忘记