Skip to content

Instantly share code, notes, and snippets.

@murphybytes
Created November 29, 2012 19:41
Show Gist options
  • Save murphybytes/4171347 to your computer and use it in GitHub Desktop.
Save murphybytes/4171347 to your computer and use it in GitHub Desktop.
before and after
{ renditions: [
remoteUrl: get_encoded_asset_url( 'LOW' ),
type: 'VIDEO_FULL',
displayName: "#{get_file_basename}_LOW",
refid: "#{get_file_basename}_LOW",
videoDuration: -1,
size: 0,
encodingRate: 563000,
frameWidth: 640,
frameHeight: 360,
videoCodec: "H264"
]
}
{ renditions: [
{
remoteUrl: get_encoded_asset_url( 'LOW' ),
type: 'VIDEO_FULL',
displayName: "#{get_file_basename}_LOW",
refid: "#{get_file_basename}_LOW",
videoDuration: -1,
size: 0,
encodingRate: 563000,
frameWidth: 640,
frameHeight: 360,
videoCodec: "H264"
},
{
remoteUrl: get_encoded_asset_url( 'XLOW' ),
type: 'VIDEO_FULL',
displayName: "#{get_file_basename}_XLOW",
refid: "#{get_file_basename}_XLOW",
videoDuration: -1,
size: 0,
encodingRate: 163000,
frameWidth: 480,
frameHeight: 268,
videoCodec: "H264"
}
]
}
@murphybytes
Copy link
Author

The first case is a single rendition with an output, the second case is how I think multiple renditions should work.

@chriswarren
Copy link

{
    "input": "s3://zencoder-foxnews-ingest/FNC_HD_TEST.asf",
    "outputs": [
        {
            "label": "remote-asset-xlow",
            "video_bitrate": 163,
            "width": 480,
            "height": 268,
            "public": true
        },
        {
            "source": "remote-asset-xlow",
            "type": "transfer-only",
            "url": "syndicate://videocloud",
            "syndication_id": "videocloud",
            "metadata": {
                "title": "TEST_XLOW",
                "description": "TEST",
                "renditions": [
                    {
                        "remoteUrl": "http://media2.foxnews.com/2012/11/28/FNC_HD_TEST_XLOW.mp4",
                        "type": "VIDEO_FULL",
                        "displayName": "FNC_HD_TEST_XLOW",
                        "refid": "FNC_HD_TEST_XLOW",
                        "videoDuration": -1,
                        "size": 0,
                        "encodingRate": 163000,
                        "frameWidth": 480,
                        "frameHeight": 268,
                        "videoCodec": "H264"
                    },
                    {
                        "remoteUrl": "http://media2.foxnews.com/2012/11/28/FNC_HD_TEST_LOW.mp4",
                        "type": "VIDEO_FULL",
                        "displayName": "FNC_HD_TEST_LOW",
                        "refid": "FNC_HD_TEST_LOW",
                        "videoDuration": -1,
                        "size": 0,
                        "encodingRate": 563000,
                        "frameWidth": 640,
                        "frameHeight": 360,
                        "videoCodec": "H264"
                    }
                ],
                "images": [
                    {
                        "type": "THUMBNAIL",
                        "remoteUrl": "http://video.foxnews.com/thumbnails/070112/160/90/071712_TEST_VIDEO_640.jpg",
                        "displayName": "071712_TEST_VIDEO_640"
                    },
                    {
                        "type": "VIDEO_STILL",
                        "remoteUrl": "http://video.foxnews.com/thumbnails/070112/640/360/071712_TEST_VIDEO_640.jpg",
                        "displayName": "071712_TEST_VIDEO_640x360"
                    }
                ],
                "captions": [
                    {
                        "type": "CAPTIONS",
                        "remoteUrl": "http://media2.foxnews.com/071712/071712_TEST_VIDEO.dfxp.xml",
                        "displayName": "071712_TEST_VIDEO.dfxp"
                    }
                ]
            }
        }
    ]
}

This worked fine.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment