Skip to content

armgit / ente

Public Imported from GitHub
0

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

Read playlist

Manav Rathi6e2f645905fa
diff --git a/desktop/src/main/services/ffmpeg.ts b/desktop/src/main/services/ffmpeg.ts
index b4612561b7..7765a0bb2c 100644
--- a/desktop/src/main/services/ffmpeg.ts
+++ b/desktop/src/main/services/ffmpeg.ts
@@ -437,6 +437,13 @@ const detectVideoDimensions = async (inputFilePath: string) => {
const pseudoFFProbeVideo = async (inputFilePath: string) => {
const command = [
ffmpegPathPlaceholder,
+ // Reduce the amount of output lines we have to parse.
+ ["-hide_banner"],
+ // This function is also used for parsing the dimennsions of the
+ // encrypted HLS playlists. These playlists contain a data URL
+ // specifying the encryption info, but we also need to ask ffmpeg to
+ // allow reading them by specifying the allowed_extensions.
+ ["-allowed_extensions", "ALL"],
["-i", inputPathPlaceholder],
"-an",
["-frames:v", "0"],