# How does H264 Video stream behave when the rtms app is paused and resumed?

**URL:** <https://devforum.zoom.us/t/how-does-h264-video-stream-behave-when-the-rtms-app-is-paused-and-resumed/136941>\
**Category:** Realtime Media Streams\
**Created:** [August 28, 2025, 5:37pm UTC](https://devforum.zoom.us/t/how-does-h264-video-stream-behave-when-the-rtms-app-is-paused-and-resumed/136941 "2025-08-28T17:37:21Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![noah.duncan](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/noah.duncan/32/51124_2.png) [@noah.duncan](https://devforum.zoom.us/u/noah.duncan)\
**Post date:** [August 28, 2025, 5:37pm UTC](https://devforum.zoom.us/t/how-does-h264-video-stream-behave-when-the-rtms-app-is-paused-and-resumed/136941/1 "2025-08-28T17:37:21Z")

</div>

We’re writing code that processes the raw H264 video frames and seeing some odd behavior when the RTMS app is paused, then resumed. Trying to determine if this is an issue with our code or if it is inherent to how the H264 video stream works.

The stream works by sending keyframes which are independent and non-keyframes which are dependent on an earlier keyframe. When the RTMS app is paused, then resumed, will the Zoom server send a keyframe as soon as it is resumed? Or is it possible that you’ll send a non-keyframe which references a keyframe that we could not have received because it was sent when the app was paused?

@chunsiong.zoom @michael.zoom

---

<div class="post-metadata">

**Author:** ![chunsiong.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/chunsiong.zoom/32/35488_2.png) [@chunsiong.zoom](https://devforum.zoom.us/u/chunsiong.zoom)\
**Post date:** [August 29, 2025, 6:47am UTC](https://devforum.zoom.us/t/how-does-h264-video-stream-behave-when-the-rtms-app-is-paused-and-resumed/136941/2 "2025-08-29T06:47:26Z")

</div>

@noah.duncan are you trying to do recording RTMS?

---

<div class="post-metadata">

**Author:** ![noah.duncan](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/noah.duncan/32/51124_2.png) [@noah.duncan](https://devforum.zoom.us/u/noah.duncan)\
**Post date:** [August 29, 2025, 11:45am UTC](https://devforum.zoom.us/t/how-does-h264-video-stream-behave-when-the-rtms-app-is-paused-and-resumed/136941/3 "2025-08-29T11:45:52Z")

</div>

Yes @chunsiong.zoom ……..

---

<div class="post-metadata">

**Author:** ![chunsiong.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/chunsiong.zoom/32/35488_2.png) [@chunsiong.zoom](https://devforum.zoom.us/u/chunsiong.zoom)\
**Post date:** [September 1, 2025, 5:01am UTC](https://devforum.zoom.us/t/how-does-h264-video-stream-behave-when-the-rtms-app-is-paused-and-resumed/136941/4 "2025-09-01T05:01:38Z")

</div>

@noah.duncan there will be a keyframe sent when the video resumes. Some considerations when doring recording is that you will need to pad the “muted” video part with your own place holder vide, such as empty black h264 video frames.

Are there any issues which you have encountered on recording?

We have recently improved network performance of the RTMS video to prevent dropped frames, do test and let me know if you enounter any issues. Do tag me in your response as well

---

<div class="post-metadata">

**Author:** ![noah.duncan](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/noah.duncan/32/51124_2.png) [@noah.duncan](https://devforum.zoom.us/u/noah.duncan)\
**Post date:** [September 4, 2025, 4:19pm UTC](https://devforum.zoom.us/t/how-does-h264-video-stream-behave-when-the-rtms-app-is-paused-and-resumed/136941/5 "2025-09-04T16:19:37Z")

</div>

Hey @chunsiong.zoom

We are currently padding the paused part with black frames.

However, we are _ **not** _ seeing a keyframe come in immediately after the video resumes, so we are forced to keep padding with black frames even though the video has been resumed. It usually takes a few seconds for us to get a keyframe after the video has been resumed, which lets us show the video.

Here is a video of our RTMS recording which shows the behavior: [https://drive.google.com/file/d/1s-fJ5Rk72JRxj7CnkWn8tRqJUEM1bh1I/view?usp=sharing](https://drive.google.com/file/d/1s-fJ5Rk72JRxj7CnkWn8tRqJUEM1bh1I/view?usp=sharing)

---

<div class="post-metadata">

**Author:** ![chunsiong.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/chunsiong.zoom/32/35488_2.png) [@chunsiong.zoom](https://devforum.zoom.us/u/chunsiong.zoom)\
**Post date:** [September 8, 2025, 2:35am UTC](https://devforum.zoom.us/t/how-does-h264-video-stream-behave-when-the-rtms-app-is-paused-and-resumed/136941/6 "2025-09-08T02:35:24Z")

</div>

@noah.duncan thanks for the video, I’ll get back to you on this

---

<div class="post-metadata">

**Author:** ![chunsiong.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/chunsiong.zoom/32/35488_2.png) [@chunsiong.zoom](https://devforum.zoom.us/u/chunsiong.zoom)\
**Post date:** [September 9, 2025, 7:42am UTC](https://devforum.zoom.us/t/how-does-h264-video-stream-behave-when-the-rtms-app-is-paused-and-resumed/136941/7 "2025-09-09T07:42:43Z")

</div>

@noah.duncan I have some updates on this. I’ve checked with the team and the keyframe is delivered at a fixed interval. The pausing and resuming does not forces an adhoc keyframe.

Thanks for flagging this, we will be putting this as a feature to work on.
