0

I am quite new for using FFmpeg, and I am using FFmpeg in screen recording. I checked the online documentation in this link ffmpeg documentation "Capturing your Desktop / Screen Recording", but I didn't find sufficient information.

I have a 4k laptop with invidia GPU, and I am using the below command to screencast the video (4k, 60 f/s), and audio from my laptop.

ffmpeg -video_size 3840x2160 \
 -framerate 60 \
 -f x11grab -i :1 -f pulse -ac 2 -i default \
 -c:v libx264 \
 -crf 0 \
 -qp 0 \
 -preset ultrafast videoname.mp4

I have some problems in these settings as following:

  1. The output video is too large, and I need to reduce the size without touch the quality at all.
  2. The output video seems to be not a row video, and it takes too much time in video editing decoding and encoding. I am not sure if there is a recommended setting for video editing. As I did some search and found the above is advised, but in practice perspective, it is not efficient.

Below is my Linux distro information:

Distributor ID: Ubuntu
Description   : Ubuntu 20.04.1 LTS
Release       : 20.04
Codename      : focal
  • Welcome! Your 2 goals are potentially mutually exclusive. Usually you get better editing performance with less compressed source material. What editor are you using? What is your target audience? Do you really need 4k output? – Michael Liebman Aug 17 '20 at 0:38
  • As well as the raster size, do you really need 60fps? Are you slowing it down in post? If not you can halve the data rate by using 30fps – stib Aug 17 '20 at 7:38
  • 1
    For screen recording, you could absolutely use a lower frame rate. Try 30 or 24 fps. Depending on your content, you could even go 15fps. Is there lots of smooth motion? – stib Aug 18 '20 at 23:47
  • 1
    And consider how people are going to be watching it. Mobile? On the web? Are people actually going to see it in 4k? And if they do is it going to be so compressed that it would look better in HD with less compression. – stib Aug 18 '20 at 23:50
  • 1
    You should investigate using proxies when you're editing. This lets you edit lower resolution copies, but use the full resolution when rendering. Not sure if Hitfilm does that though, you'll have to check the docs. – stib Aug 19 '20 at 0:44

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.