Toggle navigation
Toggle navigation
This project
Loading...
Sign in
OnePoem
/
OnePoem-Server
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Snippets
Network
Create a new issue
Builds
Commits
Issue Boards
Authored by
李帅
2022-04-06 18:45:29 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
967777fab98d2832439dcadd97554792545e49b0
967777fa
1 parent
b00b3356
1.继续调试ffmpeg命令
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
3 deletions
app/Jobs/MakeVideo.php
app/Jobs/MakeVideo.php
View file @
967777f
...
...
@@ -60,8 +60,7 @@ class MakeVideo implements ShouldQueue
$signature
=
"一言"
;
$signature_x
=
0
;
$signature_y
=
-
20
;
$content
=
$adminMakeVideo
->
poem
->
title
.
$adminMakeVideo
->
poem
->
author
.
PHP_EOL
.
$adminMakeVideo
->
poem
->
content
.
PHP_EOL
;
$content
=
$adminMakeVideo
->
poem
->
content
.
PHP_EOL
;
$content_position
=
$adminMakeVideo
->
getContentPosition
();
// 转换logo大小
// $watermark = $this->translateLogo(Storage::disk('public')->path('image/logo.jpg'));
...
...
@@ -87,7 +86,7 @@ class MakeVideo implements ShouldQueue
' -filter_complex "[0:0] '
.
'drawtext="'
.
'fontfile='
.
escapeshellarg
(
$font
)
.
':'
.
'text='
.
escapeshell
arg
(
$content
)
.
':'
.
'text='
.
escapeshell
cmd
(
$content
)
.
':'
.
'fontsize=43:'
.
'fontcolor=white@1.0:'
.
'x='
.
$content_position
[
0
]
.
':'
.
...
...
Please
register
or
login
to post a comment