# What would be the best thing to validate keyframe and codec.

**URL:** <https://community.wowza.com/t/what-would-be-the-best-thing-to-validate-keyframe-and-codec/45278>\
**Category:** Wowza Streaming Engine\
**Created:** [September 14, 2015, 5:10pm UTC](https://community.wowza.com/t/what-would-be-the-best-thing-to-validate-keyframe-and-codec/45278 "2015-09-14T17:10:34Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ryota\_Hori](https://avatars.discourse-cdn.com/v4/letter/r/df788c/32.png) [@Ryota\_Hori](https://community.wowza.com/u/Ryota_Hori)\
**Post date:** [September 14, 2015, 5:10pm UTC](https://community.wowza.com/t/what-would-be-the-best-thing-to-validate-keyframe-and-codec/45278/1 "2015-09-14T17:10:34Z")

</div>

I need to validate video codec and keyframe frequency.

- keyframe frequency should be under 5 sec

- video codec should be H264

How would you tell me whether it is good each?

---

<div class="post-metadata">

**Author:** ![Daren\_Johnson](https://avatars.discourse-cdn.com/v4/letter/d/ee59a6/32.png) [@Daren\_Johnson](https://community.wowza.com/u/Daren_Johnson)\
**Post date:** [September 21, 2015, 11:47pm UTC](https://community.wowza.com/t/what-would-be-the-best-thing-to-validate-keyframe-and-codec/45278/2 "2015-09-21T23:47:45Z")

</div>

Hi,

FFPROBE (part of FFMPEG)

This command with help list keyframes:

ffprobe -select\_streams v -show\_frames -v quiet in.mp4

also, ffprobe -i filename works well to find codec information.

Daren

---

<div class="post-metadata">

**Author:** ![sal\_jefferson](https://avatars.discourse-cdn.com/v4/letter/s/6de8d8/32.png) [@sal\_jefferson](https://community.wowza.com/u/sal_jefferson)\
**Post date:** [October 8, 2015, 7:43am UTC](https://community.wowza.com/t/what-would-be-the-best-thing-to-validate-keyframe-and-codec/45278/3 "2015-10-08T07:43:02Z")

</div>

This question is not quite clear. Did you follow the steps provided by Daren in his reply?

Regards,

Salvadore

---

<div class="post-metadata">

**Author:** ![Ryota\_Hori](https://avatars.discourse-cdn.com/v4/letter/r/df788c/32.png) [@Ryota\_Hori](https://community.wowza.com/u/Ryota_Hori)\
**Post date:** [September 24, 2015, 2:41pm UTC](https://community.wowza.com/t/what-would-be-the-best-thing-to-validate-keyframe-and-codec/45278/4 "2015-09-24T14:41:05Z")

</div>

Hi, Daren.

It needed in Wowza.

“video codec should be H264” could be validated at IMediaStreamActionNotify3#onCodecInfoVideo, how about keyframe?
