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 17:45:31 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
e23f22dccc8a0f4e614b99fcb9be13c36bcb7def
e23f22dc
1 parent
73f30c4a
1.继续调试ffmpeg命令
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
8 deletions
app/Jobs/MakeVideo.php
app/Jobs/MakeVideo.php
View file @
e23f22d
...
...
@@ -78,7 +78,7 @@ class MakeVideo implements ShouldQueue
$animate
=
$this
->
makeAnimate
(
$last_frame_video
,
$end_wallpaper
,
''
,
$signature_x
,
$signature_y
,
$font
);
}
$video
_temp
=
$this
->
getTempPath
();
$video
=
$this
->
getTempPath
();
$cmd
=
$this
->
ffmpeg
.
' -y '
.
' -i '
.
escapeshellarg
(
$file
)
.
' -i '
.
escapeshellarg
(
$animate
)
.
...
...
@@ -98,16 +98,16 @@ class MakeVideo implements ShouldQueue
' -map [v] -map [a]'
.
' -c:v libx264 -bt 256k -r 25'
.
' -ar 44100 -ac 2 -qmin 30 -qmax 60 -profile:v baseline -preset fast '
.
escapeshellarg
(
$video
_temp
);
escapeshellarg
(
$video
);
$this
->
execmd
(
$cmd
);
$video
=
$this
->
getTempPath
();
if
(
$adminMakeVideo
->
thumbnail
==
1
&&
$adminMakeVideo
->
thumbnail_url
){
$thumbnail
=
Storage
::
disk
(
'public'
)
->
path
(
$adminMakeVideo
->
thumbnail_url
);
}
else
{
$thumbnail
=
$last_frame_video
;
}
//
$video = $this->getTempPath();
//
if ( $adminMakeVideo->thumbnail == 1 && $adminMakeVideo->thumbnail_url){
//
$thumbnail = Storage::disk('public')->path($adminMakeVideo->thumbnail_url);
//
}else{
//
$thumbnail = $last_frame_video;
//
}
// $cmd = $this->ffmpeg. ' -y'.
// ' -i ' . escapeshellarg($video_temp).
...
...
Please
register
or
login
to post a comment