ffmpeg - creating DNxHD MFX files with alphas












1















I'm struggling with something in FFMpeg at the moment...



I'm trying to make DNxHD 1080p/24, 36Mb/s MXF files from a sequence of PNG files.



My current command-line is:



ffmpeg -y -f image2 -i /tmp/temp.%04d.png -s 1920x1080 -r 24 -vcodec dnxhd -f mxf -pix_fmt rgb32 -b 36Mb /tmp/temp.mxf


To which ffmpeg gives me the output:



Input #0, image2, from '/tmp/temp.%04d.png':
Duration: 00:00:01.60, start: 0.000000, bitrate: N/A
Stream #0.0: Video: png, rgb32, 1920x1080, 25 tbr, 25 tbn, 25 tbc
Output #0, mxf, to '/tmp/temp.mxf':
Stream #0.0: Video: dnxhd, yuv422p, 1920x1080, q=2-31, 36000 kb/s, 90k tbn, 24 tbc
Stream mapping:
Stream #0.0 -> #0.0
[mxf @ 0x1005800]unsupported video frame rate
Could not write header for output file #0 (incorrect codec parameters ?)


There are a few things in here that concern me:




  • The output stream is insisting on being yuv422p, which doesn't support alpha.

  • 24fps is an unsupported video frame rate? I've tried 23.976 too, and get the same thing.


I then tried the same thing, but writing to a quicktime (still DNxHD, though) with:



ffmpeg -y -f image2 -i /tmp/temp.%04d.png -s 1920x1080 -r 24 -vcodec dnxhd -f mov -pix_fmt rgb32 -b 36Mb /tmp/temp.mov


This gives me the output:



Input #0, image2, from '/tmp/1274263259.28098.%04d.png':
Duration: 00:00:01.60, start: 0.000000, bitrate: N/A
Stream #0.0: Video: png, rgb32, 1920x1080, 25 tbr, 25 tbn, 25 tbc
Output #0, mov, to '/tmp/1274263259.28098.mov':
Stream #0.0: Video: dnxhd, yuv422p, 1920x1080, q=2-31, 36000 kb/s, 90k tbn, 24 tbc
Stream mapping:
Stream #0.0 -> #0.0
Press [q] to stop encoding
frame= 39 fps= 9 q=1.0 Lsize= 7177kB time=1.62 bitrate=36180.8kbits/s
video:7176kB audio:0kB global headers:0kB muxing overhead 0.013636%


Which obviously works, to a certain extent, but still has the issue of being yuv422p, and therefore losing the alpha.



If I'm going to QuickTime, then I can get what I need using Shake, but my main aim here is to be able to generate .mxf files.



Any thoughts?



Thanks










share|improve this question





























    1















    I'm struggling with something in FFMpeg at the moment...



    I'm trying to make DNxHD 1080p/24, 36Mb/s MXF files from a sequence of PNG files.



    My current command-line is:



    ffmpeg -y -f image2 -i /tmp/temp.%04d.png -s 1920x1080 -r 24 -vcodec dnxhd -f mxf -pix_fmt rgb32 -b 36Mb /tmp/temp.mxf


    To which ffmpeg gives me the output:



    Input #0, image2, from '/tmp/temp.%04d.png':
    Duration: 00:00:01.60, start: 0.000000, bitrate: N/A
    Stream #0.0: Video: png, rgb32, 1920x1080, 25 tbr, 25 tbn, 25 tbc
    Output #0, mxf, to '/tmp/temp.mxf':
    Stream #0.0: Video: dnxhd, yuv422p, 1920x1080, q=2-31, 36000 kb/s, 90k tbn, 24 tbc
    Stream mapping:
    Stream #0.0 -> #0.0
    [mxf @ 0x1005800]unsupported video frame rate
    Could not write header for output file #0 (incorrect codec parameters ?)


    There are a few things in here that concern me:




    • The output stream is insisting on being yuv422p, which doesn't support alpha.

    • 24fps is an unsupported video frame rate? I've tried 23.976 too, and get the same thing.


    I then tried the same thing, but writing to a quicktime (still DNxHD, though) with:



    ffmpeg -y -f image2 -i /tmp/temp.%04d.png -s 1920x1080 -r 24 -vcodec dnxhd -f mov -pix_fmt rgb32 -b 36Mb /tmp/temp.mov


    This gives me the output:



    Input #0, image2, from '/tmp/1274263259.28098.%04d.png':
    Duration: 00:00:01.60, start: 0.000000, bitrate: N/A
    Stream #0.0: Video: png, rgb32, 1920x1080, 25 tbr, 25 tbn, 25 tbc
    Output #0, mov, to '/tmp/1274263259.28098.mov':
    Stream #0.0: Video: dnxhd, yuv422p, 1920x1080, q=2-31, 36000 kb/s, 90k tbn, 24 tbc
    Stream mapping:
    Stream #0.0 -> #0.0
    Press [q] to stop encoding
    frame= 39 fps= 9 q=1.0 Lsize= 7177kB time=1.62 bitrate=36180.8kbits/s
    video:7176kB audio:0kB global headers:0kB muxing overhead 0.013636%


    Which obviously works, to a certain extent, but still has the issue of being yuv422p, and therefore losing the alpha.



    If I'm going to QuickTime, then I can get what I need using Shake, but my main aim here is to be able to generate .mxf files.



    Any thoughts?



    Thanks










    share|improve this question



























      1












      1








      1


      1






      I'm struggling with something in FFMpeg at the moment...



      I'm trying to make DNxHD 1080p/24, 36Mb/s MXF files from a sequence of PNG files.



      My current command-line is:



      ffmpeg -y -f image2 -i /tmp/temp.%04d.png -s 1920x1080 -r 24 -vcodec dnxhd -f mxf -pix_fmt rgb32 -b 36Mb /tmp/temp.mxf


      To which ffmpeg gives me the output:



      Input #0, image2, from '/tmp/temp.%04d.png':
      Duration: 00:00:01.60, start: 0.000000, bitrate: N/A
      Stream #0.0: Video: png, rgb32, 1920x1080, 25 tbr, 25 tbn, 25 tbc
      Output #0, mxf, to '/tmp/temp.mxf':
      Stream #0.0: Video: dnxhd, yuv422p, 1920x1080, q=2-31, 36000 kb/s, 90k tbn, 24 tbc
      Stream mapping:
      Stream #0.0 -> #0.0
      [mxf @ 0x1005800]unsupported video frame rate
      Could not write header for output file #0 (incorrect codec parameters ?)


      There are a few things in here that concern me:




      • The output stream is insisting on being yuv422p, which doesn't support alpha.

      • 24fps is an unsupported video frame rate? I've tried 23.976 too, and get the same thing.


      I then tried the same thing, but writing to a quicktime (still DNxHD, though) with:



      ffmpeg -y -f image2 -i /tmp/temp.%04d.png -s 1920x1080 -r 24 -vcodec dnxhd -f mov -pix_fmt rgb32 -b 36Mb /tmp/temp.mov


      This gives me the output:



      Input #0, image2, from '/tmp/1274263259.28098.%04d.png':
      Duration: 00:00:01.60, start: 0.000000, bitrate: N/A
      Stream #0.0: Video: png, rgb32, 1920x1080, 25 tbr, 25 tbn, 25 tbc
      Output #0, mov, to '/tmp/1274263259.28098.mov':
      Stream #0.0: Video: dnxhd, yuv422p, 1920x1080, q=2-31, 36000 kb/s, 90k tbn, 24 tbc
      Stream mapping:
      Stream #0.0 -> #0.0
      Press [q] to stop encoding
      frame= 39 fps= 9 q=1.0 Lsize= 7177kB time=1.62 bitrate=36180.8kbits/s
      video:7176kB audio:0kB global headers:0kB muxing overhead 0.013636%


      Which obviously works, to a certain extent, but still has the issue of being yuv422p, and therefore losing the alpha.



      If I'm going to QuickTime, then I can get what I need using Shake, but my main aim here is to be able to generate .mxf files.



      Any thoughts?



      Thanks










      share|improve this question
















      I'm struggling with something in FFMpeg at the moment...



      I'm trying to make DNxHD 1080p/24, 36Mb/s MXF files from a sequence of PNG files.



      My current command-line is:



      ffmpeg -y -f image2 -i /tmp/temp.%04d.png -s 1920x1080 -r 24 -vcodec dnxhd -f mxf -pix_fmt rgb32 -b 36Mb /tmp/temp.mxf


      To which ffmpeg gives me the output:



      Input #0, image2, from '/tmp/temp.%04d.png':
      Duration: 00:00:01.60, start: 0.000000, bitrate: N/A
      Stream #0.0: Video: png, rgb32, 1920x1080, 25 tbr, 25 tbn, 25 tbc
      Output #0, mxf, to '/tmp/temp.mxf':
      Stream #0.0: Video: dnxhd, yuv422p, 1920x1080, q=2-31, 36000 kb/s, 90k tbn, 24 tbc
      Stream mapping:
      Stream #0.0 -> #0.0
      [mxf @ 0x1005800]unsupported video frame rate
      Could not write header for output file #0 (incorrect codec parameters ?)


      There are a few things in here that concern me:




      • The output stream is insisting on being yuv422p, which doesn't support alpha.

      • 24fps is an unsupported video frame rate? I've tried 23.976 too, and get the same thing.


      I then tried the same thing, but writing to a quicktime (still DNxHD, though) with:



      ffmpeg -y -f image2 -i /tmp/temp.%04d.png -s 1920x1080 -r 24 -vcodec dnxhd -f mov -pix_fmt rgb32 -b 36Mb /tmp/temp.mov


      This gives me the output:



      Input #0, image2, from '/tmp/1274263259.28098.%04d.png':
      Duration: 00:00:01.60, start: 0.000000, bitrate: N/A
      Stream #0.0: Video: png, rgb32, 1920x1080, 25 tbr, 25 tbn, 25 tbc
      Output #0, mov, to '/tmp/1274263259.28098.mov':
      Stream #0.0: Video: dnxhd, yuv422p, 1920x1080, q=2-31, 36000 kb/s, 90k tbn, 24 tbc
      Stream mapping:
      Stream #0.0 -> #0.0
      Press [q] to stop encoding
      frame= 39 fps= 9 q=1.0 Lsize= 7177kB time=1.62 bitrate=36180.8kbits/s
      video:7176kB audio:0kB global headers:0kB muxing overhead 0.013636%


      Which obviously works, to a certain extent, but still has the issue of being yuv422p, and therefore losing the alpha.



      If I'm going to QuickTime, then I can get what I need using Shake, but my main aim here is to be able to generate .mxf files.



      Any thoughts?



      Thanks







      ffmpeg video-conversion quicktime video-encoding






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited Mar 4 '12 at 12:25









      slhck

      162k47448470




      162k47448470










      asked May 19 '10 at 13:29









      HughHugh

      701817




      701817






















          1 Answer
          1






          active

          oldest

          votes


















          0














          First let me thank you for this post because it actually helped me get some instructions on how to encode to a DNxHD quicktime in ffmpeg. I was trying to convert J2K MXF into DNxHD.



          As for generating mxf files with correct parameters, have you tried running your png sequence through the latest version of Avid Metafuze? It offers a lot of flexibility with these things. I've created wonderful 1080p 24fps DNxHD mxf from DPX file sequences. Metafuze supports png sequences as well. Load the sequence, edit the LUT, enter your metadata, generate an ALE and you're good to go.



          If you are a Linux user, it runs seamlessly on Linux through Wine.






          share|improve this answer



















          • 1





            Hi, Thanks for the suggestion. I'm actually after something that can run completely command-line, which I don't believe MetaFuze does. (I've not used it myself, but some of my colleagues have)

            – Hugh
            Oct 17 '10 at 17:17











          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',
          autoActivateHeartbeat: false,
          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%2f142930%2fffmpeg-creating-dnxhd-mfx-files-with-alphas%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown

























          1 Answer
          1






          active

          oldest

          votes








          1 Answer
          1






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes









          0














          First let me thank you for this post because it actually helped me get some instructions on how to encode to a DNxHD quicktime in ffmpeg. I was trying to convert J2K MXF into DNxHD.



          As for generating mxf files with correct parameters, have you tried running your png sequence through the latest version of Avid Metafuze? It offers a lot of flexibility with these things. I've created wonderful 1080p 24fps DNxHD mxf from DPX file sequences. Metafuze supports png sequences as well. Load the sequence, edit the LUT, enter your metadata, generate an ALE and you're good to go.



          If you are a Linux user, it runs seamlessly on Linux through Wine.






          share|improve this answer



















          • 1





            Hi, Thanks for the suggestion. I'm actually after something that can run completely command-line, which I don't believe MetaFuze does. (I've not used it myself, but some of my colleagues have)

            – Hugh
            Oct 17 '10 at 17:17
















          0














          First let me thank you for this post because it actually helped me get some instructions on how to encode to a DNxHD quicktime in ffmpeg. I was trying to convert J2K MXF into DNxHD.



          As for generating mxf files with correct parameters, have you tried running your png sequence through the latest version of Avid Metafuze? It offers a lot of flexibility with these things. I've created wonderful 1080p 24fps DNxHD mxf from DPX file sequences. Metafuze supports png sequences as well. Load the sequence, edit the LUT, enter your metadata, generate an ALE and you're good to go.



          If you are a Linux user, it runs seamlessly on Linux through Wine.






          share|improve this answer



















          • 1





            Hi, Thanks for the suggestion. I'm actually after something that can run completely command-line, which I don't believe MetaFuze does. (I've not used it myself, but some of my colleagues have)

            – Hugh
            Oct 17 '10 at 17:17














          0












          0








          0







          First let me thank you for this post because it actually helped me get some instructions on how to encode to a DNxHD quicktime in ffmpeg. I was trying to convert J2K MXF into DNxHD.



          As for generating mxf files with correct parameters, have you tried running your png sequence through the latest version of Avid Metafuze? It offers a lot of flexibility with these things. I've created wonderful 1080p 24fps DNxHD mxf from DPX file sequences. Metafuze supports png sequences as well. Load the sequence, edit the LUT, enter your metadata, generate an ALE and you're good to go.



          If you are a Linux user, it runs seamlessly on Linux through Wine.






          share|improve this answer













          First let me thank you for this post because it actually helped me get some instructions on how to encode to a DNxHD quicktime in ffmpeg. I was trying to convert J2K MXF into DNxHD.



          As for generating mxf files with correct parameters, have you tried running your png sequence through the latest version of Avid Metafuze? It offers a lot of flexibility with these things. I've created wonderful 1080p 24fps DNxHD mxf from DPX file sequences. Metafuze supports png sequences as well. Load the sequence, edit the LUT, enter your metadata, generate an ALE and you're good to go.



          If you are a Linux user, it runs seamlessly on Linux through Wine.







          share|improve this answer












          share|improve this answer



          share|improve this answer










          answered Aug 31 '10 at 9:30









          VijayVijay

          1




          1








          • 1





            Hi, Thanks for the suggestion. I'm actually after something that can run completely command-line, which I don't believe MetaFuze does. (I've not used it myself, but some of my colleagues have)

            – Hugh
            Oct 17 '10 at 17:17














          • 1





            Hi, Thanks for the suggestion. I'm actually after something that can run completely command-line, which I don't believe MetaFuze does. (I've not used it myself, but some of my colleagues have)

            – Hugh
            Oct 17 '10 at 17:17








          1




          1





          Hi, Thanks for the suggestion. I'm actually after something that can run completely command-line, which I don't believe MetaFuze does. (I've not used it myself, but some of my colleagues have)

          – Hugh
          Oct 17 '10 at 17:17





          Hi, Thanks for the suggestion. I'm actually after something that can run completely command-line, which I don't believe MetaFuze does. (I've not used it myself, but some of my colleagues have)

          – Hugh
          Oct 17 '10 at 17:17


















          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.




          draft saved


          draft discarded














          StackExchange.ready(
          function () {
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsuperuser.com%2fquestions%2f142930%2fffmpeg-creating-dnxhd-mfx-files-with-alphas%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