Skip to content

Commit

Permalink
Added less than 780p requirement for mobile Ready
Browse files Browse the repository at this point in the history
  • Loading branch information
ackava committed Mar 3, 2023
1 parent 571a83a commit 9881d54
Showing 1 changed file with 16 additions and 3 deletions.
19 changes: 16 additions & 3 deletions src/commands/probe.ts
Original file line number Diff line number Diff line change
Expand Up @@ -66,12 +66,25 @@ export default class FFProbe extends Command {
}
}

const isMobileReady = isAAC && isH264 && fastStart && isBelow30FPS;

const needsFastStart = isAAC && isH264 && isBelow30FPS && !fastStart;
const lessThan780p =
(videoStream?.height && videoStream.height <= 780)
|| (videoStream?.coded_height && videoStream.coded_height <= 780);

const isMobileReady = isAAC
&& isH264
&& fastStart
&& isBelow30FPS
&& lessThan780p;

const needsFastStart = isAAC
&& isH264
&& isBelow30FPS
&& lessThan780p
&& !fastStart;

return {
... metadata,
lessThan780p,
hasAudio,
hasVideo,
isAAC,
Expand Down

0 comments on commit 9881d54

Please sign in to comment.