Hi,
I’ m a student from the university of applied sciences in Zwickau. We think about introducing opencast on our university. I’m currently working on a demo setup to get first experience with the system. I’m trying to compose the presenter & presentation video in one file side by side to publish it for download.
So I‘ m looking for a way to use two input videos in my FFmpeg encoding profile. Something like
profile.both.http. ffmpeg.command = -i #{in.video1.path} -i #{in.video2.path} …
The standard compose operation handler only works on a single file. So is there an out of the box solution for my problem or do I need a custom operation handler?
Thanks for every comment.
best regards
Alexander
profile.video-overlay.work.ffmpeg.command = -i #{left.video.path} -i #{right.video.path} -filter_complex "[0:v] scale=max(1920\\,iw):-1 [video]; [1:v] scale=max(1920\\,iw):-1 [screen]; [screen]pad=3840:ih[screen-padded];[screen-padded][video] overlay=shortest=1:x=1920" -c:v libx264 -qscale:v 2 -strict -2 #{out.dir}/#{out.name}#{out.suffix}
Here at Berkeley, we use it as part of the following profile definition which we've added to our fork of Matterhorn in /base/etc/encoding/matterhorn-movies.properties:
# Video overlay (two video streams)<operation
if="${youtube}"
id="merge-videos"
fail-on-error="true"
exception-handler-workflow="error"
description="Create a side-by-side composition of presenter and presentation videos">
<configurations>
<configuration key="source-flavors">presenter/trimmed,presentation/trimmed</configuration>
<configuration key="target-flavor">presenter/youtube</configuration>
<configuration key="encoding-profile">video-overlay.work</configuration>
<configuration key="target-tag">youtubein</configuration>
</configurations>
</operation>