<div dir="auto"><div dir="auto"><div dir="auto" style="font-family:sans-serif"><br>Hi everyone. </div><div dir="auto" style="font-family:sans-serif"><br></div><div dir="auto" style="font-family:sans-serif">I'm stuck trying to extract the qp values for a frame using side data in H.264. </div><div dir="auto" style="font-family:sans-serif">My program vq2.c can be found in <a href="https://pastebin.com/cMeg1rpp">https://pastebin.com/cMeg1rpp</a>. </div><div dir="auto" style="font-family:sans-serif">Makefile here: <a href="https://pastebin.com/29TfM8gA">https://pastebin.com/29TfM8gA</a></div><div dir="auto" style="font-family:sans-serif">and my patch for libavcodec/h264dec.c here <a href="https://pastebin.com/tegY3SJj">https://pastebin.com/tegY3SJj</a>.</div><div dir="auto" style="font-family:sans-serif"><br></div><div dir="auto" style="font-family:sans-serif">Using the code above I get 0 in the qp data. Don't understand why.</div><div dir="auto" style="font-family:sans-serif">Also, av_frame_set_qp_table is deprecated. Is there another way to do this properly?</div><div dir="auto" style="font-family:sans-serif"><br></div><div dir="auto" style="font-family:sans-serif">I'm making a simple video analysis tool where I need to extract the following data for each frame:</div><div dir="auto" style="font-family:sans-serif"><br></div><div dir="auto" style="font-family:sans-serif">frame type, frame size, qp min, qp max, qp avg.</div><div dir="auto" style="font-family:sans-serif"><br></div><div dir="auto" style="font-family:sans-serif">As a bonus question I'm trying to get the same data for HEVC but code isn't really prepared for that.</div><div dir="auto" style="font-family:sans-serif">Anyone knows best place to extract the qp-values for a frame? My current approach is to do it in the CABAC step but it's not working as expected (yet). Any hints are appreciated here.</div><div dir="auto" style="font-family:sans-serif"><br></div><div dir="auto" style="font-family:sans-serif">cheers</div><div dir="auto" style="font-family:sans-serif">./Fredrik</div><br></div></div>