omxplayer是树莓派上可以使用硬解码的视频播放器,但是,如果播放MPG2和WVC1格式的视频的话就需要购买许可证。
在FAT格式的分区中,增加如下配置: decode_MPG2=0x2b1000 decode_WVC1=0x90e000 验证方法是:执行命令vcgencmd codec_enabled MPG2和vcgencmd codec_enabled WVC1
omxplayer -o local test.mp3 使音频从耳机口输出 omxplayer -o hdmi test.mp3 使音频从hdmi口输出 如果播放完毕变为黑屏的话,可以执行命令:xrefresh -display :0
http://elinux.org/Omxplayer