Showing
1 changed file
with
8 additions
and
8 deletions
... | @@ -78,7 +78,7 @@ class MakeVideo implements ShouldQueue | ... | @@ -78,7 +78,7 @@ class MakeVideo implements ShouldQueue |
78 | $animate = $this->makeAnimate($last_frame_video, $end_wallpaper, '', $signature_x, $signature_y, $font); | 78 | $animate = $this->makeAnimate($last_frame_video, $end_wallpaper, '', $signature_x, $signature_y, $font); |
79 | } | 79 | } |
80 | 80 | ||
81 | - $video_temp = $this->getTempPath(); | 81 | + $video = $this->getTempPath(); |
82 | $cmd = $this->ffmpeg . ' -y ' . | 82 | $cmd = $this->ffmpeg . ' -y ' . |
83 | ' -i ' . escapeshellarg($file) . | 83 | ' -i ' . escapeshellarg($file) . |
84 | ' -i ' . escapeshellarg($animate) . | 84 | ' -i ' . escapeshellarg($animate) . |
... | @@ -98,16 +98,16 @@ class MakeVideo implements ShouldQueue | ... | @@ -98,16 +98,16 @@ class MakeVideo implements ShouldQueue |
98 | ' -map [v] -map [a]' . | 98 | ' -map [v] -map [a]' . |
99 | ' -c:v libx264 -bt 256k -r 25' . | 99 | ' -c:v libx264 -bt 256k -r 25' . |
100 | ' -ar 44100 -ac 2 -qmin 30 -qmax 60 -profile:v baseline -preset fast ' . | 100 | ' -ar 44100 -ac 2 -qmin 30 -qmax 60 -profile:v baseline -preset fast ' . |
101 | - escapeshellarg($video_temp); | 101 | + escapeshellarg($video); |
102 | 102 | ||
103 | $this->execmd($cmd); | 103 | $this->execmd($cmd); |
104 | 104 | ||
105 | - $video = $this->getTempPath(); | 105 | +// $video = $this->getTempPath(); |
106 | - if ( $adminMakeVideo->thumbnail == 1 && $adminMakeVideo->thumbnail_url){ | 106 | +// if ( $adminMakeVideo->thumbnail == 1 && $adminMakeVideo->thumbnail_url){ |
107 | - $thumbnail = Storage::disk('public')->path($adminMakeVideo->thumbnail_url); | 107 | +// $thumbnail = Storage::disk('public')->path($adminMakeVideo->thumbnail_url); |
108 | - }else{ | 108 | +// }else{ |
109 | - $thumbnail = $last_frame_video; | 109 | +// $thumbnail = $last_frame_video; |
110 | - } | 110 | +// } |
111 | 111 | ||
112 | // $cmd = $this->ffmpeg. ' -y'. | 112 | // $cmd = $this->ffmpeg. ' -y'. |
113 | // ' -i ' . escapeshellarg($video_temp). | 113 | // ' -i ' . escapeshellarg($video_temp). | ... | ... |
-
Please register or login to post a comment