四个视频应均匀分布在整个区域。 我正在尝试使用此代码,但找不到错误。 logo.png文件的大小为1920x1080。
<div class='comments-container'>
@foreach($comments as $comment)
<div class="comment-flexbox">
<div class="comment-container">
<a href='{{ route('profile', $comment->user->username) }}'>
<img class='comment-picture' src='{{ url("storage/uploads/profile_pictures/edited/".$comment->user->image_file_name )}}'>
</a>
</div>
<div class="comment-info-container">
<a href='{{ route('profile', $comment->user->username) }}'>{{ $comment->user->username }}</a>
<p>{{ $comment->comment }}</p>
</div>
<div class="comment-actions-container">
@auth
@if(Auth::id() === $comment->user->id || Auth::user()->hasRole('Admin'))
<i class="fas fa-times delete-comment" data-id="{{ $comment->id }}"></i>
@endif
@endauth
</div>
</div>
@endforeach
</div>
视频“ 01.mp4”中的音轨
答案 0 :(得分:1)
每个新叠加层都必须使用以前的叠加层作为主要输入。
ffmpeg -loop 1 -i logo.png -i 01.mp4 -i 02.mp4 -i 03.mp4 -i 04.mp4
-filter_complex
"[1:v]scale=960x540[a]; [2:v]scale=960x540[b]; [3:v]scale=960x540[c]; [4:v]scale=960x540[d];
[0:v][a]overlay=0:0:shortest=1[e]; [e][b]overlay=960:0[f];
[f][c]overlay=540:0[g]; [g][d]overlay=0:960[video]"
-y -ss 00:00:00 -t 00:00:05 -b 3000k -map "[video]" -map 1:a? -c:a copy 05.mp4