How to edit video on server side with command line

This tutorial guides you how to edit video on your server.

1.      download E.M. Total Video Converter Command Line and install it on your server.

2.      create video list file containing the input video info list.

Example: videos.txt

-f videofile1 -fst 2.5 -fd 0:1:20.0 -ti 200 -tt 1.4 -da -fit 2.4 -dafo
-f videofile2 -fst 0:10:36.0 -fd 45.3 -ti 10 -tt 2.0 -vol 200 -dafi -fot 1.6

Note: Each line in the list file represent the video editing info for one video file, the following is the usage of the command line parameters used in the video list file:

-f     video file name
-fst  video file start time, the format is hh:mm:ss.0.1s
-fd   video file duration time, the format is hh:mm:ss.0.1s
-ti    the index of the transition between video file and the next video file, range is (0, 310)
-tt    transition duration time, the format is ss.0.1s
-da  disable audio for the video
-vol volume of the video, range is (1 – 512)
-dafi              disable audio fade in
-fit   audio fade in time, the format is ss.0.1s
-dafo      disable audio fade out
-fot  audio fade out time, the format is ss.0.1s

3.      create audio list file containing the input audio info list.

Example: audios.txt

-f audiofile1 -fst 0:0:2.5 -fd 0:1:20.0 -fit 2.4 -dafo
-f audiofile2 -st 0:1:20.0 -fst 0:2:14.0 -fd 57.3 -vol 200 -dafi -fot 1.6

Note: Each line in the list file represent the video editing info for one audio file, the following is the usage of the command line parameters used in the video list file:

-f     audio file name
-st   audio file start time in track, the format is hh:mm:ss.0.1s
-fst  audio file start time, the format is hh:mm:ss.0.1s
-fd   audio file duration time, the format is hh:mm:ss.0.1s
-vol volume of the audio, range is (1 – 512)
-dafi       disable audio fade in
-fit   audio fade in time, the format is ss.0.1s
-dafo      disable audio fade out
-fot  audio fade out time, the format is ss.0.1s

4.      run E.M. Total Video Converter Command Line to edit video and convert the ouput video to flv, mp4, avi, gif, mp3, wav and etc.

Example:

tvcc –ffv videos.txt –ffa audios.txt –o output.flv

you can also modify the ouput video quality by specifying the video resolution, codec, bitrate, frame rate, audio codec, bitrate, sample rate, volumn, channel and so on with other command line parameters of E.M. Total Video Converter Command Line, for more information, visit http://www.effectmatrix.com/total-video-converter-command-line/help.htm#convert%20via%20commandline

Posted in emtvcc | Tagged , , , , , , , , , , | Comments Off

How to do picture in picture video editing on server side

This tutorial guides you how to do picture in picture video eding on your server.

1.       download E.M. Total Video Converter Command Line and install it on your server.

2.       create a xml file containing the PIP video info, include the file path of the base clip and the overlay clip at least.

Example: pip.xml

<?xml version=”1.0″ standalone=”no” ?>

<PIPInfo>

# BaseClipFileName: the path of the base video file

<BaseClipFileName>BaseVideoPath</BaseClipFileName>

# BCStartTimeInFile: the triming start time of the base video file

# the format is hh:mm:ss.0.1s

<BCStartTimeInFile></BCStartTimeInFile>

# BCDuration: the duration of the base video file, the format is hh:mm:ss.0.1s

<BCDuration></BCDuration>

# BCDisableAudio: disable audio in the base video clip, if 1, yes, else no

<BCDisableAudio></BCDisableAudio>

# BCVolumn: amplification factor of the base video clip volume

<BCVolumn></BCVolumn>

# OverlayClipFileName: the path of the overlay video file

<OverlayClipFileName>OverlayVideoPath</OverlayClipFileName>

# OCStartTimeInFile: the triming start time of the overlay video file

# the format is hh:mm:ss.0.1s

<OCStartTimeInFile></OCStartTimeInFile>

# OCDuration: the duration of the overlay video file

# the format is hh:mm:ss.0.1s

<OCDuration></OCDuration>

# OCCropLeft: crop the overlay video clip from left

<OCCropLeft></OCCropLeft>

# OCCropTop: crop the overlay video clip from top

<OCCropTop></OCCropTop>

# OCCropRight: crop the overlay video clip from right

<OCCropRight></OCCropRight>

# OCCropBottom: crop the overlay video clip from bottom

<OCCropBottom></OCCropBottom>

# OCDisableAudio: disable audio in the overlay video clip, if 1, yes, else no

<OCDisableAudio></OCDisableAudio>

# OCVolumn: amplification factor of the overlay video clip volume

<OCVolumn></OCVolumn>

# OCOpacity: opacity of the overlay video clip, range is (0, 255)

<OCOpacity></OCOpacity>

# OCStartTime: the start time of the overlay clip, relative to the base clip

# the format is hh:mm:ss.0.1s

<OCStartTime></OCStartTime>

# OverlayLeft, OverlayTop, OverlayRight, OverlayBottom:

# position for the overlay clip, relative to the base clip

<OverlayLeft></OverlayLeft>

<OverlayTop></OverlayTop>

<OverlayRight></OverlayRight>

<OverlayBottom></OverlayBottom>

# PIPAudioMode: PIP audio mode: if 0, use audio in base clip

# else if 1, use audio in overlay clip, else if 2, use audio in both clip

<PIPAudioMode></PIPAudioMode>

</PIPInfo>

3.       run tvcc.exe to convert the xml file to flv, mp4, avi, gif, mp3, wav and etc.

Example:

tvcc –f pip.xml –o output.flv

you can also modify the ouput video quality by specifying the video resolution, codec, bitrate, frame rate, audio codec, bitrate, sample rate, volumn, channel and so on with other command line parameters of E.M. Total Video Converter Command Line, for more information, visit

http://www.effectmatrix.com/total-video-converter-command-line/help.htm#convert%20via%20commandline

Posted in emtvcc | Tagged , , , , , , , , , , , | Comments Off

How to combine videos on server side

This tutorial guides you how to combine videos on your server.

1. download E.M. Total Video Converter Command Line and install it on your server.

2. combine videos in three ways:

  • run tvcc.exe using the command line parameter “-f” to combine multiple video files.

Example:

tvcc –f video_file1 –f video_file2 –f video3 –o output_video

  • create a txt file containing the video list and use “-ff” to combine multiple video files.

Example:

tvcc –ff videos.txt –o output_video

videos.txt:

video_file1
video_file 2
video_file 3

  • create a txt file containing the video info list and a txt file containing the audio info list, use “-ffv” and “-ffa” to combine the video and audio files.

Example:

tvcc –ffv video_info_list.txt –ffa audio_info_list.txt –o output_video

video_info_list.txt:
-f videofile1 -fst start_time_in_file -fd duration
-f videofile2 -fst start_time_in_file -fd duration

audio_info_list.txt:
-f audiofile1 –st start_time_in_track -fst start_time_in_file -fd duration
-f audiofile2 –st start_time_in_track -fst start_time_in_file -fd duration

you can also specify the transtiton between each video and the duration of the transition, volumn, fade in, fade out info of the videos and audios in the list with other command line parameters.

For more information, visit
http://www.effectmatrix.com/total-video-converter-command-line/help.htm#convert%20via%20commandline

Posted in emtvcc | Tagged , , , , , , | Comments Off

E.M. Total Video Converter Command Line Version 2.50 Released

E.M. Total Video Converter Command Line Version 2.50 Released Now!

New Features of Total Video Converter Command Line version 2.50:

1 Add support of Picture-In-Picture mode.
2 Fix the bug of thumbnail generating.
3 Fix bug of TVCC in the old version.

Usage of Picture-In-Picture mode in E.M. TVCC

-pip picture in picture file,such as: “-pip c:\pip.xml”
-pip ? show file format of picture in picture file
PIP xml file format:

<?xml version=”1.0″ standalone=”no” ?>
<PIPInfo>

# BaseClipFileName: the path of the base video file
<BaseClipFileName>BaseVideoPath</BaseClipFileName>

# BCStartTimeInFile: the triming start time of the base video file
# the format is hh:mm:ss.0.1s
<BCStartTimeInFile></BCStartTimeInFile>

# BCDuration: the duration of the base video file, the format is hh:mm:ss.0.1s
<BCDuration></BCDuration>

# BCDisableAudio: disable audio in the base video clip, if 1, yes, else no
<BCDisableAudio></BCDisableAudio>

# BCVolumn: amplification factor of the base video clip volume
<BCVolumn></BCVolumn>

# OverlayClipFileName: the path of the overlay video file
<OverlayClipFileName>OverlayVideoPath</OverlayClipFileName>

# OCStartTimeInFile: the triming start time of the overlay video file
# the format is hh:mm:ss.0.1s
<OCStartTimeInFile></OCStartTimeInFile>

# OCDuration: the duration of the overlay video file
# the format is hh:mm:ss.0.1s
<OCDuration></OCDuration>

# OCCropLeft: crop the overlay video clip from left
<OCCropLeft></OCCropLeft>

# OCCropTop: crop the overlay video clip from top
<OCCropTop></OCCropTop>

# OCCropRight: crop the overlay video clip from right
<OCCropRight></OCCropRight>

# OCCropBottom: crop the overlay video clip from bottom
<OCCropBottom></OCCropBottom>

# OCDisableAudio: disable audio in the overlay video clip, if 1, yes, else no
<OCDisableAudio></OCDisableAudio>

# OCVolumn: amplification factor of the overlay video clip volume
<OCVolumn></OCVolumn>

# OCOpacity: opacity of the overlay video clip, range is (0, 255)
<OCOpacity></OCOpacity>

# OCStartTime: the start time of the overlay clip, relative to the base clip
# the format is hh:mm:ss.0.1s
<OCStartTime></OCStartTime>

# OverlayLeft, OverlayTop, OverlayRight, OverlayBottom:
# position for the overlay clip, relative to the base clip
<OverlayLeft></OverlayLeft>
<OverlayTop></OverlayTop>
<OverlayRight></OverlayRight>
<OverlayBottom></OverlayBottom>

# PIPAudioMode: PIP audio mode: if 0, use audio in base clip
# else if 1, use audio in overlay clip, else if 2, use audio in both clip
<PIPAudioMode></PIPAudioMode>

</PIPInfo>

Sample: Create a PIP video from a xml file.

C:\E.M. TVCC>TVCC -pip E:\pipvideo.xml -o E:\OutputFiles\output.flv

the following is the content of the file pipvideo.xml:

<?xml version=”1.0″ standalone=”no” ?>
<PIPInfo>
<BaseClipFileName>base-clip-file-path</BaseClipFileName>
<BCStartTimeInFile>1:46</BCStartTimeInFile>
<BCDuration>2:9</BCDuration>
<BCDisableAudio>0</BCDisableAudio>
<BCVolumn>2</BCVolumn>
<OverlayClipFileName>overlay-clip-file-path</OverlayClipFileName>
<OCStartTimeInFile></OCStartTimeInFile>
<OCDuration>30.5</OCDuration>
<OCCropLeft>10</OCCropLeft>
<OCCropTop></OCCropTop>
<OCCropRight>10</OCCropRight>
<OCCropBottom></OCCropBottom>
<OCDisableAudio></OCDisableAudio>
<OCVolumn></OCVolumn>
<OCOpacity></OCOpacity>
<OCStartTime></OCStartTime>
<OverlayLeft>20</OverlayLeft>
<OverlayTop>40</OverlayTop>
<OverlayRight>120</OverlayRight>
<OverlayBottom>140</OverlayBottom>
<PIPAudioMode></PIPAudioMode>
</PIPInfo>

About E.M. Total Video Converter Command Line

E.M. Total Video Converter Command Line is a powerful but easy-to-use server side video tool for video encoding between all popular video and audio formats including flv, mp4, avi, wmv, swf, mkv, mp3, aac and so on for used on web, iPod, iPhone, iPad, PSP and etc., it supply you an easy and effecient way to add video encoding features such as video editing, batch conversion, quality control, watermarking, subtitling and etc. to your server side application and build your own video hosting site on Windows and Linux server(via Wine).

Posted in emtvcc | Tagged , , , , , , , , , , , | Comments Off

How to build your own video hosting site

This tutorial guides you to use E.M. Total Video Converter Command Line to setup an video hosting site or online video converter for uploading, encoding and exhibiting video instantly.

Software or Technologies Required

The technologies used in this SDK include:

Setup on Windows 2003 Server

To setup your video hosting site on a Windows 2003 Server, please follow these steps:

  • Step 1: Setup folders and files
  • Step 2: Create Application Pool for the Web site
  • Step 3: Configure the Web site
  • Step 4: Test your Web site

Setup folders and files

  1. Log on to your server with Administrator privilege.
  2. Download E.M. Total Video Converter Command Line from their Web site and install it on your Web server.
  3. Assign “full control” permission to account “IUSR_COMPUTERNAME” for the file named “log.txt”, which you can find in the install directory of E.M. TVCC.
  4. Download the PHP source code of E.M. TVCC Demo, Open it with WinZip and extract the files to your wwwroot folder, for example, c:\inetpub\wwwroot.
  5. Assign “full control” permission to account “IUSR_COMPUTERNAME” for folder
      “c:\inetpub\wwwroot\TVCCDemo\upload-convert\uploaded”
      “c:\inetpub\wwwroot\TVCCDemo\upload-convert\converted”
      “c:\inetpub\wwwroot\TVCCDemo\select-convert\converted”
      “c:\inetpub\wwwroot\TVCCDemo\upload-convert\tmp”
      “c:\inetpub\wwwroot\TVCCDemo\select-convert\tmp”

    By default, video files uploaded by users will be stored in the folder named “uploaded”, encoded video files will be stored in the folder named “converted” and output of TVCC will be saved in the folder named “tmp”.

  6. Assign “full control” permission to account “IUSR_COMPUTERNAME” for file “c:\inetpub\wwwroot\TVCCDemo\upload-convert\list.txt”, the demo will save the video uploading and converting record to this file.
  7. edit php files:
      find “E:/cmdvc/TVCC.exe” in ctvc.php, change it to the path of the executable file TVCC.exe.
      find “E:/cmdvc/pscount.exe”(on Windows) in ctvc.php, change it to the path of the executable file pscount.exe.

Create Application Pool for the Web site

  1. Open Internet Information Service Manager.
  2. Expand the “Internet Information Services (IIS) Manager” node. Right click the “Application Pools” node and select New > Application Pool.
  3. Give a name for the new Application Pool, for example, “MyAppPool” and click OK.
  4. Expand the “Application Pools” node, and right click “MyAppPool”, select Properties.
  5. Click the “Identify” page, change the predefined security account from “Network Service” to “Local System” and click OK.

Configure the Web site

  1. Open Internet Information Service Manager.
  2. Expand the “Internet Information Services (IIS) Manager” node. Right click your Web site and select “Properties”.
  3. Change the Execute permissions to “Scripts and Executables”.
  4. Change the Application pool to “MyAppPool”.
  5. Change the file uploading limitation of IIS. By default, IIS does not allow users to upload files larger than 200 KB.
    • Open Internet Information Service Manager.
    • Right click the “Internet Information Services (IIS) Manager” node and select “Properties”. Select “Enable Direct Metabase Edit” and click OK.
    • Open C:\WINDOWS\system32\inetsrv\Metabase.xml with a text editor; Find AspMaxRequestEntityAllowed and change its value to a proper value.
    • Save Metabase.xml and restart IIS.

Test your Web site

To test the site, please open your browser and navigate to

If everything goes well, you can upload video files to your server and encode them now.
Here is an online live demo site for example.

Posted in emtvcc | Tagged , , , , , , , , , , , | Comments Off

Ways to make your blog more popular

I just access this article from the web, I thought it was pretty good and had better share it with you. Some are easy, some tricky and some just made me laugh – it’s all good food for thought if you want to stand a chance of getting traffic and therefore MONEY from your blog.

Ways to make a blog popular:

1. Start a controversy. Just remember not to cross the line.
2. Start a contest. Make sure to end it too.
3. Give away free goodies. People love them.
4. Write about other bloggers to interest their visitors to read your blog. Keep it positive.
5. Dress up your blog often (By dress-up I mean tweaking the design)
6. Interview other bloggers and post the interview.
7. Write about your personal life sometimes.
8. Ask questions to your visitors.
9. Share some secrets.
10. Celebrate your birthday with your visitors. Think of innovative ways for doing this.
11. Celebrate your blog’s birthday too.
12. Write something funny or disgusting. (Don’t make it a habit)
13. Make a bumper sticker with your blog’s name and stick it on your car. (Just make sure you drive often)
14. Write an e-book and distribute it to your visitors for free.
15. Introduce a commission based affiliate program.
16. Tell your visitors about your latest fad or obsession.
17. Post interesting pictures of your pets.
18. Congratulate the top commentators occasionally.
19. Encourage sharing of opinions.
20. Donate for a cause or become a volunteer for a non-profit organization. Ask your visitors to join you.
21. Put your blog’s ad in the local newspaper or the yellow pages.
22. Hold blog competitions.
23. Create polls.
24. Hold an auction and let people bid for something useful (For example, advertising space on your blog).
25. Write about your blog achievements.
26. Share your hopes and aspirations about your blog.
27. Start an award distribution system.
28. Make contact with your local visitors and hold a get-together or a bloggers’ meet.
29. Start a blog comic strip.
30. Dig up some old article that you wrote on your blog which became famous and start a discussion.
31. Try and get a photograph clicked with a real celebrity and post it on your blog. (Hold on Tiger..don’t rush to that Photoshop button!)
32. Post videos that will help your visitors learn something new. Also submit them to video sharing websites like YouTube.com.
33. Write about your hobbies and interests. (For example, if you like cooking, post a new recipe)
34. Post about one of the weirdest thing that you ever did.
35. Get featured in a print magazine.
36. Buy a paid review from any famous blogger(s).
37. Brand your blog with a catch phrase along with a logo.
38. Distribute T-shirts or merchandise with your blog name on it.
39. Join Yahoo! Answers and put a link on your website to your answers.
40. Keep a track of websites that pick up your articles or press releases. Offer them exclusive news or content.
41. Do surveys and publish the results to your visitors.
42. Build tools that your visitors might find use for.
43. Start a newsletter.
44. Podcasting is another good way to make your blog popular.
45. Publicize your blog to your friends and relatives and let them do some work for you.
46. Be active in Social Bookmarking websites.
47. Share Link Love and you will get it back.
48. People like to read about Web 2.0. Write about it.
49. Write about something that’s already famous.
50. Last but not the least, be yourself.

Posted in other | Comments Off

About E.M. Total Video Converter Command Line

E.M. Total Video Converter Command Line is an effective easy-to-use console utility for video conversion between almost all video types and pocket devices include iPad, iPod, iPhone, PSP, flv, mp4, avi, mp3, aac and etc., it supply you an easy and effecient way to add video encoding features such as video editing, batch conversion, quality control, watermarking, subtitling, pictrue-in-picture and etc. to your server side application and build your own video hosting site on Windows and Linux server(via Wine).

E.M. TVCC Online is a free online video converter based on E.M. Total Video Converter Command Line written in PHP, it can help you downloading YouTube and other online videos or uploading your own video and convert it to flv, gif, swf, mp3, PSP, iPod, iPhone and etc. online without downloading and using any software. You can also do advanced video editing, batch conversion, quality control and other tasks with CGI or any other server-side scripting language.

Key Features of E.M. Total Video Converter Command Line:
1. Convert between all popular video and audio formats including flv, avi, wmv, mp4, mov, 3gp, mp3, wma and etc., convert video to Pockect players such as iPod, iPhone, PSP and etc.
2. Supporting adding subtitles, watermarks, logos and copyright images to video.
3. Supporting adding virtualdub filters to video.
4. Supporting Picture-In-Picture mode.
5. Combine several video and audio files to one video file.
6. Generate slideshow with your favorite picture and music.
7. Faster conversion speed and higher quality than other Flash Video Encoder or Video to Flash Converter.
8. Full control over the converted video: dimension, frame rate, bit rate and etc with command-line parameters.
9. Advanced video editing function lets you crop and fill the video.
10. Audio sample rate, bit rate, channels and volume are adjustable with command-line parameters.
11. Create thumbnail image for the converted video in JPEG format.

Posted in emtvcc | Tagged , , , , , , , , , , , | 1 Comment