From 16420f12d46e5ef602f572fd03ccfb10bb0e2f9c Mon Sep 17 00:00:00 2001 From: Brion Vibber Date: Mon, 27 Mar 2023 14:41:21 -0700 Subject: [PATCH] heck yeah fallbacks working --- extract-playlist.php | 2 +- fmp4.html | 70 ++++++++++++++++++++++++++++++++++++-------- make-fmp4.sh | 47 +++++++++++++++++++++-------- meta-playlist.php | 25 ++++++++++++++-- 4 files changed, 116 insertions(+), 28 deletions(-) diff --git a/extract-playlist.php b/extract-playlist.php index b539120..263d26d 100644 --- a/extract-playlist.php +++ b/extract-playlist.php @@ -768,7 +768,7 @@ $target = 10; $ext = substr( $filename, strrpos( $filename, '.' ) ); if ( $ext === '.mp3' ) { $segments = extractMP3( $filename ); -} elseif ( $ext === '.mp4' ) { +} elseif ( $ext === '.mp4' || $ext === '.mov' || $ext === '.3gp' ) { $segments = extractFragmentedMP4( $filename ); } else { die( "Unexpected file extension $ext\n" ); diff --git a/fmp4.html b/fmp4.html index 5f65c94..f9bafee 100644 --- a/fmp4.html +++ b/fmp4.html @@ -10,39 +10,70 @@

Caminandes - Llamigos

-

WebM VP9 and VP8 in front, HLS with VP9-in-MP4 video with Opus-in-MP4 or AAC audio behind.

+

Full fallbacks

+ +

WebM VP9 and VP8 in front, HLS with VP9/MJPEG video and Opus/MP3 audio behind.

-

HLS VP9+Opus or VP9+MP3, no fallbacks:

+

Single video codecs

+ +

HLS VP9 + Opus/MP3:

-

HLS MPEG-4 Visual+Opus or MPEG-4 Visual+MP3:

+

HLS Motion-JPEG.mov + Opus/MP3:

+ + +

HLS H.263.3gp + Opus/MP3:

+ + +

HLS H.263.mov + Opus/MP3:

+ + +

HLS MPEG-4 Visual + Opus/MP3:

-

HLS MPEG-4 Visual+MP3:

+

HLS H.264 + Opus/MP3:

-

HLS MPEG-4 Visual+AAC:

+

VP9 + Single fallback

+ +

HLS VP9/MJPEG.mov with Opus/MP3:

-

HLS VP9+Opus or VP9+MP3, with MPEG-4 Visual fallback:

+

HLS VP9/H.263.3gp with Opus/MP3:

+ + +

HLS VP9/H.263.mov with Opus/MP3:

+ + +

HLS VP9/MPEG-4 Visual with Opus/MP3:

-

HLS VP9+Opus or VP9+MP3, with h.264 fallback:

+

HLS VP9/H.264 with Opus/MP3:

@@ -54,9 +85,19 @@ -

HLS h.264 in fMP4:

+

HLS MJPEG.mov in fMP4:

+ +

HLS h.263.3gp in fMP4:

+ + +

HLS h.263.mov in fMP4:

+

HLS MPEG-4 Visual in fMP4:

@@ -64,6 +105,11 @@ +

HLS h.264 in fMP4:

+ +

HLS Opus in fMP4: