显示两个影片,然后一起为合并后的视频在一个屏幕上输出 [英] Display two videos together then output as a merged video on a single screen

查看:478
本文介绍了显示两个影片,然后一起为合并后的视频在一个屏幕上输出的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

这问题听起来有点复杂或不明确的,但我会尽量做到清楚,我可以。我已经做了很多的谷歌搜索,并花了很多时间,但没有找到相关的Windows任何东西。

This question may sound a little bit complex or ambiguous, but I'll try to make it as clear as I can. I have done lots of Googling and spent lots of time but didn't find anything relevant for windows.

我想在一个屏幕上播放两个视频。作为一个背景全屏幕和一个在它上面的一个小窗口或小宽/高在右上角。然后我想它由两部影片在一个屏幕上一起玩的输出。

I want to play two videos on a single screen. One as full screen in background and one on top of it in a small window or small width/height in the right corner. Then I want an output which consists of both videos playing together on a single screen.

所以基本上一个视频覆盖另一个,然后我想那流作为输出,使用户可以在以后播放流。

So basically one video overlays another and then I want that streamed as output so the user can play that stream later.

我不要求你写全code,告诉我该怎么做还是怎么做,或工具或第三方SDK我必须使用,使之成为现实。

I am not asking you to write the whole code, just tell me what to do or how to do it or which tool or third party SDK I have to use to make it happen.

更新: 尝试了很多的解决方案。

update: Tried a lots of solution.

1 Xuggler - 。不支持安卓

1.Xuggler- doesn't support Android.

2 JavaCV JJMPEG ? - 不能够找到这表明如何做到这一点的任何教程

2.JavaCV or JJMPEG- not able to find any tutorial which suggested how to do it?

现在找FFMPEG-搜索了很久,但没能找到这表明编码的方式去做任何教程。我发现命令行的方式如何解决它。 因此,任何人都可以提出建议,或点FFMPEG的教程或告诉任何其他方式

Now looking for FFMPEG- searched for a long time but not able to find any tutorial which suggest the coding way to do it. I found command line way to how to fix it. So can anyone suggest or point the tutorial of FFMPEG or tell any other way to

推荐答案

我将开始与<一个href="http://$c$c.google.com/p/javacv/source/browse/#git/src/main/java/com/google$c$c/javacv%253Fstate%253Dclosed"相对=nofollow> JavaCV 。这是相当不错的,灵活的。它应该让你抓帧,复合它们,把它们写回文件。使用FFmpegFrameGrabber和记录类。该组合物可以手工完成。

I would start with JavaCV. It's quite good and flexible. It should allow you to grab frames, composite them and write them back to a file. Use FFmpegFrameGrabber and Recorder classes. The composition can be done manually.

答案的其余部分取决于几件事情:

The rest of the answer depends on few things:

    你想从一个文件/ MEM / URL读
  • 在做什么?
  • 要保存到一个文件/ MEM / URL
  • 在做什么?
  • 在你需要实时处理?
  • 在你需要的不仅仅是简单的图片中画?
  • do you want to read from a file/mem/url?
  • do you want to save to a file/mem/url?
  • do you need realtime processing?
  • do you need something more than simple picture-in-picture?

这篇关于显示两个影片,然后一起为合并后的视频在一个屏幕上输出的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆