ffmpeg filename output format

前端 未结 6 2185
情书的邮戳
情书的邮戳 2020-12-06 00:52

When using ffmpeg to output a series of frames as images, the only format I can find documentation for is frame_%d.jpg. The %d identif

6条回答
  •  予麋鹿
    予麋鹿 (楼主)
    2020-12-06 01:32

    The strftime option allows you to expand the filename with date and time information. Check the documentation of the strftime() function for the syntax.

    For example to generate image files from the strftime() %Y-%m-%d_%H-%M-%S pattern, the following ffmpeg command can be used:

    ffmpeg -f v4l2 -r 1 -i /dev/video0 -f image2 -strftime 1 "%Y-%m-%d_%H-%M-%S.jpg"
    

提交回复
热议问题