Opening a video file and play in C language [closed] - c

It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.
Closed 9 years ago.
I am creating a server/ client program in which client would request a video from server. Once it starts receiving the video packet, i am creating a video file and write into it.
My main question is after writing some frames, i have to open the video file and it has to play the video.
1) how to play a video file using C?
2) Is it possible to write on the same file and play the same file simultaneously??

C alone does not provide this functionality. You need to leverage an additional multimedia oriented library such as gstreamer and display it using a framework suitable to the environment you use, for example gtk under Linux be fine. Or use an external program and call it to play the video.
This question should point you in the right direction.

Related

Is it possible to create a program like Photoshop with C# WinForms? [closed]

It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.
Closed 10 years ago.
So I am wondering if, in term of performance, it's possible to create a graphic editor like Photoshop capable of handling bitmap graphics on layers (at least 25 layers). It also need to handle various type of brushes, copy paste graphics blocks, etc. Well, what Photoshop can do at the basic level.
Are WinForms capable of this without being slow? Or is WPF the only good alternative?
As Paint.Net uses Winforms it is possible. You can check out the source code from this fork of 3.36.7 (the last version where the source was released)

3D or 2D graphics in c/c++? [closed]

It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.
Closed 10 years ago.
I need to construct a circuit from a structural program and break it and interchange the parts.
I was wondering how do I do that in C++/C?I try drawing graphics using graphics.h line by line,circle by circle its s time consuming!!! Is there any other way of doing it?
I use turbo C and dev c++.
You will have to draw every line and circle through your code,there won't be a shortcut for that. Though, I would suggest using other graphics libraries like OpenGL. In other languages certain IDEs have features wherein you don't have to write a code but you can manually design your graphics on a editor window and the code behind is generated on it's own. I'm not sure if there are any such IDEs for c/c++.

Where can I learn about programming a serial/terminal interface? [closed]

It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.
Closed 10 years ago.
I have a project I'm going to be doing on a microcontroller. I plan on having it interface with my computer over a USB serial connection. I tried doing the basic tests like putc(getc()), but I'm having trouble getting it to behave as I expect.
With that simple hardware-echo thing, many things just don't work. When I push enter, I just get a carriage return. Backspace does nothing. CTRL-C for breaking doesn't work either.
I'm using GNU Screen as my terminal emulator. How do I learn how to handle all of this(along with stty settings) so I can make a useful command interface on my microcontroller?
You will need to know what terminal type your Screen terminal is emulating so that you know what codes to send out the serial port. For example, if you set your terminal to VT100, you can check out this link which provides some VT100 codes
And for gnu-screen you might want to check this out as it contains an exhaustive list of ESC and control strings/commands that you can use.

How to encrypt header files in C [closed]

It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.
Closed 10 years ago.
We need to have a good way to encrypt our C source. We need the header files to be unreadable by the another one (Codevision or Winavr Compiler).
For example I Drived One GSM Module For Send And recive SMS ... But I need no anyone access to my source and only can use them .. Is there any solution to this problem?
How Can I Make a Compiled Header File ???
You can encrypt your source with any good encryption tool, of course.
But obviously you can't compile it anymore ...
But perhaps a library could help you.
You can build a library which contains your GSM stuff.
Then you and others can call the functions from the library, the only file you have to distribute, is the *.h file where the declarations are.

2D real-time plot with C [closed]

It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.
Closed 11 years ago.
I've just recently begun programming in C. I currently have an application that read's in values from a COM port and write them to a file. It reads about 500 data points per second. I want to be able to compute a real-time 2D plot of the data points with respect to time. Can someone please point me in the right direction?
I've tried to post-process the data in Excel and the built in capabilities allow me to get a great graph. However, I would just like something that is computed in real-time rather than post processing it. I am using Windows XP.
Thanks in advance !
You can use KST to plot your graphs in real time. You can probably keep your existing application as is (I assume you are writing to a CSV file if you are reading it in Excel) as KST will read the data from the file as it gets updated, and update its chart.
Here are some options for you to explore:
You can use OpenGL and in particular, GLUt. I have some C code for
this if you are interested.
You can pipe commands to gnuplot.
You can use GNU Octave from a C/C++ program. You can read more about
this here.
You can create your own bitmaps in real-time of you graphs. This isn't as hard as it sounds.

Resources