[ffmpeg] play YUV with ffmpeg/ffplay

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

發佈了81 篇原創文章 · 獲贊 1 · 訪問量 6萬+
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章