searchusermenu
  • 发布文章
  • 消息中心
点赞
收藏
评论
分享
原创

ffplay播放器使用

2023-09-18 09:11:39
19
0

ffplay基础语法

ffplay [options] input_file

ffplay简单使用:

播放 demo.mp4 ,播放完成后自动退出

ffplay -autoexit demo.mp4

以1080p分辨率播放

ffplay -s 1928*1080 demo.mp4

从指定时间开始播放

ffplay -ss 10 demo.mp4

ffplay 高级选项

参数 说明 原文
-stats 打印回放统计信息 show status
-fast 非标准规范的多媒体兼容优化 non spec compliant optimizations
-genpts 生成pts generate pts
-sync type 同步类型,默认audio为主时钟 set audio-video sync. type (type=audio/video/ext)
-ast audio_stream_specifier 指定音频流索引 select desired audio stream
-vst video_stream_specifier 指定视频流索引 select desired video stream
-sst substitle_stream_specifier 指定字幕流索引 select desired substitle stream
-autoexit 视频播放完成后自动退出 exit at the end
-exitonkeydown 键盘按下任何键退出播放 exit on key down
-exitonmousedown 鼠标按下任何键退出播放 exit on mouse down
-codec:media_specifier codec_name 强制使用设置的多媒体解码器, media_specifier可选值为a(audio), v(video), s(substitle),如codec:v h264 , 同名表示:-vcodec h264 == -c:v h264 == -codec:v h264  
-acodec codec_name 强制使用设置的音频解码器进行音频解码 force audio decoder
-vcodec codec_name 强制使用设置的视频解码器进行视频解码 force video decoder
-scodec codec_name 强制使用设置的字幕解码器进行字幕解码 force subtitle decoder
-autorotate 根据文件元数据进行自动旋转 automatically rotate video
-framedrop 如果视频不同步则丢弃视频帧。当主时钟非视频时钟时默认开启。若需禁用则使用 -noframedrop drop frames when cpu is too slow
-infbuf 不限制输入缓冲区大小。此选项将不限制缓冲区的大小。若需禁用则使用-noinfbuf don't limit the input buffer size (useful with realtime streams)
0条评论
0 / 1000
怪****叔
4文章数
0粉丝数
怪****叔
4 文章 | 0 粉丝
怪****叔
4文章数
0粉丝数
怪****叔
4 文章 | 0 粉丝
原创

ffplay播放器使用

2023-09-18 09:11:39
19
0

ffplay基础语法

ffplay [options] input_file

ffplay简单使用:

播放 demo.mp4 ,播放完成后自动退出

ffplay -autoexit demo.mp4

以1080p分辨率播放

ffplay -s 1928*1080 demo.mp4

从指定时间开始播放

ffplay -ss 10 demo.mp4

ffplay 高级选项

参数 说明 原文
-stats 打印回放统计信息 show status
-fast 非标准规范的多媒体兼容优化 non spec compliant optimizations
-genpts 生成pts generate pts
-sync type 同步类型,默认audio为主时钟 set audio-video sync. type (type=audio/video/ext)
-ast audio_stream_specifier 指定音频流索引 select desired audio stream
-vst video_stream_specifier 指定视频流索引 select desired video stream
-sst substitle_stream_specifier 指定字幕流索引 select desired substitle stream
-autoexit 视频播放完成后自动退出 exit at the end
-exitonkeydown 键盘按下任何键退出播放 exit on key down
-exitonmousedown 鼠标按下任何键退出播放 exit on mouse down
-codec:media_specifier codec_name 强制使用设置的多媒体解码器, media_specifier可选值为a(audio), v(video), s(substitle),如codec:v h264 , 同名表示:-vcodec h264 == -c:v h264 == -codec:v h264  
-acodec codec_name 强制使用设置的音频解码器进行音频解码 force audio decoder
-vcodec codec_name 强制使用设置的视频解码器进行视频解码 force video decoder
-scodec codec_name 强制使用设置的字幕解码器进行字幕解码 force subtitle decoder
-autorotate 根据文件元数据进行自动旋转 automatically rotate video
-framedrop 如果视频不同步则丢弃视频帧。当主时钟非视频时钟时默认开启。若需禁用则使用 -noframedrop drop frames when cpu is too slow
-infbuf 不限制输入缓冲区大小。此选项将不限制缓冲区的大小。若需禁用则使用-noinfbuf don't limit the input buffer size (useful with realtime streams)
文章来自个人专栏
文章 | 订阅
0条评论
0 / 1000
请输入你的评论
0
0