How to lazy transform an hevc/mkv video

Comments

6 comments

  • Avatar
    Yakir Perlin

    Hi,

    Could you please try with "resource_type" = "video" and let me know if it works for you?

    Cheers,

    Yakir

    0
    Comment actions Permalink
  • Avatar
    Benno Baumgartner

    Hi Yakir

     

    Sorry, same result, i.e. https://res.cloudinary.com/qnnect/video/upload/vc_mp4/v1534161843/qmcjucbsrlbieudl149r.mkv

     

    Regards

    Benno

    0
    Comment actions Permalink
  • Avatar
    Yakir Perlin

    ok, thanks for the update.

    I checked the issue, and that should work:

    Map result = cloudinary.uploader()
    .uploadLarge(IOUtils.toByteArray(storageProvider.get(media)),
    ObjectUtils.asMap(
    "resource_type", "video",
    "eager", Collections.singletonList(new Transformation().videoCodec("h264").format("mp4"),
    "eager_async", true,
    "eager_notification_url", "http://mysite/rest/upload",
    "notification_url", "http://mysite/rest/upload"));

    Please let me know if it works for you.

     

    Cheers

     

    0
    Comment actions Permalink
  • Avatar
    Benno Baumgartner

    Hi Yakir

     

    Thanks for your help. There is no format method on Transformation, so I try fetchFormat. But the result remains the same:

    i.e. http://res.cloudinary.com/qnnect/video/upload/f_mp4,vc_h264/v1534424367/hhvnhvzd4y0kxrxbg8v3.mp4

    X-Cld-Error:
    Video is too large to process synchronously, please use an eager transformation with eager_async=true to resolve
     
    Any Idea?
    Best Regards
    Benno
    0
    Comment actions Permalink
  • Avatar
    Yakir Perlin

    Yes - you're right, it's fetchformat. 

    Anyway, I checked the logs, and while we tried to eagerly transform your video - we sent you this callback:{"notification_type":"eager","eager":[{"transformation":"f_mp4,vc_h264","status":"failed","reason":"Cannot generate H.264 videos longer than 720 - please contact support."}]

    This error is returned because videos longer than 12 minutes may require special licensing terms (unrelated to MPEG-DASH or HLS transformation).
    I've now enabled your account to be able to transform long videos, however, please take into account is mp4-h264 license terms, that come into play when videos are longer than 12 minutes. For more information:
    http://www.mpegla.com/main/programs/avc/Documents/avcweb.pdf

    Please try again and let me know if it works for you.

    Cheers

    --Yakir

    0
    Comment actions Permalink
  • Avatar
    Benno Baumgartner

    Hi Yakir

     

    Thank you very much. I can confirm that it works now! Technically at least, regarding the license I have to ask business/lawyer. I doubt that our customer is willing to pay license fees for this though.

     

    Benno

    0
    Comment actions Permalink

Please sign in to leave a comment.