weixin_39602108
weixin_39602108
2021-01-12 03:35

How to merge two videos into one video with vstack

Hi Guys.

In the FFMPEG, I merge two videos by Command Line below.

ffmpeg -i test_1.mp4 -i test_2.mp4 -preset ultrafast -filter_complex vstack video_out.mp4

But honestly, I don't understand how to do this in JavaCV.

该提问来源于开源项目:bytedeco/javacv

  • 点赞
  • 写回答
  • 关注问题
  • 收藏
  • 复制链接分享
  • 邀请回答

4条回答

  • weixin_39765339 weixin_39765339 3月前

    Duplicate of issue #955.

    点赞 评论 复制链接分享
  • weixin_39602108 weixin_39602108 3月前

    The issue #955 have not solved yet.

    点赞 评论 复制链接分享
  • weixin_39765339 weixin_39765339 3月前

    Exactly, contributions are welcome!

    点赞 评论 复制链接分享
  • weixin_39765339 weixin_39765339 3月前

    I've implemented support for multiple inputs in commit https://github.com/bytedeco/javacv/commit/3c92eef6e3aa21eca170fc8022fd41254cfcc452. You can refer to this sample code, which does what you need: https://github.com/bytedeco/javacv/blob/master/platform/src/test/java/org/bytedeco/javacv/FrameFilterTest.java#L163

    Please give it a try with the snapshots: http://bytedeco.org/builds/ Thanks!

    点赞 评论 复制链接分享