How do I check if a h264 video contains b-frames?

4

1

I'm using ffprobe right now but I don't if it supports showing whether the video contains b-frames and what could be the syntax. Can I do this with ffprobe and so, how, or is there any other free alternative that could do this?

Asik

Posted 2013-04-08T21:03:42.623

Reputation: 219

You seem to have misunderstood the question. I'm not asking for a shopping recommendation, but for a way to check if an h264 video contains b-frames. – Asik – 2013-04-08T21:48:12.873

1

software recommendation is the same thing as a shopping recommendation. Take a look at this meta post for more info.

– James Mertz – 2013-04-08T21:58:32.990

According to that meta post, this question is exactly how you should ask for something that may require a software recommendation. – Asik – 2013-04-09T01:30:28.077

I've edited your question to be more about the technology, than a software rec. Feel free to rollback if you disagree, however IMO your original edit was more about asking for a "tool" to do the work, instead of asking how to do something. – James Mertz – 2013-04-09T02:18:07.953

Answers

6

I found a way. With ffprobe:

ffprobe -show_frames videofilename.mp4 > outputfile.txt

Then you just look for the pict_type entries, which will be either I, P, or B. B denotes a b-frame.

Asik

Posted 2013-04-08T21:03:42.623

Reputation: 219

ffprobe -show_frames input.mp4 | grep "pict_type" – Mateen Ulhaq – 2020-02-29T05:59:47.207