When streaming from a source I keep receiving frames following the same pattern: I-frame P-frame I-frame P-frame I-frame P-frame .... I tried many options and read as many questions here as I found, but I can't find a way to increse the number of P-frame or at least enable B-frames.

Mainly it seems that I should use:

 ffprobe rtsp://localhost/video -g 30 -bf 3 -show_frames -of csv

What am I doing wrong?

  • What's the codec you use?
    – Tom Yan
    May 28 '21 at 7:57
  • It seems it would be h264 (if there are any other h264 codec I can try them) May 28 '21 at 13:40
  • Are you using the baseline profile? Apparently it will prevent libx264 from supporting B-frames.
    – Tom Yan
    May 28 '21 at 18:04
  • I have not set it explicitly. Is there a way I could tell if it has been used? May 28 '21 at 19:19

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.