mamahaha
V2EX  ›  FFmpeg

请教一下各位老大, ffmpeg 可以设定任意时间多点截图吗?

  •  
  •   mamahaha · Mar 23, 2019 · 5470 views
    This topic created in 2632 days ago, the information mentioned may be changed or developed.

    目前做多点截图是指定时间后每隔若干秒截图,每张图片间隔的时间是恒定的。 请教一下,这个间隔时间可以设置成不恒定吗?想设定 n 个视频时长范围内的随机数作为截图的时间点,不知可行否?

    2 replies    2019-03-23 20:15:00 +08:00
    weiming
        1
    weiming  
       Mar 23, 2019   ❤️ 1
    你用-vf fps=x 是固定间隔截图,想随机截图就用 time seeking: -ss 00:01:10.123 -vframes 1,用 shell 生成 seeking 时间,想怎么截就怎么截。
    https://trac.ffmpeg.org/wiki/Create%20a%20thumbnail%20image%20every%20X%20seconds%20of%20the%20video
    mamahaha
        2
    mamahaha  
    OP
       Mar 23, 2019
    @weiming 真的可以啊,太感谢了
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   2688 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 33ms · UTC 10:15 · PVG 18:15 · LAX 03:15 · JFK 06:15
    ♥ Do have faith in what you're doing.