16,012,168 members
Sign in
Sign in
Email
Password
Forgot your password?
Sign in with
home
articles
Browse Topics
>
Latest Articles
Top Articles
Posting/Update Guidelines
Article Help Forum
Submit an article or tip
Import GitHub Project
Import your Blog
quick answers
Q&A
Ask a Question
View Unanswered Questions
View All Questions
View C# questions
View C++ questions
View Javascript questions
View Visual Basic questions
View .NET questions
discussions
forums
CodeProject.AI Server
All Message Boards...
Application Lifecycle
>
Running a Business
Sales / Marketing
Collaboration / Beta Testing
Work Issues
Design and Architecture
Artificial Intelligence
ASP.NET
JavaScript
Internet of Things
C / C++ / MFC
>
ATL / WTL / STL
Managed C++/CLI
C#
Free Tools
Objective-C and Swift
Database
Hardware & Devices
>
System Admin
Hosting and Servers
Java
Linux Programming
Python
.NET (Core and Framework)
Android
iOS
Mobile
WPF
Visual Basic
Web Development
Site Bugs / Suggestions
Spam and Abuse Watch
features
features
Competitions
News
The Insider Newsletter
The Daily Build Newsletter
Newsletter archive
Surveys
CodeProject Stuff
community
lounge
Who's Who
Most Valuable Professionals
The Lounge
The CodeProject Blog
Where I Am: Member Photos
The Insider News
The Weird & The Wonderful
help
?
What is 'CodeProject'?
General FAQ
Ask a Question
Bugs and Suggestions
Article Help Forum
About Us
Search within:
Articles
Quick Answers
Messages
Comments by Pavan Kumar (Top 14 by date)
Pavan Kumar
1-Sep-15 9:46am
View
Thanks for your support, Its working when I ignore 'DataValueField'
Pavan Kumar
1-Sep-15 9:46am
View
Thanks for your support, Its working when I ignore 'DataValueField'
Pavan Kumar
1-Sep-15 9:43am
View
Same thing I done in my code except Visibility & I checked downloaded files from that link still the result is same
Pavan Kumar
1-Sep-15 9:35am
View
hi, already I am using if(!Page.isPostback) for DDL1 data-bindings & DDL2/DDL3 @ SelectedIbdexChanged Event till the same result
Pavan Kumar
10-Sep-14 7:48am
View
Thanks, I have resolved my problem too.
Pavan Kumar
10-Sep-14 7:27am
View
Hi i got same problem now if you are solved the problem please tell me the solution
thanks in advance
Pavan Kumar
20-Aug-14 8:43am
View
hi i am also getting trouble to host the web service into online.
i am new to web services guide me to use my service from windows app through online
thanks in advance.
Pavan Kumar
21-May-14 9:58am
View
while writing the video frame, writer.WriteVideoFrame((Bitmap)pbVideo.Image);
Pavan Kumar
15-May-14 2:22am
View
i had explained every thing in my question, i need to show all captured images on button click in a form like as Image Examples
Pavan Kumar
15-May-14 2:11am
View
yes, i need to view as large icon like i shown in example images using forms
Pavan Kumar
12-May-14 9:12am
View
ok fine, i got it with wmv1 codec.
Pavan Kumar
12-May-14 1:02am
View
here is my changed code :
private void VideoRecorderForm_Load(object sender, EventArgs e)
{
timerVideo.Start();
VideoCaptureDevices = new FilterInfoCollection(FilterCategory.VideoInputDevice);
captureDevice = new VideoCaptureDeviceForm();
}
private void butStart_Click(object sender, EventArgs e)
{
if (captureDevice.ShowDialog(this) == DialogResult.OK)
{
VideoCaptureDevice videoSource = captureDevice.VideoDevice;
FinalVideo = captureDevice.VideoDevice;
FinalVideo.NewFrame += new NewFrameEventHandler(FinalVideo_NewFrame);
FinalVideo.Start();
}
}
private void FinalVideo_NewFrame(object sender, NewFrameEventArgs eventArgs)
{
video = (Bitmap)eventArgs.Frame.Clone();
pbVideo.Image = (Bitmap)eventArgs.Frame.Clone();
//writer = new VideoFileWriter();
writer.WriteVideoFrame(video);
}
private void butRecord_Click(object sender, EventArgs e)
{
try
{
path = Path.GetDirectoryName(Application.ExecutablePath) + @"\Videos\";
if (Directory.Exists(path) == false)
{
Directory.CreateDirectory(path);
}
int h = captureDevice.VideoDevice.VideoResolution.FrameSize.Height;
int w = captureDevice.VideoDevice.VideoResolution.FrameSize.Width;
writer.Open(path + "VID" + DateTime.Now.ToString("hhmmss") + ".mp4", w, h, 25, VideoCodec.MPEG4);
//writer.Close();
}
catch (Exception ex)
{
MessageBox.Show(ex.Message);
}
}
private void butStop_Click(object sender, EventArgs e)
{
if (FinalVideo == null)
{ return; }
if (FinalVideo.IsRunning)
{
writer.Close();
pbVideo.Image = null;
}
else
{
this.FinalVideo.Stop();
writer.Close();
pbVideo.Image = null;
}
}
Pavan Kumar
12-May-14 0:51am
View
with video File Writer i got my requirement but i am get unknown exceptions when recording time goes more than 5mins. do you have any idea to record minimum 20mins. thanks for answer.
AccessViolationException was Unhanded : "Attempted to read or write protected memory. This is often an indication that other memory is corrupt."
Pavan Kumar
5-May-14 1:44am
View
no, not at same time
the user can save his preferred one and i need it with less memory taking.
Show More