AWS Archives - VdoCipher Blog Secure Video Streaming Tue, 30 Jul 2024 14:52:10 +0000 en-US hourly 1 https://wordpress.org/?v=6.4.5 https://www.vdocipher.com/blog/wp-content/uploads/2016/11/cropped-VdoCipher-logo2-32x32.png AWS Archives - VdoCipher Blog 32 32 AWS S3 Video Streaming & Video Hosting with Amazon CDN and Multi-DRM https://www.vdocipher.com/blog/aws-s3-video-streaming/ Thu, 25 Jul 2024 19:22:38 +0000 https://www.vdocipher.com/blog/?p=12393 Videos significantly increase user engagement, with users spending more time on websites with videos and video content receiving substantially more shares compared to images or text. AWS offers a suite of tools for video hosting, chief among them being Amazon S3 and Amazon CloudFront. Amazon S3 is known for its durability, boasting a 99.999999999% durability […]

The post AWS S3 Video Streaming & Video Hosting with Amazon CDN and Multi-DRM appeared first on VdoCipher Blog.

]]>
Videos significantly increase user engagement, with users spending more time on websites with videos and video content receiving substantially more shares compared to images or text. AWS offers a suite of tools for video hosting, chief among them being Amazon S3 and Amazon CloudFront. Amazon S3 is known for its durability, boasting a 99.999999999% durability rate and 99.99% availability, ensuring that videos stored are not only safe but virtually imperishable. Amazon S3 has been providing cloud services since 2006 and reports storing more than 100 trillion objects in S3 servers as of March 2021. It became popular as an easy and affordable mode to avail of cloud storage services. But, the ease of integration and scalability keeps the users attached. Even large-scale solution providers like VdoCipher use AWS infrastructure to provide a complete AWS S3 Video Streaming package with integrated security and other features.

As AWS S3 uses object storage instead of block storage, it can transfer bundled data with unique identifiers and customizable metadata tags to form complete objects. Object storage infrastructure also has reduced latency when storage is remote. This leads to faster delivery or performance of the overall application, dependent on storage.

What is Amazon S3 Video Hosting?

Amazon S3 or AWS S3 or Amazon Simple Storage Service is a service offered by AWS or Amazon Web Services. It provides object storage through Amazon S3 REST API and web service interface. AWS S3 uses the scalable storage infrastructure used by large networks like Netflix and eCommerce giants like Amazon.

VdoCipher empowers course creators, event organizers and broadcasters with expert live video streaming, ensuring smooth playback globally.

AWS S3 object storage can store any object like file storage for Internet applications, Videos, data backups, recovery, archives, data analytics, and even hybrid cloud storage. However, there are some limits to the uploaded object file size. An AWS S3 object can have a file size between 1 byte and 5TB. If an object exceeds 5TB, it must be divided into maximum chunks of 5TB before uploading. Also, during the upload, a maximum stream of 5GB can be uploaded in a single upload operation. For uploading objects larger than 5GB, a user must use the S3 multipart upload API.

AWS S3 History and Infrastructure Design

Amazon Web Services started offering S3 services to businesses as web services in the United States on March 14, 2006. It further spread to Europe in November 2007 and is now present in 190 countries worldwide. AWS started with 10 billion objects in October 2007 and grew by 10 times to 102 billion objects in March 2010. Amazon reported that it stores more than 100 trillion objects in S3 servers as of March 2021.

It proved to be a success as it provided small, medium, and large-scale businesses an opportunity to replace the upfront capital investment. Earlier, with limited options, they had to bear the large capital cost of setting up servers, and it was still cumbersome to maintain them in multiple locations. Now, users can create hundreds or thousands of S3 servers in minutes and deliver globally via Video CDN distribution.

Infrastructure Design

Objects are the basic storage units of AWS S3, and they are organized into containers called buckets. Each object is identified by a unique user-assigned key in relation to the bucket. Buckets and objects within them can be managed manually using the web interface through the console and programmatically with the Amazon S3 REST API, AWS Command Line Interface (CLI), or AWS SDK.

Every request for an object gets authorized using an access control list (ACL) associated with each object or bucket. Object and Bucket ACLs are independent, meaning that an object does not necessarily inherit the permissions from its bucket. Permission to other AWS account users can also be granted for object access. A bucket can also be configured to log HTTP information to a sibling bucket for data mining operations.

Can Amazon S3 handle HTML5 Video Streaming?

AWS S3 easily handles HTML5 video streaming through basic upload and HTML embed code. You can use any HTML5 open-source video player or browser’s default video playback capabilities with videos hosted on S3. Your HTML code looks like this,

<video controls preload=”auto”
poster=”http://mys3bucket.s3.amazonaws.com/videoImage.jpg”>
<source src=”http://mys3bucket.s3.amazonaws.com/myvideofile.mp4″ type=’video/mp4′ />
</video>

The poster attribute here defines a thumbnail image before the playback.

Customizations during playback or to the player are made via the player frontend, not via AWS. Customizations to the player can be made using a secure video player like that of VdoCipher or java scripts and styling elements for your open-source player.

In the later part, we will also discuss How you can configure an S3 bucket to host your videos. We will do this via uploading video to the bucket, applying global distribution through CloudFront CDN, security, and playback. Using Amazon S3 video hosting with AWS CloudFront to host videos for OTT, on-demand viewing is highly scalable and a faster delivery approach.

Live Video Streaming with AWS S3

Amazon Simple Storage Service (Amazon S3) offers the necessary scalability, data availability, security, and performance required for live video streaming workflows. This service can act as a low-cost origin for live streams, replacing AWS Elemental MediaStore for basic live video origination. Implementing a redundant architecture with AWS Elemental Live and MediaLive ensures a resilient streaming setup. Using a MediaLive standard channel, HLS outputs are generated and directed to two separate Amazon S3 bucket locations, ensuring redundancy. In case of an encoder failure, this setup allows for seamless failover by managing stale manifests and forcing 404 HTTP error codes to trigger redundancy failover as per HLS specifications.

For optimal performance, use adaptive bitrate (ABR) media streaming, organizing media using slash (/) delimiters for each live channel format. Amazon S3 can handle high request rates, achieving up to 3,500 PUT/COPY/POST/DELETE or 5,500 GET/HEAD requests per second per partitioned prefix. Strong read-after-write consistency across all AWS regions ensures that subsequent read requests immediately receive the latest version of an object, maintaining smooth live streaming.

Security features include encryption and access management, with compliance to PCI-DSS, HIPAA, and other regulatory standards. Additionally, content security can be enhanced with access tokenization and Secure Media Delivery at the Edge, while full Digital Rights Management (DRM) can be achieved using DRM + AWS Infrastructure providers like VdoCipher.

Planning an AWS-based Video Infrastructure

The basic objective for planning an AWS S3 Video Streaming Infrastructure is to provide scalable, secure, and faster video delivery for authorized playback or download. AWS S3 provides a scalable infrastructure for video object storage, but further additions are required to enhance the delivery. These additional features include global distribution via AWS CloudFront CDN, transcoding, and encryption. To list down, here are the following necessary components needed to be set up.

  • Setting up an S3 bucket
  • Upload a video to the S3 bucket
  • Transcoding to support Adaptive Bitrate Streaming
  • Encrypting the Files before storage
  • Create a CloudFront origin access identity and CloudFront distribution
  • Configure your CloudFront distribution for your custom domain name
  • Dynamic key exchange playback for Encrypted video chunks

All these components are required as basic features to handle different devices and across globe secure delivery. If adaptive bitrate streaming is not set up, it will lead to playback disruption for low-bandwidth network users. Similarly, CDN provides faster delivery across the globe. Finally, setting up a DRM layer of security will protect your videos from illegal downloads and screen capture. Also, setting up all these components requires your familiarity with coding. Using a secure video hosting solution provider with AWS infrastructure is better if that is your weak or capital-intensive area.

S3 bucket creation and upload process for streaming video

Obviously, there are different methods using the web interface through the console and programmatically with the Amazon S3 REST API, AWS Command Line Interface (CLI), or AWS SDK. For simplicity, we will be discussing the steps via AWS Management Console.

  1. Sign in to the AWS Management Console & select the Amazon S3 console by searching S3.
  2. In the left navigation pane, choose Buckets.
  3. Click on Create bucket.
  4. Enter a bucket name in the next create bucket page.
  5. Choose a preferred region. Keep it closest to your application server, but if only for playback, then closest to the majority audience. When having global viewership, implement CDN.
  6. For Unrestricted Public Access, Disable the “Block all public access,” which is by default. The default setting of “Block all public access” is good if you use Cloudfront CDN with S3. This setting doesn’t block viewers from accessing via Cloudfront CDN.
  7. You can keep other settings as default and click on Create bucket. This will create your bucket and will be ready to host your videos.
  8. In the Objects tab of your new bucket, choose Upload.
  9. On the Upload page, choose Add files under Files and folders.
  10. Choose a video file to upload from your local system and then choose Open.

Finally, Choose Upload, and the console will start showing a progress bar to display the uploading.

Note: If you’re uploading large video files to S3, file size restriction can disrupt your upload. For such use cases, use Amazon S3 Transfer Acceleration or batch processing. Transfer Acceleration can upload a video over long distances at a faster rate.

Why Avoid Using S3 Buckets alone for Serving Video?

Using Amazon S3 alone for serving video can present several challenges, particularly concerning cost and performance. S3 is designed for storage, not for high-performance media delivery. High traffic can overwhelm S3, as it has a limit of 5000 GET requests per second per partition. This can be problematic for high-demand video services. Additionally, egress data costs from S3 can be high.

For a better experience, using a Content Delivery Network (CDN) like Amazon CloudFront is recommended. CloudFront caches content at edge locations, reducing load times and bandwidth costs. It also supports high request rates better than S3 alone. By integrating CloudFront with S3, you get the benefits of distributed content delivery, optimized performance, and reduced costs. For small videos (like 50MB), this setup can significantly enhance delivery speed and reliability.

To implement this, upload your videos to an S3 bucket and configure CloudFront to use this bucket as the origin. Ensure proper cache control headers for efficient caching. While S3 handles storage, CloudFront manages delivery, providing a seamless and efficient video streaming experience.

Create AWS CloudFront Distribution for CDN support

For optimal video streaming, integrating Amazon S3 with a CDN such as CloudFront is advisable. CloudFront improves performance by caching video content at edge locations closer to users, reducing latency and load times. This setup leverages S3 for storage while utilizing CloudFront’s caching capabilities for delivery, mitigating the limitations of S3 alone. CloudFront also offers cost benefits, with cheaper egress rates compared to direct S3 delivery.

Creating an AWS CloudFront distribution is fairly simple, but it may require additional steps like securing your S3 access by providing access to a special CloudFront user only. We have listed the basic steps of creating a CDN distribution and accessing S3 videos via the distribution URL. Setting up a custom domain for your CloudFront distribution requires further steps and AWS Route 53 service usage.

  1. Sign in to the Console and open the CloudFront console by searching for CloudFront and selecting it.
  2. Choose Distributions in the left navigation pane.
  3. Choose to Create distribution.
  4. In the Origin section, choose the domain name of your S3 origin named after the bucket name you created in S3.
  5. In the Default cache behavior, choose Redirect HTTP to HTTPS.
  6. Keep the default values for other features unless explicitly required and click on Create distribution.

Now, AWS will create a subdomain for your CloudFront distribution, and the S3 video files can be accessed by suffixing the object name at the end of this subdomain. As soon as a request is made via distribution, it will start creating copies of the video file as per the price class of locations chosen.

Batch Transcoding for Adaptive bitrate streaming

Consumers of any small, medium, or large-scale video providers use devices of all sizes and shapes for video playback. Such a large list of screen sizes and network capacity poses a challenge to cater to them more effectively and enhance their user experience. That is why no single object can cater to all of them instead of a range of video objects. These objects are actually copies in different formats, sizes and bitrates. AWS provides a scalable feature to accomplish this task which is called transcoding. There are following major steps included in the process.

  1. Upload input videos
  2. Start processing the video file for different playback options
  3. Storing the transcoded video files within folders under the S3 bucket
  4. Delivering the output video files as per users compatibility

You need to set up S3 Batch Operations, invoke a Lambda function, and call MediaConvert to batch-transcode media objects in an S3 bucket. The outputs are finally moved into the S3 source bucket as separate objects, like,

  • An HLS adaptive bitrate stream for multi-size and bandwidth playback
  • A .mp4 video file
  • Thumbnail images from regular intervals during playback

We will now highlight the categories of steps you need to take to set up batch transcoding for adaptive bitrate streaming. Please refer to the AWS documentation of the steps mentioned below for detailed singular steps.

  1. Create an IAM role for MediaConvert, S3 Batch Operations, and Lambda function
  2. Start a Lambda function for video transcoding
  3. Configure Amazon S3 Inventory as a source bucket
  4. Run an S3 Batch Operations job to process the output media files from and to the S3 bucket

Applying Encryption for security from illegal downloads

AWS itself provides a security mechanism under three server-side encryption mechanisms. They are mutually exclusive options and depend upon how you decide to manage the encryption keys.

  1. Amazon S3-Managed Keys (SSE-S3)
  2. KMS keys Stored in AWS Key Management Service (SSE-KMS)
  3. Customer-Provided Keys (SSE-C)

But many tools can break these key management systems and require some strong protection technology like DRM. It becomes secure majorly due to two reasons, control over devices and browsers by license providers and secondly due to dynamic and updated key exchange system. Again, setting up DRM is fairly technical, and thus, we are listing the basic steps required on your side to be processed technically.

  1. You must acquire a DRM license through providers like Google Widevine and Apple Fairplay. They let you use their system to generate and store your DRM content keys and authenticate the media request during storage and playback.
  2. Set up an AWS server to batch-process the media files for encryption and store your encrypted video files in an S3 bucket.
  3. You will also have to create a live application that authenticates and authorizes your playback users using the licensee dynamic key management system.

Finally, you will need an online media player capable of handling DRM-protected video file playback. This mechanism protects your videos from being illegally downloaded using any tools. On Android and Apple devices, it also protects screen capture, but obviously, it can be video recorded, and it is thus advised to enable a dynamic watermark.

How to playback AWS S3-hosted videos

Playback of AWS S3-hosted video files is fairly simple. You need an open-source video player that supports HTML5 playback. You also get additional features if you use any secure AWS hosting provider like VdoCipher with DRM protection. Otherwise, the playback on any HTML page is similar to what was explained for the HTML5 video earlier.

VdoCipher helps 3000+ customers over 180+ countries to host their videos securely, helping them to boost their video revenues.

The video from AWS S3 will play automatically through the browser player configuration.
The code required is simple and can be integrated manually as an iframe or via plugins, API, etc.

<video controls>
<source src=”http://mys3bucket.s3.amazonaws.com/myvideofile.mp4″>
</video>

Challenges in setting up AWS S3 Video Streaming

Even for a DevOps engineer, all the setup tasks mentioned above are moderately cumbersome. Even if we ignore the bug fixes and exception handling, there is a lot to do from starting the upload to storage and final playback. Also, if you plan to integrate security into your video infrastructure, it requires getting licenses and their integrations. To summarize the challenges, let us list down four major stages required in setting up AWS S3 Video Streaming and their difficulty levels.

  1. S3 bucket creation and upload – Easy
  2. AWS CloudFront set up – Easy
  3. Batch Transcoding for adaptive playback – Moderate
  4. Applying DRM Encryption – Difficult

Small, medium and large-scale video streaming providers mainly use a solution provider with a history of providing the best in class service and features. They can help you evade the challenges in the implementation part and the challenges in creating dashboards, APIs, etc., for easy integration.

Secure Video hosting solution on AWS Infrastructure – VdoCipher

As a secure video hosting solution provider on AWS Infrastructure, the best one based on global reviews is likely VdoCipher. It not only provides AWS S3-hosted videos but provides a ton of other features, like,

Google and Apple FairPlay DRM Encryption – protect videos from unauthorized access and downloads via Widevine and FairPlay DRM.

Dynamic watermarking – to discourage screen capture, details like user ID, email, etc., can be dynamically watermarked over the video.

Secure offline downloads in apps – VdoCipher iOS native SDK securely enables video download on the device.

Google SafetyNet for app-based security – SafetyNet to block playback on duplicate apps.

Plugins – The video plugin by VdoCipher supports WordPress, Moodle, and other CMSs and LMSs.

Geo-Restrictions – For blacklisting or whitelisting specific countries

Smart HTML5 Video Player – dynamic controls with multi-lingual subtitle support, change playback speed, theme options, and API to add overlay buttons for tracking viewer interactions with video.

Adaptive Video Quality with CloudFront CDN – VdoCipher uses Global AWS Cloud Infrastructure. Storage on AWS S3, batch Transcoding via VdoCipher algorithms on AWS EC2, Streaming of content via Cloudfront CDN, and Encryption by integrating Google and Apple DRM. If you want to know more about, what is transcoding, you can visit the blog linked.

FAQs

Does AWS provide DRM protection for video streaming?

AWS has no DRM protection service of its own, which is why it needed to be integrated with Google Widevine and Apple Fairplay DRM for illegal download protection.

Can we load an AWS S3 hosted into an Iframe?

Yes, it requires just placing your video tags under iframe tags in HTML and has compatibility support in every browser.

Is AWS S3 storage expensive for video streaming?

AWS S3 storage is the most affordable storage if you are looking forward to scaling and adding additional features like adaptive bitrate streaming, CDN, and encryption. Also, due to AWS’s affordable pricing, DRM technology integration still makes it highly affordable.

The post AWS S3 Video Streaming & Video Hosting with Amazon CDN and Multi-DRM appeared first on VdoCipher Blog.

]]>
Transmisión de video y alojamiento de video con Amazon S3 y multi-DRM de Amazon CDN en AWS https://www.vdocipher.com/blog/es/aws-s3-video-streaming/ Wed, 08 Nov 2023 09:43:43 +0000 https://www.vdocipher.com/blog/?p=15267 AWS ofrece un conjunto de herramientas para el alojamiento de video, siendo Amazon S3 y Amazon CloudFront las principales entre ellas. Amazon S3 es conocido por su durabilidad, con una tasa de durabilidad del 99.9999% y una disponibilidad del 99.99%, asegurando que los videos almacenados no solo estén seguros, sino prácticamente indestructibles. Amazon S3 ha […]

The post Transmisión de video y alojamiento de video con Amazon S3 y multi-DRM de Amazon CDN en AWS appeared first on VdoCipher Blog.

]]>
AWS ofrece un conjunto de herramientas para el alojamiento de video, siendo Amazon S3 y Amazon CloudFront las principales entre ellas. Amazon S3 es conocido por su durabilidad, con una tasa de durabilidad del 99.9999% y una disponibilidad del 99.99%, asegurando que los videos almacenados no solo estén seguros, sino prácticamente indestructibles. Amazon S3 ha estado proporcionando servicios en la nube desde 2006 y reporta almacenar más de 100 billones de objetos en servidores S3 hasta marzo de 2021. Se hizo popular como un modo fácil y asequible de acceder a servicios de almacenamiento en la nube. Sin embargo, la facilidad de integración y escalabilidad mantiene a los usuarios vinculados. Incluso proveedores de soluciones a gran escala como VdoCipher utilizan la infraestructura de AWS para ofrecer un paquete completo de Transmisión de Video en Amazon S3 con seguridad integrada y otras funciones.

Tabla de contenidos:

Dado que AWS S3 utiliza almacenamiento de objetos en lugar de almacenamiento de bloques, puede transferir datos agrupados con identificadores únicos y etiquetas de metadatos personalizables para formar objetos completos. La infraestructura de almacenamiento de objetos también tiene una latencia reducida cuando el almacenamiento está en ubicaciones remotas. Esto conduce a una entrega más rápida o un rendimiento general mejorado de la aplicación, dependiendo del almacenamiento.

 

Explora más ✅

VdoCipher garantiza el alojamiento de video seguro con cifrado DRM de grado Hollywood

VdoCipher ayuda a más de 2000 clientes en más de 40 países a alojar sus videos de forma segura, ayudándolos a aumentar sus ingresos por videos.

 

¿Qué es el alojamiento de video en Amazon S3?

¿Qué es el Alojamiento de Video en Amazon S3?** Amazon S3 o AWS S3 es un servicio ofrecido por AWS o Amazon Web Services que proporciona almacenamiento de objetos a través de la API REST de Amazon S3 y la interfaz de servicios web. AWS S3 utiliza la infraestructura de almacenamiento escalable utilizada por grandes redes como Netflix y gigantes del comercio electrónico como Amazon.

El almacenamiento de objetos de AWS S3 puede almacenar cualquier objeto, como almacenamiento de archivos para aplicaciones de Internet, videos, copias de seguridad de datos, recuperación, archivos, análisis de datos e incluso almacenamiento en la nube híbrida. Sin embargo, hay algunos límites para el tamaño del archivo del objeto cargado. Un objeto AWS S3 puede tener un tamaño de archivo entre 1 byte y 5 TB. Si un objeto supera los 5 TB, debe dividirse en fragmentos de un máximo de 5 TB antes de cargarlo. También, durante la carga, se puede cargar un máximo de 5 GB en una sola operación de carga. Para cargar objetos de más de 5 GB, el usuario debe utilizar la API de carga multipartes de S3.

Historia e infraestructura de AWS S3

Amazon Web Services comenzó a ofrecer servicios S3 a empresas como servicios web en los Estados Unidos el 14 de marzo de 2006. Se extendió a Europa en noviembre de 2007 y ahora está presente en 190 países en todo el mundo. AWS comenzó con 10 mil millones de objetos en octubre de 2007 y creció diez veces a 102 mil millones de objetos en marzo de 2010. Amazon informó que almacenaba más de 100 billones de objetos en servidores S3 hasta marzo de 2021.

Resultó ser un éxito al proporcionar a pequeñas, medianas y grandes empresas la oportunidad de reemplazar la inversión de capital inicial. Anteriormente, con opciones limitadas, tenían que asumir el gran costo de inversión inicial para configurar servidores, y aún era engorroso mantenerlos en múltiples ubicaciones. Ahora, los usuarios pueden crear cientos o miles de servidores S3 en minutos y ofrecer servicios a nivel mundial a través de la distribución de CDN.

Diseño de infraestructura

Los objetos son las unidades básicas de almacenamiento de AWS S3 y se organizan en contenedores llamados buckets. Cada objeto se identifica mediante una clave única asignada por el usuario en relación con el bucket. Los buckets y los objetos dentro de ellos se pueden gestionar manualmente mediante la interfaz web a través de la consola y de manera programática con la API REST de Amazon S3, la Interfaz de Línea de Comandos de AWS (CLI) o el SDK de AWS.

Cada solicitud de un objeto se autoriza utilizando una lista de control de acceso (ACL) asociada con cada objeto o bucket. Los ACL de objetos y buckets son independientes, lo que significa que un objeto no hereda necesariamente los permisos de su bucket. También se puede otorgar permiso a otros usuarios de cuentas de AWS para acceder al objeto. Un bucket también se puede configurar para registrar información HTTP en un bucket hermano para operaciones de minería de datos.

¿Puede Amazon S3 manejar la transmisión de video en HTML5?

AWS S3 maneja fácilmente la transmisión de video en HTML5 mediante la carga básica y el código de inserción HTML. Puedes utilizar cualquier reproductor de video de código abierto en HTML5 o las capacidades de reproducción de video por defecto del navegador con videos alojados en S3. Tu código HTML se verá así:

<video controls preload=”auto”
poster=”http://mys3bucket.s3.amazonaws.com/videoImage.jpg”>
<source src=”http://mys3bucket.s3.amazonaws.com/myvideofile.mp4″ type=’video/mp4′ />
</video>

El atributo `poster` define una imagen en miniatura antes de la reproducción.

Las personalizaciones durante la reproducción o para el reproductor se realizan a través del frontend del reproductor, no a través de AWS. Las personalizaciones del reproductor se pueden hacer utilizando un reproductor de video seguro como el de VdoCipher o mediante scripts de Java y elementos de estilo para tu reproductor de código abierto.

En la siguiente parte, también discutiremos cómo configurar un bucket de S3 para alojar tus videos. Lo haremos mediante la carga de video al bucket, la aplicación de distribución global a través de CloudFront CDN, la seguridad y la reproducción. Utilizar el alojamiento de video en Amazon S3 con AWS CloudFront para alojar videos para OTT, visualización a pedido es altamente escalable y un enfoque de entrega más rápido.

Explora más ✅

VdoCipher garantiza el alojamiento de video seguro con cifrado DRM de grado Hollywood

VdoCipher ayuda a más de 3000 clientes en más de 40 países a alojar sus videos de forma segura, ayudándolos a aumentar sus ingresos por videos.

Planificación de una infraestructura de video basada en AWS

El objetivo básico para planificar una Infraestructura de Transmisión de Video en AWS S3 es proporcionar una entrega de video escalable, segura y más rápida para la reproducción o descarga autorizada. AWS S3 proporciona una infraestructura escalable para el almacenamiento de objetos de video, pero se requieren adiciones adicionales para mejorar la entrega. Estas características adicionales incluyen la distribución global a través de AWS CloudFront CDN, la transcodificación y la encriptación. Para enumerar, aquí están los siguientes componentes necesarios que deben configurarse.

  • Configuración de un bucket de S3
  • Subida de un video al bucket de S3
  • Transcodificación para admitir la transmisión con Bitrate adaptativo
  • Encriptación de los archivos antes del almacenamiento
  • Crear un acceso de origen de CloudFront y una distribución de CloudFront
  • Configurar la distribución de CloudFront para tu nombre de dominio personalizado
  • Intercambio dinámico de claves para la reproducción de fragmentos de video encriptados

Todos estos componentes son necesarios como características básicas para manejar diferentes dispositivos y una entrega segura en todo el mundo. Si no se configura la transmisión con bitrate adaptativo, conducirá a interrupciones en la reproducción para usuarios de redes de baja capacidad. De manera similar, la CDN proporciona una entrega más rápida en todo el mundo. Finalmente, configurar una capa de seguridad DRM protegerá tus videos contra descargas ilegales y capturas de pantalla. Además, configurar todos estos componentes requiere familiaridad con la codificación. Si esa es tu área débil o intensiva en capital, es mejor utilizar un proveedor de soluciones de alojamiento de video seguro con infraestructura de AWS.

Creación de Bucket en S3 y proceso de subida para transmisión de video

Obviamente, existen diferentes métodos utilizando la interfaz web a través de la consola y de forma programática con la API REST de Amazon S3, la Interfaz de Línea de Comandos de AWS (CLI) o el SDK de AWS. Por simplicidad, discutiremos los pasos a través de la Consola de Administración de AWS.

  1. Inicia sesión en la Consola de Administración de AWS y selecciona la consola de Amazon S3 buscando S3.
  2. En el panel de navegación izquierdo, elige Buckets.
  3. Haz clic en “Create bucket” (Crear bucket).
  4. Ingresa un nombre para el bucket en la siguiente página de creación del bucket.
  5. Elige una región preferida. Manténla lo más cercana posible a tu servidor de aplicaciones, pero si es solo para reproducción, selecciona la región más cercana a la mayoría de la audiencia. Cuando tienes una audiencia global, implementa CDN.
  6. Para el Acceso Público Irrestricto, desactiva la opción “Block all public access” (Bloquear todo el acceso público), que está habilitada de forma predeterminada. La configuración predeterminada de “Block all public access” es buena si utilizas CloudFront CDN con S3. Esta configuración no bloquea el acceso a través de CloudFront CDN.
  7. Puedes dejar las demás configuraciones como predeterminadas y hacer clic en “Create bucket” (Crear bucket). Esto creará tu bucket y estará listo para alojar tus videos.
  8. En la pestaña “Objects” de tu nuevo bucket, selecciona “Upload” (Subir).
  9. En la página de carga, elige “Add files” (Agregar archivos) en “Files and folders” (Archivos y carpetas).
  10. Elige un archivo de video para cargar desde tu sistema local y luego haz clic en “Open” (Abrir).

Finalmente, haz clic en “Upload” (Subir), y la consola comenzará a mostrar una barra de progreso para mostrar la carga.

Nota: Si estás cargando archivos de video grandes en S3, las restricciones de tamaño de archivo pueden interrumpir tu carga. Para tales casos, utiliza Amazon S3 Transfer Acceleration o procesamiento por lotes.  La Transferencia Acelerada puede cargar un video a largas distancias a una velocidad más rápida. 

Crear Distribución de AWS CloudFront para Soporte de CDN

Crear una distribución de AWS CloudFront es bastante simple, pero puede requerir pasos adicionales, como asegurar el acceso a tu S3 proporcionando acceso solo a un usuario especial de CloudFront. Hemos enumerado los pasos básicos para crear una distribución de CDN y acceder a los videos de S3 a través de la URL de distribución. Configurar un dominio personalizado para tu distribución de CloudFront requiere pasos adicionales y el uso del servicio AWS Route 53.

  1. Inicia sesión en la Consola y abre la consola de CloudFront buscando CloudFront y seleccionándola.
  2. Elige “Distributions” (Distribuciones) en el panel de navegación izquierdo.
  3. Elige “Create distribution” (Crear distribución).
  4. En la sección “Origin” (Origen), elige el nombre de dominio de tu origen S3 llamado según el nombre del bucket que creaste en S3.
  5. En “Default cache behavior” (Comportamiento de caché predeterminado), elige “Redirect HTTP to HTTPS” (Redirigir HTTP a HTTPS).
  6. Deja los valores predeterminados para otras características a menos que se requiera explícitamente y haz clic en “Create distribution” (Crear distribución).

Ahora, AWS creará un subdominio para tu distribución de CloudFront, y los archivos de video de S3 se pueden acceder agregando el nombre del objeto al final de este subdominio. Tan pronto como se haga una solicitud a través de la distribución, comenzará a crear copias del archivo de video según la clase de precios de las ubicaciones elegidas.

Explora más ✅

VdoCipher garantiza el alojamiento de video seguro con cifrado DRM de grado Hollywood

VdoCipher ayuda a más de 2000 clientes en más de 40 países a alojar sus videos de forma segura, ayudándolos a aumentar sus ingresos por videos.

Transcodificación por lotes para transmisión con bitrate adaptativo

Los consumidores de proveedores de video de cualquier tamaño utilizan dispositivos de todas las formas y tamaños para la reproducción de video. Tal lista extensa de tamaños de pantalla y capacidad de red plantea el desafío de atenderlos de manera más efectiva y mejorar su experiencia de usuario. Es por eso que ningún objeto único puede satisfacerlos en lugar de una gama de objetos de video. Estos objetos son, de hecho, copias en diferentes formatos, tamaños y bitrates. AWS proporciona una función escalable para llevar a cabo esta tarea que se llama transcodificación. Hay siguientes pasos principales incluidos en el proceso.

  1. Subir videos de entrada
  2. Iniciar el procesamiento del archivo de video para diferentes opciones de reproducción
  3. Almacenar los archivos de video transcodificados dentro de carpetas en el bucket de S3
  4. Entregar los archivos de video de salida según la compatibilidad de los usuarios

Necesitas configurar Operaciones por Lotes de S3, invocar una función Lambda y llamar a MediaConvert para transcodificar por lotes objetos multimedia en un bucket de S3.  Las salidas se mueven finalmente al bucket fuente de S3 como objetos separados, como,

  • Un flujo de bits de bitrate adaptativo HLS para reproducción de varios tamaños y anchos de banda
  • Un archivo de video .mp4
  • Imágenes en miniatura en intervalos regulares durante la reproducción

Ahora destacaremos las categorías de pasos que debes seguir para configurar la transcodificación por lotes para la transmisión de bitrate adaptativo. Consulta la documentación de AWS de los pasos mencionados a continuación para obtener detalles sobre pasos individuales.

  1. Crea un rol IAM para MediaConvert, Operaciones por Lotes de S3 y la función Lambda.
  2. Inicia una función Lambda para transcodificación de video.
  3. Configura Amazon S3 Inventory como un bucket fuente.
  4. Ejecuta un trabajo de Operaciones por Lotes de S3 para procesar los archivos multimedia de salida desde y hacia el bucket de S3.

Aplicar encriptación para la seguridad contra descargas ilegales

AWS mismo proporciona un mecanismo de seguridad bajo tres mecanismos de encriptación en el servidor. Son opciones mutuamente excluyentes y dependen de cómo decidas gestionar las claves de encriptación.

  1. Llaves gestionadas por Amazon S3 (SSE-S3)
  2. Llaves KMS almacenadas en el Servicio de Gestión de Claves de AWS (SSE-KMS)
  3. Llaves proporcionadas por el cliente (S  SE-C)

Pero muchas herramientas pueden romper estos sistemas de gestión de claves y requieren una tecnología de protección fuerte como DRM. Se vuelve segura principalmente debido a dos razones: control sobre dispositivos y navegadores por parte de los proveedores de licencias y, en segundo lugar, debido a un sistema dinámico y actualizado de intercambio de claves. Nuevamente, configurar DRM es bastante técnico, y por lo tanto, estamos enumerando los pasos básicos requeridos de tu parte para ser procesados técnicamente.

  1. Debes adquirir una licencia DRM a través de proveedores como Google Widevine y Apple Fairplay. Te permiten utilizar su sistema para generar y almacenar tus claves de contenido DRM y autenticar la solicitud multimedia durante el almacenamiento y la reproducción.
  2. Configura un servidor de AWS para procesar por lotes los archivos multimedia para la encriptación y almacena tus archivos de video encriptados en un bucket de S3.
  3. También tendrás que crear una aplicación en vivo que autentique y autorice a tus usuarios de reproducción utilizando el sistema de gestión de claves dinámicas del licenciatario.

Finalmente, necesitarás un reproductor de medios en línea capaz de manejar la reproducción de archivos de video protegidos con DRM. Este mecanismo protege tus videos contra descargas ilegales mediante el uso de herramientas. En dispositivos Android y Apple, también protege la captura de pantalla, pero obviamente, se puede grabar en video, y se recomienda habilitar una marca de agua dinámica.

Cómo reproducir videos alojados en AWS S3

La reproducción de archivos de video alojados en AWS S3 es bastante simple. Necesitas un reproductor de video de código abierto que admita la reproducción HTML5. También obtienes características adicionales si usas un proveedor de alojamiento seguro de AWS como VdoCipher con protección DRM. De lo contrario, la reproducción en cualquier página HTML es similar a lo que se explicó para el video HTML5 anteriormente.

El video de AWS S3 se reproducirá automáticamente a través de la configuración del reproductor del navegador.
El código requerido es simple y se puede integrar manualmente como un iframe o a través de complementos, API, etc.

<video controls>
<source src=”http://mys3bucket.s3.amazonaws.com/myvideofile.mp4″>
</video>

Desafíos en la configuración de la transmisión de video en AWS S3

Incluso para un ingeniero de DevOps, todas las tareas de configuración mencionadas anteriormente son moderadamente engorrosas. Incluso si ignoramos las correcciones de errores y el manejo de excepciones, hay mucho por hacer, desde iniciar la carga hasta el almacenamiento y la reproducción final. Además, si planeas integrar seguridad en tu infraestructura de video, se requiere obtener licencias e integrarlas. Para resumir los desafíos, enumeremos cuatro etapas principales requeridas para configurar la transmisión de video de AWS S3 y sus niveles de dificultad.

  1. Creación y carga de Bucket en S3 – Fácil
  2. Configuración de AWS CloudFront – Fácil
  3. Transcodificación por lotes para reproducción adaptativa – Moderado
  4. Aplicación de encriptación DRM – Difícil

Proveedores de transmisión de video de todos los tamaños principalmente utilizan un proveedor de soluciones con un historial de proporcionar el mejor servicio y características. Pueden ayudarte a evadir los desafíos en la implementación y los desafíos en la creación de paneles de control, APIs, etc., para una integración fácil.

aws s3 video streaming, Alojamiento de vídeo

Solución de alojamiento seguro de videos en la infraestructura de AWS

Como proveedor de soluciones de alojamiento seguro de videos en la infraestructura de AWS, el mejor basado en revisiones globales es probablemente VdoCipher. No solo proporciona videos alojados en AWS S3, sino que también ofrece una tonelada de otras funciones, como,

Encriptación DRM Google y Apple FairPlay: protege videos contra accesos y descargas no autorizados a través de Widevine y FairPlay DRM.

Marca de agua dinámica: para desalentar la captura de pantalla, detalles como el ID de usuario, correo electrónico, etc., se pueden agregar dinámicamente al video.

Descargas seguras sin conexión en aplicaciones: el SDK nativo de VdoCipher para iOS permite la descarga segura de videos en el dispositivo.

Google SafetyNet para seguridad basada en aplicaciones: SafetyNet para bloquear la reproducción en aplicaciones duplicadas.

Complementos: el complemento de video de VdoCipher es compatible con WordPress, Moodle y otros CMS y LMS.

Restricciones geográficas: para poner en lista negra o en lista blanca países específicos.

Reproductor de video HTML5 inteligente: controles dinámicos con soporte de subtítulos multilingües, cambio de velocidad de reproducción, opciones de tema y API para agregar botones superpuestos para el seguimiento de interacciones del espectador con el video.

Calidad de video adaptable con CDN de CloudFront: VdoCipher utiliza la infraestructura global de AWS Cloud. Almacenamiento en AWS S3, transcodificación por lotes a través de algoritmos VdoCipher en AWS EC2, transmisión de contenido a través de Cloudfront CDN y encriptación mediante la integración de DRM de Google y Apple. Si quieres saber más sobre qué es la transcodificación, puedes visitar el blog vinculado.

Preguntas frecuentes

¿AWS proporciona protección DRM para la transmisión de video?

AWS no tiene un servicio propio de protección DRM, por lo que es necesario integrarlo con Google Widevine y Apple Fairplay DRM para la protección contra descargas ilegales.

¿Podemos cargar un video alojado en AWS S3 en un Iframe?

Sí, solo necesitas colocar tus etiquetas de video dentro de las etiquetas de iframe en HTML y tiene compatibilidad en todos los navegadores.

¿Es costoso el almacenamiento de AWS S3 para la transmisión de video?

El almacenamiento de AWS S3 es el almacenamiento más asequible si deseas escalar y agregar funciones adicionales como la transmisión con bitrate adaptativo, CDN y encriptación. Además, debido a la asequibilidad de los precios de AWS, la integración de la tecnología DRM aún lo hace altamente asequible.

 

The post Transmisión de video y alojamiento de video con Amazon S3 y multi-DRM de Amazon CDN en AWS appeared first on VdoCipher Blog.

]]>
AWS DRM or Digital Rights Management Solution Providers & Benefits https://www.vdocipher.com/blog/aws-drm/ Thu, 08 Sep 2022 23:55:09 +0000 https://www.vdocipher.com/blog/?p=9527 DRM keeps the digital content secure and helps in minimising online piracy and unauthorised access to premium content. AWS DRM works in various ways, such as limiting the number of devices consuming the media, restricting how the media is loaded/downloaded and much more. DRM services are developing in response to the rise of online piracy […]

The post AWS DRM or Digital Rights Management Solution Providers & Benefits appeared first on VdoCipher Blog.

]]>
DRM keeps the digital content secure and helps in minimising online piracy and unauthorised access to premium content. AWS DRM works in various ways, such as limiting the number of devices consuming the media, restricting how the media is loaded/downloaded and much more. DRM services are developing in response to the rise of online piracy owing to the extensive use of peer to peer exchange models.

DRM restricts the file playback to users who have authenticated with a third-party DRM license server. AWS DRM does so by packaging a DRM header in the segment of the file. The DRM package includes all the information needed to contact the license server and Other encryption information required to play a media file. After the file has been packaged, it is sent to the Content Distribution Network (CDN). A CDN can be a service like CloudFront and Amazon S3 or some non-AWS service such as Akamai. Once the file has been distributed, the license server needs to be contacted to retrieve the license to play a media file. DRM stands beyond Standard Encryption by specifying the complete set of protocols for content protection.

In short, AWS DRM protection system on AWS has the following necessary key steps:

  • The Video Content Provider calls the DRM license provider through a live application with a content key ID to generate a content key.
  • The DRM license provider generates a content key and returns it and a license acquisition URL to the content provider using the key ID.
  • Video Content Provider calls its application to encrypt the content key.
  • By passing the encrypted content key, key ID, and license acquisition URL, the application server now fetches the file to be secured and bundles it with the DRM information.
  • The package server sends the DRM-protected file to the distribution server to distribute the file.

Explore More ✅

VdoCipher ensures Secure Video Hosting with Hollywood Grade DRM Encryption

VdoCipher helps over 2500+ customers over 40+ countries to host their videos securely, helping them to boost their video revenues.

Keep in mind that AWS doesn’t provide a DRM license server of its own, so it needs to be coupled with popular DRM license servers like Google Widevine and Apple Fairplay. They are the best as they have the widest list of compatible devices for protection. Here is a brief about major DRM license providers:

Google Widevine DRM: Google Widevine is the content protection Digital Rights Management service (DRM) from Google to protect premium media. It is used by several streaming platforms and OTT networks like Google Play, Netflix, HBO Max and many more to serve the digital media content securely. It supports adaptive streaming formats such as MPEG-DASH, HLS and Common Media Application Format (CMAF).

Apple FairPlay: FairPlay is Apple’s DRM specification. It has been used for Apple’s iTunes Media Services, and since 2015, FairPlay Streaming has been securely delivering content on iOS, iPadOS, watchOS 7, tvOS, and macOS. FairPlay supports HTTP Live Streaming (HLS) and FairPlay Streaming (FPS) technology to encrypt and protect playback on Apple Devices securely.

Benefits of AWS DRM coupled with Widevine & Fairplay License Server

  • Protection on all Google Android devices, including Android 4.4+
  • Best Browser Protection via Google Widevine and Apple Fairplay for Chrome, Firefox, Microsoft Edge for Android, and Safari browsers.
  • Protection across Google Devices: Widevine provides compatibility with most devices, including Chromecast, Android TV, Roku, and many more. Google Widevine is currently available on more than 5 billion devices and has 1000 partners.
  • Protection across Apple Devices: FairPlay supports different content formats and platforms. It supports Mac OS 10.10, iOS 9.0 or later on iOS native app, tvOS 10.0 or later on Apple TV.
  • Lowest latency and fastest delivery via AWS multi-regional servers
  • Netflix like highest grade video security for premium video content producers
  • Highly recommended for eLearning and OTT service providers because of their video content’s security vulnerabilities

Requirements to deliver DRM protected content via AWS DRM

Firstly, you need to have a DRM license provider like Google Widevine and Apple Fairplay to generate and store your DRM content keys. These keys are authenticated via the license provider whenever the media is requested for streaming.

Secondly, You need a server to store your encrypted video files. In the case of using AWS, it will be Amazon S3.

Thirdly, you will need a content distribution network (CDN) to stream your files through the nearest location instantly. In our case, it is going to be Amazon Cloudfront.

Fourthly, you will need to create a live application that authenticates and authorises your users. Many such application scripts are also required to completely encrypt the media files and store them in the desired location. These applications also need to perform other video DRM protection tasks like key management and encoding.

Lastly, you will also require an online media player capable of handling AWS DRM-protected media and encrypted video files.

aws drm

AWS DRM Solution Provider: VdoCipher

Since integrating the whole key management system requires technical skills, most video producers prefer popular media solution agencies like VdoCipher. Therefore, they have integrated the entire DRM system into AWS infrastructure to give the best results to the clients. VdoCipher provides you with AWS DRM security using Google Widevine and Apple Fairplay License server.

VdoCipher is a SaaS-based subscription solution that simplifies the complex digital rights management (DRM) licensing service integration. It simplifies AWS DRM integration to allow secure streaming across browsers, mobile devices, tablets, personal computers, Android TV, and Chromecast. VdoCipher leverages easy-to-use integration via Web UI and APIs to achieve the whole package. Through connection with AWS S3 and Cloudfront, VdoCipher customers receive a single, secured content workflow, from encoding and encryption to content delivery network (CDN). Below is the list of VdoCipher’s basic features.

Explore More ✅

Protect Your VOD & OTT Platform With VdoCipher Multi-DRM Support

Vdocipher helps several VOD Platform to host their videos securely, helping them to boost their video revenues.

DRM Encrypted Streaming

DRM encryption ensures the video content is stored and transmitted in encrypted form. Hollywood Grade DRM fights video piracy and no downloader or plugin can grab the content.

Watermarking to deter screen capture

The dynamic video watermarking feature restricts piracy of video content using screen capture and protect premium content. The watermark displays email, user id, IP, time stamp with easy customisations for color, speed, transparency and size.

Amazon AWS server and CDN

Pre-integrated with AWS S3 Storage, CloudFront CDN and Encoding Key Exchange through elastic servers. The infrastructure also includes enhanced Key rotation algorithms coupled with hardware security enforcement through device filtering.This ensures Multi-regional, adaptive and highly scalable infra on AWS to meet service growth.

Smart HTML5 Player

VdoCipher Smart HTML5 Video Player offers dynamic player controls for the best viewing experience. With Adaptive Multi-Bitrate Playback, Playback speed change and multi-lingual subtitles, stream HD content even at low internet connectivity. Other features includes video analytics, theme option and custom overlay.

Easy embedding via iframe, API and Plugin for WordPress

VdoCipher provides secure API and easy embed options based on iframe for easy integration through HTML5 and mobile native players.

The post AWS DRM or Digital Rights Management Solution Providers & Benefits appeared first on VdoCipher Blog.

]]>
AWS + CDN Infrastructure: Hosting, playback details explained in video https://www.vdocipher.com/blog/2016/07/aws-cdn-infrastructure-details-vdocipher-video-streaming/ https://www.vdocipher.com/blog/2016/07/aws-cdn-infrastructure-details-vdocipher-video-streaming/#comments Tue, 19 Jul 2016 00:49:15 +0000 https://www.vdocipher.com/blog/?p=579 Video Hosting & Streaming for premium use cases require a robust, scalable and secure infrastructure. I will give a brief overview of the tech stack deployed by VdoCipher in terms of Amazon AWS Server (S3), CDN (AWS Cloudfront), Encoding infrastructure (based on EC2) to effectively ensure the smoothest delivery of video content. Here are the […]

The post AWS + CDN Infrastructure: Hosting, playback details explained in video appeared first on VdoCipher Blog.

]]>
Video Hosting & Streaming for premium use cases require a robust, scalable and secure infrastructure. I will give a brief overview of the tech stack deployed by VdoCipher in terms of Amazon AWS Server (S3), CDN (AWS Cloudfront), Encoding infrastructure (based on EC2) to effectively ensure the smoothest delivery of video content. Here are the details explained in a video.

 

 

The post AWS + CDN Infrastructure: Hosting, playback details explained in video appeared first on VdoCipher Blog.

]]>
https://www.vdocipher.com/blog/2016/07/aws-cdn-infrastructure-details-vdocipher-video-streaming/feed/ 2
Faster video upload to VdoCipher: AWS acceleration + Aspera https://www.vdocipher.com/blog/2016/06/faster-uploads-to-vdocipher-aws-acceleration-aspera/ https://www.vdocipher.com/blog/2016/06/faster-uploads-to-vdocipher-aws-acceleration-aspera/#respond Mon, 06 Jun 2016 07:57:42 +0000 https://www.vdocipher.com/blog/?p=477 Now you can enjoy speedy video upload even of large size from your dashboard & APIs to VdoCipher dashboard. The speedy functionality works with all kinds of video upload- from desktop, ftp, url, server, dropbox. The speeds of video upload to VdoCipher servers now show improvements typically in the range of 50% to 500% for cross-country transfer […]

The post Faster video upload to VdoCipher: AWS acceleration + Aspera appeared first on VdoCipher Blog.

]]>
Now you can enjoy speedy video upload even of large size from your dashboard & APIs to VdoCipher dashboard. The speedy functionality works with all kinds of video upload- from desktop, ftp, url, server, dropbox. The speeds of video upload to VdoCipher servers now show improvements typically in the range of 50% to 500% for cross-country transfer of larger objects, but can go ever higher under certain conditions.

Technology behind faster uploads:

  1. AWS S3 accelerations – Amazon S3 Transfer Acceleration enables fast, easy, and secure transfers of files over long distances between your client and an S3 bucket. Transfer Acceleration takes advantage of Amazon CloudFront’s globally distributed edge locations. As the data arrives at an edge location, data is routed to Amazon S3 over an optimized network path. We are providing this feature at no extra costs to our customers. Automatically built in and integrated with VdoCipher workflow for free and paid accounts.
  2. Asperasoft – Aspera (an IBM company),  helps in receiving terabytes of file-based content per day, from providers at even global distances with simplicity, high speed and low cost – minimal  investment in hardware and Internet bandwidth and a single transfer stream per provider. It also eliminates costly re-sending of files when transfers failed with FTP, laborious monitoring, and network collapse caused by data blasters or parallel FTP streams. VdoCipher uses Aspera for some large enterprise media cases and the costs for it are quite affordable.

So, register for 5GB free trial at VdoCipher.com, upload, embed and enjoy most secure and smooth streaming solution for your online business.

 

 

The post Faster video upload to VdoCipher: AWS acceleration + Aspera appeared first on VdoCipher Blog.

]]>
https://www.vdocipher.com/blog/2016/06/faster-uploads-to-vdocipher-aws-acceleration-aspera/feed/ 0