李帅

1.优化ffmpeg命令,适配各种类型视频

...@@ -409,7 +409,7 @@ class AdminMakeImmerse implements ShouldQueue ...@@ -409,7 +409,7 @@ class AdminMakeImmerse implements ShouldQueue
409 'textfile=' . escapeshellarg($text_file) . ':' . 409 'textfile=' . escapeshellarg($text_file) . ':' .
410 'fontsize=' . $this->calcFontSize($component->font_size) . ':' . 410 'fontsize=' . $this->calcFontSize($component->font_size) . ':' .
411 // 'fontcolor=' . $text_color . '@' . $opacity . ':' . 411 // 'fontcolor=' . $text_color . '@' . $opacity . ':' .
412 - 'fontcolor_expr=' . $text_color . '%{eif\\: clip(255*(1*between(t\\, ' . $DE . ' + ' . $FID . '\\, ' . $DE . ' - ' . $FOD . ') + ((t - ' . $DS . ')/' . $FID . ')*between(t\\, ' . $DS . '\\, ' . $DS . ' + ' . $FID . ') + (-(t - ' . $DE . ')/' . $FOD . ')*between(t\\, ' . $DE . ' - ' . $FOD . '\\, ' . $DE . ') )\\, 0\\, 255) \\: x\\: 2 }:' . 412 + 'fontcolor_expr=' . $text_color . '%{eif\\: clip\\(255*\\(1*between\\(t\\, ' . $DE . ' + ' . $FID . '\\, ' . $DE . ' - ' . $FOD . '\\) + \\(\\(t - ' . $DS . '\\)/' . $FID . '\\)*between\\(t\\, ' . $DS . '\\, ' . $DS . ' + ' . $FID . '\\) + \\(-\\(t - ' . $DE . '\\)/' . $FOD . '\\)*between\\(t\\, ' . $DE . ' - ' . $FOD . '\\, ' . $DE . '\\)\\)\\, 0\\, 255\\) \\: x\\: 2 }:' .
413 'x=' . escapeshellarg(VideoTemp::POSITION_FFMPEG[$component->position][0]) . ':' . 413 'x=' . escapeshellarg(VideoTemp::POSITION_FFMPEG[$component->position][0]) . ':' .
414 'y=' . escapeshellarg(VideoTemp::POSITION_FFMPEG[$component->position][1]) . ':' . 414 'y=' . escapeshellarg(VideoTemp::POSITION_FFMPEG[$component->position][1]) . ':' .
415 'fix_bounds='. $fix_bounds . ':' . 415 'fix_bounds='. $fix_bounds . ':' .
......