FFmpeg command: from beginner to proficient | ffplay command options

FFmpeg command: from beginner to proficient | ffplay command options

FFmpeg command: from beginner to proficient | ffplay command options

Basic options

project illustrate
-x width Force display of broadband.
-y height Force display height.
-video_size size Frame size, set display frame storage (WxH format), only applicable to videos such as raw YUV that do not contain frame size (WxH). For example: ffplay -pixel_format yuv420p -video_size 320x240 -framerate 5 yuv420p_320x240.yuv
-pixel_format format Format sets the pixel format.
-fs Launch in full screen mode.
-an Disable audio (no sound plays)
-vn Disable video (do not play video)
-sn Disable subtitles (do not display subtitles)
-ss pos Position and drag according to the set seconds, pay attention to the time unit: such as '55' 55 seconds, '12:03:45' ,12 hours, 03 minutes and 45 seconds, '23.189' 23.189 second
-t duration Set the playback video/audio length, time unit such as -ss option
-bytes Position and drag by byte (0=off 1=on -1=auto).
-seek_interval interval Customize the left/right key positioning and dragging interval (in seconds), the default value is 10 seconds (the code is not implemented)
-nodisp Close the graphical display window and the video will not be displayed
-noborder Borderless window
-volume vol Set the starting volume. Volume range [0 ~100]
-f fmt Forces parsing to use the set format. For example -f s16le
-window_title title Set window title (defaults to input file name)
-loop number Set the number of playback loops
-showmode mode Set the display mode, available mode values: 0 displays video, 1 displays audio waveform, 2 displays audio spectrum. The default is 0, if the video does not exist, 2 will be automatically selected.
-vf filtergraph Set video filters
-of filtergraph Set audio filter

advanced options

project illustrate
-stats Prints multiple playback statistics, including showing stream duration, codec parameters, current position in the stream, and audio/video sync delta. Enabled by default, to explicitly disable it requires specifying -nostats. .
-fast Multimedia compatibility optimization for non-standardized specifications.
-genpts Generate pts.
-sync type The synchronization type sets the main clock to audio (type=audio), video (type=video) or external (type=ext). The default is audio as the main clock.
-ast audio_stream_specifier Specify the audio stream index, for example: -ast 3, play the audio stream with stream index 3
-vst video_stream_specifier Specify the video stream index, for example: -vst 4, play the video stream with stream index 4
-sst subtitle_stream_specifier Specify the subtitle stream index, such as -sst 5, to play the subtitle stream with stream index 5
-autoexit Exit after the video is finished playing.
-exitonkeydown Exit playback by pressing any key on the keyboard
-exitonmousedown Exit playback by pressing any key with the mouse
-codec:media_specifier codec_name Force the use of the set multimedia decoder, the available values ​​for media_specifier are a (audio), v (video) and s subtitles. For example: -codec:v h264_qsv forces the video to be decoded with h264_qsv
-acodec codec_name Force the use of the set audio decoder for audio decoding
-vcodec codec_name Force the use of the set video decoder for video decoding
-scodec codec_name Force the use of the set subtitle decoder for subtitle decoding
-autorotate Automatically rotate videos based on file metadata. Value is 0 or 1, default is 1.
-framedrop Drop video frames if the video is out of sync. It is enabled by default when the main clock is not the video clock. To disable it, use -noframedrop
-infbuf 不限制输入缓冲区大小。尽可能快地从输入中读取尽可能多的数据。播放实时流时默认启用,如果未及时读取数据,则可能会丢弃数据。此选项将不限制缓冲区的大小。若需禁用则使用-noinfbuf

更多选项

更多有关 ffplay 的选项参考:ffplay Documentation

Guess you like

Origin blog.csdn.net/ProgramNovice/article/details/133438491