Atif Unaldi » iptv http://atifunaldi.com Web Log, We Blog - Web Rain, We Brain Tue, 14 Jul 2009 10:43:45 +0000 http://wordpress.com/ en hourly 1 http://www.gravatar.com/blavatar/172f75c1a8ce272921d01aa24d3685d6?s=96&d=http://s.wordpress.com/i/buttonw-com.png Atif Unaldi » iptv http://atifunaldi.com How To Build Your Own IPTV-VoD System http://atifunaldi.com/2009/05/11/how-to-build-your-own-iptv-vod-system/ http://atifunaldi.com/2009/05/11/how-to-build-your-own-iptv-vod-system/#comments Mon, 11 May 2009 18:14:47 +0000 atifunaldi http://atifunaldi.com/?p=134 ]]>

There’s a secret many people in the IPTV/VoD industry don’t want you to know. Setting up an IPTV network is actually incredibly easy. In fact, almost anyone can do it. But if you knew that, you’d build your own and no-one would make any money by selling you proprietary products with huge mark-ups.

IPTV networks are basically intranets, only the web browser isn’t on a PC, it is on a set-top box. If you’ve set up an intranet or public website, you can set up your own IPTV network and do what you want with it. You don’t need massive and expensive servers, specialised set-top boxes or overly large development teams working with complex software. With the right hardware and software, it should take you less than a few hours.

But why would you want to build your own?

Maybe you could, and/or want to:

  • Create an internal TV system for training, advertising or information display;
  • Create an IPTV showcase for your clients so they can visualise opportunities;
  • Evaluate current IPTV technology without massive expense;
  • Convert your existing client websites and applications to IPTV versions;
  • Cross-train your web developers so they have IPTV skills;
  • Simulate a real IPTV network to test applications and ideas;
  • Put your products and services on an IPTV demo platform;
  • Build a great new idea or application that would work well on IPTV;
  • Integrate your current web-based systems into an IPTV environment (e.g. VoIP)

Doesn’t look too difficult does it? Let’s get started.

What you’ll need:

  • A TV
  • An IP set-top box
  • A multicast-capable router
  • A web server
  • A video server
  • 2 x PLC Adaptors
  • Sample video material

In this guide, we’re going to be cheap and cheerful, using free open source software (FOSS) where we can. We’ll also be adhering to open standards wherever possible. Our HTML screens and menus will be housed on an Apache web server running PHP, Perl, Python & MySQL, and our video will be encoded in MPEG-4 H.264 AVC, packaged in a simple MPEG-2 transport stream. We’ll stream out our video with VLC and Helix Server.

Naturally you can exchange any of those for something else that does the same thing, for example, WM9/IIS/.Net/SQL Server instead of MPEG-4/Apache/PHP/MySQL.

1. Finding a new home for the kit
Luckily, your brand new shiny IPTV system won’t need much space at all. The 2 PCs (web server and video server) can be hidden away under a desk, kept in a server room or tucked away under the stairs somewhere. Using PLC adaptors means you don’t need cabling dangling around. What you will need is a space for demonstrating it on a TV. That could be on a desk, in reception or in a corner of the office with a couch.

2. Choosing the right set-top box
The most critical decision in setting up your system is what IP set-top box you will be using, as all of them run different software and have different capabilities. All of them connect to the TV using a standard scart cable or RCA sockets, and display PAL/NTSC video at standard resolution. It’s preferable if they have a web-based control panel, but many have proprietary configuration screens or use simple telnet. Firmware upgrades are best served with a remote TFTP server, such as that provided by vendors like SolarWinds.

The most popular choice of software is an embedded web browser, which for all intents and purposes does the same thing as a PC web browser like IE, Firefox, Opera or Safari. The developer interface tends to be a mark-up language, usually HTML/Javascript. The main embedded client software programs in use on IP set-top boxes today are Fresco/Galio (from Ant Plc), Opera, Escape/Evo (from Espial) and Myrio (based on Espial). You can think of them of little web browser units.

There are a lot of OEM vendors of IP set-top boxes to choose from all across the world. Some examples include Complete Media Systems, Amino, Kreatel (now Motorola), Vidanti, Tilgin (formely i3 Micro), ADB Global and Netgem. Most are open to the idea of directly selling 1-10 units at a time, although in many instances it is better to go through a central distributor like Garland Partners. The cost varies, but you should be paying in the range of £100-250 GBP for each set-top box, including a remote control and/or keyboard.

In this guide, we will be using the CMS 1080 (from Complete Media Systems), running Ant Galio 2.0. The box itself supports video delivered in H.264 AVC or Windows Media. We will be using the former.

3. Setting up the network
IPTV runs over an IP network, which means it will work over your existing home or office Ethernet network. You’ll probably already have a router or switch that your desktop PCs are plugged into, although it will be best to create a new, separate network for your TV as the traffic load is much higher than a normal data network designed for internet and/or LAN connectivity.

You can use any router or switch at all, as long as it supports multicast. Any £50-200 product from the high street or online retailer will do. Check the side of the packaging or the manufacturer’s documentation to see if the product you choose supports multicast natively (IGMP etc). Normal 100Mbit Ethernet is fine, although use Gigabit Ethernet if at all possible.

If you’re running all the screens and video from one server (for example, a portable laptop demo), you can even just use a simple crossover cable. Don’t try and run video over a wireless connection, no matter how good the reception is. HTML screens and menus will work fine, but processor-hungry compressed video is another story.

An IP set-top box is just another network client device. When it is connected to the IP network, it is assigned an IP address by DHCP just as a desktop PC would be (this can also be static). If your router doesn’t act as a DHCP server, you don’t have a network gateway or are experiencing problems with a crossover cable, simply download and install a free DHCP server from the internet onto your web server PC.

Your PLC (powerline communication) adaptors create an Ethernet network over existing electricity cabling, which avoids the need to have wiring everywhere when you can’t use wireless. They generally come in pairs, and cost £100-200 from the high street, your ISP or online retailers. The first should be plugged into an AC plug near the router, and the second should be plugged in next to the set-top box. Both then have Ethernet sockets which you plug normal cat-5 cable into.

4. Streaming live broadcast video
The first thing to simulate on your IPTV system is live TV that can be tuned into, and this can be done in two ways. The first is easy, the second is either painful or expensive. Live broadcast IPTV needs to be multicasted 24-7 over the IP network, as unicast is too inefficient. We will be streaming live TV from our video server.

For each channel, we need to broadcast a 5 minute looping pre-captured video clip to a multicast IP address. For this, we can use the free VLC player, or the industry standard WinSend, created by Pixstream. The clip itself ideally needs to be previously encoded in MPEG-4 H.264 AVC, and formatted into an MPEG-2 transport stream. However, VLC being the Swiss army knife it is means we can convert open virtually any video file and encode it on the fly as we are broadcasting. Open your video file, and use the advanced options in VLC to stream the output onto the network as UDP, using a multicast address such as 235.5.5.5 to a random port (such as 10201).

You can test if the stream is being correctly outputted by opening the same network stream with another copy of VLC on another computer on the network. Do this for as many channels as you require. Once they are broadcasting, the set-top box will be able to tune into the multicast stream just as VLC does.

The more advanced way to provide live broadcast TV (such as Freeview) over an IP network is to convert MPEG-2 video received from a DVB receiver (a TV tuner card, for example those made by Hauppage) into multicast format, which is known as IP encapsulation. The painful way is to code your own encapsulation program using the vendor’s SDK, and the expensive way is to buy industrial hardware that does it for you (for example, Exterity, Anevia etc).

5. Preparing VoD content
Making DVD quality video across your network is split into two separate parts – getting the video files into the right format, and secondly, setting them up to stream from a video server. The bad news is that there isn’t a free or open source VoD server that you can use to exactly simulate what would happen in a commercial service.

Your video material will need to be pre-encoded in the same way the live multicast video is. Software encoders from vendors like Elecard, MainConcept Cyberlink and Nero will easily compress video from most formats (MPG, AVI, MOV etc) into MPEG 4 H.264 AVC, but they will additionally need to be encapsulated in an MPEG-2 transport stream for delivery over the network. The free open-source Media Coder program produces excellent results.

Video is very temperamental and requires state control, unlike typical web protocols such as HTTP. RTP (real-time protocol) and RTSP (real-time streaming protocol) were designed to provide VCR-like controls for IP networks, and most, if not all commercial VoD servers use these technologies for delivering quality-assured video. A lot of set-top box manufacturers have adapted their hardware to be able to simulate VCR-like features using HTTP so video can be streamed directly from a web server like Apache. We will use a combination of both to stream files ending in .mpg.

The main choices for serving video on-demand over our IPTV network are the open-source Helix Server and Darwin Streaming Server, both of which come in Windows flavour, but can also run on Linux. We also have a trial of the Elecard RTSP server that can also be run on either OS. If your own network is set up to use Windows Media, you can happily and easily unicast and/or multicast video from a Windows Server PC running the free Windows Media Server.

Once the video files have been pre-encoded, they need to be placed in the directory on the video server that has been allocated as the storage folder, as well as mirrored in the Apache web directory allocated on the web server. Almost all the RTSP servers have a web-based configuration panel and will need to index/identify each file for streaming. Once these are in place, test the RTSP capacity of the server by opening a network stream to them in VLC, and once any problems are corrected, your IP set-top box will play them using its in-built API.

6. Creating screens and menus
Menus for the TV screen are created in HTML, CSS and Javascript, just as normal web pages are, using the same standard tools (Dreamweaver, Photoshop etc). The software on the device is an ordinary web browser like IE, Firefox, Opera or Safari, and overlays the web pages you create on the screen through the scart cable (OSD). Most have full support for open standards and current technologies such as RSS and AJAX. Some also include the Macromedia Flash 6 player. It’s a case of write, and then refresh the browser screen, just like normal web development.

When the IP set-top box starts up and gains an IP address via DHCP, it will also request a “starting” URL of a web page from a web server, in the same way a PC web browser (e.g. IE, Firefox) will request a default home page. Producing screens for IPTV is almost the same as building an intranet site, with the only difference being that the HTML and Javascript contains set-top box-specific code that only the set-top box understands and executes (e.g. for tuning into multicast streams or issuing RTSP commands).

Each set-top box’s hardware is different, so there is a different Javascript API for each device model that must be obtained from the manufacturer. Video can be displayed and scaled as any kind of image on the page, and manipulated by normal Javascript functions. The set-IP will not come with any software applications pre-installed (or even commands on the remote to go back or refresh the screen), so the very first application you need to create is an electronic programme guide (EPG) to navigate around your service and watch video streams.

When mocking up screens in Photoshop, it is important to know that a standard definition PAL TV screen is 720 pixels wide by 576 pixels wide, before the so-called “safe area” is taken into account. Colour is considerably more primitive and much more sensitive to variance than on a desktop browser. The only input device available is a remote control with key codes similar to a desktop keyboard.

Using HTML for menu and screen displays means content can be dynamically generated using a server-side process just like any web page. The TV screen displays whatever you send it, meaning you can integrate any type of web-based system into your new IPTV network, such as the Asterisk VoIP PBX, the Jabber IM server, multiplayer game servers, your own web application or an external XML API.

7. Showtime!
Once you have your network set up, its up to you to get creating menus and screens, and adding video content onto your video server that can be played back through the TV. The production procedure is exactly the same as it is for a website, only with TV-specific functionality and usability issues. Over a few days or weeks, you suddenly have an entire TV network to yourself that you can do anything to, just as when you have your own website that you can do anything with.

Once you’re happy with what you’ve put together, its time to sit down the boss, colleague, wife, girlfriend, boyfriend or fellow interested nerd and beam with pride as you press buttons on that remote and surf around.

]]>
http://atifunaldi.com/2009/05/11/how-to-build-your-own-iptv-vod-system/feed/ 1 atifunaldi
In my humble opinion online ad spending forcast’s will be lower than the realistics http://atifunaldi.com/2008/07/03/in-my-humble-opinion-online-ad-spending-forcasts-will-be-lower-than-the-realistics/ http://atifunaldi.com/2008/07/03/in-my-humble-opinion-online-ad-spending-forcasts-will-be-lower-than-the-realistics/#comments Thu, 03 Jul 2008 15:18:46 +0000 atifunaldi http://atifunaldi.wordpress.com/?p=27 ]]>

Online Ad spending will be 13% of all adspending on 2012 for some forcasts. If Maya’s wrong and we awill live in 2012 then I have to say that the percentage seems to me very poor. In 2012 the iptv subscribers will be 50 milion. that means that the big percentage the, the tv adspending will be cutted between tv and iptv.  That ’s why I think the online ad spending must be 25 % of the total ad spending on 2012.

Worldwide Online Ad Spending

JULY 3, 2008

Reaching for a bigger slice of the total ad pie

Several recent worldwide online ad spending projections indicate that the medium still has a lot of room for growth.

Worldwide online ad spending will reach $65.2 billion in 2008, according to IDC’s “Digital Marketplace Model and Forecast.” The research company predicted 15% to 20% annual growth through 2011, when spending would hit $106.6 billion.

IDC said that online ads would account for nearly 10% of all ad spending across all media in 2008, rising to 13.6% by 2011. Nearly one-fifth of Western European ad spending will be online by that time.

“The long-term opportunity for Internet advertising can be seen in the disparity between per-capita spending,” said John Gantz, chief research officer at IDC, in a statement. “Total advertising revenues equate to more than $105 per inhabitant of the planet, while Internet advertising revenues are less than $50 per active Internet user.”

In May, Credit Suisse lowered its worldwide online ad spending estimates and forecast only modest growth in total ad spending for the next two years. The investment bank said the US and most other developed nations would actually drag growth down, thanks to phenomenal growth in developing nations.

Credit Suisse’s estimates of online ad spending as a percentage of total ad spending were very close to IDC’s: 10% last year and 12% this year.

Yet another estimate, this one produced in May by Bernstein Research put online ad spending at 9.4% of total ad spending for 2008, rising to 13.1% in 2012.

The climbing ratio of online ad spending to total ad spending will help drive up the dollar amount advertisers spend on the Web.

eMarketer senior analyst David Hallerman has noted a number of reasons to expect continued growth in online ad spending in the US, which also apply to the medium worldwide. Among them:

  • Online ads are more measurable than other media, making them increasingly appealing to advertisers.
  • The Internet audience is huge, so the simple process of advertising following eyeballs will lift spending.
  • Internet ad prices are rising, thanks to targeting and other techniques, which can push up overall spending.

“US Internet ad spending is not impervious to the current economic weakness. However, those economic effects are more the case for display advertising than for paid search advertising,” said Mr. Hallerman. “Even so, the trend toward display ads, including video and rich media, continues to attract brand marketers as they shift spending from traditional media to the Internet.”

Learn how online advertisers will perform for the rest of the year. Read eMarketer’s US Online Advertising: Resilient in a Rough Economy report.

]]>
http://atifunaldi.com/2008/07/03/in-my-humble-opinion-online-ad-spending-forcasts-will-be-lower-than-the-realistics/feed/ 0 atifunaldi
Iptv effects Media Revenue http://atifunaldi.com/2008/06/19/iptv-effects-media-revenue/ http://atifunaldi.com/2008/06/19/iptv-effects-media-revenue/#comments Thu, 19 Jun 2008 17:38:41 +0000 atifunaldi http://atifunaldi.wordpress.com/?p=19 ]]>

Media Revenue will seems to be growing but mostly in digital media. The approximate increase is in iptv, internet radio…

Global entertainment and media revenue is forecast rising by an average of 6.6 percent a year to $2.2 trillion by 2012, boosted by advertising-supported digital and mobile media and an explosion in the adoption of broadband.

According to the PricewaterhouseCoopers (PwC) annual forecast released on Wednesday, advertising tied to the burgeoning interest in watching videos on the Internet and on devices, such as Apple Inc’s <AAPL.O> iPod, will account for 24 percent of growth in the sector and is projected to grow fastest at a compound annual growth rate of 19.5 percent to 2012.

Total entertainment and media revenue growth is seen outpacing global gross domestic product, which will increase 5.7 percent, according to the report.

Despite the acceleration of digital businesses, revenue from traditional media venues such as television will still dominate global market share, if not growth. Digital and mobile revenue will account for only 11 percent of total spending, or $234 billion, in the next five years.

PwC’s report presents a more stable view of large media and entertainment companies. Those shares have sunk more than 13 percent since the beginning of the year — at a steeper rate than the Standard & Poor’s 500 Index <.SPX> — on fears that the weak economic climate could curtail consumer spending and spark an advertising recession.

Last week, Lehman Brothers argued that with entertainment company valuations near 10-year lows, it might be a good time for investors to shop for deals, such as News Corp <NWSa.N>.

One surprise: Advertising on over-the-air television globally — the sector viewed by Wall Street as one of the most vulnerable in a weakened economy — is expected to rise 5 percent on a compounded annual growth basis to 2012, making it the most resilient to threats posed by digital growth.

“The oft-reported death of traditional media remains greatly exaggerated,” according to the report.

The weakest area in the next five years will be the music industry. Ravaged by online piracy, recorded music sales are expect to fall by 0.6 percent to 2012, but is seen growing again by 2011, when digital sales will overtake CD sales.

What’s unlikely to be solved in the next five years? “While companies are making bold moves to follow consumers into the digital/mobile future, they continue to wrestle with the challenge of creating business models that adequately monetize their efforts,” the report said.

PwC’s report, which surveys 15 major industry segments in 59 countries, underscored a trend over the past few years. The United States will continue to account for the biggest share of revenue by country, or $759 billion by 2012, but will grow the slowest at about 4.8 percent, outpaced by the Asia Pacific and Latin America.

]]>
http://atifunaldi.com/2008/06/19/iptv-effects-media-revenue/feed/ 0 atifunaldi