Skip to content

A micro service that generates the trick play assets for an HLS video.

Notifications You must be signed in to change notification settings

robertharmless/trickplay-service

Repository files navigation

Trick Play Service

This is a REST API Service to generate the trick play assets for an HLS master.m3u8.


Assumptions:


  • There is a proper HLS manifest 'master.m3u8' availble locally or via the web.
  • There is at least 1 video stream to extract thumbnails from.
  • The stream is not encrypted.

Instructions:


  • Install FFMPEG.
  • Create an .env file.
    cat env_sample > .env
    
  • Update the local .env file with the needed info.
    vi .env
    
  • Run this flask based trick play service.
  • Can import the postman collection from here.

System Info:


  • Created for and tested on Mac OS.
  • Tested with Python 3.9.

Reference:


The trick play module was developed based on specs defined by Roku for HLS streams.

https://developer.roku.com/docs/developer-program/media-playback/trick-mode/hls-and-dash.md

See "HLS considerations" section.

Also notice their code samples: https://github.com/rokudev/samples/tree/master/media/TrickPlayThumbnailsHLS

About

A micro service that generates the trick play assets for an HLS video.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Languages