树莓派3 上 omxplayer 无法播放 h.265编码的 .mp4 文件,需要进行转码.
参考: https://superuser.com/questions/1380946/how-do-i-convert-10-bit-h-265-hevc-videos-to-h-264-without-quality-loss
单个文件: ffmpeg.exe -i xxx.mp4 -map 0 -c:v libx264 -crf 18 -vf format=yuv420p -c:a copy xxx.h264.mp4 批量转换: $ for fname in ls *mp4 ; do ffmpeg.exe -i $fname -map 0 -c:v libx264 -crf 18 -vf format=yuv420p -c:a copy $fname.h264.mp4; done
其他:
10-bit/12-bit HEVC to 8-bit H.264 ffmpeg -i input -map 0 -c:v libx264 -crf 18 -vf format=yuv420p -c:a copy output.mkv 10-bit/12-bit HEVC to 10-bit H.264 ffmpeg -i input -map 0 -c:v libx264 -crf 18 -c:a copy output.mkv 10-bit/12-bit HEVC to 8-bit HEVC ffmpeg -i input -map 0 -c:v libx265 -crf 20 -vf format=yuv420p -c:a copy output.mkv 12-bit HEVC to 10-bit HEVC ffmpeg -i input -map 0 -c:v libx265 -crf 20 -vf format=yuv420p10le -c:a copy output.mkv
标签:10,H.265,H.264,HEVC,ffmpeg,map,bit,copy From: https://www.cnblogs.com/rivanwang/p/18051509