Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

provider/zencoder: getting an error when trying to trigger encoding job with no height or no width #148

Closed
goldsteindavid opened this issue Nov 16, 2016 · 4 comments
Labels

Comments

@goldsteindavid
Copy link

goldsteindavid commented Nov 16, 2016

When running a zencoder job for a webm file using a preset that has no height or no width specified I get the following error:

{
  "error": "Error with provider \"zencoder\": 422 Unprocessable Entity"
}
@flavioribeiro flavioribeiro changed the title Provider/zencoder: getting an error when trying to trigger encoding job with no height or no width provider/zencoder: getting an error when trying to trigger encoding job with no height or no width Nov 16, 2016
@goldsteindavid
Copy link
Author

goldsteindavid commented Nov 16, 2016

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"
  }
}

@flavioribeiro
Copy link
Member

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?

@flavioribeiro
Copy link
Member

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?

@goldsteindavid
Copy link
Author

I'm no longer able to reproduce this issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants