Integrate Video Streaming Into Your C/C++ Application Using Nex Gen Media Server API

Integrate Video Streaming Into Your C/C++ Application Using Nex Gen Media Server APIIntroduction Recently I took a closer look at Nex Gen Media Server and their API framework. NGMS is a multi-purpose streaming server which supports some of the popular streaming protocols such as RTSP, RTMP, Apple’s HTTP Live, and MPEG-2 Transport Stream. NGMS comes with transcoding support and is able to capture and reformat live video streams and adapt them to be received by another type of device, such as capturing an HD video feed and converting it to be received by an iPhone over 3g. My focus was to integr

Read More »
C Programming Language – Introduction

C Programming Language – Introduction

C Programming Language – IntroductionC is a procedural programming language that was designed by American computer scientist Dennis Ritchie. The language – which first appeared in 1972 – was developed by Ritchie in association with Bell Labs. Despite being close to 50 years old, the C programming language has not lost its relevance in the modern day computer software development scene. It’s still used in time and speed critical areas like OS and firmware development (to name a few).Several of the newer languages like C++, Java, PHP, and more are based on C. And that’s the reason students are s

Read More »
C Programming Tutorial Part 2 – Preprocessors

C Programming Tutorial Part 2 – Preprocessors

C Programming Tutorial Part 2 – PreprocessorsIn the first part of our ongoing C programming tutorial series, we briefly touched on the preprocessing stage. In this tutorial, we will discuss it in a little more detail so that you have a basic idea about it before learning other C programming aspects.Preprocessing is usually the first stage of program compilation, where-in anything beginning with a ‘#’ gets processed. Let’s take a basic example code.#include int main (void){    printf(“\n Hello World \n”);    return 0;}Yes, this is the same piece of code we used in the first part of thi

Read More »

C Programming Tutorial Part 3 – Variables basics

C Programming Tutorial Part 3 – Variables basicsUp until now, we’ve discussed the basics of what a C program is, how to compile and execute it, and what are preprocessors. If you have gone through these tutorials, it’s time we discuss the next topic, which is variables.Variables are one of the core elements of C programming as they store values for programmers to use as per their requirement. Let’s understand their basics through an example. Following is a basic C program:#include int main (void){ int a = 10; char b = z; float c = 1.5; printf(“\n a=%d, b=%c, c=%f \n”, a,b,c); return 0

Read More »

C Programming Tutorial 4 – Variables and Memory

C Programming Tutorial 4 – Variables and MemoryIn this tutorial series so far, we have discussed how to create and run a basic C program, what are preprocessors, as well as basics of variables. Now let’s dig a bit deep into variables and discuss the memory aspect.Assuming you have already gone through all our tutorials so far (or you have basic knowledge required to understand this tutorial), let’s begin with a simple code example we used in one of our previous tutorials.#include int main (void){ int num = 0, temp=0; printf(“\n Enter a positive integer: “); scanf(“%d”, &num); temp = n

Read More »

C Programming Tutorial Part 5 – Character variables

C Programming Tutorial Part 5 – Character variablesIn the previous two tutorials, we discussed the basics of variables including how they occupy memory. But we mainly focused on integers and floats. In this tutorial, we will discuss about characters (or char type variables).Variables of ‘char’ type occupy 1 byte (or 8 bits) in the memory.  As I mentioned earlier in case of ‘int’ and ‘float,’ you can check the amount of memory a character occupies on your system using the following C program:#include int main (void){ printf(“\n sizeof char in bytes is %u”, sizeof(char)); return 0;}On

Read More »

C Command Line Tutorial 6 – Code indentation, increment/decrement operators, do-while and for loops, and more

C Command Line Tutorial 6 – Code indentation, increment/decrement operators, do-while and for loops, and moreWe have covered a total of 5 C programming tutorials so far. Each tutorial focused on something specific. In process of remaining close to the topic, some generic concepts remained untouched. Some of those concepts we’ll be discussing here in this tutorial. So let’s begin.1. Code indentationYou should always properly indent your code. For starters, indentation is a practice where-in you put spaces/tabs/newlines to make the code look more readable. Usually, lines of code associated with

Read More »

Linux C Programming Tutorial Part 7: Arrays

Linux C Programming Tutorial Part 7: ArraysSo we have already discussed the concept of variables in C programming (here and here). To quickly refresh, a variable is something which can hold a value of a particular type – it could be an integer, character, or even floating point. However, there’s one limitation of variables: they can only hold a single value at any given time.This means if you want to hold several values, you’ll have to deal with equal number of variables. For example, if you want a program to accept 10 integer values from user and then output them, then either you’ll write it

Read More »

Linux C Programming Tutorial Part 8 – Call by Value Vs Call by Pointer/Address

Linux C Programming Tutorial Part 8 – Call by Value Vs Call by Pointer/AddressIn our first part of this ongoing tutorial series, we discussed briefly about functions, including their declaration and body. What we didn’t discuss at that time was the multiple ways in which functions are called. Here, in this tutorial, we will quickly discuss the ways that exist.In C language, you can call a function in a couple of ways: call by value and call by pointer or address. Let’s discuss both these concepts with some easy to understand examples.Let’s say you want to write a program that swaps two values.

Read More »

Linux C Programming Tutorial Part 9 : Strings

Linux C Programming Tutorial Part 9 : StringsIn this ongoing C programming tutorial series, we have already touched upon the concept of character arrays. Closely related to character arrays is the concept of strings, which we’ll be discussing here.A string differs from a character array in one major area – it is terminated by a Null character ‘\0’. There is no such terminating character in a charcter array. The following piece of code shows some ways in which a string can be defined:#include int main(){ char str[] = “string”; char str1[] = {s,t,r,i,n,g,\0}; char str2[10] = “string”; c

Read More »