How do I convert 10-bit H.265 videos to H.264 without quality loss?











up vote
1
down vote

favorite












My laptop can't handle 10bit H.265 / HEVC videos, so I'm looking to convert them to 10bit H.264. How do I do this using, say, ffmpeg, with the least quality loss? And how can I convert 10-bit H.265 to 8-bit H.265?










share|improve this question




























    up vote
    1
    down vote

    favorite












    My laptop can't handle 10bit H.265 / HEVC videos, so I'm looking to convert them to 10bit H.264. How do I do this using, say, ffmpeg, with the least quality loss? And how can I convert 10-bit H.265 to 8-bit H.265?










    share|improve this question


























      up vote
      1
      down vote

      favorite









      up vote
      1
      down vote

      favorite











      My laptop can't handle 10bit H.265 / HEVC videos, so I'm looking to convert them to 10bit H.264. How do I do this using, say, ffmpeg, with the least quality loss? And how can I convert 10-bit H.265 to 8-bit H.265?










      share|improve this question















      My laptop can't handle 10bit H.265 / HEVC videos, so I'm looking to convert them to 10bit H.264. How do I do this using, say, ffmpeg, with the least quality loss? And how can I convert 10-bit H.265 to 8-bit H.265?







      ffmpeg video-conversion video-encoding x264 x265






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited Dec 5 at 21:47









      llogan

      24.9k54276




      24.9k54276










      asked Dec 5 at 9:24









      HappyFace

      1289




      1289






















          2 Answers
          2






          active

          oldest

          votes

















          up vote
          1
          down vote



          accepted










          Convert 10-bit H.265 to 10-bit H.264:



          ffmpeg -i input -c:v libx264 -crf 18 -c:a copy output.mkv



          • libx264 will automatically to to match the pixel format of the input, so no extra parameters are needed.


          • The example uses -crf 18 which will likely appear visually lossless. If you want true lossless mode then then use -crf 0, but note this can create large files. See FFmpeg Wiki: H.264.



          Convert 10-bit H.265 to 8-bit H.265:



          ffmpeg -i input -c:v libx265 -vf format=yuv420p -c:a copy output.mkv



          • Uses the format filter to choose the yuv420p pixel format to create 8-bit output.


          • Adjust the -crf value to provide the desired level of quality. Default is -crf 28. See FFmpeg Wiki: H.265.


          • If you want lossless mode then then replace -crf with -x265-params lossless=1, but note this can create large files.



          Convert 10-bit H.265 to 8-bit H.264:



          ffmpeg -i input -c:v libx264 -crf 18 -vf format=yuv420p -c:a copy output.mkv



          • Uses the format filter to choose the yuv420p pixel format to create 8-bit output.


          • The example uses -crf 18 which will likely appear visually lossless. If you want true lossless mode then then use -crf 0, but note this can create large files. See FFmpeg Wiki: H.264.







          share|improve this answer























          • What about 10bit x265 to 8bit x265?
            – HappyFace
            Dec 5 at 21:52






          • 1




            @HappyFace Looks like I misread the question. I added that section.
            – llogan
            Dec 5 at 21:57










          • Adding -map 0 to the commands above will preserve subtitles and other additional streams.
            – HappyFace
            Dec 7 at 9:06


















          up vote
          0
          down vote













          Handbrake can handle most anything.



          The release notes mention 10-bit support.



          The UI has all the options. I suggest you start there and get familiar with it.

          See quick start guide.



          There is also a CLI that can be downloaded here.

          And the guide that has all the options laid out.






          share|improve this answer























          • Can you add the complete command?
            – HappyFace
            Dec 5 at 14:46










          • Added links to post, start with the UI - it has a queue so you can load up an entire folder at once if needed.
            – BlueGI
            Dec 5 at 14:58











          Your Answer








          StackExchange.ready(function() {
          var channelOptions = {
          tags: "".split(" "),
          id: "3"
          };
          initTagRenderer("".split(" "), "".split(" "), channelOptions);

          StackExchange.using("externalEditor", function() {
          // Have to fire editor after snippets, if snippets enabled
          if (StackExchange.settings.snippets.snippetsEnabled) {
          StackExchange.using("snippets", function() {
          createEditor();
          });
          }
          else {
          createEditor();
          }
          });

          function createEditor() {
          StackExchange.prepareEditor({
          heartbeatType: 'answer',
          convertImagesToLinks: true,
          noModals: true,
          showLowRepImageUploadWarning: true,
          reputationToPostImages: 10,
          bindNavPrevention: true,
          postfix: "",
          imageUploader: {
          brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
          contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
          allowUrls: true
          },
          onDemand: true,
          discardSelector: ".discard-answer"
          ,immediatelyShowMarkdownHelp:true
          });


          }
          });














          draft saved

          draft discarded


















          StackExchange.ready(
          function () {
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsuperuser.com%2fquestions%2f1380946%2fhow-do-i-convert-10-bit-h-265-videos-to-h-264-without-quality-loss%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown

























          2 Answers
          2






          active

          oldest

          votes








          2 Answers
          2






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes








          up vote
          1
          down vote



          accepted










          Convert 10-bit H.265 to 10-bit H.264:



          ffmpeg -i input -c:v libx264 -crf 18 -c:a copy output.mkv



          • libx264 will automatically to to match the pixel format of the input, so no extra parameters are needed.


          • The example uses -crf 18 which will likely appear visually lossless. If you want true lossless mode then then use -crf 0, but note this can create large files. See FFmpeg Wiki: H.264.



          Convert 10-bit H.265 to 8-bit H.265:



          ffmpeg -i input -c:v libx265 -vf format=yuv420p -c:a copy output.mkv



          • Uses the format filter to choose the yuv420p pixel format to create 8-bit output.


          • Adjust the -crf value to provide the desired level of quality. Default is -crf 28. See FFmpeg Wiki: H.265.


          • If you want lossless mode then then replace -crf with -x265-params lossless=1, but note this can create large files.



          Convert 10-bit H.265 to 8-bit H.264:



          ffmpeg -i input -c:v libx264 -crf 18 -vf format=yuv420p -c:a copy output.mkv



          • Uses the format filter to choose the yuv420p pixel format to create 8-bit output.


          • The example uses -crf 18 which will likely appear visually lossless. If you want true lossless mode then then use -crf 0, but note this can create large files. See FFmpeg Wiki: H.264.







          share|improve this answer























          • What about 10bit x265 to 8bit x265?
            – HappyFace
            Dec 5 at 21:52






          • 1




            @HappyFace Looks like I misread the question. I added that section.
            – llogan
            Dec 5 at 21:57










          • Adding -map 0 to the commands above will preserve subtitles and other additional streams.
            – HappyFace
            Dec 7 at 9:06















          up vote
          1
          down vote



          accepted










          Convert 10-bit H.265 to 10-bit H.264:



          ffmpeg -i input -c:v libx264 -crf 18 -c:a copy output.mkv



          • libx264 will automatically to to match the pixel format of the input, so no extra parameters are needed.


          • The example uses -crf 18 which will likely appear visually lossless. If you want true lossless mode then then use -crf 0, but note this can create large files. See FFmpeg Wiki: H.264.



          Convert 10-bit H.265 to 8-bit H.265:



          ffmpeg -i input -c:v libx265 -vf format=yuv420p -c:a copy output.mkv



          • Uses the format filter to choose the yuv420p pixel format to create 8-bit output.


          • Adjust the -crf value to provide the desired level of quality. Default is -crf 28. See FFmpeg Wiki: H.265.


          • If you want lossless mode then then replace -crf with -x265-params lossless=1, but note this can create large files.



          Convert 10-bit H.265 to 8-bit H.264:



          ffmpeg -i input -c:v libx264 -crf 18 -vf format=yuv420p -c:a copy output.mkv



          • Uses the format filter to choose the yuv420p pixel format to create 8-bit output.


          • The example uses -crf 18 which will likely appear visually lossless. If you want true lossless mode then then use -crf 0, but note this can create large files. See FFmpeg Wiki: H.264.







          share|improve this answer























          • What about 10bit x265 to 8bit x265?
            – HappyFace
            Dec 5 at 21:52






          • 1




            @HappyFace Looks like I misread the question. I added that section.
            – llogan
            Dec 5 at 21:57










          • Adding -map 0 to the commands above will preserve subtitles and other additional streams.
            – HappyFace
            Dec 7 at 9:06













          up vote
          1
          down vote



          accepted







          up vote
          1
          down vote



          accepted






          Convert 10-bit H.265 to 10-bit H.264:



          ffmpeg -i input -c:v libx264 -crf 18 -c:a copy output.mkv



          • libx264 will automatically to to match the pixel format of the input, so no extra parameters are needed.


          • The example uses -crf 18 which will likely appear visually lossless. If you want true lossless mode then then use -crf 0, but note this can create large files. See FFmpeg Wiki: H.264.



          Convert 10-bit H.265 to 8-bit H.265:



          ffmpeg -i input -c:v libx265 -vf format=yuv420p -c:a copy output.mkv



          • Uses the format filter to choose the yuv420p pixel format to create 8-bit output.


          • Adjust the -crf value to provide the desired level of quality. Default is -crf 28. See FFmpeg Wiki: H.265.


          • If you want lossless mode then then replace -crf with -x265-params lossless=1, but note this can create large files.



          Convert 10-bit H.265 to 8-bit H.264:



          ffmpeg -i input -c:v libx264 -crf 18 -vf format=yuv420p -c:a copy output.mkv



          • Uses the format filter to choose the yuv420p pixel format to create 8-bit output.


          • The example uses -crf 18 which will likely appear visually lossless. If you want true lossless mode then then use -crf 0, but note this can create large files. See FFmpeg Wiki: H.264.







          share|improve this answer














          Convert 10-bit H.265 to 10-bit H.264:



          ffmpeg -i input -c:v libx264 -crf 18 -c:a copy output.mkv



          • libx264 will automatically to to match the pixel format of the input, so no extra parameters are needed.


          • The example uses -crf 18 which will likely appear visually lossless. If you want true lossless mode then then use -crf 0, but note this can create large files. See FFmpeg Wiki: H.264.



          Convert 10-bit H.265 to 8-bit H.265:



          ffmpeg -i input -c:v libx265 -vf format=yuv420p -c:a copy output.mkv



          • Uses the format filter to choose the yuv420p pixel format to create 8-bit output.


          • Adjust the -crf value to provide the desired level of quality. Default is -crf 28. See FFmpeg Wiki: H.265.


          • If you want lossless mode then then replace -crf with -x265-params lossless=1, but note this can create large files.



          Convert 10-bit H.265 to 8-bit H.264:



          ffmpeg -i input -c:v libx264 -crf 18 -vf format=yuv420p -c:a copy output.mkv



          • Uses the format filter to choose the yuv420p pixel format to create 8-bit output.


          • The example uses -crf 18 which will likely appear visually lossless. If you want true lossless mode then then use -crf 0, but note this can create large files. See FFmpeg Wiki: H.264.








          share|improve this answer














          share|improve this answer



          share|improve this answer








          edited Dec 5 at 21:57

























          answered Dec 5 at 21:44









          llogan

          24.9k54276




          24.9k54276












          • What about 10bit x265 to 8bit x265?
            – HappyFace
            Dec 5 at 21:52






          • 1




            @HappyFace Looks like I misread the question. I added that section.
            – llogan
            Dec 5 at 21:57










          • Adding -map 0 to the commands above will preserve subtitles and other additional streams.
            – HappyFace
            Dec 7 at 9:06


















          • What about 10bit x265 to 8bit x265?
            – HappyFace
            Dec 5 at 21:52






          • 1




            @HappyFace Looks like I misread the question. I added that section.
            – llogan
            Dec 5 at 21:57










          • Adding -map 0 to the commands above will preserve subtitles and other additional streams.
            – HappyFace
            Dec 7 at 9:06
















          What about 10bit x265 to 8bit x265?
          – HappyFace
          Dec 5 at 21:52




          What about 10bit x265 to 8bit x265?
          – HappyFace
          Dec 5 at 21:52




          1




          1




          @HappyFace Looks like I misread the question. I added that section.
          – llogan
          Dec 5 at 21:57




          @HappyFace Looks like I misread the question. I added that section.
          – llogan
          Dec 5 at 21:57












          Adding -map 0 to the commands above will preserve subtitles and other additional streams.
          – HappyFace
          Dec 7 at 9:06




          Adding -map 0 to the commands above will preserve subtitles and other additional streams.
          – HappyFace
          Dec 7 at 9:06












          up vote
          0
          down vote













          Handbrake can handle most anything.



          The release notes mention 10-bit support.



          The UI has all the options. I suggest you start there and get familiar with it.

          See quick start guide.



          There is also a CLI that can be downloaded here.

          And the guide that has all the options laid out.






          share|improve this answer























          • Can you add the complete command?
            – HappyFace
            Dec 5 at 14:46










          • Added links to post, start with the UI - it has a queue so you can load up an entire folder at once if needed.
            – BlueGI
            Dec 5 at 14:58















          up vote
          0
          down vote













          Handbrake can handle most anything.



          The release notes mention 10-bit support.



          The UI has all the options. I suggest you start there and get familiar with it.

          See quick start guide.



          There is also a CLI that can be downloaded here.

          And the guide that has all the options laid out.






          share|improve this answer























          • Can you add the complete command?
            – HappyFace
            Dec 5 at 14:46










          • Added links to post, start with the UI - it has a queue so you can load up an entire folder at once if needed.
            – BlueGI
            Dec 5 at 14:58













          up vote
          0
          down vote










          up vote
          0
          down vote









          Handbrake can handle most anything.



          The release notes mention 10-bit support.



          The UI has all the options. I suggest you start there and get familiar with it.

          See quick start guide.



          There is also a CLI that can be downloaded here.

          And the guide that has all the options laid out.






          share|improve this answer














          Handbrake can handle most anything.



          The release notes mention 10-bit support.



          The UI has all the options. I suggest you start there and get familiar with it.

          See quick start guide.



          There is also a CLI that can be downloaded here.

          And the guide that has all the options laid out.







          share|improve this answer














          share|improve this answer



          share|improve this answer








          edited Dec 5 at 14:57

























          answered Dec 5 at 14:45









          BlueGI

          1262




          1262












          • Can you add the complete command?
            – HappyFace
            Dec 5 at 14:46










          • Added links to post, start with the UI - it has a queue so you can load up an entire folder at once if needed.
            – BlueGI
            Dec 5 at 14:58


















          • Can you add the complete command?
            – HappyFace
            Dec 5 at 14:46










          • Added links to post, start with the UI - it has a queue so you can load up an entire folder at once if needed.
            – BlueGI
            Dec 5 at 14:58
















          Can you add the complete command?
          – HappyFace
          Dec 5 at 14:46




          Can you add the complete command?
          – HappyFace
          Dec 5 at 14:46












          Added links to post, start with the UI - it has a queue so you can load up an entire folder at once if needed.
          – BlueGI
          Dec 5 at 14:58




          Added links to post, start with the UI - it has a queue so you can load up an entire folder at once if needed.
          – BlueGI
          Dec 5 at 14:58


















          draft saved

          draft discarded




















































          Thanks for contributing an answer to Super User!


          • Please be sure to answer the question. Provide details and share your research!

          But avoid



          • Asking for help, clarification, or responding to other answers.

          • Making statements based on opinion; back them up with references or personal experience.


          To learn more, see our tips on writing great answers.





          Some of your past answers have not been well-received, and you're in danger of being blocked from answering.


          Please pay close attention to the following guidance:


          • Please be sure to answer the question. Provide details and share your research!

          But avoid



          • Asking for help, clarification, or responding to other answers.

          • Making statements based on opinion; back them up with references or personal experience.


          To learn more, see our tips on writing great answers.




          draft saved


          draft discarded














          StackExchange.ready(
          function () {
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsuperuser.com%2fquestions%2f1380946%2fhow-do-i-convert-10-bit-h-265-videos-to-h-264-without-quality-loss%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown





















































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown

































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown







          Popular posts from this blog

          flock() on closed filehandle LOCK_FILE at /usr/bin/apt-mirror

          Mangá

          Eduardo VII do Reino Unido