video-capture

JavaCV video recorder orientation is not proper in portrait mode

你离开我真会死。 提交于 2019-12-04 04:35:30
Hi i am using https://github.com/bytedeco/javacv/ for recording video. When using landscape mode orientation is fine but when i change the orientation to portrait mode the video is rotated -90 degree. Any body have an idea what i may be doing wrong. Here is the code. package org.bytedeco.javacv_android_example.record; import android.app.Activity; import android.content.Context; import android.content.pm.ActivityInfo; import android.hardware.Camera; import android.hardware.Camera.PreviewCallback; import android.media.AudioFormat; import android.media.AudioRecord; import android.media

How can I correctly unpack a V210 video frame using GLSL?

穿精又带淫゛_ 提交于 2019-12-04 04:30:37
I have 10-bit YUV (V210) video frames coming in from a capture card, and I would like to unpack this data inside of a GLSL shader and ultimately convert to RGB for screen output. I'm using a Quadro 4000 card on Linux (OpenGL 4.3). I am uploading the texture with the following settings: video frame: 720x486 pixels physically occupies 933120 bytes in 128-byte aligned memory (stride of 1920) texture is currently uploaded as 480x486 pixels (stride/4 x height) since this matches the byte count of the data internalFormat of GL_RGB10_A2 format of GL_RGBA type of GL_UNSIGNED_INT_2_10_10_10_REV

WebRTC/WebSocket screen recording

无人久伴 提交于 2019-12-04 03:59:42
问题 In my use case I would like to record the screen activity and send it to server [not live]. I looked at few blogs/sample demos for this. But I couldn't find anything related to this. I could find lot of live streaming audio/video but not screen recording. I have the following questions related to this, Which one would be efficient WebRTC/Websockets for this use case? Browser support for WebRTC/Websockets? Is there any other methods to achieve this use case? I am fairly new to WebRTC

Unity: Record video from device camera

风格不统一 提交于 2019-12-04 03:07:37
I want a plugin or a library or a way to record video (sure with sound) in unity (windows standalone) from device camera. Currently, I am able to take screenshots using this camera. Someone says that I can take many screenshots and convert it to one video file. I found a plugin on Asset store called Camera Shoot I want something like it but for windows. Edit 1: Now I am using a library that captures video from unity camera (virtual camera inside unity). I am previewing my camera feed on a canvas that is not shown in my application and I use this library to record this video. This may solve my

Error During Saving a video using python and opencv

梦想与她 提交于 2019-12-04 02:19:41
问题 This is the code to save video from the web cam import numpy import cv2 cap = cv2.VideoCapture(0) # Define the codec and create VideoWriter object fourcc = cv2.VideoWriter_fourcc(*'XVID') out = cv2.VideoWriter('output.avi',fourcc, 20.0, (640,480)) while(cap.isOpened()): ret, frame = cap.read() if ret==True: frame = cv2.flip(frame,0) # write the flipped frame out.write(frame) cv2.imshow('frame',frame) if cv2.waitKey(1) & 0xFF == ord('q'): break else: break cap.release() out.release() cv2

how to draw a shape on top of a playing video by clicking a mouse button in opencv python

半世苍凉 提交于 2019-12-04 02:00:05
问题 Well, to begin with, I should admit that it is a pretty long question and I failed to find possible solutions through googling I have a video in which an intruder tries to intrude into the other side of the fence. I can track the intruder, but when he is in the other side, I should be able to save the intrusion duration into a file. The intrusion area would be something like this I thought these steps: I. Reading a video file; II. Getting the very first frame displayed, 1. Pausing the video

How do I render a video from a list of time-stamped images?

柔情痞子 提交于 2019-12-04 00:04:17
问题 I have a directory full of images following the pattern <timestamp>.png , where <timestamp> represents milliseconds elapsed since the first image. input.txt contains a list of the interesting images: file '0.png' file '97.png' file '178.png' file '242.png' file '296.png' file '363.png' ... I am using ffmpeg to concatenate these images into a video: ffmpeg -r 15 -f concat -i input.txt output.webm How do I tell ffmpeg to place each frame at its actual position in time instead of using a

broken ffmpeg default settings detected

主宰稳场 提交于 2019-12-03 23:37:49
I am getting broken ffmpeg error while VideoWrite using X264 Fourcc codec.I have install all the dependencies.How can I rectify this problem.The sample code that I have been using is as follows. VideoWriter oVideoWriter ("path.mp4", CV_FOURCC('X','2','6','4'), 15, frameSize, false); Operating system : Ubuntu 14.04 64-bit Console Error: [libx264 @ 0x8d6220] broken ffmpeg default settings detected [libx264 @ 0x8d6220] use an encoding preset (e.g. -vpre medium) [libx264 @ 0x8d6220] preset usage: -vpre <speed> -vpre <profile> [libx264 @ 0x8d6220] speed presets are listed in x264 --help [libx264 @

How not to seek to keyframes

让人想犯罪 __ 提交于 2019-12-03 21:36:05
I've tried to find a solution to seek frame by frame (not only to keyframes) in my android app. approach: A simple VideoView of the android sdk : Here I've got a onSeekCompleteListener of the base class MediaPlayer from the onPreparedListener of VideoView and pause the playback right after started it and moved to a preferred position. Problem : Only seeks to keyframes! approach: MediaMetaRetriever : I have got something like this: MediaMetadataRetriever retriever; long Position; ImageView video; TextView lbPosition; @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate

UWP: How to record Screen and save as mp4 file?

我是研究僧i 提交于 2019-12-03 20:43:05
I have figured out how to capture the screen and output it back to a previewer using the sample here: Microsoft Screen Capture Documentation Which is fine as far as it goes. What I can't figure out, nor can I find any documentation is to take those frames and write them to a video file. Ideally I want to stream them directly into an mp4 or similar which I can then use later with the MediaComposition system to do editing. I found VideoFrame.CreateWithDirect3D11Surface but I can't figure out how to add a video frame to an existing video file. The documentation tells you how to create a video