<p>I am quite new for using <code>FFmpeg</code>, and I am using <code>FFmpeg</code> in screen recording. I checked the online documentation in this link <a href="https://trac.ffmpeg.org/wiki/Capture/Desktop" rel="nofollow noreferrer">ffmpeg documentation &quot;Capturing your Desktop / Screen Recording&quot;</a>, but I didn't find sufficient information.</p>
<p>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.</p>
<pre class="lang-sh prettyprint-override"><code>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
</code></pre>
<p>I have some problems in these settings as following:</p>
<ol>
<li>The output video is too large, and I need to reduce the size without touch the quality at all.</li>
<li>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.</li>
</ol>
<p>Below is my Linux distro information:</p>
<pre><code>Distributor ID: Ubuntu
Description   : Ubuntu 20.04.1 LTS
Release       : 20.04
Codename      : focal
</code></pre>

CC BY-SA 4.0
2020-08-17T00:38:50.693Z
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
CC BY-SA 4.0
2020-08-17T07:38:18.620Z
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
CC BY-SA 4.0
2020-08-18T20:32:19.400Z
@MichaelLiebman I am using Hitfilm Pro 14. My target audiance are mainly technical and IT guys. Yes, I need 4K output this will be  a nice part in my videos..
Moustafa Mahmoud
CC BY-SA 4.0
2020-08-18T20:37:25.670Z
@stib I am not sure if 60fps is required or not in screen recording for coding and presentation.
Moustafa Mahmoud
CC BY-SA 4.0
2020-08-18T20:54:05.273Z
I think my main requirement is to enhance the video editing speed and make the quality 4K as is.
Moustafa Mahmoud
CC BY-SA 4.0
2020-08-18T23:47:25.103Z
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
CC BY-SA 4.0
2020-08-18T23:48:59.407Z
I am not sure, But I think this could reduce the size, but it is quite not affecting to make video editor more responsive and less slow when editing 4k.
Moustafa Mahmoud
CC BY-SA 4.0
2020-08-18T23:50:20.910Z
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
CC BY-SA 4.0
2020-08-18T23:51:27.720Z
It depends on but some people are using youtube and most of them have a 4k screen.
Moustafa Mahmoud
CC BY-SA 4.0
2020-08-19T00:44:38.903Z
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
CC BY-SA 4.0
2020-08-19T12:34:01.633Z
@stib Does ffpmeg has a recommeded encoding or format for editing?
Moustafa Mahmoud
CC BY-SA 4.0
2020-08-19T23:44:00.857Z
Let us [continue this discussion in chat](https://chat.stackexchange.com/rooms/111994/discussion-between-stib-and-moustafa-mahmoud).
stib
<video><ffmpeg><video-editor><linux>
What is the recommended settings for video editing using ffmpeg?
Moustafa Mahmoud
# What is the recommended settings for video editing using ffmpeg?

(Asked by: username_0 on 2020-08-16)

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:

The output video is too large, and I need to reduce the size without touch the quality at all.
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

**Tags:** video, ffmpeg, video-editor, linux

> **Comments:**
> **username_1**: 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?  
> **username_2**: 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  
> **username_0**: @MichaelLiebman I am using Hitfilm Pro 14. My target audiance are mainly technical and IT guys. Yes, I need 4K output this will be  a nice part in my videos..  
> **username_0**: @username_2 I am not sure if 60fps is required or not in screen recording for coding and presentation.  
> **username_0**: I think my main requirement is to enhance the video editing speed and make the quality 4K as is.  
> **username_2**: 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?  
> **username_0**: I am not sure, But I think this could reduce the size, but it is quite not affecting to make video editor more responsive and less slow when editing 4k.  
> **username_2**: 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.  
> **username_0**: It depends on but some people are using youtube and most of them have a 4k screen.  
> **username_2**: 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.  
> **username_0**: @username_2 Does ffpmeg has a recommeded encoding or format for editing?  
> **username_2**: Let us [continue this discussion in chat](https://chat.stackexchange.com/rooms/111994/discussion-between-username_2-and-moustafa-mahmoud).  

---

## 0 answers

