在Android的反向视频 [英] Reverse video in android

查看:290
本文介绍了在Android的反向视频的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经录制从摄像头的视频在我的应用程序,并保存在设备storage.Now我想扭转这样的视频,它从backwards.i.e播放。如果视频10秒钟,然后在10秒的最后一帧将成为第一帧开始播放从有到1秒第一frame.I要保存在file.How反转的视频我应该在继续?

I have recorded a video from camera in my app and saved in device storage.Now I want to reverse the video such that it plays from backwards.i.e. if video is of 10 seconds then the last frame at 10th second will become first frame and it starts playing from there to 1st second first frame.I want to save the reversed video in a file.How should i proceed in that?

推荐答案

如果你是ppared使用的ffmpeg您可以使用此方法$ P $ - 它本质上打破了视频为帧,然后以相反的顺序重新构建它:

If you are prepared to use ffmpeg you can use this approach - it essentially breaks the video into frames and then builds it again in reverse order:

  • http://stackoverflow.com/a/8137637/334402

有几种方法在Android中使用的ffmpeg,但包装的方法是其中一个我已经找到了性能和易用性的合理结合。例如一些Android的ffmpeg的包装:

There are several ways to use ffmpeg in Android but the 'wrapper' approach is one which I have found a reasonable blend of performance and ease of use. Some example Android ffmpeg wrapper:

  • http://hiteshsondhi88.github.io/ffmpeg-android-java/
  • https://github.com/guardianproject/android-ffmpeg

这是值得意识到,这将是耗时的移动 - 如果你有能上传到服务器,并做了逆转有奢侈品可能会更快

It's worth being aware that this will be time-consuming on a Mobile - if you have the luxury of being able to upload to a server and doing the reversal there it might be quicker.

这篇关于在Android的反向视频的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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