Free Web Hosting

Upload Video to Multiple Video Share Sites With TubeMogul

September 9th, 2008 Bala Krishna Posted in Advertising, Blogging, Browser Stuff, FLVTool, Tips and Tricks, Web Technology, uber-uploader No Comments »

TubeMogul is a free service that allow you to upload your video to top video sharing sites from a single point. TubeMogul also support powerful video analytic and detailed information about your video.

They support number of features that really save your time.

  • Powerful analytic tools with charting features to track your video performance.
  • Upload video at once to all major video sharing site. Great time saver.
  • Ability to exports charts and other data to Excel.
  • Check out other TubeMogul features here
AddThis Social Bookmark Button

How to extract .gz file content by gunzip utility

January 13th, 2008 Bala Krishna Posted in CentOS, Crawler, Error Log, Events, FFMPEG, FFMPEG-PHP, FLVTool, Financial, Firefox Add-On, General, Gmail Stuff, Linux, Linux Commands, Online Media, Operating System Tutorial, PHP Function, PHP Programming, PHP Tutorial, Page Rank, Tips and Tricks, Web Development, Web Technology, Window Application, windows xp No Comments »

Like the windows, gz is common compression utility in Linux. This guide is to extract content of the .gz file by gunzip utility. Here is the command to see and extract content of the gz file.

View gz file content

gunzip -c mybackup.gz

Extract file file content in another file. you can use different file extension depend on the content of file.

gunzip -c mybackup.gz > mybackup.sql

Compress the mybackup.sql file as mybackup.gz in the current directory.

gunzip -c mybackup.sql > mybackup.gz

Here is the full details of the gzip command.

Read the rest of this entry »

AddThis Social Bookmark Button

Compile and Build FFMPEG on Windows Platform

January 2nd, 2008 Bala Krishna Posted in Browser Stuff, Bug Fix, CentOS, Crawler, FFMPEG, FFMPEG-PHP, FLVTool, Firefox Add-On, General, Google, Linux, Linux Commands, PHP Function, PHP Programming, PHP Tutorial, Tips and Tricks, Web Technology No Comments »

Installing FFMPEG from the source in window platform is easy as you do for other window application. Here is the complete instructios how to build FFMPEG in windows. To install FFMPEG on windows you need to install third party MinGW and MSys library that is compatible with GCC. This library is required to build ffmpeg in windows and support shell to run commands.

Download MinGW and MSys

MinGW: MinGW Direct download link
MSys: MSys Direct download link
SF Link: Sourceforge MinGW MSys Package Download Page
FFMPEG: FFMPEG Download fully patched version

ffmpeg mingw msys compile build

Building FFMPEG

It is time to install ffmpeg. Extract downloaded ffmpeg archive in c: folder. If you have not downloaded yet please download now then run MSys.bat file from C:\msys\1.0\ folder. This location will be depend on you MinGW and MSys installation. In the command prompt run the following commands:

$ cd c:/ffmpeg-0.4.7

$ ./configure –extra-cflags=”-mno-cygwin -mms-bitfields” –extra-ldflags=”-Wl,–add-stdcall-alias” –enable-mingw32 –enable-shared –disable-a52 –disable-pp –disable-ffserver –disable-ffplay
$ make

AddThis Social Bookmark Button

Clip-Share Upload Video Internal Server Error

December 28th, 2007 Bala Krishna Posted in Bug Fix, CentOS, Error Log, Events, FFMPEG, FFMPEG-PHP, FLVTool, Google, Linux, Linux Commands, Tips and Tricks, Web Development, Web Hosting, Web Technology, Wordpress Theme 3 Comments »

Clip-Share is mature script to run your own video sharing website like YouTube. This script is available variety of features and options at low cost. Unfortunately, they don’t have good knowledge base to short out technical problems related to script installation. The common problem with Clipshare and other video sharing script is in video upload and conversion module. Here is the error i received while i tried to upload video. The script produce error in initialization of progress bar.

Error:Â “returned status code 500 Internal Server Error”

Clip share internal server error

Possible Solution:

  • Check cgi-bin directory and files permission. In the script, upload progress monitored by perl script so that cgi-bin directory and files inside directory should have 755 permission. Make the changes if applicable.
  • Check temp and video path setting in “cgi-bin/configs/uu_default_config.pm” file. It should point to correct folder. Both these folder should be writable by webserver.
    temp_dir                => ‘/home/domain/public_html/tmp/’,
    upload_dir              => ‘/home/domain/public_html/video/’,
  • Check flvideo folder permission in your installation directory. It should be writable by webserver.
AddThis Social Bookmark Button

Setting up website in WHM server

December 20th, 2007 Bala Krishna Posted in CentOS, FFMPEG, FFMPEG-PHP, FLVTool, Godaddy Hosting, Hardware, Linux, Linux Commands, Operating System Tutorial, PHP Function, PHP Programming, PHP Tutorial, Tips and Tricks, Web Design, Web Development, Web Hosting, Web Technology No Comments »

WHM is a Web Host Manager tool that allows server administrators to quickly and easily add new web hosting accounts on a WHM enabled Web server. Here is steps to create new hosting account without hassle.

  1. Log into WHM account with your username and password.
  2. Click the Create a New Account link from the Account Functions menu.
  3. Enter the domain name into the Domain field, and the username into the UserName field. The UserName field will initially default to a name based on the domain you enter, but you may change it if you wish.
  4. Enter a password into the Password field, and the disk quota into the Quota field. The Quota field, measured in MegaBytes, controls how much hard-disk space the new account is allotted.
  5. Decide whether to allow CGI access, Shell access and FrontPage extensions, then check the respective boxes accordingly.
  6. Decide on limits for the following boxes and enter values for each in the text field for each: Max FTP Accounts, Max Email Accounts, Max Email Lists, Max SQL Databases and Max Sub Domains.
  7. Enter the maximum bandwidth for the account (in MegaBytes) into the Bandwidth Limit field.
  8. Click on “Create” button.

 

AddThis Social Bookmark Button

Managing users in Linux

December 18th, 2007 Bala Krishna Posted in Blogging, Browser Stuff, Bug Fix, CentOS, FFMPEG, FFMPEG-PHP, FLVTool, Linux, Linux Commands, Operating System Tutorial, PHP Function, PHP Programming, PHP Tutorial, Tips and Tricks, Web Technology No Comments »

Here is the very useful list of commands used to manage users.

  1. su (1) - run a shell with substitute user and group IDs
  2. useradd (8) - Create a new user or update default new user information
  3. userdel (8) - Delete a user account and their files from the system. The command “userdel -r newuser” will remove the user and deletes their home directory.
  4. usermod (8) - Modify a user account.
  5. adduser(8) - Command used to add user accounts.
  6. chage (1) - Used to change the time the user’s password will expire.
  7. chfn(1) - Change a user’s finger information
  8. chsh(1) - Change a user’s shell.
  9. chgrp (1) - Changes the group ownership of files.
  10. chown (1) - Change the owner of file(s ) to another user.
  11. gpasswd (1) - Used to administer the /etc/group file.
  12. groupadd (8) - Create a new group.
  13. grpconv (8) - Creates /etc/gshadow from the file /etc/group which converts to shadow passwords.
  14. grpunconv (8)- Uses the files /etc/passwd and /etc/shadow to create /etc/passwd, then deletes /etc/shadow which converts from shadow passwords.
  15. groupdel (8) - Delete a group
  16. groupmod (8) - Modify a group
  17. groups (1) - print the groups a user is in
  18. grpck (8) - Verify the integrity of group files.
  19. id(1) - Print group or user ID numbers for the specified user.
  20. newgrp(1) - Allows a user to log in to a new group.
  21. newusers (8) - Update and create new users in batch form.
  22. nologin (5) - Prevent non-root users from logging onto the system.
  23. passwd (1) - Used to update a user’s password. The command “passwd username” will set the password for the given user.
  24. pwconv (8) - Used to create the file /etc/shadow from the file /etc/passwd to convert to shadow passwords.
  25. pwunconv (8) - Uses the files /etc/passwd and /etc/shadow to create /etc/passwd, then deletes /etc/shadow to convert from shadow passwords.
AddThis Social Bookmark Button

Convert video files to FLV using FFMPEG command

December 18th, 2007 Bala Krishna Posted in Browser Stuff, CentOS, FFMPEG, FFMPEG-PHP, FLVTool, Internet Explorer, Linux, PHP Function, PHP Programming, PHP Tutorial, Tips and Tricks, Web Design, Web Development, Web Technology 7 Comments »

FFMPEG is a most popular command line tool to convert media files such as audio, video and images from one format to another. We are going to learn ffmpeg command usage to convert other media format to current most popular streaming FLV format. FFMPEG is cross platform tool and does not require any Gui, support several command line options to control your conversion. The other video format can not be played directly in web browser. A right way to publish your videos for viewing in a browser is using FLV wide acceptable format.

How to convert / FFMPEG usage command

Convert other video format to FLV

ffmpeg -i video.avi -ar 22050 -ab 32 -f flv -s 320×240 video.flv

-i input file name
-ar audio sampling rate in Hz
-ab audio bit rate in kbit/s
-f output format
-s output dimension

Convert other video to FLV with metadata

This require flvtool2 tool to be installed on your box.

ffmpeg -i video.avi -ar 22050 -ab 32 -f flv -s 320×240 - | flvtool2 -U stdin video.flv

Convert FLV vidoe to jpg image sequence

This command used to extract frame image sequence.

ffmpeg -i video.flv -an -r 1 -y -s 320×240 video%d.jpg

-i Input file name
-an disable audio
-r fps
-y overwrite file
-s output dimension

Convert particular frame to jpg

Return one particular jpeg image of the frame based on start and end time.

ffmpeg -i video.flv -an -ss 00:00:03 -t 00:00:01 -r 1 -y -s 320×240 video%d.jpg

-ss record start time
-t record end time last for

Return first frame of video as jpeg image.

ffmpeg -i video.flv -vcodec png -vframes 1 -an -f rawvideo -s 320×240 video%d.jpg


AddThis Social Bookmark Button