play raw video (YUV420 in this case):
ffplay -f rawvideo -pix_fmt yuv420p -video_size 1280x720 input_video.yuv
or alternatively
ffplay -f rawvideo -pixel_format yuv420p -video_size 1280x720 input_video.yuv
play raw audio (pcm: f32le in this case)
ffplay -f f32le -ac 1 -ar 48000 input_audio
where, -f is the pcm format; -ac is the audio channels; -ar is the audio sampling rate
本文介绍了如何使用ffplay命令行工具播放YUV420P格式的视频文件及PCM:F32LE格式的音频文件。对于视频文件,通过指定像素格式和视频尺寸来实现播放;对于音频文件,则需设置PCM格式、声道数量及采样率。

2350

被折叠的 条评论
为什么被折叠?



