Small Tools [2]: ffmpeg -- Video conversion tool.

yffmpeg

1.Install (安装)
  • macOS (wait a min)
    1
    brew install ffmpeg
2.Usage (用法)
  • General usage
1
ffmpeg -i video.mp4 -vn sound.mp3
  • More usage
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    ffmpeg

    Video conversion tool.

    - Extract the sound from a video and save it as MP3:
    ffmpeg -i video.mp4 -vn sound.mp3

    - Convert frames from a video or GIF into individual numbered images:
    ffmpeg -i video.mpg|video.gif frame_%d.png

    - Combine numbered images (frame_1.jpg, frame_2.jpg, etc) into a video or GIF:
    ffmpeg -i frame_%d.jpg -f image2 video.mpg|video.gif

    - Quickly extract a single frame from a video at time mm:ss and save it as a 128x128 resolution image:
    ffmpeg -ss mm:ss -i video.mp4 -frames 1 -s 128x128 -f image2 image.png

    - Trim a video from a given start time mm:ss to an end time mm2:ss2 (omit the -to flag to trim till the end):
    ffmpeg -ss mm:ss -to mm2:ss2 -i video.mp4 -codec copy output.mp4

More Ref:- https://ffmpeg.org (官网)

Donate
  • Copyright: Copyright is owned by the author. For commercial reprints, please contact the author for authorization. For non-commercial reprints, please indicate the source.
  • Copyrights © 2019-2024 John Doe
  • Visitors: | Views:

请我喝杯咖啡吧~