video-capture

How to decode the H.264 video stream received from parcelfiledescriptor

↘锁芯ラ 提交于 2019-12-12 02:48:51
问题 I'm creating an Android application of live video streaming between two android phone. I've already established a socket connection between these devices. I'm capturing video in one device and send the stream to other device but currently I just want to save in the receiver side mobile device and save it. I'm recording using MediaRecorder in one device , so to stream to the receiver I,m using parcelfiledescriptor object by setting the data Client side code mediaRecorder.setAudioSource

Stopping IMediaControl never ends

妖精的绣舞 提交于 2019-12-12 02:36:09
问题 I'm using DirectShowLib-2005 for my C#/WPF project. When camera starts, I run media control: m_FilterGraph = new FilterGraph() as IFilterGraph2; /* Initializations */ IMediaControl mediaCtrl = m_FilterGraph as IMediaControl; hr = mediaCtrl.Run(); DsError.ThrowExceptionForHR(hr); Application Runs, camera works good. But sometimes (not always) when I quit the application freeze. I paused the debugger and I saw that the application is stop on the following line: if (m_FilterGraph != null) {

how fix this exception on android : Fail to connect to camera service

点点圈 提交于 2019-12-12 01:43:19
问题 I have bellow code for capturing video. At the first time this code works well but when I back from activity and choose capture video( I have a list at main which one of it choices is capture video) ,then gives me this error: java.lang.RuntimeException: Fail to connect to camera service error. I dont know what line of my code makes this error. How I fix this problem? protected void startRecording() throws IOException { mCamera.stopPreview(); mCamera.unlock(); mrec = new MediaRecorder(); //

How can I create a video from a list of JPEG files? [closed]

狂风中的少年 提交于 2019-12-11 23:56:15
问题 Closed . This question needs to be more focused. It is not currently accepting answers. Want to improve this question? Update the question so it focuses on one problem only by editing this post. Closed 5 years ago . I did search and all I got is Windows Media Encoder Series 9 and I am not sure if DirectX can also do it, but I can't find any way to learn it. I even tried this tutorial but I can' t run the application, it gives me a bug (I did install Windows Media Encoder Series 9 and the SDK)

Retrieve video files - Sony remote camera API

流过昼夜 提交于 2019-12-11 19:36:36
问题 In the Sony remote camera API, it is possible to take a photo and retrieve it from a given URL. It is also possible to record a video to the camera (see the Sony developer pages at http://developer.sony.com/develop/cameras/ for how). Is it possible to retrieve that video from the camera after it has been recorded? See this question on the Sony Developer forums. The current PlayMemories Mobile allows you to transfer the files from the camera, however I do not see any API command to retrieve

How to grab a single image from a video stream without connecting the stream (bandwidth issue)

こ雲淡風輕ζ 提交于 2019-12-11 17:25:57
问题 Not sure it is possible, but how can I get a single Image from video stream WITHOUT connecting the stream (rtsp) itself (I have bandwidth issue)? (priority to python but any code framework/language will be good). This is an example SDP file of the stream: v=0 o=Teleste 11501847 688 IN IP4 1.1.1.1 s=unnamed (mpeg4/tx-1) i=Teleste MP-X AUDIO/VIDEO Encoder c=IN IP4 221.1.1.1/64 t=0 0 m=video 4002 RTP/AVP 96 b=AS:6400 a=rtpmap:96 MP4V-ES/90000 a=fmtp:96 profile-level-id=1;config

(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

Video preview in C#

◇◆丶佛笑我妖孽 提交于 2019-12-11 13:54:25
问题 I have a webcam capture app and I'm trying to implement a video preview in my WPF UI. Capturing happens in a C++ DLL. I have a current solution but I'm not too happy with it. The main goal is that the video preview in the UI doesn't interfere with the C++ DLL much, as it has to compress the video frames and write them to disk. I won't be able to display every frame, because the compression is fairly CPU-intensive. My current video preview solution is: An Image control is used in my window,

Record Video with Audio using Webcam in HTML Webpage

跟風遠走 提交于 2019-12-11 12:41:27
问题 I wish to know how to record a video from webcam which also records audio, currently the solutions out there like getUserMedia only records Video or Audio, one at a time, it does not record video that has audio in it. I need to create a website that allows users to RECORD LIVE VIDEO and save it in the website. I tried using some of the existing plugins like navigator.getUserMedia to record the video but that video get's recorded without any audio. So I just wish to know what changes do I need

OpenCV 'cvQueryFrame' non-blocking on OS X?

强颜欢笑 提交于 2019-12-11 10:02:15
问题 when I perform a cvQueryFrame on Windows, the API blocks until an image is delivered. On Mac OS X, I am at 100% CPU utilization, while only querying for an image and displaying it in a window. I am at the latest SVN version. Can anyone confirm my experience? Am I doing something wrong? Is there a work-around? My loop code looks like this: while(key != 'q') { if (frame) cvShowImage("Live Cam", frame); frame = NULL; frame = cvQueryFrame(capture); key = cvWaitKey(10); } 回答1: I just executed a