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:44:47 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
73f30c4a1e2a105834ade1ef6009a266425ec468
73f30c4a
1 parent
6beaf224
1.继续调试ffmpeg命令
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
7 deletions
app/Jobs/MakeVideo.php
app/Jobs/MakeVideo.php
View file @
73f30c4
...
...
@@ -109,12 +109,12 @@ class MakeVideo implements ShouldQueue
$thumbnail
=
$last_frame_video
;
}
$cmd
=
$this
->
ffmpeg
.
' -y'
.
' -i '
.
escapeshellarg
(
$video_temp
)
.
' -i '
.
escapeshellarg
(
$thumbnail
)
.
' -map 1 -map 0 -c copy -disposition:0 attached_pic '
.
escapeshellarg
(
$video
);
$this
->
execmd
(
$cmd
);
//
$cmd = $this->ffmpeg. ' -y'.
//
' -i ' . escapeshellarg($video_temp).
//
' -i ' . escapeshellarg($thumbnail).
//
' -map 1 -map 0 -c copy -disposition:0 attached_pic '.
//
escapeshellarg($video);
//
$this->execmd($cmd);
// 全部合成以后创建 临境
$video_info
=
$this
->
mediainfo
(
$video
);
...
...
@@ -129,7 +129,7 @@ class MakeVideo implements ShouldQueue
'size'
=>
$video_info
[
'format'
][
'size'
],
'poem_id'
=>
$this
->
adminMakeVideo
->
poem_id
,
'temp_id'
=>
$this
->
adminMakeVideo
->
temp_id
,
'thumbnail'
=>
$th
is
->
adminMakeVideo
->
thumbnail_ur
l
,
'thumbnail'
=>
$th
umbnai
l
,
'bgm'
=>
$this
->
adminMakeVideo
->
bgm_url
,
]);
...
...
Please
register
or
login
to post a comment