video-recording

VLC record webcam and stream to chrome linux

空扰寡人 提交于 2019-12-17 10:58:10
问题 I am currently looking for how to accomplish what I have been told is possible. I was told that we would be able use vlc to stream a webcam in linux which would allow for the following: Recording the stream to the local machine for a later upload. Play the stream as it's recording using Chrome's HTML5 video capabilities. Send a start and stop command from the web for the vlc recording. I have been researching this for quite some time and haven't been able to find a viable solution. I am able

Android - Samsung Galaxy S4 Reboot issue

北战南征 提交于 2019-12-11 11:06:45
问题 I am an android developer who is making an app that uses a camera feature. Recently, I updated my app to support GS4. I tested it on my GS4 and it worked fine. Both front and back camera. However, it seems like some users's phone restarts after the record a video with my app. I googled and found this article.. http://www.phonesreview.co.uk/2013/05/14/samsung-galaxy-s4-rebooting-issues-emerge-needs-update-fix/ http://forum.xda-developers.com/showthread.php?t=2271227 It seems like some users

Android Mediarecorder: Getting 3GP instead of MPEG4

一世执手 提交于 2019-12-11 07:51:03
问题 I want to record video only in android with MPEG4 format. I want the container and codec to be MPEG4. So here is what I have done for that. Thread video = new Thread(new Runnable() { public void run() { videoRecorder = new MediaRecorder(); videoRecorder.setPreviewDisplay(surfaceView.getHolder().getSurface()); videoRecorder.setVideoSource(MediaRecorder.VideoSource.DEFAULT); videoRecorder.setOutputFormat(MediaRecorder.OutputFormat.MPEG_4); videoRecorder.setVideoEncodingBitRate(56 * 8 * 1024);

Write frames with non-standard resolution to video in opencv

筅森魡賤 提交于 2019-12-11 01:56:33
问题 Relating to this question: OpenCV VideWriter not working after image resize Is it possible to create videos with opencv's cv2.VideoWriter that have "non-standard" video resolutions, i.e., non-standard aspect ratios? My code so far: fourcc = cv2.VideoWriter_fourcc(*'XVID') video_out = cv2.VideoWriter("video_out.avi", fourcc, 25, (99, 173)) cap = cv2.VideoCapture("video_in.avi") while(cap.isOpened()): ret, frame = cap.read() frame_out = frame[50:50+173,400:400+99] video_out.write(frame_out) if

ffmpeg - generate moov atom

烂漫一生 提交于 2019-12-10 15:33:57
问题 I am currently recording video with blackmagic's prorecorder. I transcode video on-the-fly to mp4 video container with ffmpeg. Duration is unknown as I'm transcoding .ts that prorecorder is outputing to named pipe. My goal is to I try to play this file with browser, while stream is still beeing recorded - Playback is great, but problem is that when I open file, duration is defined to current recording time. So, question is - I would like to generate "fake" moov atom for duration of fe. 8

Can we pause the camera while recording

假如想象 提交于 2019-12-10 11:29:14
问题 In my application I have timer driven video recording functionality. When the camera is in recording mode and if I click on a button on anywhere on the screen the recording should pause. I should be able to continue recording on clicking again. But there is no pause action for recording video in many of the android devices. Is there any other ways of doing it? I found this link but it doesn't give me any hope. can anybody help me? 回答1: you can't do that as no inbuilt function is there what

QT's QMediaRecorder not working - Unable to record from webcam

戏子无情 提交于 2019-12-10 10:28:53
问题 I've been searching everywhere for a solution to this and I've seen some threads here about this problem but without a solution. I'm trying to record a video from two different webcams that I have on my computer. I am able to show the video for both of them but the problem is recording. When I try it nothing happens. No file is saved and the states also never change. Bellow I have attached the code that loads the cameras and the code that loads the QMediaRecorders. I also tried with just one

Recording 60fps video with Camera2(on Android version 21) API

梦想的初衷 提交于 2019-12-09 13:49:39
问题 I'm trying to record a video at 60(or more)fps rate on Camera2(android.hardware.camera2) APIs. Finally, I succeeded recording at 120fps using CameraConstrainedHighSpeedCaptureSession. But it is only targeted at >=120fps use case not for 60fps. Even I tried to record at 60fps using normal capture session(CameraCaptureSession), it only supports <=30fps. I could figure it out through this code below. Range<Integer>[] fpsRanges = characteristics.get(CameraCharacteristics.CONTROL_AE_AVAILABLE

Android record video into a circular buffer and storing it in RAM

梦想的初衷 提交于 2019-12-08 12:59:38
问题 Im looking for a easy way to record video (including audio) into a circular buffer stored in RAM. So I can leave the video recording it will keep the feed in RAM the last 2 minutes and then have the option to commit it to memory if required. Unfortunately, I cannot see an easy way to do this. So far I have investigated using: MediaRecorder - I could not see a way to store the output data in a buffer. Only option is setOutputFile() JavaCV FFmpegFrameRecorder - again the constructor for this

java.io.IOException: Cannot append Mp4TrackImpl{handler='vide'} to Mp4TrackImpl{handler='vide'} since their Sample Description Boxes differ:

只愿长相守 提交于 2019-12-08 12:35:40
问题 While Merging the multiple videos using ffmpeg I have got this Exception. java.io.IOException: Cannot append Mp4TrackImpl{handler='vide'} to Mp4TrackImpl{handler='vide'} since their Sample Description Boxes differ: 回答1: It might be you are using, convert your video in MPEG4. Use H264 format for set the video codec Change this recorder.setVideoCodec(avcodec.AV_CODEC_ID_MPEG4); to this recorder.setVideoCodec(avcodec.AV_CODEC_ID_H264); 来源: https://stackoverflow.com/questions/21595508/java-io