zoukankan      html  css  js  c++  java
  • 【视频技术】ffmpeg截取图片(Mac)

    1. 输出单张图片:ffmpeg -i NLP-CNN.mp4 -f image2 -ss 2000 -vframes 1 -s 220*220 NLP-CNN-003.jpg

    2. 输出所有图片:

    每1秒:ffmpeg -i NLP-CNN.mp4 -r 1 NLP_CNN_Image%d.jpg

    每5秒:ffmpeg -i NLP-CNN.mp4 -f image2 -r 0.2 -ss 00:00 -t 02:45  NLP_CNN_Image%3d.jpg

    3。获取视频信息

    ffmpeg -i NLP-CNN.mp4 2>&1 |grep duration -i

      Duration: 01:38:05.65, start: 0.000000, bitrate: 144 kb/s

    4. 输出5877秒的图片:ffmpeg -i NLP-CNN.mp4 -f image2 -ss 5877 -vframes 1 -s 1280*720 NLP-CNN-001.jpg

     

  • 相关阅读:
    Spinal Tap Case
    Sorted Union
    Search and Replace
    Boo who
    Missing letters
    DNA Pairing
    Pig Latin
    Where art thou
    Roman Numeral Converter
    Redis高级客户端Lettuce详解
  • 原文地址:https://www.cnblogs.com/defineconst/p/11565251.html
Copyright © 2011-2022 走看看