我研究了一段时间,读了Multiplex a HEVC-Video into a MPEG-Transportstream with FFMPEG和Convert H.264 Annex B to MPEG-TS
但是这些都不回答我的问题。
我尝试了ffmpeg -y -f hevc -i out.h265 -c copy -f mpegts output1.ts
但出现2个错误:
[mpegts @ 00000230d3bad2c0] 未在流0的数据包中设置时间戳。已弃用,以后将不再使用。修复您的代码以正确设置时间戳。
[mpegts @ 00000230d3bad2c0] 必须设置第一个pts值 av_interleaved_write_frame():处理输入时发现无效数据
如何在不更改其起始代码的情况下将HEVC附件B包装到.ts文件中?
谢谢。