Parses F4V Index files (f4x) to create HDS Fragments
In the directory holding mystreamSeg1234.f4x
and mystreamSeg1234.f4f
:
python hds_seg_fragmenter.py mystreamSeg1234.f4x
This will create the fragments in the current directory, which can be served by any file serving HTTP server, such as Apache HTTPD, Nginx, IIS. Upload to S3 for instant cloud-scale serving.
Be sure to set the following mime types:
Fragments: video/f4f
.bootstrap: application/binary
.f4m: application/f4m
If your HDS packager has created multiple segments for an asset, you may pass multiple .f4x files or use wildcards:
python hds_seg_fragmenter.py mystreamSeg*.f4x
S3Inotifier monitors a directory for changes, automatically fragments and uploads all components to an S3 bucket.
The encrypted video and audio is unaltered during the fragmentation process. As long as the client is able to reference the .drmmeta file and/or the drm data within the stream-level .f4m file, and retrieve the required keys, the client will be able to play the content.
python hds_seg_fragmenter.py --help
- Bitstring - https://pypi.python.org/pypi/bitstring/
- pyinotify (Only required for S3Inotifier - Linux Only)