<p>I want to take a live HD-SDI signal being captured by a capture card and encode it in real time to X.264.</p>

<p>What happens when the input resolution suddenly changes? eg, from HD SDI 1080/50i to HD SDI 720/59p, etc.</p>

<p>Does the encoder handle that gracefully? Or would there be some artifacts/disturbance in the output? (or worse?)</p>

CC BY-SA 3.0
2016-02-09T05:20:05.550Z
Haven't come across that scenario but you could apply a scale, deinterlace and fps filter so that libx264 is processing frames with the same properties.
Gyan
CC BY-SA 3.0
2016-02-09T09:40:19.253Z
Thanks for the comment.  I don't think that will work well. The encoded content written to disk must later be played back out an HD-SDI card at the original resolution and frame rate (of course at a lower quality). Modifying the frame rate on encode will introduce some unacceptable artifacts.
Danny
<ffmpeg><libx264>
Real time ffmpeg / x264 encoder behavior when input resolution suddenly changes
Danny
# Real time ffmpeg / x264 encoder behavior when input resolution suddenly changes

(Asked by: username_0 on 2016-02-09)

I want to take a live HD-SDI signal being captured by a capture card and encode it in real time to X.264.

What happens when the input resolution suddenly changes? eg, from HD SDI 1080/50i to HD SDI 720/59p, etc.

Does the encoder handle that gracefully? Or would there be some artifacts/disturbance in the output? (or worse?)

**Tags:** ffmpeg, libx264

> **Comments:**
> **username_1**: Haven't come across that scenario but you could apply a scale, deinterlace and fps filter so that libx264 is processing frames with the same properties.  
> **username_0**: Thanks for the comment.  I don't think that will work well. The encoded content written to disk must later be played back out an HD-SDI card at the original resolution and frame rate (of course at a lower quality). Modifying the frame rate on encode will introduce some unacceptable artifacts.  

---

## 0 answers

