Answers.Body: <p>If you want to use the GPU, there is a different codec <code>hevc_vaapi</code> or <code>hevc_nvenc</code>. You can see some examples <a href="https://trac.ffmpeg.org/wiki/Hardware/VAAPI" rel="nofollow noreferrer">here</a> and <a href="https://trac.ffmpeg.org/wiki/HWAccelIntro" rel="nofollow noreferrer">here</a>. I got it to work once but the quality was much more terrible, so I didn't use it much.</p>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2021-08-04T17:59:00.767Z
Answers.LastActivityDate: 2021-08-04T17:59:00.767Z
Answers.UserDisplayName: stribika
Body: <p>I need to compress a bunch of FullHD(1920x1080, 3Gb, mp4) videos, each ~2 hrs long. Some loss of quality is okay as is the lower resolution. I'm shooting for a 500Mb output video in ~10 min processing time (2080TI Ryzen 9 3900X). It is important for the videos to be completely in sync, so frame x in the input video matches frame x in output. For this, I'm using <code>-vsync 0</code></p>
  <p>My current working settings which get me to ~500MB size in 20 minutes.</p>
  <p><code>ffmpeg -i input_fullhd.mp4 -vcodec libx265 -crf 28 -vsync 0 -vf scale=800:-1 -preset medium output.mp4</code></p>
  <p>I'd like it to be faster with potentially slightly better quality.</p>
  <p>My concern is that I'm not utilizing my GPU at all and my CPU shows only 30% utilization. So feels like it should be possible to speed this up. I tried adding <code>-hwaccel cuda</code> but that made things a bit slower.</p>
  <p>Are there any other settings I can try that I'm missing to either improve my conversion or utilize more resources for speed?</p>
  <p>Thanks</p>
  
Tags: <ffmpeg><compression>
Title: ffmpeg best parameteres for fastest compression on FullHD mp4?
UserDisplayName: Mike Azatov
ThreadText: # ffmpeg best parameteres for fastest compression on FullHD mp4?
  
  (Asked by: username_0 on 2021-08-03)
  
  I need to compress a bunch of FullHD(1920x1080, 3Gb, mp4) videos, each ~2 hrs long. Some loss of quality is okay as is the lower resolution. I'm shooting for a 500Mb output video in ~10 min processing time (2080TI Ryzen 9 3900X). It is important for the videos to be completely in sync, so frame x in the input video matches frame x in output. For this, I'm using `-vsync 0`
  
  My current working settings which get me to ~500MB size in 20 minutes.
  
  `ffmpeg -i input_fullhd.mp4 -vcodec libx265 -crf 28 -vsync 0 -vf scale=800:-1 -preset medium output.mp4`
  
  I'd like it to be faster with potentially slightly better quality.
  
  My concern is that I'm not utilizing my GPU at all and my CPU shows only 30% utilization. So feels like it should be possible to speed this up. I tried adding `-hwaccel cuda` but that made things a bit slower.
  
  Are there any other settings I can try that I'm missing to either improve my conversion or utilize more resources for speed?
  
  Thanks
  
  **Tags:** ffmpeg, compression
  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_1 on 2021-08-04. Score: 0
  
  If you want to use the GPU, there is a different codec `hevc_vaapi` or `hevc_nvenc`. You can see some examples [here](https://trac.ffmpeg.org/wiki/Hardware/VAAPI) and [here](https://trac.ffmpeg.org/wiki/HWAccelIntro). I got it to work once but the quality was much more terrible, so I didn't use it much.
  
  
  ---
  
  