1
votes

I usually use Media Encoder Standard to encode 4k videos in H264 Multiple bitrate format. But it's just becoming expensive (for me) because of source 4k file size, so it take up to 20 hours when encoding in Azure.

So I wonder is there a way to prepare it myself for this format https://docs.microsoft.com/en-us/azure/media-services/media-services-mes-preset-h264-multiple-bitrate-4k ? I do video editing and color grading anyway.

1
Really? Two "-1" for what? Not programming question? But it's as important.alvipeo
Hi, It would help me to understand your scenario a bit more in detail, as the size of the source file and format as well as the encoding profile that you have chosen to output can seriously affect the encoding time. Can you share more details about the source 4K file you upload (format, encoding settings, bitrate), and the encoding preset that you are using in MES? That would help us to guide you better. You may be able to prepare a better source mezzanine or adjust your target encoding profile to get a better experience.johndeu
I shoot local concerts in 4k 60p (yes, I know) for my friends. I may go down to 4k 30p but not lower then that. Every concert is 1,5 - 2 hours and requires some editing so I do this in DaVinci Resolve. The output file is mp4 (4k 60p) and usually ~80-100 Gb (with 30p it will be probably ... what, 40%?). Then I upload it to Storage and create an asset in Azure (I have this implemented in my website) and share it on my own simple website (again, deployed to Azure). The most expensive part is encoding that into multiple bitrate format. So I wonder if I can do it my self with Resolve and package italvipeo
Got it. I would definitely do an experiment of dropping it to 4K 30p and see if the experience is still good for the cost involved. I'm not sure there is a lot of value-add for 60p on concert footage, unless you have a ton of side-to-side motion (Guitar throwing!) On the encoding profile, what is the adaptive bitrate preset that you are using today? Are you creating your own custom one or using one of our default system presets?johndeu
Do you have a target cost per encode or hour that you are aiming for? Also a target of performance? How fast of an encode? Are you using S1,S2 or S3 encoding units to do the jobs?johndeu

1 Answers

1
votes

Ok, so the answer to this, as can be seen in the comment thread above is to do several changes to your workflow to reduce the time and the costs:

  1. Change your source content to be 4k 30p instead of 60p. There really is no need to have 60p for the type of content that you are filming. It's not really high action content.
  2. This should cut your upload source data size in half...
  3. Download the JSON for the 4K preset that you are using "H264 Multi Bitrate 4k" and customize it. Don't trust that we have given you the right settings for your cost demands or scenario. :-)
  4. Change the frame rates in the preset, drop some of the bitrate layers, remove some layers as Anil suggested above. This should seriously reduce the encoding time, and your overall output costs. Just cut it down to the bare minimum and give it another shot.

If that does not work out for you, ping us again at [email protected] and we can help figure out other scenarios to assist.

Thanks for using Azure Media Services! And also thanks for contributing to the community.

John D.