i’ve been trying create hevc videos programmatically using ffmpeg c++ libraries , x265 encoder, using --master-display, --max-cll , other sei data options x265. now, make sure information being written correctly i’ll know how can read sei data generated video file, preferably using ffmpeg c++ library , functions.
i have implemented video decoder works using av_read_frame() , decoding frames each avpacket obtained. i’m not sure if somehow can sei information before process, these packets or similar approach.
the sei reading code lives here, can add debug messages see if individual values being read expected. consumer code sei bits here, , calculates angle @ video should presented user. exported in avframe display matrix side-data, can read using api in display.h (source, doxy, annotated source).
the application can use angle rotate image accordingly, e.g. using rotate avfilter.
Comments
Post a Comment