w3hello.com logo
Home PHP C# C++ Android Java Javascript Python IOS SQL HTML videos Categories
recording screen and webcam to video file
i have a sample code to record the screen by using com.xuggle package import java.awt.AWTException; import java.awt.Dimension; import java.awt.Rectangle; import java.awt.Robot; import java.awt.Toolkit; import java.awt.image.BufferedImage; import java.util.concurrent.TimeUnit; import com.xuggle.mediatool.IMediaWriter; import com.xuggle.mediatool.ToolFactory; import com.xuggle.xuggler.ICodec; public class ScreenRecordingExample { private static final double FRAME_RATE = 50; private static final int SECONDS_TO_RUN_FOR = 20; private static final String outputFilename = "c:/mydesktop.mp4"; private static Dimension screenBounds; public static void main(String[] args) { // let's make a IMediaWriter to write the file. final IMediaWriter writer = ToolFactory.mak

Categories : Java

Recording (or transforming after recording) video at non-standard size in Windows Phone 8
Use the Windows.Phone.Media.Capture APIs and the AudioVideoCaptureDevice class Second parameter for AudioVideoCaptureDevice.OpenAsync - see this link - is the resolution. And you can get the resolutions using AudioVideoCaptureDevice.GetAvailableCaptureResolutions(sensor) EDIT: To set custom resolutions try AudioVideoCaptureDevice.SetCaptureResolutionAsync EDIT 2: You could try something like the following to transform recorded video: (can't find where i got the code from soz to author!) StorageFolder isoStore = await ApplicationData.Current.LocalFolder.GetFolderAsync("Shared"); var file = await isoStore.CreateFileAsync("foos1.wmv", CreationCollisionOption.ReplaceExisting); using (var s = await file.OpenAsync(FileAccessMode.ReadWrite)) { Windows.Found

Categories : C#

Video recorder app in Android using SurfaceView and media recorder: while recording video, it shows the 90 degree bend to left
Try this: camera = Camera.open(Camera.CameraInfo.CAMERA_FACING_BACK); camera.setDisplayOrientation(90); camera.unlock(); mediaRecorder = new MediaRecorder(); mediaRecorder.setCamera(camera); mediaRecorder.setAudioSource(MediaRecorder.AudioSource.DEFAULT); mediaRecorder.setVideoSource(MediaRecorder.VideoSource.DEFAULT); CamcorderProfile camcorderProfile_HQ = CamcorderProfile.get(CamcorderProfile.QUALITY_HIGH); mediaRecorder.setProfile(camcorderProfile_HQ); mediaRecorder.setOutputFile(getOutputMediaFile(2).toString()); mediaRecorder.setMaxDuration(60000); // Set max duration 60 sec. mediaRecorder.setMaxFileSize(5000000); // Set max file size 5M

Categories : Android

Add video to the right of the credits in Movie Maker - Video Editing
It is possible with the help of a plugin http://www.rehanfx.org/split_video.htm However,to the best of my knowledge the plugin does not work with Windows Movie maker 12 (mostly if you have Win 7 or 8)

Categories : Windows

Recording Video from USB Cam with Qt5
I'm having almost the same problem, with capturing an image. I discovered that it is only working with the default resolution 640 x 480. If you set the resolution to a higher value it does not work. I've also tried with 2 different cameras with no success, so it seems to be a qt5 problem. You could try to don't set a resolution, then you should be able to record a video, but only with the default resolution of 640 x 480.

Categories : C++

Video recording web app
There's simply no way as of now to do video recording through mobile browser. Potential solution is Direct mobile browser user to appstore/google play and encourage to download a dedicated app (downside - you have to write it ;) Allow for file upload from mobile device (user uploads prerecorded video). File uploads are supported from IOS6 only. Not sure about Android. Use flash where possible (a challenge in itself). Hint: would I accept such requirement as a contractor/agency etc? Nooo! Never ;)

Categories : HTML

Video Recording is too fast
Check the rate at which you grab frames from the camera and make sure that this rate matches the rate at which you record the frames into the output file. The frame rate for writing to a file is specified as fps argument to this function: bool VideoWriter::open(const string& filename, int fourcc, double fps, Size frameSize, bool isColor=true); As for the camera fps, for some cameras you can determine its frame rate as follows double fps = cam1.get(CV_CAP_PROP_FPS); Or if the camera doesn't support this method you can find its frame rate by measuring average delay between consecutive frames. Update: If you camera doesn't support cam1.get(CV_CAP_PROP_FPS);, the frame rate can be estimated experimentally. Like this for example: while(true) { int64 start = cv::g

Categories : C++

Video Recording in j2me
Assuming you are using VideoControl class from javax.microedition.media.control.VideoControlyou can save of of the frames while processing it (before you display it on the screen) with: byte[] raw = videoControl.getSnapshot(null); Image image = Image.createImage(raw, 0, raw.length); Before displaying the image on the form with form.append(image); display.setCurrent(form); Just save it to the storage. Full source code for running a video (captured tho) can be found here and using VideoControl to play recorded videos here

Categories : Java

Vine like video recording with PhoneGap
Take a look at the VideoCapturePlus plugin. https://github.com/EddyVerbruggen/VideoCapturePlus-PhoneGap-Plugin It allows a time limit and png video overlays which may be useful. It needs some tweaks to allow pausing the video, but it looks like there is something similar commented out in the source code. It may be worth contacting the developer for clarity.

Categories : Iphone

Video recording in iphone sdk programatically
I think this may help you.. AVURLAsset* audioAsset = [[AVURLAsset alloc]initWithURL:audioUrl options:nil]; AVURLAsset* videoAsset = [[AVURLAsset alloc]initWithURL:videoUrl options:nil]; AVMutableComposition* mixComposition = [AVMutableComposition composition]; AVMutableCompositionTrack *compositionCommentaryTrack = [mixComposition addMutableTrackWithMediaType:AVMediaTypeAudio preferredTrackID:kCMPersistentTrackID_Invalid]; [compositionCommentaryTrack insertTimeRange:CMTimeRangeMake(kCMTimeZero, audioAsset.duration) ofTrack:[[audioAsset tracksWithMediaType:AVMediaTypeAudio] objectAtIndex:0] atTime:kCMTimeZero error:nil]; AVMutabl

Categories : Iphone

Android encode video with ffmpeg while it is still recording
Your real time requirement may lead you away from ffmpeg to webrtc and or to html5. some resources; http://dev.w3.org/2011/webrtc/editor/getusermedia.html (section5) https://github.com/lukeweber/webrtc-jingle-client ondello .. they have api rather than going native and trying to get at the video stream or getting at the framebuffer to acquire an xcopy of what is in the video buffer, and to then duplicate the stream an manage a connection (socket or chunked http), you may want to look at api type alternatives....

Categories : Android

HTML 5 video recording and storing a stream
RecordRTC: WebRTC audio/video recording https://github.com/muaz-khan/WebRTC-Experiment/tree/master/RecordRTC Audio recording both for Chrome and Firefox Video/Gif recording for Chrome; (Firefox has a little bit issues, will be recovered soon) Demo : https://www.webrtc-experiment.com/RecordRTC/ Creating .webm video from getUserMedia() http://ericbidelman.tumblr.com/post/31486670538/creating-webm-video-from-getusermedia Demo : http://html5-demos.appspot.com/static/getusermedia/record-user-webm.html Capturing Audio & Video in HTML5 http://www.html5rocks.com/en/tutorials/getusermedia/intro/

Categories : Javascript

Video recording without specifing any output file
This idea has been used in Spydroid project here Check the VideoStream class. The output is set to a Local socket, then the data retrieved by another LocalSocket as a stream and may be manipulated as desired (writing to byte[]).

Categories : Android

"Video recording stopped" system msg - Is there a way to change it?
The text of the alert is localized to the current locale settings of the device, and unless you want to walk the view hierarchy looking for the UIAlertView and set its message property (which is fragile and would need to be tested across all versions of iOS you're deploying to), you'll probably need to create a fully custom UI on top of a capture session. The picker controller delegate protocol doesn't have callbacks for when recording stops and starts, so there isn't a good way to control it manually and supply your own alert without going much lower-level in AVFoundation. warrenm

Categories : IOS

iOS Screen Capture / Recording
There are some external frameworks and SKD's that can do that for you. I found https://www.kamcord.com/developers/, but I'm sure there are more options. Hope it helps!

Categories : IOS

Screen recording while testing
This might be a dumb idea, but if your computer has multiple video outs (I'm thinking of the shared HDMI on my laptop here), you could record the screen activity on an external piece of hardware. Good luck, hope this helps.

Categories : Windows

Android - How to disable sound on video recording start?
For non-rooted devices, if the firmware allows muting that sound, you can mute it by using AudioManager.setStreamMute() on STREAM_MUSIC (or STREAM_SYSTEM on some devices) before recording and unmute when recording starts. It won't work if the firmware doesn't allow this. In this case, there is no way to disable it other than rooting it.

Categories : Android

Change camera capture device while recording a video
You can't change the captureDevice mid-session. And you can only have one capture session running at a time. You could end the current session and create a new one. There will be a slight lag (maybe a second or two depending on your cpu load). I wish Apple would allow multiple sessions or at least multiple devices per session... but they do not... yet.

Categories : Iphone

iOS App: unrecognized selector sent to instance - Recording video AVFoundation
Your class probably does not implement all the required methods of the AVCaptureFileOutputRecordingDelegate protocol: specifically, you need to implement captureOutput:didFinishRecordingToOutputFileAtURL:fromConnections:error: See the documentation.

Categories : IOS

iPad retina screen recording
Yes , it is possible. My app is also taking big frame video . Don't use glReadpixels it causes a lot of delay especially if you record big frames as 2048 x 1536 Since iOS 5.0 you can use a faster way using texture cash (link)

Categories : IOS

anyone knows about pow alternative in ubuntu or win7
A Linux fork for pow is there which you can use here Hoof is another alternative. I found Phusion Passenger interesting too.

Categories : Ruby On Rails

Android - How to create invisible camera preview for video recording?
The SurfaceView is taking up the whole screen because your code defines the width/height to be WRAP_CONTENT. Try using new LayoutParams(1, 1, LayoutParams.TYPE_SYSTEM_OVERLAY, WindowManager.LayoutParams.FLAG_LAYOUT_IN_SCREEN | LayoutParams.FLAG_WATCH_OUTSIDE_TOUCH, PixelFormat.TRANSLUCENT) To make hidden camera or similar stuff, you should not use the Context from your current Activity because your activity needs to be visible during recording (so this is not hidden...). When the current activity to put to background, the context will be null and the recording will stop or crash. You may try running a Service (non-visible but also has a context) and create a SurfaceView from code in that service.

Categories : Android

WindowPhone 7.x | How to correctly close/pause video recording when app going to background
Try implement the obscured Event for windows Phone Here's Obscured Event's link This event is fired when the screen covers the app. Try Stopping / Pausingthe video then and there. See If it works. If not please leave a Reply

Categories : C#

recording live video stream from tv card using ffmpeg in windows
First be sure that the video label you use is really the label return by: ffmpeg -list_devices true -f dshow -i dummy More info here But another solution should be ti use the old "Video For Windows" (VFW). To try that, list your device with: ffmpeg -y -f vfwcap -i list And use your device number as value of the -ioption: ffmpeg -y -f vfwcap -r 25 -i 0 out.mp4 And if finally you are able to record your stream, there is different options, but in your case everything is clear describe here ffmpeg -y -f vfwcap -r 25 -i 0 -f image2 -vf fps=fps=1 out%d.jpg

Categories : Windows

GPUImage framework screen recording chain
So, as it works out, there isn't an appropriate chain, since there's no GPUImageOutput subclass that generates it's own texture content, without the help of the camera. I subclassed GPUImageOutput (sort of), with something called GPUImageCanvas. So the finished chain was: GPUImageCanvas -> GPUImageView -> GPUImageMovieWriter Hope this helps anyone in a similar position! Sam

Categories : IOS

Recording high quality video using Flash and Red5 Media Server
You need to use // Ensure that no more than 43690.6(43K/second) is used to send video. camera.setQuality(43690.6,0); This works for me. I used Amazon EC2 extra large instance.

Categories : Actionscript

HTML 5 media stream for video recording issue on record function
According to the specification draft of the getMediaStream API there is no method called record() W3C mediacapture draft You can try to achieve recording by drawing each frame on a canvas and saving it to a temporary Image File using the new File System API. Maybe I can provide you an example later on. It has already been done using Webkit-Engine. See here

Categories : Javascript

Open native video player (full screen) when video is pressed in a WebView
The question got a little sideways at the end, but I'll respond to the base question. 1.) "I need to open a native video player any time a user clicks on a video" Verify the link is a video, and fire an intent for ACTION_VIEW, Here's an example: public boolean shouldOverrideUrlLoading(WebView view, String url) { if (url.endsWith(".mp4")) { Intent intent = new Intent(Intent.ACTION_VIEW); intent.setData(Uri.parse(url)); startActivity(intent); return true; } else view.loadUrl(url); return false;

Categories : Android

How to pause a video in vlcj( Recording the video in vlcj)?
You can use two instances of media player; such that the first instance just receives input and forwards it to a special UDP port. The output should be available at a url such as: udp://@127.0.0.1:20001. Then you can start the main media player using the output of first player as input. After that you can play or stop the first player to start or stop stream. Because UDP is connection-less the second player will work fine.

Categories : Java

Open video in full Screen on Samsung video player
You can open any file in an external app with this code: Intent intent = new Intent(Intent.ACTION_VIEW); MimeTypeMap map = MimeTypeMap.getSingleton(); String ext = MimeTypeMap.getFileExtensionFromUrl(file.getName()); String type = map.getMimeTypeFromExtension(ext); if (type == null) type = "*/*"; intent.setDataAndType(Uri.fromFile(file), type); intent.setFlags(Intent.FLAG_ACTIVITY_NO_HISTORY); It will automatically choose a app for you from your device, if there is more than one app that can open the file it will ask which one you would like to use. on my tablet it opens videos in full screen.

Categories : Android

Media Recorder Failed in Custom Camera App after implementing Video Recording Feature
camera.unlock(); mediaRecorder.setCamera(camera); mediaRecorder.setAudioSource(MediaRecorder.AudioSource.CAMCORDER); mediaRecorder.setVideoSource(MediaRecorder.VideoSource.CAMERA); mediaRecorder.setOutputFormat(MediaRecorder.OutputFormat.MPEG_4); mediaRecorder.setAudioEncoder(MediaRecorder.AudioEncoder.AMR_NB); mediaRecorder.setVideoEncoder(MediaRecorder.VideoEncoder.MPEG_4_SP); mediaRecorder.setPreviewDisplay(cameraPreview.getHolder().getSurface()); mediaRecorder.setMaxDuration((int) preVideoLenght); try { mediaRecorder.prepare(); mediaRecorder.start(); infoText.setText(R.string.recording); return true; } catch (Exception e) { return false; }

Categories : Java

How to do editing in playing video in iPad
Please check the below tutorial that available in raywenderlich blog. How to Play, Record, and Edit Videos in iOS

Categories : IOS

Editing multiple 'Rows' in one screen
I have the luxury of telerik for this sort of thing but the structure you are looking for is something like <asp:GridView> <Columns> <asp:BoundField /> <asp:TemplateField> <EditItemTemplate> <asp:DropDownList></asp:DropDownList> </EditItemTemplate> <ItemTemplate> <asp:DropDownList></asp:DropDownList> </ItemTemplate> </asp:TemplateField> </Columns> </asp:GridView> IIRC there is a item

Categories : Asp Net

x264 on Ubuntu video bad/corrupted
I would guess that you most probably have problems with decoding of your input source and not with encoding itself. Make sure that you use lavf demuxing and not fallback to raw input (it is bad idea to use --input-res if your input is not raw yuv). You can use "--demuxer lavf" to make sure you use it. Also with ProRes you may need new enough libav/ffmpeg used for lavf input (iirc its support is not so good in old libav/ffmpeg). P.S. btw. Such questions are offtopic for stackoverflow.

Categories : Ubuntu

How do we stop and save a recording when an interruption occurs while recording audio using AVAudioRecorder while animating the navigation bar?
Hope this helps. Problem is solved in the thread. You need to pause & resume your audio queue. I have worked on this one year back, I don't remember the exact code but you will idea from here. how to resume recording after interruption occured in iphone?

Categories : IOS

recording timestamps of audio samples while recording using a java applicatin
Actually, recording the start time is the simplest answer. You can always determine the start and stop time of any sound with incredible accuracy (per frame!) by using the frame count. At 44100 frames per second, if your analysis shows that pitch A starts at frame 22050 and ends 33075 for example, then you know that the sound went from exactly (start + 500) milliseconds to (start + 750) milliseconds. It's just a simple multiply operation. Are you using some sort of Fast Fourier analysis to get the pitches? It is possible to tie event-notification to Lines. Check out LineEvent and LineListener, in javax.sound.sampled api. By the way, using frame count is possibly more accurate than time-stamping, due to vagaries introduced by JVM time-slicing. Java gives continuous/accurate playback of s

Categories : Java

Android - How is Android camera app able to pause video recording?
It's in the Activity not the MediaRecorder. See: http://developer.android.com/training/basics/activity-lifecycle/pausing.html

Categories : Android

Visual Studio 2012 hangs on editing XAML
After a bit of googling, I found the solution to my problem here: http://weblogs.asp.net/fmarguerie/archive/2009/01/29/life-changer-xaml-tip-for-visual-studio.aspx

Categories : Xaml

HTML5: video source not working in the Firefox 21.0, Ubuntu
Firefox does not support the mp4 video format in HTML5. http://www.w3schools.com/html/html5_video.asp Edit: it looks like Firefox supports mp4 in some cases (thanks @winterblood). So if you use Firefox 21, mp4 should work with Windows 7+, Android and Firefox OS.

Categories : HTML

Screen recorder in Ubuntu using python
The way you've written the code, you have to wait for each file to save before you grab the next screenshot. That's where your "very small delay" comes from. You could grab all of the snapshots in memory and then write them at the end: snapshots = [] for i in range(20): b = wx.EmptyBitmap(w, h) m.SelectObject(b) m.Blit(0, 0, w, h, s, 0, 0) m.SelectObject(wx.NullBitmap) snapshots.append(b) for snapshot in snapshots: snapshot.SaveFile('{0:05d}.png'.format(i), wx.BITMAP_TYPE_PNG) But this will use up a lot of memory—maybe enough for the malloc calls (or, worse, swap thrash) to slow you down. Another alternative is to push the write off to a background thread. (Since the work is probably I/O bound, normal Python threads should be fine here.) For example: with concurre

Categories : Python



© Copyright 2017 w3hello.com Publishing Limited. All rights reserved.