H 265/HEVC Codec 編解碼 MP4 和 TS
阿新 • • 發佈:2018-12-21
使用ffmpeg可以生成H.265 .TS和.MP4檔案。ffmpeg [options] [[infile options] -i infile]... {[outfile options] outfile}...ffmpeg -i ./kayak.mp4 -c copy -bsf h264_mp4toannexb -mpegts_original_network_id 0x1122 -mpegts_transport_stream_id 0x3344 -mpegts_service_id 0x5566 -mpegts_pmt_start_pid 0x1500 -mpegts_start_pid 0x150 -metadata service_provider="Some provider" -metadata service_name="Some Channel" -y out0.ts //h.264ffmpeg -i ./kayak.mp4 -c copy -bsf h264_mp4toannexb -y out1.ts //h.264ffmpeg -i ./test.mp4 -c copy -bsf h264_mp4toannexb -y out.ts //h.264ffmpeg -i ./test.mp4 -vframes 200 -r 25 -s 3840x2160 -aspect 16:9 -b:v 12000000 -vcodec hevc -y out.ts // h.265/hevcffmpeg -i ./test.mp4 -vframes 200 -r 25 -s 3840x2160 -aspect 16:9 -b:v 12000000 -vcodec hevc -mpegts_original_network_id 0x1122 -mpegts_transport_stream_id 0x3344 -mpegts_service_id 0x5566 -mpegts_pmt_start_pid 0x1500 -mpegts_start_pid 0x150 -metadata service_provider="Some provider" -metadata service_name="Some Channel" -y out.ts //h.265/hevc