Answers.Body: <p>The DNxHD codec has multiple profiles, and the <code>DNxHD</code> profile supports only a limited set of parameters. The <code>DNxHR</code> profiles does not have these restrictions.</p>
  
  <p>Use</p>
  
  <pre><code>ffmpeg -i earth.webm -profile:v dnxhr_hq -f DNxHD earth.DNxHD
  </code></pre>
  
  <p>This will not keep the audio. If you need that, use</p>
  
  <pre><code>ffmpeg -i earth.webm -c:v dnxhd -profile:v dnxhr_hq earth.mov
  </code></pre>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2019-07-18T14:13:19.363Z
Answers.Text: Thank you! I'll try it out tonight, when I get home.
Answers.UserDisplayName: Mayo
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2019-07-19T12:50:00.470Z
Answers.Text: Thanks. It worked great. Da Vinci isn't importing these files. But that's yet another thing I have to research.
Answers.UserDisplayName: Mayo
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2019-07-18T14:07:47.683Z
Answers.LastActivityDate: 2019-07-18T14:07:47.683Z
Answers.UserDisplayName: Gyan
Body: <p>I'm a n00bie with video production.</p>
  <p>I installed ffmpeg. It's recognized.</p>
  <p>So I tried my first conversion.</p>
  <blockquote>
  <p>ffmpeg -i earth.webm earth.DNxHD</p>
  </blockquote>
  <p>and, then, after searching:</p>
  <blockquote>
  <p>ffmpeg -i earth.webm -f DNxHD earth.DNxHD</p>
  </blockquote>
  <p>In both cases I get the following error:</p>
  <blockquote>
  <p>Error initializing output stream 0:0 -- Error while opening encoder
  for output stream #0:0 - maybe incorrect parameters such as bit_rate,
  rate, width or height</p>
  <p>Conversion failed!</p>
  </blockquote>
  <p>What I gather from that is that the default settings did not work and ffmeg wants me to include those values.</p>
  <p>And that's the problem. What values should be selected for these unknown files? (I grabbed them from the web - they're copyright free - and want to use them in Da Vinci Resolve (hence the need for DNxHD)</p>
  <p>Included is the error msg</p>
  <pre><code>C:\Users\GLM\Downloads\test&gt;ffmpeg -i earth.webm -f DNxHD earth.DNxHD
  ffmpeg version 4.1.3 Copyright (c) 2000-2019 the FFmpeg developers
    built with gcc 8.3.1 (GCC) 20190414
    configuration: --enable-gpl --enable-version3 --enable-sdl2 --enable-fontconfig --enable-gnutls --enable-iconv --enable-libass --enable-libbluray --enable-libfreetype --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-libopus --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libtheora --enable-libtwolame --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxml2 --enable-libzimg --enable-lzma --enable-zlib --enable-gmp --enable-libvidstab --enable-libvorbis --enable-libvo-amrwbenc --enable-libmysofa --enable-libspeex --enable-libxvid --enable-libaom --enable-libmfx --enable-amf --enable-ffnvcodec --enable-cuvid --enable-d3d11va --enable-nvenc --enable-nvdec --enable-dxva2 --enable-avisynth
    libavutil      56. 22.100 / 56. 22.100
    libavcodec     58. 35.100 / 58. 35.100
    libavformat    58. 20.100 / 58. 20.100
    libavdevice    58.  5.100 / 58.  5.100
    libavfilter     7. 40.101 /  7. 40.101
    libswscale      5.  3.100 /  5.  3.100
    libswresample   3.  3.100 /  3.  3.100
    libpostproc    55.  3.100 / 55.  3.100
  Input #0, matroska,webm, from 'Earth.webm':
    Metadata:
      encoder         : Lavf57.8.100
    Duration: 00:00:45.55, start: 0.000000, bitrate: 358 kb/s
      Stream #0:0(eng): Video: vp8, yuv420p(progressive), 426x240, SAR 255:254 DAR 3621:2032, 24 fps, 24 tbr, 1k tbn, 1k tbc (default)
      Stream #0:1(eng): Audio: vorbis, 48000 Hz, stereo, fltp (default)
  File 'earth.DNxHD' already exists. Overwrite ? [y/N] y
  Stream mapping:
    Stream #0:0 -&gt; #0:0 (vp8 (native) -&gt; dnxhd (native))
  Press [q] to stop, [?] for help
  [dnxhd @ 000001d544fc7800] video parameters incompatible with DNxHD. Valid DNxHD profiles:
  [dnxhd @ 000001d544fc7800] Frame size: 1920x1080p; bitrate: 175Mbps; pixel format: yuv422p10
  [dnxhd @ 000001d544fc7800] Frame size: 1920x1080p; bitrate: 185Mbps; pixel format: yuv422p10
  [dnxhd @ 000001d544fc7800] Frame size: 1920x1080p; bitrate: 365Mbps; pixel format: yuv422p10
  [dnxhd @ 000001d544fc7800] Frame size: 1920x1080p; bitrate: 440Mbps; pixel format: yuv422p10
  [dnxhd @ 000001d544fc7800] Frame size: 1920x1080p; bitrate: 115Mbps; pixel format: yuv422p
  [dnxhd @ 000001d544fc7800] Frame size: 1920x1080p; bitrate: 120Mbps; pixel format: yuv422p
  [dnxhd @ 000001d544fc7800] Frame size: 1920x1080p; bitrate: 145Mbps; pixel format: yuv422p
  [dnxhd @ 000001d544fc7800] Frame size: 1920x1080p; bitrate: 240Mbps; pixel format: yuv422p
  [dnxhd @ 000001d544fc7800] Frame size: 1920x1080p; bitrate: 290Mbps; pixel format: yuv422p
  [dnxhd @ 000001d544fc7800] Frame size: 1920x1080p; bitrate: 175Mbps; pixel format: yuv422p
  [dnxhd @ 000001d544fc7800] Frame size: 1920x1080p; bitrate: 185Mbps; pixel format: yuv422p
  [dnxhd @ 000001d544fc7800] Frame size: 1920x1080p; bitrate: 220Mbps; pixel format: yuv422p
  [dnxhd @ 000001d544fc7800] Frame size: 1920x1080p; bitrate: 365Mbps; pixel format: yuv422p
  [dnxhd @ 000001d544fc7800] Frame size: 1920x1080p; bitrate: 440Mbps; pixel format: yuv422p
  [dnxhd @ 000001d544fc7800] Frame size: 1920x1080i; bitrate: 185Mbps; pixel format: yuv422p10
  [dnxhd @ 000001d544fc7800] Frame size: 1920x1080i; bitrate: 220Mbps; pixel format: yuv422p10
  [dnxhd @ 000001d544fc7800] Frame size: 1920x1080i; bitrate: 120Mbps; pixel format: yuv422p
  [dnxhd @ 000001d544fc7800] Frame size: 1920x1080i; bitrate: 145Mbps; pixel format: yuv422p
  [dnxhd @ 000001d544fc7800] Frame size: 1920x1080i; bitrate: 185Mbps; pixel format: yuv422p
  [dnxhd @ 000001d544fc7800] Frame size: 1920x1080i; bitrate: 220Mbps; pixel format: yuv422p
  [dnxhd @ 000001d544fc7800] Frame size: 1440x1080i; bitrate: 120Mbps; pixel format: yuv422p
  [dnxhd @ 000001d544fc7800] Frame size: 1440x1080i; bitrate: 145Mbps; pixel format: yuv422p
  [dnxhd @ 000001d544fc7800] Frame size: 1280x720p; bitrate: 90Mbps; pixel format: yuv422p10
  [dnxhd @ 000001d544fc7800] Frame size: 1280x720p; bitrate: 180Mbps; pixel format: yuv422p10
  [dnxhd @ 000001d544fc7800] Frame size: 1280x720p; bitrate: 220Mbps; pixel format: yuv422p10
  [dnxhd @ 000001d544fc7800] Frame size: 1280x720p; bitrate: 90Mbps; pixel format: yuv422p
  [dnxhd @ 000001d544fc7800] Frame size: 1280x720p; bitrate: 110Mbps; pixel format: yuv422p
  [dnxhd @ 000001d544fc7800] Frame size: 1280x720p; bitrate: 180Mbps; pixel format: yuv422p
  [dnxhd @ 000001d544fc7800] Frame size: 1280x720p; bitrate: 220Mbps; pixel format: yuv422p
  [dnxhd @ 000001d544fc7800] Frame size: 1280x720p; bitrate: 60Mbps; pixel format: yuv422p
  [dnxhd @ 000001d544fc7800] Frame size: 1280x720p; bitrate: 75Mbps; pixel format: yuv422p
  [dnxhd @ 000001d544fc7800] Frame size: 1280x720p; bitrate: 120Mbps; pixel format: yuv422p
  [dnxhd @ 000001d544fc7800] Frame size: 1280x720p; bitrate: 145Mbps; pixel format: yuv422p
  [dnxhd @ 000001d544fc7800] Frame size: 1920x1080p; bitrate: 36Mbps; pixel format: yuv422p
  [dnxhd @ 000001d544fc7800] Frame size: 1920x1080p; bitrate: 45Mbps; pixel format: yuv422p
  [dnxhd @ 000001d544fc7800] Frame size: 1920x1080p; bitrate: 75Mbps; pixel format: yuv422p
  [dnxhd @ 000001d544fc7800] Frame size: 1920x1080p; bitrate: 90Mbps; pixel format: yuv422p
  [dnxhd @ 000001d544fc7800] Frame size: 1920x1080p; bitrate: 350Mbps; pixel format: yuv444p10, gbrp10
  [dnxhd @ 000001d544fc7800] Frame size: 1920x1080p; bitrate: 390Mbps; pixel format: yuv444p10, gbrp10
  [dnxhd @ 000001d544fc7800] Frame size: 1920x1080p; bitrate: 440Mbps; pixel format: yuv444p10, gbrp10
  [dnxhd @ 000001d544fc7800] Frame size: 1920x1080p; bitrate: 730Mbps; pixel format: yuv444p10, gbrp10
  [dnxhd @ 000001d544fc7800] Frame size: 1920x1080p; bitrate: 880Mbps; pixel format: yuv444p10, gbrp10
  [dnxhd @ 000001d544fc7800] Frame size: 960x720p; bitrate: 42Mbps; pixel format: yuv422p
  [dnxhd @ 000001d544fc7800] Frame size: 960x720p; bitrate: 60Mbps; pixel format: yuv422p
  [dnxhd @ 000001d544fc7800] Frame size: 960x720p; bitrate: 75Mbps; pixel format: yuv422p
  [dnxhd @ 000001d544fc7800] Frame size: 960x720p; bitrate: 115Mbps; pixel format: yuv422p
  [dnxhd @ 000001d544fc7800] Frame size: 1440x1080p; bitrate: 63Mbps; pixel format: yuv422p
  [dnxhd @ 000001d544fc7800] Frame size: 1440x1080p; bitrate: 84Mbps; pixel format: yuv422p
  [dnxhd @ 000001d544fc7800] Frame size: 1440x1080p; bitrate: 100Mbps; pixel format: yuv422p
  [dnxhd @ 000001d544fc7800] Frame size: 1440x1080p; bitrate: 110Mbps; pixel format: yuv422p
  [dnxhd @ 000001d544fc7800] Frame size: 1440x1080i; bitrate: 80Mbps; pixel format: yuv422p
  [dnxhd @ 000001d544fc7800] Frame size: 1440x1080i; bitrate: 90Mbps; pixel format: yuv422p
  [dnxhd @ 000001d544fc7800] Frame size: 1440x1080i; bitrate: 100Mbps; pixel format: yuv422p
  [dnxhd @ 000001d544fc7800] Frame size: 1440x1080i; bitrate: 110Mbps; pixel format: yuv422p
  [dnxhd @ 000001d544fd9800] ff_frame_thread_encoder_init failed
  Error initializing output stream 0:0 -- Error while opening encoder for output stream #0:0 - maybe incorrect parameters such as bit_rate, rate, width or height
  Conversion failed!
  </code></pre>
  
Tags: <ffmpeg><conversion>
Title: FFMPEG transcription from .webm to HNxHD
UserDisplayName: Mayo
ThreadText: # FFMPEG transcription from .webm to HNxHD
  
  (Asked by: username_0 on 2019-07-18)
  
  I'm a n00bie with video production.
  
  I installed ffmpeg. It's recognized.
  
  So I tried my first conversion.
  
  > ffmpeg -i earth.webm earth.DNxHD
  
  and, then, after searching:
  
  > ffmpeg -i earth.webm -f DNxHD earth.DNxHD
  
  In both cases I get the following error:
  
  > Error initializing output stream 0:0 -- Error while opening encoder
  > for output stream #0:0 - maybe incorrect parameters such as bit\_rate,
  > rate, width or height
  >
  > Conversion failed!
  
  What I gather from that is that the default settings did not work and ffmeg wants me to include those values.
  
  And that's the problem. What values should be selected for these unknown files? (I grabbed them from the web - they're copyright free - and want to use them in Da Vinci Resolve (hence the need for DNxHD)
  
  Included is the error msg
  
  ```
  C:\Users\GLM\Downloads\test>ffmpeg -i earth.webm -f DNxHD earth.DNxHD
  ffmpeg version 4.1.3 Copyright (c) 2000-2019 the FFmpeg developers
    built with gcc 8.3.1 (GCC) 20190414
    configuration: --enable-gpl --enable-version3 --enable-sdl2 --enable-fontconfig --enable-gnutls --enable-iconv --enable-libass --enable-libbluray --enable-libfreetype --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-libopus --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libtheora --enable-libtwolame --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxml2 --enable-libzimg --enable-lzma --enable-zlib --enable-gmp --enable-libvidstab --enable-libvorbis --enable-libvo-amrwbenc --enable-libmysofa --enable-libspeex --enable-libxvid --enable-libaom --enable-libmfx --enable-amf --enable-ffnvcodec --enable-cuvid --enable-d3d11va --enable-nvenc --enable-nvdec --enable-dxva2 --enable-avisynth
    libavutil      56. 22.100 / 56. 22.100
    libavcodec     58. 35.100 / 58. 35.100
    libavformat    58. 20.100 / 58. 20.100
    libavdevice    58.  5.100 / 58.  5.100
    libavfilter     7. 40.101 /  7. 40.101
    libswscale      5.  3.100 /  5.  3.100
    libswresample   3.  3.100 /  3.  3.100
    libpostproc    55.  3.100 / 55.  3.100
  Input #0, matroska,webm, from 'Earth.webm':
    Metadata:
      encoder         : Lavf57.8.100
    Duration: 00:00:45.55, start: 0.000000, bitrate: 358 kb/s
      Stream #0:0(eng): Video: vp8, yuv420p(progressive), 426x240, SAR 255:254 DAR 3621:2032, 24 fps, 24 tbr, 1k tbn, 1k tbc (default)
      Stream #0:1(eng): Audio: vorbis, 48000 Hz, stereo, fltp (default)
  File 'earth.DNxHD' already exists. Overwrite ? [y/N] y
  Stream mapping:
    Stream #0:0 -> #0:0 (vp8 (native) -> dnxhd (native))
  Press [q] to stop, [?] for help
  [dnxhd @ 000001d544fc7800] video parameters incompatible with DNxHD. Valid DNxHD profiles:
  [dnxhd @ 000001d544fc7800] Frame size: 1920x1080p; bitrate: 175Mbps; pixel format: yuv422p10
  [dnxhd @ 000001d544fc7800] Frame size: 1920x1080p; bitrate: 185Mbps; pixel format: yuv422p10
  [dnxhd @ 000001d544fc7800] Frame size: 1920x1080p; bitrate: 365Mbps; pixel format: yuv422p10
  [dnxhd @ 000001d544fc7800] Frame size: 1920x1080p; bitrate: 440Mbps; pixel format: yuv422p10
  [dnxhd @ 000001d544fc7800] Frame size: 1920x1080p; bitrate: 115Mbps; pixel format: yuv422p
  [dnxhd @ 000001d544fc7800] Frame size: 1920x1080p; bitrate: 120Mbps; pixel format: yuv422p
  [dnxhd @ 000001d544fc7800] Frame size: 1920x1080p; bitrate: 145Mbps; pixel format: yuv422p
  [dnxhd @ 000001d544fc7800] Frame size: 1920x1080p; bitrate: 240Mbps; pixel format: yuv422p
  [dnxhd @ 000001d544fc7800] Frame size: 1920x1080p; bitrate: 290Mbps; pixel format: yuv422p
  [dnxhd @ 000001d544fc7800] Frame size: 1920x1080p; bitrate: 175Mbps; pixel format: yuv422p
  [dnxhd @ 000001d544fc7800] Frame size: 1920x1080p; bitrate: 185Mbps; pixel format: yuv422p
  [dnxhd @ 000001d544fc7800] Frame size: 1920x1080p; bitrate: 220Mbps; pixel format: yuv422p
  [dnxhd @ 000001d544fc7800] Frame size: 1920x1080p; bitrate: 365Mbps; pixel format: yuv422p
  [dnxhd @ 000001d544fc7800] Frame size: 1920x1080p; bitrate: 440Mbps; pixel format: yuv422p
  [dnxhd @ 000001d544fc7800] Frame size: 1920x1080i; bitrate: 185Mbps; pixel format: yuv422p10
  [dnxhd @ 000001d544fc7800] Frame size: 1920x1080i; bitrate: 220Mbps; pixel format: yuv422p10
  [dnxhd @ 000001d544fc7800] Frame size: 1920x1080i; bitrate: 120Mbps; pixel format: yuv422p
  [dnxhd @ 000001d544fc7800] Frame size: 1920x1080i; bitrate: 145Mbps; pixel format: yuv422p
  [dnxhd @ 000001d544fc7800] Frame size: 1920x1080i; bitrate: 185Mbps; pixel format: yuv422p
  [dnxhd @ 000001d544fc7800] Frame size: 1920x1080i; bitrate: 220Mbps; pixel format: yuv422p
  [dnxhd @ 000001d544fc7800] Frame size: 1440x1080i; bitrate: 120Mbps; pixel format: yuv422p
  [dnxhd @ 000001d544fc7800] Frame size: 1440x1080i; bitrate: 145Mbps; pixel format: yuv422p
  [dnxhd @ 000001d544fc7800] Frame size: 1280x720p; bitrate: 90Mbps; pixel format: yuv422p10
  [dnxhd @ 000001d544fc7800] Frame size: 1280x720p; bitrate: 180Mbps; pixel format: yuv422p10
  [dnxhd @ 000001d544fc7800] Frame size: 1280x720p; bitrate: 220Mbps; pixel format: yuv422p10
  [dnxhd @ 000001d544fc7800] Frame size: 1280x720p; bitrate: 90Mbps; pixel format: yuv422p
  [dnxhd @ 000001d544fc7800] Frame size: 1280x720p; bitrate: 110Mbps; pixel format: yuv422p
  [dnxhd @ 000001d544fc7800] Frame size: 1280x720p; bitrate: 180Mbps; pixel format: yuv422p
  [dnxhd @ 000001d544fc7800] Frame size: 1280x720p; bitrate: 220Mbps; pixel format: yuv422p
  [dnxhd @ 000001d544fc7800] Frame size: 1280x720p; bitrate: 60Mbps; pixel format: yuv422p
  [dnxhd @ 000001d544fc7800] Frame size: 1280x720p; bitrate: 75Mbps; pixel format: yuv422p
  [dnxhd @ 000001d544fc7800] Frame size: 1280x720p; bitrate: 120Mbps; pixel format: yuv422p
  [dnxhd @ 000001d544fc7800] Frame size: 1280x720p; bitrate: 145Mbps; pixel format: yuv422p
  [dnxhd @ 000001d544fc7800] Frame size: 1920x1080p; bitrate: 36Mbps; pixel format: yuv422p
  [dnxhd @ 000001d544fc7800] Frame size: 1920x1080p; bitrate: 45Mbps; pixel format: yuv422p
  [dnxhd @ 000001d544fc7800] Frame size: 1920x1080p; bitrate: 75Mbps; pixel format: yuv422p
  [dnxhd @ 000001d544fc7800] Frame size: 1920x1080p; bitrate: 90Mbps; pixel format: yuv422p
  [dnxhd @ 000001d544fc7800] Frame size: 1920x1080p; bitrate: 350Mbps; pixel format: yuv444p10, gbrp10
  [dnxhd @ 000001d544fc7800] Frame size: 1920x1080p; bitrate: 390Mbps; pixel format: yuv444p10, gbrp10
  [dnxhd @ 000001d544fc7800] Frame size: 1920x1080p; bitrate: 440Mbps; pixel format: yuv444p10, gbrp10
  [dnxhd @ 000001d544fc7800] Frame size: 1920x1080p; bitrate: 730Mbps; pixel format: yuv444p10, gbrp10
  [dnxhd @ 000001d544fc7800] Frame size: 1920x1080p; bitrate: 880Mbps; pixel format: yuv444p10, gbrp10
  [dnxhd @ 000001d544fc7800] Frame size: 960x720p; bitrate: 42Mbps; pixel format: yuv422p
  [dnxhd @ 000001d544fc7800] Frame size: 960x720p; bitrate: 60Mbps; pixel format: yuv422p
  [dnxhd @ 000001d544fc7800] Frame size: 960x720p; bitrate: 75Mbps; pixel format: yuv422p
  [dnxhd @ 000001d544fc7800] Frame size: 960x720p; bitrate: 115Mbps; pixel format: yuv422p
  [dnxhd @ 000001d544fc7800] Frame size: 1440x1080p; bitrate: 63Mbps; pixel format: yuv422p
  [dnxhd @ 000001d544fc7800] Frame size: 1440x1080p; bitrate: 84Mbps; pixel format: yuv422p
  [dnxhd @ 000001d544fc7800] Frame size: 1440x1080p; bitrate: 100Mbps; pixel format: yuv422p
  [dnxhd @ 000001d544fc7800] Frame size: 1440x1080p; bitrate: 110Mbps; pixel format: yuv422p
  [dnxhd @ 000001d544fc7800] Frame size: 1440x1080i; bitrate: 80Mbps; pixel format: yuv422p
  [dnxhd @ 000001d544fc7800] Frame size: 1440x1080i; bitrate: 90Mbps; pixel format: yuv422p
  [dnxhd @ 000001d544fc7800] Frame size: 1440x1080i; bitrate: 100Mbps; pixel format: yuv422p
  [dnxhd @ 000001d544fc7800] Frame size: 1440x1080i; bitrate: 110Mbps; pixel format: yuv422p
  [dnxhd @ 000001d544fd9800] ff_frame_thread_encoder_init failed
  Error initializing output stream 0:0 -- Error while opening encoder for output stream #0:0 - maybe incorrect parameters such as bit_rate, rate, width or height
  Conversion failed!
  
  ```
  
  **Tags:** ffmpeg, conversion
  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_1 on 2019-07-18. Score: 1 | Accepted answer
  
  The DNxHD codec has multiple profiles, and the `DNxHD` profile supports only a limited set of parameters. The `DNxHR` profiles does not have these restrictions.
  
  Use
  
  ```
  ffmpeg -i earth.webm -profile:v dnxhr_hq -f DNxHD earth.DNxHD
  
  ```
  
  This will not keep the audio. If you need that, use
  
  ```
  ffmpeg -i earth.webm -c:v dnxhd -profile:v dnxhr_hq earth.mov
  
  ```
  
  > **Comments:**
  > **username_0**: Thank you! I'll try it out tonight, when I get home.  
  > **username_0**: Thanks. It worked great. Da Vinci isn't importing these files. But that's yet another thing I have to research.  
  
  ---
  
  