Skip to content

armgit / ente

Public Imported from GitHub
0

πŸ’š End-to-end encrypted cloud for everything.

fix: turn rotate off and re-encode to fix iOS issue

Prateek Sunal815848450c26
diff --git a/mobile/lib/services/preview_video_store.dart b/mobile/lib/services/preview_video_store.dart
index 797aa2419d..1f46a81727 100644
--- a/mobile/lib/services/preview_video_store.dart
+++ b/mobile/lib/services/preview_video_store.dart
@@ -107,9 +107,12 @@ class PreviewVideoStore {
_logger.info(
'Generating HLS Playlist ${enteFile.displayName} at $prefix/output.m3u8}',
);
+
final session = await FFmpegKit.execute(
'-i "${mediaInfo!.path}" '
- '-c copy -f hls -hls_time 10 -hls_flags single_file '
+ '-metadata:s:v:0 rotate=0 '
+ '-c:v libx264 -crf 18 -preset veryfast '
+ '-c:a copy -f hls -hls_time 10 -hls_flags single_file '
'-hls_list_size 0 -hls_key_info_file ${keyinfo.path} '
'$prefix/output.m3u8',
);
diff --git a/mobile/pubspec.lock b/mobile/pubspec.lock
index 207a04a821..61268393ef 100644
--- a/mobile/pubspec.lock
+++ b/mobile/pubspec.lock
@@ -2770,7 +2770,7 @@ packages:
description:
path: "."
ref: prateekmedia-patch-1
- resolved-ref: c347ccd60c76f79e71f968661c282f75c27b26fd
+ resolved-ref: "8bce37682e20da618ea155fca1b4756b22621882"
url: "https://github.com/prateekmedia/VideoCompress-forked.git"
source: git
version: "3.1.5"