Answers.Body: <p>The answer to your second question is yes. Change <code>-c:v libx264</code> to <code>-c:v h264_nvenc</code>.  I use those builds as well.  If you use the option <code>-encoders</code> you can see a list of included video and audio codecs. 
  <a href="https://gist.github.com/Brainiarc7/4b49f463a08377530df6cecb8171306a" rel="nofollow noreferrer">This</a> is a good resource for encoding with FFMPEG.</p>
  
  <p><strong>See the warning on <a href="https://stackoverflow.com/questions/44510765/gpu-accelerated-video-processing-with-ffmpeg">this question</a> if you try this</strong></p>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2018-11-13T14:05:43.437Z
Answers.LastActivityDate: 2018-11-13T14:05:43.437Z
Answers.UserDisplayName: Gordon
Body: <p>I generally use ffmpeg for encode in h264 and also resize media</p>
  
  <p>My common command is something like:</p>
  
  <pre><code>ffmpeg -i in.mov -c:v libx264 -preset ultrafast -b:v 5000k -s:v 1280x720 out.mov
  </code></pre>
  
  <p>I have an Nvidia GeForce 1060 card.</p>
  
  <p>I also use the Zeranoe Builds or various generated with the crosscompile scripts (but i'm not very pro with it)</p>
  
  <p>What i would like to know is:</p>
  
  <p>1) It is possible to SCALE for example from 4k or FHD (1080p) to HD (720p) by taking advantage of GPU acceleration instead of using the normal SCALE ? It is possible also to specify if use bicubic, bilinear and so on?</p>
  
  <p>2) It is possible to encode in h264 faster by taking advantage of GPU acceleration ?</p>
  
  <p>And what syntax/options to specify in ffmpeg to do so.</p>
  
  <p>Thanks in advance.</p>
  
Tags: <ffmpeg><transcoding><filter>
Title: If I use a normal build of ffmpeg how take advantage of video acceleration for scale?
UserDisplayName: user3450548
ThreadText: # If I use a normal build of ffmpeg how take advantage of video acceleration for scale?
  
  (Asked by: username_0 on 2018-11-11)
  
  I generally use ffmpeg for encode in h264 and also resize media
  
  My common command is something like:
  
  ```
  ffmpeg -i in.mov -c:v libx264 -preset ultrafast -b:v 5000k -s:v 1280x720 out.mov
  
  ```
  
  I have an Nvidia GeForce 1060 card.
  
  I also use the Zeranoe Builds or various generated with the crosscompile scripts (but i'm not very pro with it)
  
  What i would like to know is:
  
  1) It is possible to SCALE for example from 4k or FHD (1080p) to HD (720p) by taking advantage of GPU acceleration instead of using the normal SCALE ? It is possible also to specify if use bicubic, bilinear and so on?
  
  2) It is possible to encode in h264 faster by taking advantage of GPU acceleration ?
  
  And what syntax/options to specify in ffmpeg to do so.
  
  Thanks in advance.
  
  **Tags:** ffmpeg, transcoding, filter
  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_1 on 2018-11-13. Score: 2
  
  The answer to your second question is yes. Change `-c:v libx264` to `-c:v h264_nvenc`. I use those builds as well. If you use the option `-encoders` you can see a list of included video and audio codecs.
  [This](https://gist.github.com/Brainiarc7/4b49f463a08377530df6cecb8171306a) is a good resource for encoding with FFMPEG.
  
  **See the warning on [this question](https://stackoverflow.com/questions/44510765/gpu-accelerated-video-processing-with-ffmpeg) if you try this**
  
  
  ---
  
  