Skip to content

armgit / ente

Public Imported from GitHub
0

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

Remove preset and crf from mobile video streaming command

Prateek Sunal80de068d6fa0
diff --git a/mobile/apps/photos/lib/services/video_preview_service.dart b/mobile/apps/photos/lib/services/video_preview_service.dart
index 89fa4a6220..4b4f2c3377 100644
--- a/mobile/apps/photos/lib/services/video_preview_service.dart
+++ b/mobile/apps/photos/lib/services/video_preview_service.dart
@@ -466,8 +466,7 @@ class VideoPreviewService {
// scaling, fps, tonemapping
'$filters'
// video encoding with maxrate cap at 2000kbps to preserve smaller bitrates
- // while preventing CRF from exceeding the max bitrate
- '${reencodeVideo ? '-c:v libx264 -crf 23 -preset medium -maxrate 2000k -bufsize 4000k ' : '-c:v copy '}'
+ '${reencodeVideo ? '-c:v libx264 -maxrate 2000k -bufsize 4000k ' : '-c:v copy '}'
// audio encoding
'-c:a aac -b:a 128k '
// hls options