GithubHelp home page GithubHelp logo

Comments (4)

goldsteindavid avatar goldsteindavid commented on May 29, 2024

After receiving the above error I started to get another when trying to post a zencoder preset with no height or no width. (Note: I was able to post these presets before I got the original error I wrote this ticket about.)

{
  "PresetMap": "", 
  "Results": {
    "zencoder": {
      "Error": "creating preset: local preset already exists", 
      "PresetID": ""
    }
  }
}

Here is my preset JSON:

{
  "providers": ["zencoder"],
  "preset": {
    "name": "QA_zencoder_webm_vbr_noheight",
    "description": "preset_zencoder_webm_vbr_noheight for QA.",
    "container": "webm",
    "rateControl": "VBR",
    "video": {
      "profile": "Main",
      "profileLevel": "3.1",
      "height": "",
      "width": "1080",
      "codec": "vp8",
      "bitrate": "1000000",
      "gopSize": "90",
      "gopMode": "fixed",
      "interlaceMode": "progressive"
    },
    "audio": {
        "codec": "vorbis",
        "bitrate": "64000"
    }
  },
  "outputOptions": {
    "label": "webm_720p"
  }
}

from video-transcoding-api.

flavioribeiro avatar flavioribeiro commented on May 29, 2024

Hello @goldsteindavid I tried to reproduce this one with no success.

flv@~/Development/video-transcoding-api-examples cat preset_david.json
{
  "providers": ["zencoder"],
  "preset": {
    "name": "QA_zencoder_webm_vbr_noheight",
    "description": "preset_zencoder_webm_vbr_noheight for QA.",
    "container": "webm",
    "rateControl": "VBR",
    "video": {
      "profile": "Main",
      "profileLevel": "3.1",
      "height": "",
      "width": "1080",
      "codec": "vp8",
      "bitrate": "1000000",
      "gopSize": "90",
      "gopMode": "fixed",
      "interlaceMode": "progressive"
    },
    "audio": {
        "codec": "vorbis",
        "bitrate": "64000"
    }
  },
  "outputOptions": {
    "label": "webm_720p"
  }
}

and

flv@~/Development/video-transcoding-api-examples cat job.json
{
  "provider": "zencoder",
  "source": "https://nyt-video-tests.s3.amazonaws.com/animation_sorkin_mezz.mov",
  "outputs": [
    {"preset": "QA_zencoder_webm_vbr_noheight", "fileName": "output_david.webm"}
  ]
}

Triggering the job:

flv@~/Development/video-transcoding-api-examples curl -X POST -d @job.json http://localhost:8080/jobs
{"jobId":"7d3be3133c4dd4b8"}

I checked the output and things are good. Am I missing something?

from video-transcoding-api.

flavioribeiro avatar flavioribeiro commented on May 29, 2024

also, this:

{
  "PresetMap": "", 
  "Results": {
    "zencoder": {
      "Error": "creating preset: local preset already exists", 
      "PresetID": ""
    }
  }
}

happens when you remove the presetmap but don't remove the preset, which raises another question.

@marzagao, @fsouza: since we have the concept of LocalPresets now, we can support all encoding services even if they don't have API's to handle presets. Do you guys think we should still expose PresetMaps?

from video-transcoding-api.

goldsteindavid avatar goldsteindavid commented on May 29, 2024

I'm no longer able to reproduce this issue.

from video-transcoding-api.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.