-
Notifications
You must be signed in to change notification settings - Fork 863
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
MediaConvert - Rotate option "Auto" does not work #3692
Comments
Per VideoSelectorMarshaller, Using example at Use CreateJob with an AWS SDK or CLI (code repository) and setting ...
input.VideoSelector = new VideoSelector
{
ColorSpace = ColorSpace.FOLLOW,
Rotate = InputRotate.AUTO
};
... marshalls request into below JSON: {
"clientRequestToken": "c0a591e6-7055-4a22-9626-a214ae08112f",
"role": "arn:aws:iam::<<ACCOUNT-ID>>:role/TestMediaConvertRole",
"settings": {
"adAvailOffset": 0,
"inputs": [
{
"audioSelectors": {
"Audio Selector 1": {
"defaultSelection": "NOT_DEFAULT",
"offset": 0,
"programSelection": 1,
"selectorType": "TRACK",
"tracks": [
1
]
}
},
"deblockFilter": "DISABLED",
"denoiseFilter": "DISABLED",
"fileInput": "s3://<<BUCKET-NAME>>/720.mov",
"filterEnable": "AUTO",
"filterStrength": 0,
"psiControl": "USE_PSI",
"timecodeSource": "EMBEDDED",
"videoSelector": {
"colorSpace": "FOLLOW",
"rotate": "AUTO"
}
}
],
"outputGroups": [
{
"name": "File Group",
"outputGroupSettings": {
"fileGroupSettings": {
"destination": "s3://<<BUCKET-NAME>>/720-converted-06-03-2025.mp4"
},
"type": "FILE_GROUP_SETTINGS"
},
"outputs": [
{
"audioDescriptions": [
{
"audioSourceName": "Audio Selector 1",
"codecSettings": {
"aacSettings": {
"audioDescriptionBroadcasterMix": "NORMAL",
"bitrate": 64000,
"codecProfile": "LC",
"codingMode": "CODING_MODE_2_0",
"rateControlMode": "CBR",
"rawFormat": "NONE",
"sampleRate": 48000,
"specification": "MPEG4"
},
"codec": "AAC"
},
"languageCodeControl": "FOLLOW_INPUT"
}
],
"containerSettings": {
"container": "MP4",
"mp4Settings": {
"cslgAtom": "INCLUDE",
"freeSpaceBox": "EXCLUDE",
"moovPlacement": "PROGRESSIVE_DOWNLOAD"
}
},
"nameModifier": "_1",
"videoDescription": {
"afdSignaling": "NONE",
"antiAlias": "ENABLED",
"codecSettings": {
"codec": "H_264",
"h264Settings": {
"adaptiveQuantization": "HIGH",
"bitrate": 5000000,
"codecLevel": "AUTO",
"codecProfile": "MAIN",
"entropyEncoding": "CABAC",
"fieldEncoding": "PAFF",
"flickerAdaptiveQuantization": "DISABLED",
"framerateControl": "SPECIFIED",
"framerateConversionAlgorithm": "DUPLICATE_DROP",
"framerateDenominator": 1,
"framerateNumerator": 30,
"gopBReference": "DISABLED",
"gopClosedCadence": 1,
"gopSize": 90.0,
"gopSizeUnits": "FRAMES",
"interlaceMode": "PROGRESSIVE",
"minIInterval": 0,
"numberBFramesBetweenReferenceFrames": 2,
"numberReferenceFrames": 3,
"parControl": "SPECIFIED",
"parDenominator": 1,
"parNumerator": 1,
"qualityTuningLevel": "SINGLE_PASS",
"rateControlMode": "CBR",
"repeatPps": "DISABLED",
"sceneChangeDetect": "ENABLED",
"slices": 1,
"slowPal": "DISABLED",
"softness": 0,
"spatialAdaptiveQuantization": "ENABLED",
"syntax": "DEFAULT",
"telecine": "NONE",
"temporalAdaptiveQuantization": "ENABLED",
"unregisteredSeiTimecode": "DISABLED"
}
},
"colorMetadata": "INSERT",
"dropFrameTimecode": "ENABLED",
"respondToAfd": "NONE",
"scalingBehavior": "DEFAULT",
"sharpness": 50,
"timecodeInsertion": "DISABLED"
}
}
]
}
],
"timecodeConfig": {
"source": "EMBEDDED"
}
},
"userMetadata": {
"Customer": "Amazon"
}
} Notice: "videoSelector": {
"colorSpace": "FOLLOW",
"rotate": "AUTO"
} From AWS Console, clicking on View JSON option for the job shows @MondQ Good afternoon. This doesn't appear to be SDK issue. SDK is creating job with proper Thanks, |
I can confirm that everything works as expected and this was user error. I accidentally overwrote the video selector containing the rotate instruction. Thank you for your time. |
Comments on closed issues are hard for our team to see. |
Describe the bug
When supplying the rotate option auto using the .NET SDK no rotation is applied. If I use the AWS console to process the same file and specify the "Auto" rotation option my video is in the correct orientation.
Regression Issue
Expected Behavior
My portrait video is still in portrait orientation after conversion with MediaConvert.
Current Behavior
My portrait video is sideways after conversion.
Reproduction Steps
Specify the
Rotate
property on theVideoSelector
class asInputRotate.AUTO
.Possible Solution
No response
Additional Information/Context
When I go to the console and check the JSON of the job that was triggered via the SDK the 'Rotate' property is not listed.
AWS .NET SDK and/or Package version used
AWSSDK.MediaConvert 3.7.409.3
Targeted .NET Platform
.NET 8
Operating System and version
Linux - Fedora Workstation 41
The text was updated successfully, but these errors were encountered: