Search code examples
azurevideo-streaminghtml5-videoazure-media-services

Encoding video in Azure Media Services with chapter or timeline markers


Is it possible to encode video in Azure Media Services with chapter or timeline markers, and if so, how?

I understand that custom encoding presets are supported. Outside of Azure Media Services, I was able to do what I am speaking of using the Microsoft Expression Encoder SDK, but I have yet to find this capability in Azure's offerings.


Solution

  • What do you intend to do with the chapter/timeline markers? If you intend to generate a progressive download MP4 (or WMV) file, then the above response holds. You can modify any of the published presets (http://msdn.microsoft.com/en-us/library/dn619392.aspx) for Azure Media Encoder with the Markers element:

    <MediaFile ...>
    <Markers
      MergeCollection="False">
      <Marker
        Time="00:00:00"
        Value="ABC"
        GenerateKeyFrame="True"
        GenerateThumbnail="True" />
      <Marker
        Time="00:00:03.0000000"
        Value="DEF"
        GenerateKeyFrame="True"
        GenerateThumbnail="True" />
    </Markers>
    <OutputFormat>
    

    ...

    You would have to ensure that the Marker entries were within the timeline of the input video, of course.