Body: <p>I'm doing some nvidia GPU hevc transcoding to get stuff done at faster speeds. Most of the ~2000 titles that I'm transcoding work fine, but a handful are failing like</p>
  <pre><code>Impossible to convert between the formats supported by the filter 'Parsed_hwupload_cuda_3' and the filter 'auto_scale_0'
  [vf#0:0 @ 0x55b72ac9a3c0] Error reinitializing filters!
  Failed to inject frame into filter network: Function not implemented
  Error while filtering: Function not implemented
  </code></pre>
  <p>I'm aware of the need to <code>hwdownload</code> and <code>hwupload</code> during a filtering pipeline, but when I remove all video filters from the command, it instead says</p>
  <pre><code>Impossible to convert between the formats supported by the filter 'Parsed_null_0' and the filter 'auto_scale_0'
  </code></pre>
  <p>Here are a couple of examples of commands producing the errors. With filters and an error mentioning <code>Parsed_hwupload_cuda_3</code>:</p>
  <pre><code>&quot;ffmpeg&quot; &quot;-hwaccel&quot; &quot;cuda&quot; &quot;-hwaccel_output_format&quot; &quot;cuda&quot; &quot;-hide_banner&quot; &quot;-y&quot; &quot;-i&quot; \
      &quot;in.mkv&quot; &quot;-max_muxing_queue_size&quot; &quot;1024&quot; &quot;-map&quot; &quot;0&quot; &quot;-c&quot; &quot;copy&quot; &quot;-filter:v:0&quot; \
      &quot;hwdownload,format=nv12,crop=1456:1080:232:0,hwupload_cuda&quot; &quot;-c:0&quot; &quot;hevc_nvenc&quot; \
      &quot;-f&quot; &quot;matroska&quot; &quot;out.mkv&quot;
  </code></pre>
  <p>and without filters and the error mentioning <code>Parsed_null_0</code>:</p>
  <pre><code>&quot;ffmpeg&quot; &quot;-hwaccel&quot; &quot;cuda&quot; &quot;-hwaccel_output_format&quot; &quot;cuda&quot; &quot;-hide_banner&quot; &quot;-y&quot; &quot;-i&quot; \
      &quot;in.mkv&quot; &quot;-max_muxing_queue_size&quot; &quot;1024&quot; &quot;-map&quot; &quot;0&quot; &quot;-c&quot; &quot;copy&quot; &quot;-c:0&quot; &quot;hevc_nvenc&quot; \
      &quot;-f&quot; &quot;matroska&quot; &quot;out.mkv&quot;
  </code></pre>
  <p>Note: The quoting in the commands is because I'm generating them with a script and logging them out before running.</p>
  <p>I can't find any info about that <code>auto_scale_0</code> filter. Why is it failing like this?</p>
  
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2024-01-16T10:40:58.440Z
Comments.Text: It's a good idea to link the complete ffmpeg logs.
Comments.UserDisplayName: aergistal
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2024-02-28T14:49:17.603Z
Comments.Text: I think there's no problem with your command line. I had the same issue with the latest FFmpeg snapshot I compiled back in january. Try to recompile it with the latest version with https://github.com/markus-perl/ffmpeg-build-script
  For me, the freshly compiled FFmpeg solved the issue.
Comments.UserDisplayName: Gergely Lukacsy
Tags: <ffmpeg><nvenc>
Title: Why does ffmpeg fail to "convert between the formats" with hevc_nvenc when I'm not doing video filtering?
UserDisplayName: Ryan Stewart
ThreadText: # Why does ffmpeg fail to "convert between the formats" with hevc_nvenc when I'm not doing video filtering?
  
  (Asked by: username_0 on 2024-01-15)
  
  I'm doing some nvidia GPU hevc transcoding to get stuff done at faster speeds. Most of the ~2000 titles that I'm transcoding work fine, but a handful are failing like
  
  ```
  Impossible to convert between the formats supported by the filter 'Parsed_hwupload_cuda_3' and the filter 'auto_scale_0'
  [vf#0:0 @ 0x55b72ac9a3c0] Error reinitializing filters!
  Failed to inject frame into filter network: Function not implemented
  Error while filtering: Function not implemented
  
  ```
  
  I'm aware of the need to `hwdownload` and `hwupload` during a filtering pipeline, but when I remove all video filters from the command, it instead says
  
  ```
  Impossible to convert between the formats supported by the filter 'Parsed_null_0' and the filter 'auto_scale_0'
  
  ```
  
  Here are a couple of examples of commands producing the errors. With filters and an error mentioning `Parsed_hwupload_cuda_3`:
  
  ```
  "ffmpeg" "-hwaccel" "cuda" "-hwaccel_output_format" "cuda" "-hide_banner" "-y" "-i" \
      "in.mkv" "-max_muxing_queue_size" "1024" "-map" "0" "-c" "copy" "-filter:v:0" \
      "hwdownload,format=nv12,crop=1456:1080:232:0,hwupload_cuda" "-c:0" "hevc_nvenc" \
      "-f" "matroska" "out.mkv"
  
  ```
  
  and without filters and the error mentioning `Parsed_null_0`:
  
  ```
  "ffmpeg" "-hwaccel" "cuda" "-hwaccel_output_format" "cuda" "-hide_banner" "-y" "-i" \
      "in.mkv" "-max_muxing_queue_size" "1024" "-map" "0" "-c" "copy" "-c:0" "hevc_nvenc" \
      "-f" "matroska" "out.mkv"
  
  ```
  
  Note: The quoting in the commands is because I'm generating them with a script and logging them out before running.
  
  I can't find any info about that `auto_scale_0` filter. Why is it failing like this?
  
  **Tags:** ffmpeg, nvenc
  
  > **Comments:**
  > **username_1**: It's a good idea to link the complete ffmpeg logs.  
  > **username_2**: I think there's no problem with your command line. I had the same issue with the latest FFmpeg snapshot I compiled back in january. Try to recompile it with the latest version with https://github.com/markus-perl/ffmpeg-build-script For me, the freshly compiled FFmpeg solved the issue.  
  
  ---
  
  ## 0 answers
  
  