Vaapih264enc encoded ts segments do not play on AVPlayer
The ts segments generated by vaapih264enc
elements do not play in AVplayer(quicktime or IOS).
For example the ts segment generated by the following pipeline does not play in quicktime player.
gst-launch-1.0 rtspsrc location=rtsp://admin:pass@10.10.0.233:554/ name=rtpsrc0 rtpsrc0. ! rtph264depay ! queue ! decodebin ! vaapih264enc ! mpegtsmux name=mux ! filesink location=mymux.ts rtpsrc0. ! decodebin ! queue ! fdkaacenc ! mux.
However if I use a SW encoder x264enc
, it plays fine.
Another weird scenario is it plays fine when the original stream from the rtsp is H265.
If I wrap this over with an ffmpeg copy that would just work fine
eg: doing the following will just work fine
ffmpeg -i mymux.ts -vcodec copy -acodec copy mymux_ffmpeg.ts
I appreciate any help with this. Please let me know if you need me to attach the ts segments.