(Audio and video study notes): ffmpeg/ffplay/ffprobe help commands, audio and video processing flow and command classification query

table of Contents

Difference between ffmpeg/ffplay/ffprobe

ffmpeg command to view the help document

ffplay command to view the help document

ffprobe command to view the help document

ffmpeg audio and video processing flow (emphasis)

ffmpeg command classification query (emphasis)

ffmpeg -version

ffmpeg -buildconf

ffmpeg -formats

ffmpeg -devices (supported devices) general D input E output

ffmpeg -codecs

ffmpeg -bsfs

ffmpeg -protocols

ffmpeg -filters

ffmpeg -pix_fmts

ffmpeg -layouts

ffmpeg -sample_fmts

ffmpeg -colors

View the parameters supported by a specific category

Difference between ffmpeg/ffplay/ffprobe

fmpeg

Hyper fast Audio and Video encoder

Super fast audio and video encoder

ffplay

Simple media player

Simple media player

ffprobe

Simple multimedia streams analyzer

Simple multimedia stream analyzer

ffmpeg command to view the help document

  • Basic information: ffmpeg -h
  • Advanced information: ffmpeg -h long
  • All information: ffmpeg -h full
  • If it is too much printing: ffmepg -h full> ffmpeg_h_full.log, and then open the ffmpeg_h_full.log file to view
ffmpeg [options] [[infile options] -i infile]...
{[outfile options] outfile}...

ffplay command to view the help document

  • All information: ffplay -h
ffplay [options] input_file

ffprobe command to view the help document

  • All information: ffprobe -h
ffprobe [OPTIONS] [INPUT_FILE]
  • Some parameters of ffmpeg/ffplay/ffprobe are common, and some parameters are not common, so you need to pay attention when using them.

[Example]

ffmpeg -h full | findstr 264

ffmpeg audio and video processing flow (emphasis)

ffmpeg -i test_1920x1080.mp4 -acodec copy -vcodec libx264 -s 1280x720 test_1280x720.flv

ffmpeg -i test_1920x1080.mp4 -acodec copy -vcodec libx265 -s 1280x720 test_1280x720.mkv

 

  • -acodec copy means that the audio is copied without decoding and re-encoding

ffmpeg command classification query (emphasis)

 

-version Show version -bsfs Show available bitstream filter
-buildconf Show compilation configuration -protocols Show available protocols
-formats Display available formats
(muxers+demuxers)
-filters Show available filters
-muxers Show available multiplexers -pix_fmts Display available pixel formats
-demuxers Show available demultiplexers -layouts Display standard channel name
-codecs Show available codecs
(decoders+encoders)
-sample_fmts Display available audio sample
formats
-decoders Show available decoders -colors Show available color names
-encoders Show available encoders

ffmpeg -version

ffmpeg -buildconf

ffmpeg -formats

ffmpeg -devices (supported devices) general D input E output

ffmpeg -codecs

ffmpeg -bsfs

ffmpeg -protocols

ffmpeg -filters

ffmpeg -pix_fmts

ffmpeg -layouts

ffmpeg -sample_fmts

ffmpeg -colors

View the parameters supported by a specific category

  • First use the above method to find the specific type, some add s at the end, type does not need to add s
ffmepg -h type=name
  • such as:
ffmpeg -h muxer=flv
ffmpeg -h filter=atempo (atempo调整音频播放速率)
ffmpeg -h encoder=libx264

 

Guess you like

Origin blog.csdn.net/baidu_41388533/article/details/111768076