Capture and Record Desktop Screen with/as Webcam Video - windows

Webcam lets others view either still pictures or motion video of a user or other object in front of it. I want to configure Webcam in a way that it start capturing desktop screen instead of what is in front of it.
I want to manipulate desktop screen captured through Webcam using FFMPEG library. Such as:
ffmpeg -f dshow -i video="Integrated Webcam" -f mp4 cam_stream.mp4
I want to use this same application to capture my Desktop Screen that will be possible just in that case when Webcam will be able to capture my Desktop Screen instead. So above command will start recording what Webcam will be capturing that I want it to capture my desktop screen.
Note: I know other ways to capture, record or stream desktop screen but I want to achieve it through Webcam.
What I tried so far: I tried some Fake/Virtual Webcam software (manycam, sparkocam etc.) but I don't think they fulfil what I exactly want.
P.S. I posted the same question in another community but didn't get any response.
Please guide me if there is any way to achieve this? Thanks

Solution to this problem would be to capture desktop directly by using ffmpeg.
Follow the link Capture Desktop using ffmpeg

Ive been searching all day for a similar thing.
Ive found this: https://streamshark.io/blog/using-obs-as-a-virtual-webcam-on-windows-and-macos/ With this software you can create a virtual cam that can utilize a portion of your screen as a fake webcam output.
Exactly what I need and what I think the OP is talking about.
So for future ref, bumped.
(Why do I need this for instance?: I dont have a smartphone, but a virtualbox android. I want to install the windows desktop app versions of certain apps. For which I need to "hold the phone (virtualbox) in front of a computer screen (main os)"...

On this forum see this post on capturing the desktop:
Capture Windows screen with ffmpeg
If I understand well, you also want to add views from your webcam. The above mentioned link on capturing the desktop shows how to use dshow. So the desktop and the webcam are both input streams for your output mp4.
I suggest to add your webcam as input:
-f dshow
-i <webcam>
Next, e.g. use the overlay filter to put both the desktop and the webcam on one view.

Related

MJPEG stream via URL to webcam device on Mac

I have a video device that exposes an MJPEG stream via a URL. For windows there are utility apps that can "create" a system webcam device useable by Skype or any other application based on the URL this video device exposes.
Example: smart phone is broadcasting MJPEG URL. Windows computer can run a utility app to "create" a system webcam based off of the MJPEG stream and then that webcam be used via Skype. The video shown is what the phone is broadcasting.
I'm trying to do the same but for my Mac. I can't seem to find any utility that creates a system webcam from an MJPEG stream. Googling isn't helping either, I'm just not finding a solid solution or anything I recognize as a solution.
Thanks!
I've had success with obs-studio and its vlc and virtual camera plugins.
You can add a "Vlc Video Source" and then click "Start Virtual Camera".
If you want to use it as a web-cam I just recommend that you reduce the "Network Caching (ms)" setting in the vlc video source settings as much as possible.
The hard-coded minimal value is 100ms, you can reduce it by changing this line: https://github.com/obsproject/obs-studio/blob/7217671eb0812681a9f83858bb02065b671673e7/plugins/vlc-video/vlc-video-source.c#L1079
There is still significant delay with this method regardless, but it's better than not having it working at all.

Is it possible to grab a snapshot from a previously recorded video on Windows Phone 7?

I'd like to know if it's possible to grab snapshots from previously recorded videos. Those videos are recorded in the app itself.
By the way, I'd like to grab the snapshot from a video file saved in IsolatedStorage without having to play the video.
Is it possible? If so, how can I do it?
Cheers,
Rafael
I am not aware of an official platform feature to do this. However, if the video file is within your app's isolated storage, you might be able to:
Send the video to a server to do the processing
Add codecs/C# code to your app to process the raw MPEG4 frames.
Try using WriteableBitmap to capture a specific frame when using the media element. Since most media is handled in hardware, however, it is possible that the frame will be blank.
I solved the problem by creating the thumbnail while recording the video (captureSource.CaptureImageAsync()). To do that, I used the same instance of the CaptureSource I'm using to record the video.

capture video from screen for stream

i am looking for differnt solutions to capture video stream from monitor screen and send it to vidoestreaming server to broadcast in web. it must occuring in "live".
i'd not like to use external services like "procaster" for broad.
OS: Windows.
it will be great to know the ideas and expirience people have to accomplish that.
Thanks all.
Recently, I build a GoLang project called ScreenStreamer, is a tool to stream current active window or full screen (Linux's or Windows's) to other device, like phone or another PC, as MJPEG over http or FLV over rtmp, it's very realtime (delay < 100ms). It works on Windows and Linux.
After building it, you can run it as:
# enter the project root directory
cd ./src/ScreenStreamer
# run it
./mjpeg or .\mjpeg.exe
# use a web browser or other video player, open http://host:port/mjpeg
./rtmp or .\rtmp.exe
# use a video player, open rtmp://host:port/live/screen
Screenshot:
Windows SDK includes Push Source Filters Sample, which in turn contains CPushSourceDesktop filter/class.
CPushSourceDesktop: Copy of current desktop image (GDI only)
It captures desktop image and pushes it into DirectShow pipeline. From there on you can process it using video compression codec and stream it to remote location. A decent screen image compression codec is included with Windows Media subsystem, network streaming will have to be a custom or third party component. Alternatively, it is possible to make the capture class a virtual camera and have Windows Media Encoder broadcast it (or, it already has a simila feature built in).
Alternatively, you can check VNC (or one of the clones) source code and see how it hooks windows and captures image updates, then compresses them and makes it available for remote applications.
Note that you will have to specifically capture non-GDI images (such as coming from video/gaming applications, which use hardware acceleration and non-RGB surffaces).

how to create a video for iPod touch app video ?

for ppt presentation i want to create video for ipod touch app.
is their any possibility to create video
from Xcode using simulator
or directly from device
or any other possibility
thank you very much
Please see: Is there a way I can capture my iPhone screen as a video?
This post describes many ways to capture video. It looks like there isn't a completely intuitive way to record the video, but this post lists some of the options others have used for their applications.

QuickTime video codec configuration

So I'm porting an app from Windows to Mac, and part of the app deals with creating movie files. On Windows, there's a group of functions like ICOpen and ICConfigure, which signify to the video compression driver to open up a configuration box for the selected codec. Is there anything like that for QuickTime on Mac?
You will need to use straight Quicktime-C calls for this, but the function you want is called MovieExportDoUserDialog.
See the QTMovieExportSettings article on CocoaDev for the full details.

Resources