video-processing

Can I use the Gstreamer API to merge 2 videos?

旧城冷巷雨未停 提交于 2019-12-03 10:09:21
问题 I'd like to write a simple linux CLI application that can take 2 video sources (1 of a presenter talking and 1 with their slides and no audio) and merge them. I'd like the entire output video to be the two original videos, side by side. Failing that, my second best option would be a "picture in picture" style video, with the presenter in a small frame in the corner. From a few hours research, GStreamer looks like it might be able to do this. Can anyone confirm it before I spend more time

Android - capture video with watermark

南笙酒味 提交于 2019-12-03 08:36:37
I know how to capture video on android device, but i would like to capture video and add some other information on it e.g. some funny timeclock and save it all to file so the person watching the video will see the exact time of capturing. I would also like to add some watermark. Do you know how can i do it or is it possible on android device? I read the API but couldnt find anything that could help me. I actually don't think that's possible. You can fetch video frames from a camera preview, but there's no good way to encode them to video. The standard video encoder (MediaRecorder) can only

Taking photo every 66 milliseconds on Android phone for colour analysis (Heart Rate Monitor)

北慕城南 提交于 2019-12-03 07:53:36
I'm doing a final year project at university which involves making a medical application for Android, as a practice I have to make a heart rate monitor app. I have worked out that the best way to do this is to look for colour changes in your blood when holding the camera against your finger with the flash switched on. This is where the problems come into play, is it possible to take a photo every 66 milliseconds on the camera, then compare each pair of photos for any intensity changes in order to count a heart beat? or am I better off recording a video and analysing each frame looking for a

How to Show Progress Bar while uploading with percentage

青春壹個敷衍的年華 提交于 2019-12-03 07:40:12
I am uploading video and photo.and its working fine .now i want to show progress bar while uploading data with percentage.i took reference from android hive and its implemented in httpclient and i modified it accordingly httpurlconnection .Any help will appreciated .thank you. This is my main Activity where async task is performing. protected void onProgressUpdate(Integer... progress) { // Making progress bar visible progressBar.setVisibility(View.VISIBLE); // updating progress bar value progressBar.setProgress(progress[0]); // updating percentage value txtPercentage.setText(String.valueOf

how to reduce size of video before upload to server programmatically in android

独自空忆成欢 提交于 2019-12-03 07:22:30
问题 I want to upload video to server, when I catch video from gallery or record from camera , the server response to me that error but when I upload video with size 2 MB , it is uploading successfully. How can I compress the video to reduce the size? I uploaded the video from face book , the size of video on my mobile is 140 MB , but face book make a process on the video and reduce it's size to 1.35 MB 回答1: You have two way to do that: Encode it to a lower bit rate and/or lower resolution. Have a

Play video on the android recorded from the iPhone

送分小仙女□ 提交于 2019-12-03 06:10:51
I am writing video based social app for iOS and android(WinPhone is under waiting). I recorded video in mov format using AVFoundation framework on the iPhone and uploaded it to the server. It can be downloaded and played on the iPhone client. But on the android device, downloaded video can not be played since it's format is not supported on the android. What is the best solution of the video record and play for supporting multiple mobile devices platforms? Comradsky Blog post @ Why Apple Is Winning the Mobile Video Format War...For Now Android uses the flash plugin, and apple uses HLS Today’s

OpenCV + python — grab frames from a video file

南笙酒味 提交于 2019-12-03 03:58:39
问题 I can't seem to capture frames from a file using OpenCV -- I've compiled from source on Ubuntu with all the necessary prereqs according to: http://opencv.willowgarage.com/wiki/InstallGuide%20%3A%20Debian #!/usr/bin/env python import cv import sys files = sys.argv[1:] for f in files: capture = cv.CaptureFromFile(f) print capture print cv.GetCaptureProperty(capture, cv.CV_CAP_PROP_FRAME_WIDTH) print cv.GetCaptureProperty(capture, cv.CV_CAP_PROP_FRAME_HEIGHT) for i in xrange(10000): frame = cv

Video Processing Library for Java

让人想犯罪 __ 提交于 2019-12-03 03:19:57
I want to extract frames from a video and apply some filters on it such as gabor/hough etc. Which Java library would be perfect for handling all kinds of video encodings? I have been looking at GStreamer, JMF, Xuggler etc. but am unable to decide which one would be the best. I'm also looking to edit the frames and make the video with the new frames. If you're looking to do low level operations such as extracting frames and manipulating them, then Xuggler would be the best choice, because the APIs are geared around this low level. It works on ffmpeg so can handle all types of video encodings.

Finding an interesting frame in a video

帅比萌擦擦* 提交于 2019-12-03 03:14:03
问题 Does anyone know of an algorithm that I could use to find an "interesting" representative thumbnail for a video? I have say 30 bitmaps and I would like to choose the most representative one as the video thumbnail. The obvious first step would be eliminate all black frames. Then perhaps look for the "distance" between the various frames and choose something that is close to the avg. Any ideas here or published papers that could help out? 回答1: If the video contains structure, i.e. several shots

Can I use the Gstreamer API to merge 2 videos?

前提是你 提交于 2019-12-03 01:38:42
I'd like to write a simple linux CLI application that can take 2 video sources (1 of a presenter talking and 1 with their slides and no audio) and merge them. I'd like the entire output video to be the two original videos, side by side. Failing that, my second best option would be a "picture in picture" style video, with the presenter in a small frame in the corner. From a few hours research, GStreamer looks like it might be able to do this. Can anyone confirm it before I spend more time trying it out? If it can't, are there other APIs out there that I might be able to use? Here is a simple