1.提取h264
# ffmpeg -i test.mp4 -vcodec copy -f h264 test.h264
2.提取h265
# ffmpeg -i test.mp4 -vcodec copy -f hevc test.h265
3.将yuv编码成h265
# x265 --input-res 864x486 --fps 25 test.yuv -o test.h265
4.h264转mp4
# ffmpeg -f h264 -i test.h264 -vcodec copy test.mp4
5.将1920x1080转码为640x480的mp4
# ffmpeg -i 1920x1080.mp4 -vf "scale=640:480" 640x480.mp4
FFmpeg之mp4提取/h265(二十五)
于 2021-03-05 15:52:45 首次发布