0

I am trying to extract the frame dimensions from H.264 encoded live stream using libav and C++. I have access to the raw stream, I don't need to re-encode the frames just to parse the width and height. I think I have to get the SPS to get this information. I found this post but it doesn't seem to help with my problem:

How to get width and height from the H264 SPS using ffmpeg

3
  • 3
    why does that not help? It’s a great example.
    – szatmary
    Jan 28, 2020 at 2:25
  • I agree it's a great example but it concerns initializing a codec context using an SPS, and I am looking to get the frame size from a raw H.264 stream, so I need to initialize my context from the raw stream parameters.
    – rgeorg
    Jan 28, 2020 at 14:15
  • The SPS is just a packet in the raw stream. stackoverflow.com/questions/24884827/…
    – szatmary
    Jan 28, 2020 at 16:17

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Browse other questions tagged or ask your own question.