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:
Below is my Linux distro information:
Distributor ID: Ubuntu
Description : Ubuntu 20.04.1 LTS
Release : 20.04
Codename : focal
4k footage is often edited by using a smaller (1280x720 for example) proxy video. This allows the editor to be more responsive and less slow during the editing process. When the final edited video is exported the editing software will refer to the original 4k footage to create the output, so using a proxy does not reduce the quality of the final output.
Intra-frame H.264:
ffmpeg -i input.mp4 -vf "scale=-2:720,format=yuv420p" -c:v libx264 -crf 18 -preset fast -tune fastdecode -g 1 -c:a copy -movflags +faststart output.mp4
If you prefer ProRes:
ffmpeg -i input.mp4 -vf "scale=-2:720" -c:v prores_ks -profile:v proxy -c:a pcm_s16le output.mov
Refer to the documentation for your editor to see if this is an option for you.
you coul could use -crf 17 as that is visually indistinguishable and way faster
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.