feat(video): move from ts to fMP4 segments

This commit is contained in:
Gabe Kangas
2026-03-24 11:14:36 -07:00
parent 73206ddf27
commit 9c290fa0d7
22 changed files with 130 additions and 50 deletions
+1 -1
View File
@@ -82,7 +82,7 @@ func getAllFilesRecursive(baseDirectory string) (map[string][]os.FileInfo, error
directory = info.Name()
}
if filepath.Ext(info.Name()) == ".ts" {
if filepath.Ext(info.Name()) == ".m4s" {
files[directory] = append(files[directory], info)
}
+1 -1
View File
@@ -317,7 +317,7 @@ func (s *S3Storage) retrieveAllVideoSegments() ([]s3object, error) {
err := s.s3Client.ListObjectsPages(allObjectsListRequest,
func(page *s3.ListObjectsOutput, lastPage bool) bool {
for _, item := range page.Contents {
if strings.HasSuffix(*item.Key, ".ts") {
if strings.HasSuffix(*item.Key, ".m4s") {
allObjects = append(allObjects, s3object{
key: *item.Key,
lastModified: *item.LastModified,