1.安装ffmpeg
sudo add-apt-repository ppa:mc3man/trusty-media
sudo apt-get update
sudo apt-get install ffmpeg
How to install FFmpeg on Ubuntu 14.04 - FAQforge
2.运行ffplay
ffplay -f rawvideo -video_size 352x288 FOREMAN_352x288_30_orig_01_yuv
或者使用mplayer播放
mplayer -demuxer rawvideo -rawvideo w=704:h=576 <filename>
SVEF: Scalable Video-streaming Evaluation Framework
3.查看h.264文件信息
ffmpeg -show_streams -count_frames -pretty *.264 | grep nb_read_frames
ffmpeg - Count frames in H.264 bitstream - Stack Overflow
4.获取文件传输时长
ffmpeg -show_streams -count_frames -pretty *.264 | grep nb_read_frames
NUMBER_OF_FRAMES / FPS = DURATION_IN_SECONDS
c - How can i know the duration of any h264 file? - Stack Overflow
5. yuv测试序列下载
6.yuv格式含义说明
Recommended 8-Bit YUV Formats for Video Rendering (Windows)
7.获取yuv文件帧数
pyuv 播放器 DSPLab: PYUV: raw video sequence player
codevisa 播放分析软件