Skip to content

Commit

Permalink
Support for variable frame rates.
Browse files Browse the repository at this point in the history
  • Loading branch information
cmcgerty committed Feb 22, 2016
1 parent 8443c6b commit d65e343
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/javascript/Gui/GuiPlayer/GuiPlayer_Transcoding.js
Expand Up @@ -105,7 +105,7 @@ GuiPlayer_Transcoding.checkCodec = function() {
FileLog.write("Video : Container Compatibility: " + this.isContainer + " : " + this.MediaSource.Container);
FileLog.write("Video : Resolution Compatibility: " + this.isResolution + " : " +this.MediaSource.MediaStreams[this.videoIndex].Width + "x" + this.MediaSource.MediaStreams[this.videoIndex].Height);
FileLog.write("Video : BitRate Compatibility: " + this.isBitRate + " : " + this.MediaSource.MediaStreams[this.videoIndex].BitRate + " : " + this.bitRateToUse);
FileLog.write("Video : FrameRate Compatibility: " + this.isFrameRate + " : " + this.MediaSource.MediaStreams[this.videoIndex].RealFrameRate);
FileLog.write("Video : FrameRate Compatibility: " + this.isFrameRate + " : " + this.MediaSource.MediaStreams[this.videoIndex].AverageFrameRate);
FileLog.write("Video : Level Compatibility: " + this.isLevel + " : " + this.MediaSource.MediaStreams[this.videoIndex].Level);
FileLog.write("Video : Profile Compatibility: " + this.isProfile + " : " + this.MediaSource.MediaStreams[this.videoIndex].Profile);

Expand Down Expand Up @@ -191,7 +191,7 @@ GuiPlayer_Transcoding.checkBitRate = function(maxBitRate) {
GuiPlayer_Transcoding.checkFrameRate = function(maxFrameRate) {
if (maxFrameRate == null) {
return false;
} else if (this.MediaSource.MediaStreams[this.videoIndex].RealFrameRate <= maxFrameRate) {
} else if (this.MediaSource.MediaStreams[this.videoIndex].AverageFrameRate <= maxFrameRate) {
return true;
} else {
return false;
Expand Down

0 comments on commit d65e343

Please sign in to comment.