I'm using AWS MediaConvert, and I can't find a way to get metadata from the input video. Specifically, I need length, dimensions, and codec. I'm really surprised I can't do it.
I can grab the length and dimensions from the output, but I can't find a way to get the input codec.
It would be super helpful if I could do this through MediaConvert since it is already reading the video file. Otherwise, I have to come up with some other process to read the video file and grab the codec metadata. I think I'd have to set up an entirely new server just to do it, due to volume.
For more detail my process looks something like this:
- A user uploads a video (it goes directly to s3)
- A lambda function is triggered, which kicks off the MediaConvert job
- MediaConvert does its thing
- Another lambda function is triggered when the job is complete and writes metadata to my db
Any thoughts on how I could possibly grab the codec without creating yet another process that reads the whole file would be much appreciated!