树莓派 硬编 264

来自艺搜天下
跳到导航 跳到搜索

Verify the hardware encoder is supported by ffmpeg:

 
ffmpeg -decoders | grep mmal
V..... h264_mmal h264 (mmal) (codec h264) 
V..... mpeg2_mmal mpeg2 (mmal) (codec mpeg2video) 
V..... mpeg4_mmal mpeg4 (mmal) (codec mpeg4) 
V..... vc1_mmal vc1 (mmal) (codec vc1)

ffmpeg -encoders | grep omx
V..... h264_omx             OpenMAX IL H.264 video encoder (codec h264)
ffmpeg -i input -c:a copy -c:v h264_omx output

参考

http://www.redhenlab.org/home/the-cognitive-core-research-topics-in-red-hen/the-barnyard/hardware-encoding-with-the-raspberry-pi

https://www.jianshu.com/p/61e2c3cbc412