Skip to content

Instantly share code, notes, and snippets.

@svagionitis
svagionitis / Create_Iframe_Index_M3U8.bash
Last active June 21, 2024 22:54
Segment an mp4 file to HLS streaming files
#!/bin/bash
# Create an Iframe index from HLS segmented streams
# $1: Filename to be created
# $2: Location of segmented ts files
# Check how many arguments
if [ $# != 2 ]; then
echo "Usage: $0 [Input filename] [Location of segmented streams]"
exit 1;
fi