Forrest logo
back to context overview

ffmpeg

List of commands for ffmpeg:

  • ffmpeg:ai:0ac19 使用ffmpeg将视频的pts扩大5倍
    $ ffmpeg -i input.mp4 -vf "setpts=5*PTS" output.mp4
    try on your machine
    explain this command
  • ffmpeg:ai:0e6d3 How to merge two mkv files
    $ ffmpeg -i file1.mkv -i file2.mkv -filter_complex '${0:v}${0:a}${1:v}${1:a}concat=n=2:v=1:a=1${outv}${outa}' -map '${outv}' -map '${outa}' output.mkv
    try on your machine
    explain this command
  • ffmpeg:ai:a3ff0 对视频进行抽帧
    $ ffmpeg -i input_video.mp4 -vf fps=1 output_%03d.jpg
    try on your machine
    explain this command
  • ffmpeg:ai:c2b5e Converts a video from input.mp4 to output.avi
    $ ffmpeg -i input.mp4 output.avi
    try on your machine
    explain this command
  • ffmpeg:ai:c3449 ffmpeg 如何转换视频格式 转换为ts格式呢
    $ ffmpeg -i input.mp4 -c copy output.ts
    try on your machine
    explain this command
  • ffmpeg:ai:da6d7 how do i extraxt a track to a different file?
    $ ffmpeg -i inputfile.mp3 -acodec copy outputfile.mp3
    try on your machine
    explain this command
  • ffmpeg:tldr:12821 ffmpeg: Extract the sound from a video and save it as MP3.
    $ ffmpeg -i ${video-mp4} -vn ${sound}.mp3
    try on your machine
    explain this command
  • ffmpeg:tldr:26962 ffmpeg: Convert AVI video to MP4. AAC Audio @ 128kbit, h264 Video @ CRF 23.
    $ ffmpeg -i ${input_video}.avi -codec:a aac -b:a 128k -codec:v libx264 -crf 23 ${output_video}.mp4
    try on your machine
    explain this command
  • ffmpeg:tldr:2bc16 ffmpeg: Combine numbered images (`frame_1.jpg`, `frame_2.jpg`, etc) into a video or GIF.
    $ ffmpeg -i ${frame_%d-jpg} -f image2 ${select}
    try on your machine
    explain this command
  • ffmpeg:tldr:95009 ffmpeg: Convert MP4 video to VP9 codec. For the best quality, use a CRF value (recommended range 15-35) and -b:v MUST be 0.
    $ ffmpeg -i ${input_video}.mp4 -codec:v libvpx-vp9 -crf ${30} -b:v 0 -codec:a libopus -vbr on -threads ${number_of_threads} ${output_video}.webm
    try on your machine
    explain this command
  • ffmpeg:tldr:a34ed ffmpeg: Save a video as GIF, scaling the height to 1000px and setting framerate to 15.
    $ ffmpeg -i ${video-mp4} -vf 'scale=-1:${1000}' -r ${15} ${output-gif}
    try on your machine
    explain this command
  • ffmpeg:tldr:a54be ffmpeg: 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}
    try on your machine
    explain this command
  • ffmpeg:tldr:d3439 ffmpeg: 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}
    try on your machine
    explain this command
  • ffmpeg:tldr:fd093 ffmpeg: Remux MKV video to MP4 without re-encoding audio or video streams.
    $ ffmpeg -i ${input_video}.mkv -codec copy ${output_video}.mp4
    try on your machine
    explain this command
  • ffmpeg:warp:9c024e4efe144ebd3abc5b68c6feb4cf FFprobe file in json
    $ ffprobe -i ${media_file_path} -show_streams -show_format -print_format json
    try on your machine
    explain this command
back to context overview