Hello,
You can create a single MP4 file from a live archive with Azure Media Services. This process is called subclipping. A job will take the top video bitrate and audio from a live archive asset and will create a MP4 file in a new asset. Streams are copied and there is no loss of quality.
Transform should be defined like this :
{
"@odata.type": "#Microsoft.Media.StandardEncoderPreset",
"codecs": [
{
"@odata.type": "#Microsoft.Media.CopyAudio"
},
{
"@odata.type": "#Microsoft.Media.CopyVideo"
}
],
"formats": [
{
"@odata.type": "#Microsoft.Media.Mp4Format",
"filenamePattern": "Archive-{Basename}{Extension}",
"outputFiles": []
}
]
}
You can also specify the start timestamp and end timestamp when building the JobInputAsset object.
See https://video2.skills-academy.com/en-us/azure/media-services/latest/subclip-video-dotnet-howto
Note : the timestamp should be in absolute format. For live, this value can be very high as it contains often an offset. To calculate it, you can look to the first timestamp in the manifest.
These values are calculated automatically when using AMSE (https://aka.ms/amse). Select a live archive asset, right click and choose "Subclip live/fragmented asset".