Money-Code

Coding For Online Success

November 12, 2007
by admin
27 Comments

Using FFMpeg to create YouTube clone script

So this entry, I’m going to get a bit complicated. I was working on a project where administrators needed to upload Windows Media formatted videos (WMV), and wanted them converted to Flash video (FLV). This would duplicate what YouTube or GoogleVideo is currently doing. The browser would then use a Flash player to play the streamed videos. Also, I would need to capture a frame for the preview. I thought this tutorial might be a good resource for others that might be looking for this functionality for their affiliate sites, etc.

Now, I must discuss my environment a bit. This tutorial will cover Linux (specifically Gentoo Linux), using PHP and a Apache web server. Also, you will need some vital packages (ffmpeg-php, ffmpeg and flvtool2). I’m guessing that a few web hosts our there won’t have any of these packages available. This where the argument of getting a dedicated server or virtual server shines. If you had your own server you could install and configure it whatever way you want. I personally prefer dedicated servers. You can pickup dedicated hosting for approximately $100-$300/month depending on what server specifications you’re looking for. All of my servers are around the $150/month rate and work great for me.
Continue reading

October 11, 2007
by admin
0 comments

Monetizing your site with Google Video Units (AdSense)

Here is a great new way to monetize your site with video units from YouTube, and is available via Google AdSense Set Up! Set up was incredibily easy, just log into your AdSense account and click AdSense Setup. From there, you’ll see a new item called ‘Video Units’. From there you’ll need to agree to the terms and ‘merge’ your AdSense and YouTube accounts. You must first have a YouTube account and allow the ‘merge’ via email confirmations. After you’ve completed that step, you’ll be able to adjust themes, format and content of types of videos to play. I’ll be testing this out over the next few months. They’re only offering 3 types of player layouts (400×415, 500×510 and 780×560).. hopefully more will be available.

Continue reading