1.播放音视频命令格式
ffplay [options] [input_url]
2.播放pcm原始音频数据
ffplay -f s16le -ac 2 -ar 44100 song.pcm
- -f:指定pcm数据的格式,s16se(signed 16 bits little endian, 有符号 16 位小端)
- ac:指定音频声道数量
- ar:指定音频采样频率
3.播放MP3
ffplay song.mp3
4.播放yuv原始视频数据
ffplay -f rawvideo -pixel_format yuv420p -s 480*480 texture.yuv
- -f:指定原始视频数据
- -pixel_format:指定像素格式
- -s:指定图像分辨率
网友评论