Answers.Body: <p>The error is happening because the <code>-x265-params</code> option is missing the required parameter. Instead of a real parameter to pass to libx265, it is swallowing the audio codec option. See <a href="https://trac.ffmpeg.org/wiki/Encode/H.265#PassingOptions" rel="nofollow noreferrer">Passing Options</a> in FFmpeg's &quot;H.265/HEVC Video Encoding Guide&quot;.</p>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2023-03-31T10:18:33.273Z
Answers.Text: yes i see the mistake now..I had this in there before -x265-params profile=main10. I added it back and its running fine now..Thanks
Answers.UserDisplayName: dkrus
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2023-03-31T10:08:17.400Z
Answers.LastActivityDate: 2023-03-31T17:26:28.670Z
Answers.LastEditDate: 2023-03-31T17:26:28.670Z
Answers.UserDisplayName: Alain1A45
Body: <p>I'm trying to run this command in Windows 10. The script ran fine with 2 60mb samples. But now trying to run it on the full video, I'm getting this error: <code>Unable to find a suitable output format for 'libfdk_aac' libfdk_aac: Invalid argument</code></p>
  <p>This is the command I'm using:</p>
  <pre><code>ffmpeg -i 300roae.mp4 -pix_fmt yuv420p10le -c:v libx265 -preset ultrafast -crf 28 -x265-params -c:a libfdk_aac -profile:a aac_he -b:a 72k C:\Users\hifim\Videos\300roae.mp4
  </code></pre>
  
Tags: <ffmpeg>
Title: Unable to find a suitable output format for 'libfdk_aac' libfdk_aac: Invalid argument
UserDisplayName: dkrus
ThreadText: # Unable to find a suitable output format for 'libfdk_aac' libfdk_aac: Invalid argument
  
  (Asked by: username_0 on 2023-03-31)
  
  I'm trying to run this command in Windows 10. The script ran fine with 2 60mb samples. But now trying to run it on the full video, I'm getting this error: `Unable to find a suitable output format for 'libfdk_aac' libfdk_aac: Invalid argument`
  
  This is the command I'm using:
  
  ```
  ffmpeg -i 300roae.mp4 -pix_fmt yuv420p10le -c:v libx265 -preset ultrafast -crf 28 -x265-params -c:a libfdk_aac -profile:a aac_he -b:a 72k C:\Users\hifim\Videos\300roae.mp4
  
  ```
  
  **Tags:** ffmpeg
  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_1 on 2023-03-31. Score: 1
  
  The error is happening because the `-x265-params` option is missing the required parameter. Instead of a real parameter to pass to libx265, it is swallowing the audio codec option. See [Passing Options](https://trac.ffmpeg.org/wiki/Encode/H.265#PassingOptions) in FFmpeg's "H.265/HEVC Video Encoding Guide".
  
  > **Comments:**
  > **username_0**: yes i see the mistake now..I had this in there before -x265-params profile=main10. I added it back and its running fine now..Thanks  
  
  ---
  
  