Asked • 04/19/19

How should I encode my 4K video stream?

I'm capturing uncompressed 4K video from my Sony A7R II via a video capture device, and am using ffmpeg to save the video.My problem is I don't know what codec to use. The two options I tried are: - **Uncompressed**: this takes up too much space, something like 1Gb every few seconds. - **h264**: this very quickly starts skipping frames. I've tried `libx264`, `nvenc` and `qvx` and they all essentially fill up the buffer and then start skipping frames after less than a minute of shooting.I'm doing all of this on a laptop, so I have little scope for adding hardware encoding, especially considering that Intel's and Nvidia's solutions - at least on my machine - are clearly insufficient for 4K.My requirements are that the codec allows: - About 4-5 hours of captured footage reliably fit on a 500Gb SSD - Encoding can happen in realtime without frames being dropped - The codec is postprocessing-friendlyJust in case it's useful, my laptop has an i7-4710MQ and 32Gb RAM.**Update**: some clarification: I record at 30FPS, my capture device is INOGENI, sampling is 4:2:0. And no, I don't want to lose more quality than I have to. If I have to spend 100Gb/hour for recording, I'm OK with that.

1 Expert Answer

By:

Inactive Tutor answered • 13d

Tutor
New to Wyzant

Still looking for help? Get the right answer, fast.

Ask a question for free

Get a free answer to a quick problem.
Most questions answered within 4 hours.

OR

Find an Online Tutor Now

Choose an expert and meet online. No packages or subscriptions, pay only for the time you need.