Skip to content

Commit

Permalink
Update methods
Browse files Browse the repository at this point in the history
  • Loading branch information
SubJunk committed Jul 28, 2024
1 parent b55d393 commit f23f467
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/main/java/net/pms/encoders/FFMpegVideo.java
Original file line number Diff line number Diff line change
Expand Up @@ -708,7 +708,7 @@ public List<String> getVideoBitrateOptions(StoreItem item, MediaInfo media, Outp
x264CRF = "16";

// Lower quality for 720p+ content
if (media.getWidth() > 720 && !params.getMediaRenderer().isTranscodeToH265()) {
if (media.getWidth() > 720 && !encodingFormat.isTranscodeToH265()) {
x264CRF = "19";
}
}
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/net/pms/encoders/MEncoderVideo.java
Original file line number Diff line number Diff line change
Expand Up @@ -970,7 +970,7 @@ public ProcessWrapper launchTranscode(
x264CRF = "16";

// Lower quality for 720p+ content
if (defaultVideoTrack.getWidth() > 720 && !params.getMediaRenderer().isTranscodeToH265()) {
if (defaultVideoTrack.getWidth() > 720 && !encodingFormat.isTranscodeToH265()) {
x264CRF = "19";
}
}
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/net/pms/encoders/VLCVideo.java
Original file line number Diff line number Diff line change
Expand Up @@ -415,7 +415,7 @@ private List<String> getVideoBitrateOptions(UmsConfiguration configuration, Medi
x264CRF = "16";

// Lower CRF for 720p+ content
if (media.getWidth() > 720 && !params.getMediaRenderer().isTranscodeToH265()) {
if (media.getWidth() > 720 && !encodingFormat.isTranscodeToH265()) {
x264CRF = "19";
}
}
Expand Down

0 comments on commit f23f467

Please sign in to comment.