How to record a video with C# - WPF and AForge from a camera.

  Рет қаралды 30,329

Mesta Automation

Mesta Automation

Күн бұрын

Пікірлер: 49
@lyl3366
@lyl3366 5 жыл бұрын
I am from China. This tutorial along with other ones are very helpful to me. Thank you very much.
@MichaelNewall
@MichaelNewall 6 жыл бұрын
Great tutorial! For anyone trying this with a C920 HD pro webcam I needed to install the logitech software before I could get anything from the camera.
@levikmt
@levikmt 3 жыл бұрын
Life saver
@Music-lv8xf
@Music-lv8xf 5 жыл бұрын
do you have nvr when you do the ip camera part???
@Dekar-410
@Dekar-410 5 жыл бұрын
Hi, great tutorial, but I am getting Error while encoding video frame while trying to start recording. May I know how to resolve this?
@rupavagetsitdone
@rupavagetsitdone 3 жыл бұрын
Could you fix it?
@patrickarena2866
@patrickarena2866 3 жыл бұрын
Hello first thanks a lot for your tutorial. If it worked it would be awesome. I am gettting an external exception when creating the VideoFileWriter. Is there any chance to send you additional information so that you help me to make it work? Grazie mille
@bluefocusnet
@bluefocusnet 2 жыл бұрын
안녕하세요? 영상 잘 보았습니다. 좋은 자료 올려주셔서, 감사드립니다. 혹시, 카메라 해상도 변경과 카메라 압축영상을 MJPG/YUY2 로 변경할 수 있을까요?
@Music-lv8xf
@Music-lv8xf 5 жыл бұрын
do you have a winform version?
@zigajamnik8360
@zigajamnik8360 6 жыл бұрын
Hi, is it also possible for RTSP stream? and h.264 encoding.
@amitj8010
@amitj8010 4 жыл бұрын
This is very nice and useful demo. Thank you.
@nch.3273
@nch.3273 Жыл бұрын
Thank you
@phongdoan1457
@phongdoan1457 6 жыл бұрын
your video is great. keep it up. may I ask a question? . can i take audio stream by Aforge? thank you.
@g6handi
@g6handi 7 жыл бұрын
Hi Mestra your video is great, helped me a lot, although rtsp stream doesn't work, do you have any idea how to implement it using aforge or other ?
@Mesta-automation
@Mesta-automation 7 жыл бұрын
Sorry no. There are some open source projects that uses RTSP, but I never used any of those.
@hassanahmad9462
@hassanahmad9462 5 жыл бұрын
i had an error ambiguity between Image.PixelWidth and Image.Width. Solved by using "_writer.Open(dialog.FileName, Image.PixelWidth, Image.PixelHeight);" in line 223
@nurselikaya9479
@nurselikaya9479 3 жыл бұрын
Hi. I downloaded your project. I Love it. But I couldn't save the video in my pc. Can you help me this subject pls?
@real_arsium
@real_arsium 4 жыл бұрын
The sound is recorded ?
@MelTe
@MelTe 6 жыл бұрын
When running the sample code, I'm getting this error "Bitmap size must be the same as video size, which was specified on opening video file" when I try to start recording. This is on VS2017.
@balenimontix385
@balenimontix385 6 жыл бұрын
Hello, did you solve it?
@bichngocpham2843
@bichngocpham2843 Жыл бұрын
Awesome bro!!! That's what i'm looking for!!! But I wonder how to scale fps of recorded video 🤔🤔🤔
@amity5020
@amity5020 6 жыл бұрын
nice it is working fine but video file not playing in browser, do u have any idea how i can make video file playable in browser.
@pegamer3051
@pegamer3051 4 жыл бұрын
I have problem with recording video in file. My program writing video, but video quality is very bad. Can you help me, please?
@vadimkirikov5822
@vadimkirikov5822 3 жыл бұрын
it works correct just if a camera frame rate is 30 or 25 and with a low resolution. if it is 15 and resolution is close to 4k, the resulting file speed is wrong
@bichngocpham2843
@bichngocpham2843 Жыл бұрын
I also wonder how to scale the fps and resolution
@fahitk2022
@fahitk2022 4 жыл бұрын
Hi sir how to capture camera output hdmi cables video pleases help me
@lohann9104
@lohann9104 4 жыл бұрын
I did Everything same as you, but I get an Error when calling video _NewFrame: Must create DependencySource on same Thread as the DependencyObject even by using Dispatcher The problem is the Image = ToBitmapImage(bitmap), I don't know what to do
@lohann9104
@lohann9104 4 жыл бұрын
I also tried Dispatcher.CurrentDispatcher.Invoke()=> Image = ToBitmapImage(bitmap)); out
@lohann9104
@lohann9104 4 жыл бұрын
It seems like the ToBitmapImage method fails
@bossSK7836
@bossSK7836 5 жыл бұрын
hello , you doing presentation this video software sceen capture and webcam to pic also capture and audio in c# you have sample code so please help me ,, please i am waiting positive reply .............
@xenofonkarydis6406
@xenofonkarydis6406 2 жыл бұрын
Hello, have you find a solution on that because i face the same issue!! Thank you
@zigajamnik
@zigajamnik 6 жыл бұрын
Hi, it works, but after 16 seconds of recording i get error : "error on _viceSource_NewFrame: Error while writing video frame."
@qianyi1008
@qianyi1008 5 жыл бұрын
weakaction.cs not found?
@Jaipur-Green-Energy
@Jaipur-Green-Energy 4 жыл бұрын
Thank you so much, excellent !
@eduardopreto5201
@eduardopreto5201 7 жыл бұрын
I'm new in WPF and C#, but when i make this, gives me an error in Set(ref _image, value), can you explain me how i fix this ?
@MichaelNewall
@MichaelNewall 6 жыл бұрын
It's part of the MVVM Light framework. Install the Nuget Package. You need to inherit from the ObservableObject class
@ismansantoso9207
@ismansantoso9207 6 жыл бұрын
how to record audio and video together?
@xenofonkarydis6406
@xenofonkarydis6406 2 жыл бұрын
Hello. Have you find a solution on that because i face the same issue!! Thank you
@hermesingenui2653
@hermesingenui2653 3 жыл бұрын
Thanks man
@slimfaidy
@slimfaidy 5 жыл бұрын
thank you so much, this helped alot
@oumohandsaid5761
@oumohandsaid5761 7 жыл бұрын
Could you display the code ?
@Mesta-automation
@Mesta-automation 7 жыл бұрын
It's on GitHub. Check the description
@Терабит
@Терабит 5 ай бұрын
А ест ещё на эту же тему?
@RevenantBob
@RevenantBob 3 жыл бұрын
.NET 5?
@TricksyGrowtopia
@TricksyGrowtopia 7 жыл бұрын
nice
@rafaelportugal5261
@rafaelportugal5261 4 жыл бұрын
Repent ye: "For the wages of sin is death; but the gift of God is eternal life through Jesus Christ our Lord." Romans 6:23 Jesus Christ loves you: "For God so loved the world, that he gave his only begotten Son, that whosoever believeth in him should not perish, but have everlasting life." John 3:16 Read Revelation 18 "And saying, The time is fulfilled, and the kingdom of God is at hand: repent ye, and believe the gospel." Mark 1:15 "Better is a dry morsel, and quietness therewith, than an house full of sacrifices with strife." Proverbs 17:1 Read Jeremiah 47 Read Luke 18:1-8 Read Luke 21:1-4 Read Zephaniah 3:8-17
@m-theory205
@m-theory205 6 жыл бұрын
You need more practice. A simple webcam app that uses 12GB of ram after running for 10 minutes is a joke.
@Mesta-automation
@Mesta-automation 6 жыл бұрын
I downloaded the sources, restored packages, compiled and run the app, connected to my webcam, start video then record video. After 10 minutes memory consumption was 70Mb. How did you get that memory leak ?
Real time Image processing with C# - WPF and AForge
11:08
Mesta Automation
Рет қаралды 86 М.
小丑教训坏蛋 #小丑 #天使 #shorts
00:49
好人小丑
Рет қаралды 54 МЛН
How to treat Acne💉
00:31
ISSEI / いっせい
Рет қаралды 108 МЛН
Support each other🤝
00:31
ISSEI / いっせい
Рет қаралды 81 МЛН
99.9% IMPOSSIBLE
00:24
STORROR
Рет қаралды 31 МЛН
Video Capture from an IP Camera in C# with aforge library
4:28
Lady Coding
Рет қаралды 11 М.
C# Video Capture Smartphone over WiFi using EmguCV
17:48
EETechStuff
Рет қаралды 4,5 М.
So you want to steal Healthcare Data...
16:40
Daniel Boctor
Рет қаралды 74 М.
C# Tutorial - QR Code Scanner using Webcam in C# | FoxLearn
8:16
What are record types in C# and how they ACTUALLY work
15:36
Nick Chapsas
Рет қаралды 123 М.
Running a Buffer Overflow Attack - Computerphile
17:30
Computerphile
Рет қаралды 2 МЛН
C# Events and Delegates Made Simple | Mosh
32:04
Programming with Mosh
Рет қаралды 954 М.
小丑教训坏蛋 #小丑 #天使 #shorts
00:49
好人小丑
Рет қаралды 54 МЛН