How to include subtitles in Azure Media Services' manifest? - azure-media-services

Using the portal I uploaded a video to an input-asset and encoded it into an output-asset. On the output-asset I uploaded a .vtt file via "Upload captions" button. I can reproduce the video with the captions/subtitles in https://ampdemo.azureedge.net/, using the manifest URL and an extra URL for the .vtt file in the "Tracks" options. However other video players don't seem to support captions/subtitles via an extra URL (for example in Android or here). Is there a way to somehow include the captions/subtitles in the manifest? I see manifests from other sources including subtitles. For example, https://d3rlna7iyyu8wu.cloudfront.net/skip_armstrong/skip_armstrong_stereo_subs.m3u8 (can be played here).

Unfortunately there's not a way to add the captions to the manifest itself. However, you pointed to the Bitmovin player and it actually supports VTT captions as per https://bitmovin.com/docs/player/articles/subtitle-and-closed-captions-support. Here's some example code that includes the VTT link https://cdn.bitmovin.com/player/web/8/docs/interfaces/core_config.sourceconfig.html

Related

TinyMCE - Upload images, media and documents to your own server

I am using TinyMCE for publishing articles in some journalistic and cultural portals.
As for the media (images, audio, video, documents), everything will have to be uploaded and managed internally, without using external links to services such as YouTube and TinyPIC, which I have no control over to ascertain the permanence of the media.
I was already using the images_upload_url option for images but I cannot find a similar option for all other media or a general option that works for all media types.
For some current sites I am using the external responsivefilemanager plugin but I was hoping that in future releases of TnyMCE an internal option similar to images_upload_url would be integrated.
Is this an option I can't find or has it not yet been integrated and responsivefilemanager still needs to be used?
I recently had the same question, turns out if you are using a paid plan for TinyMCE, you could use their TinyDrive plugin & a TinyCloud account.
This allows to upload images, files and medias, plus it better integrates with their tools (ie you have a nice UI to access uploaded files by your text editor)
It may answer your need! I give you the link to their documentation: https://www.tiny.cloud/docs/tinymce/6/tinydrive-introduction/. You have a nice example on this page, to try it :
Click on the Upload icon and upload your video
Click on Insert > Media > General
Click on the Upload icon and here is your video that you can add to your text content
Have a great day,

Subtitles for DRM content

I use Azure Media Player v2.3.2. There are existing encoded videos that work great to which I should include subtitles (VTT). Videos are DRM protected. I cannot find any documentation discussing the topic, just few (too) simple samples.
Should I use one separate shared container holding ALL subtitles of ALL media assets, or should I create one separate asset for subtitles of each media asset?
If I should create separate assets for each video, how can the media player know what subtitle asset belongs to the media asset as they're separete?
If I should create one shared asset for all subtitles of all media files, is there any limitations on how many subtitles I can have in this asset?
How does the media player know what all subtitles are available in the subtitle asset, to begin with?
How should I secure this subtitle asset to prevent downloading subtitles from it?
Jussi,
Thanks for asking. It is a difficult topic to find a lot of information on in our docs and samples.
We recommend keeping all the VTT files in the same Asset. We recently introduced a new "Tracks" API on Asset as well to make it easier to "late-bind" caption and audio tracks to an Asset. Docs are still being worked on, but I have a sample in Typescript up here that shows how to add a VTT track to an existing asset - https://github.com/Azure-Samples/media-services-v3-node-tutorials/blob/main/Assets/add-WebVTT-tracks.ts
Once you add a track of VTT, AMS will convert that to an IMSC text track that AMP and other players can understand. You have to set the language code correctly, and then tell AMP which language code IMSC1 tracks to display
Don't create separate assets. Not required
I don't believe we set a limit on Tracks at all... But I need to check with dev.
AMP only knows what subtitles are there if you configure it to find them. The AMP API has a setting on it to describe which IMSC1 to load. You can do this in the imsc1caption settings. For example, if you add an 'en-us' VTT file with the tracks API, you have to set the AMP player up to look for the 'en-us' IMSC1 file. It will read that from the DASH manifest.
https://amp.azure.net/libs/amp/latest/docs/index.html#amp.player.imsc1captionssettings
For other 3rd party players, they will read the caption track information from the DASH or HLS manifest file. We decorate them in the manifest appropriately according to those specifications so that the players can parse and load them. Each player differs a bit in support, and there are some known issues across players.

Umbraco 8 - Upload and Embed Videos from Local File

What I'm trying to achieve is to upload a video to the Media section in Umbraco 8 CMS and embed then choose the video to embed in Content, just like what is normally done with images. The video can be .mp4/.avi etc.
Looks like Umbraco 8 only supports YouTube and Vimeo videos, but that's not ideal in my case.
Umbraco 8 supports a lot more than YouTube and Vimeo out of the box: https://our.umbraco.com/apidocs/v8/csharp/api/Umbraco.Web.Media.EmbedProviders.html
If there IS an external provider you'd like to use, but it isn't in the list above, it's possible to create your own embed provider to make the Embed dialog support it. As long as it supports OEmbed it shouldn't be crazy complicated to do, I think. Have a look here: https://our.umbraco.com/documentation/extending/Embedded-Media-Provider/
In case you are simply not able to use an external video service, you probably have to do something like what is mentioned here: https://our.umbraco.com/forum/using-umbraco-and-getting-started/84626-inserting-video-banners-in-umbraco (in short, create a Media Picker property on your document type and handle it in the template like Micha describes)
In umbracoSettings.config file there's a section disallowedUploadFiles. Is Mp4 in there? You should be able to do this
There is also a max file size, so maybe check your vide is under that as well

Allowed file extensions News System

I use the extension News System to manage my newsitems and I need to add mp3 file to my records using [fal_media]. But in the list of allowed file extensions I don't have MP3.
And even if I downloaded an audio file (mp3), it disappears when I save the content.
I checked the [SYS][mediafile_ext] on the Install tool and I see that the MP3 extension is already there.
Why I can't see MP3 on the Allowed file extensions?
As you have checked the system configuration which enables mp3 files, something has restricted the use of mp3 afterwards (as Robert mentioned)
In general EXT:news (7.3.1) does not modify the available fileextensions (3rd and 4th paramter of getFileFieldTCAConfig() calls in Configuration/TCA/tx_news_domain_model_news.php for the fal_mediafield is empty) something else has modified the list.
You may check if mp3 is removed everywhere, checking the TCA for all tables (there should be some mentions for tt_content)
Then you might check the site extension or page_TSconfig for the origin of the removal.

CEF(Chromium embedded framework) doesn't play mp4 videos

I followed this link which is on a similar topic. But even after completing the steps mentioned in the link i' am not able to play any mp4 files. I have also tried removing the args.gn file in out/Release folder and recompiling the whole project. That too didn't resolve the issue.
My args.gn file has following contents:
clang_use_chrome_plugins=false
enable_basic_printing=true
enable_linux_installer=false
enable_nacl=false
enable_print_preview=true
enable_rigel=true
enable_service_discovery=false
enable_widevine=true
fatal_linker_warnings=false
ffmpeg_branding="Chrome"
forbid_non_component_debug_builds=false
is_component_build=false
is_debug=false
is_official_build=true
optimize_webui=true
proprietary_codecs=true
target_cpu="x64"
use_bundled_fontconfig=false
use_gtk=false
use_sysroot=false
To enable H264 codec it is enough to set ffmpeg_branding=Chrome proprietary_codecs=true GN defines.
If by MP4 you mean videos with MP4 container then to support these it is required to make additional code changes to Chromium.
Try testing with these sites:
https://tools.woolyss.com/html5-audio-video-tester/
https://lab.html5test.com/codecs/