-
Ok I'm crazy. I found it in /inc/classes/BxDolTranscoderVideo.php. Is this the only code that I need to change to raise the 512 bitrate?
Lines 156 -168:
protected function applyFilter_Mp4 ($sFile, $aParams)
{
return $this->_convertVideo($sFile, $sFile, '.mp4', $aParams, array (
'strict' => 'experimental',
'vcodec' => 'libx264',
's' => $this->_getOptionSizeForVideo ($sFile, $aParams),
'b:v' => isset($aParams['video_bitrate']) ? $aParams['video_bitrate'] . 'k' : '512k',
'movflags' => '+faststart',
'acodec' => 'aac',
'ar' => '44100',
'b:a' => isset($aParams['audio_bitrate']) ? $aParams['audio_bitrate'] . 'k' : '128k',
));
}
-
-
4k is too much for streaming so I used 1080p. I changed 512k to 4000k and then I updated the database with:
Serialized MySQL query:
UPDATE `sys_transcoder_filters`
SET `filter_params` = 'a:3:{s:1:"h";s:4:"1080";s:10:"force_type";s:3:"mp4";s:14:"ffmpeg_options";a:1:{s:7:"threads";i:14;}}'
WHERE `transcoder_object` = 'bx_videos_video_mp4' AND `filter` = 'Mp4';
Unserialized MySQL query:
array (
'h' => '1080',
'force_type' => 'mp4',
'ffmpeg_options' =>
array (
'threads' => 14,
),
);
-
-