I researched for a while and had read Multiplex a HEVC-Video into a MPEG-Transportstream with FFMPEG and Convert H.264 Annex B to MPEG-TS
but non of these answer my question.
I tried ffmpeg -y -f hevc -i out.h265 -c copy -f mpegts output1.ts
but it got 2 errors:
[mpegts @ 00000230d3bad2c0] Timestamps are unset in a packet for stream 0. This is deprecated and will stop working in the future. Fix your code to set the timestamps properly.
[mpegts @ 00000230d3bad2c0] first pts value must be set av_interleaved_write_frame(): Invalid data found when processing input
How can i wrap a HEVC Annex B into .ts file without changing its start code?.
Thank you.