video-processing

How can I combine a multiple videos into one single video and set the position of them using Python

一世执手 提交于 2019-12-11 17:24:42
问题 My problem is that, I have 4 videos and I would like to combine and fit them into one single video and play them at once using Python. Each of the video are set in the position (e.g. top, bottom, left, right) like a hologram video like this. Are there any ways which can help me implement this? I've found some related source which is similar to my problem but I cannot manage to apply it for my problem. Thank you in advance 回答1: You can try to merge all images together by copying them into one

(Android/Java) How to capture a frame from the VideoPlayer widget flutter?

99封情书 提交于 2019-12-11 16:26:53
问题 Is there any way to get the current frame from the VideoPlayer in the form of a Image? (Note: The RenderRepaintBoundary technique doesn't work in this case) Update: I found a plugin which can solve my problem in its own way. https://pub.dev/packages/video_thumbnail#-readme-tab- But the problem is that it only captures the first frame irrespective of the time given to it (in ms). After navigating and testing different parts of the plugin for a while this is where I had ended up. Can any

How do I efficiently manage the various conversion tasks?

房东的猫 提交于 2019-12-11 14:05:21
问题 I am making a video converter as a holiday project. I was planning on using an XML file to represent the pending tasks so the user can save the tasks. here is what it will look like: <?xml version="1.0" ?> <task-list> <task> <input-location> </input-location> <output-location> </output-location> <bit-rate> </bit-rate> <output-width> </output-width> <output-height> </output-height> <target-device> </target-device> </task> . . . . </task-list> Now, here is what I have in mind: 1. Parse this to

Scale the video up from a smaller size(Re-scale)

为君一笑 提交于 2019-12-11 12:21:45
问题 I'm actually looking for is to not just the quality but resize the entire video to a greater resolution using the AV foundation. I have a videos in 320x240 and 176x144 in mp4 quality and I want to resize video upto size 1280x720 , but AVAssetExportSession class not allow to scale the video up from a smaller size. 回答1: try AVMutableVideoCompositionLayerInstruction and CGAffineTransform. This code will help the understanding. https://gist.github.com/zrxq/9817265 来源: https://stackoverflow.com

JavaCV Error in Android

 ̄綄美尐妖づ 提交于 2019-12-11 12:10:02
问题 It may be a previously asked related issue regarding JavaCV on Android.My main objective is to apply grayscale/other image effect on video. File sourceFile = new File(Environment.getExternalStorageDirectory() + File.separator + "test.mp4"); FFmpegFrameGrabber ffg = new FFmpegFrameGrabber(sourceFile); OpenCVFrameConverter.ToIplImage converter = new OpenCVFrameConverter.ToIplImage(); try { ffg.start(); int count = 0; while (true) { Log.d("JAVA_CV", "Counting . . . " + count); Frame original

FFmpeg how to get an image for a particular 'coded_picture_number' together with motion vectors

那年仲夏 提交于 2019-12-11 09:45:26
问题 I am looking for ways to get this output from ffmpeg: Basically, I would like to pass to the shell, a command that allows me to output a particular frame number, let's say coded_picture_number=200 with the motion vectors drawn into it. Any clue? Thanks in advance. 回答1: This ffmpeg -flags2 +export_mvs -i video.avi -vf 'select=gte(n\,200),codecview=mv=pf+bf+bb' -vframes 1 frame.png will open video.avi , skip first 200 frames ( n starts from 0), visualize motion vectors (all types), and writes

Capurting Frames from a video file without playing it on screen

让人想犯罪 __ 提交于 2019-12-11 07:35:48
问题 I am a beginner in java programming language, Recently I have got a work to capture frames from a video file, I have also developed a program that does so, but it does that when the video is played on screen with the help of any player. I have developed following program to do so. public class Beginning implements Runnable { private Thread thread; private static long counter = 0; private final int FRAME_CAPTURE_RATE = 124; private Robot robot; public Beginning() throws Exception { robot = new

object traking within a video file

夙愿已清 提交于 2019-12-11 07:28:45
问题 I have an intresting project assigned to me , and I would like if you can provide me with an idea of what I should look for and read and learn. (Im not asking for solutions ) I have to make a windows application using C# that have an option to load a video file (avi or any) and then the application detect a specific color or an object such as a ball or a face or whatever. I heard there is a library called opencv and Im learning a lot from it . I would like to learn more and more , but I want

How to implement video and audio merger program?

蹲街弑〆低调 提交于 2019-12-11 06:55:34
问题 I want to make a program which takes video and audio and merges them. Video type or audio type is not important for me. How can I make this? Does any library exist for this? I know there are many programs about this topic but I want to learn how to implement such a program. 回答1: The technical term for what you are trying to do is ' multiplexing ', and commonly referred to as ' muxing '. FFmpeg is a multiplatform command line tool that does this, and arguable the industry standard. Many

RangeSeekBarView how to select a fixed range frame using custom RangeSeekBarView

元气小坏坏 提交于 2019-12-11 04:37:30
问题 I am using following code to select the range of video to Trime but I want select only part of 30s from total duration (2:30) like Whatsapp is doing. Referring to example: click here for example following is my custom class designed for RangeSeekBarView public class LeftRightRangeSeekBarView extends View { private static final String TAG = LeftRightRangeSeekBarView.class.getSimpleName(); private int mHeightTimeLine; private List<ThumbObjectClass> mThumbs; private List<OnRangeSeekBarListener>