Browse Source

segmenter v2 fixes (#1696)

pull/1697/head
Jason Dove 2 years ago committed by GitHub
parent
commit
b4fe38d4ae
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 2
      CHANGELOG.md
  2. 2
      ErsatzTV.FFmpeg/OutputFormat/OutputFormatConcatHls.cs
  3. 4
      ErsatzTV.Scanner/ErsatzTV.Scanner.csproj
  4. 7
      ErsatzTV/Pages/Channels.razor

2
CHANGELOG.md

@ -78,6 +78,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).
- Fix MySql database migrations - Fix MySql database migrations
- Fix Plex library scans with MySql/MariaDB - Fix Plex library scans with MySql/MariaDB
- Fix block playout playback when no deco is configured - Fix block playout playback when no deco is configured
- Fix `HLS Segmenter V2` to delete old segments (use less disk space while channel is active)
### Changed ### Changed
- Use ffmpeg 7 in all docker images - Use ffmpeg 7 in all docker images
@ -88,6 +89,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).
- Using accurate BANDWIDTH value in multi-variant playlist - Using accurate BANDWIDTH value in multi-variant playlist
- Using proper MIME types for statically-served `.m3u8` and `.ts` files - Using proper MIME types for statically-served `.m3u8` and `.ts` files
- Serving playlists with gzip compression - Serving playlists with gzip compression
- Use `HLS Segmenter V2` for channel preview when channel is configured for `HLS Segmenter V2`
## [0.8.6-beta] - 2024-04-03 ## [0.8.6-beta] - 2024-04-03
### Added ### Added

2
ErsatzTV.FFmpeg/OutputFormat/OutputFormatConcatHls.cs

@ -37,7 +37,7 @@ public class OutputFormatConcatHls : IPipelineStep
"-f", "hls", "-f", "hls",
"-hls_segment_type", segmentType, "-hls_segment_type", segmentType,
//"-hls_init_time", "2", //"-hls_init_time", "2",
"-hls_playlist_type", "event", //"-hls_playlist_type", "event",
"-hls_time", $"{OutputFormatHls.SegmentSeconds}", "-hls_time", $"{OutputFormatHls.SegmentSeconds}",
"-hls_list_size", "25", // burst of 45 means ~12 segments, so allow that plus a handful "-hls_list_size", "25", // burst of 45 means ~12 segments, so allow that plus a handful
"-segment_list_flags", "+live", "-segment_list_flags", "+live",

4
ErsatzTV.Scanner/ErsatzTV.Scanner.csproj

@ -42,8 +42,4 @@
</AssemblyAttribute> </AssemblyAttribute>
</ItemGroup> </ItemGroup>
<ItemGroup>
<Folder Include="Application\Streaming\" />
</ItemGroup>
</Project> </Project>

7
ErsatzTV/Pages/Channels.razor

@ -176,7 +176,12 @@
var uri = new UriBuilder(NavigationManager.ToAbsoluteUri(NavigationManager.Uri)); var uri = new UriBuilder(NavigationManager.ToAbsoluteUri(NavigationManager.Uri));
uri.Path = uri.Path.Replace("/channels", $"/iptv/channel/{channel.Number}.m3u8"); uri.Path = uri.Path.Replace("/channels", $"/iptv/channel/{channel.Number}.m3u8");
uri.Query = "?mode=segmenter"; uri.Query = channel.StreamingMode switch
{
StreamingMode.HttpLiveStreamingSegmenterV2 => "?mode=segmenter-v2",
_ => "?mode=segmenter"
};
if (JwtHelper.IsEnabled) if (JwtHelper.IsEnabled)
{ {
uri.Query += $"&access_token={JwtHelper.GenerateToken()}"; uri.Query += $"&access_token={JwtHelper.GenerateToken()}";

Loading…
Cancel
Save