Sistema de blogs Diarium
Universidad de Salamanca
Pablo Gallardo's Blog
My professional web log about IT, Cybersecurity & Project Management
 

How to download ATRESplayer Videos

ATRESplayer is a video streaming platform that streams videos from Antena 3, La Sexta and other products of Spanish group Atresmedia Televisión.

This post explains how to download videos from ATRESplayer platform.

The post was written on February 2022. The content and technology on ATRESplayer.com may change over time, so there may be one point where this post is no longer current.

Steps to download ATRESplayer videos

1. Set up your system to be able to run AdobeHDS.php script

ATRESplayer uses Adobe HTTPS dynamic streaming (HDS) technology to stream the video. So we need to be able to work with this type of video.
AudioHDS.php is a PHP library that allows to process Adobe HDS videos. We need to download AudioHDS.php script and set up our system to run it to be able to download ATRESplayer videos.
Please check this post about how to run script AdobeHDS.php on Ubuntu. If you are running Windows, macOS or any other system, instructions would be quite similar but you need to be able to make work PHP on your OS.

2. Get the URL of the ATRESplayer video you want to download

Locate and find the URL for the video you want to download.

As an example, you can get this URL:

https://www.atresplayer.com/antena3/noticias/noticias-1/febrero-2022/04-02-22-del-no-al-si-a-la-reforma-laboral-90-segundos-de-infarto-en-el-congreso_61fd38566584a821aaab2fe4/

3. Get the manifest file from video

Go to web “Descargaratresplayer“, enter URL and click.

It will return some URLs, including the F4M manifest URL referencing an .f4m file.

The manifest file from the URL used as example would be:

http://deswowsmootha3player.antena3.com/vsgsm/_definst_/smil:assets5/2022/02/04/D0F5D7A2-3D16-4A31-BF8A-904C01F25F26/es.smil/manifest.f4m

4. Download video from manifest file using AdobeHDS.php

Go to OS terminal or command line, go to the folder where AdobeHDS.php is located and type:

php AdobeHDS.php --manifest http://www.example.com/manifestfile.f4m

where http://www.example.com/manifestfile.f4m is the URL to manifest file.

In the example given in this tutorial, command would be:

php AdobeHDS.php --manifest http://deswowsmootha3player.antena3.com/vsgsm/_definst_/smil:assets5/2022/02/04/D0F5D7A2-3D16-4A31-BF8A-904C01F25F26/es.smil/manifest.f4m

If you are using Linux, you may need to add “sudo” to the beginning of the command to make it work.

External references

pmgallardo

About pmgallardo

I studied Computer Science at University of Salamanca. Since then, I have been working first as developer and then as SAP consutant. This blog is about problems I dealt when using computers, and more important, the solutions I found. Whenever I am on an issue and suddenlly I have a flash that leads me to a solution, I document my discoveries in a post.

, , , , , , , , , , , , , , , , , , , , , , , , , , ,

No comments yet.

Leave a Reply


*

Política de privacidad
Studii Salmantini. Campus de excelencia internacional