Guide Center   Download videos and enjoy them offline!

How to use Video Encoder Engine for Adobe Flash (Windows Version)
Sothink Video Encoder Engine for Adobe Flash (Windows Version) can convert almost all popular formats of video to FLV format in console mode. You can do advanced video editing, batch conversion, quality control and other tasks with CGI or any other server-side scripting language. You can fully control the converted Flash Video: dimension, frame rate, key frame interval, bit rate and etc with command-line parameters.

 

Totally FREE Video Converter for All Multimedia Devices
Support AVI, MP4, 3GP, MPEG, WMV, FLV, and even HD MOV, MKV, M2TS, MTS, etc

 

Go to get video hosting site setup guide for ASP, ASP.net and PHP >>>

 

Usage
  • 1. Please make sure you have installed the Command-Line version of Sothink Video Encoder for Adobe Flash successfully.
  • 2. Run the Command-Line version: Click Start --> All Programs --> SourceTec --> Sothink Video Encoder for Adobe Flash (Command-Line Version)
  • 3. Enter the command: FVEC sourcefile [targetfile] [options]

 

Example

E.g. 1: Create a Flash Video with default settings. Because we did not specify the dimension of output video, the program will use the dimension of source video (320x240) by default.

C:Test>fvec c:testmovie.wmv c:testmovie.flv

E.g. 2: Create a Flash Video, set the dimension of output video to 160x120, video bit rate to 300 Kbps, and with stereo audio.

C:Test>fvec c:testmovie.wmv c:testmovie.flv -vw 160 -vh 120 -vb 300 -ac 2

E.g. 3: Create a Flash Video with mono audio, and crop the picture of source video with a cropping rectangle (100,100,260,220). Please note we did not specify the dimension of output video, thus the program took the cropping area as the dimension setting.

C:Test>fvec c:testmovie.wmv c:testmovie.flv -vc 100,100,260,220 -ac 1

E.g. 4: Create a Flash Video and a 160x120 thumbnail image file.

C:Test>fvec c:testmovie.mpg c:testmovie.flv -tn c:testmovie.jpg -tw 160 -th 120

 

Command Line Parameters

sourcefile The full path of the input video file.
targetfile The full path of the output .flv file. You can omit this parameter when using the -i option.
-h Show the usage of the program.
-v Show the version of the program.
-reg Display the registration window. If you have purchased the program, you can enter the registration key then.
-i Show the information of the input video file, and do not perform the encoding. Please omit the targetfile parameter.
-vw The width of the output video in pixels. Please specify a value between 16 and 2880. If you omit this option:
If no cropping area specified (see the -vc option), the width of the input video will be used.
If you specified a cropping area (see the -vc option), the width of the cropping area will be used.
-vh The height of the output video in pixels. Please specify a value between 16 and 2880. If you omit this option:
If no cropping area specified (see the -vc option), the height of the input video will be used.
If you specified a cropping area (see the -vc option), the height of the cropping area will be used.
-vb The bit rate of the output video in Kbits/s. Please specify a value between 1 and 9999. If you omit this option, the program will automatically calculate a proper value for you.
-vf The fps of the output video. Please specify a value between 1 and 30. If you omit this option, the fps of the input video will be used.
-vk Specify the video key frame interval of the output video. The smaller key frame interval is, the better picture fluency of Flash Video you can get, but the .flv file size will be larger. The suggested key frame interval is half of the Fame rate value. For example, if the Frame rate is 24, then you'd better set the key frame interval to be 12. If you omit this option, the program will set it automatically.
-vz Video zoom mode of the output video. You can specify L, P or S mode. If you omit this option, the program will use the L option. L: Letter Box
If you adopt Letter Box mode, the picture will be shrunk to fit the target dimension while preserving the aspect ratio of source video, and black bars will be added to fill the gaps. P: Pan & Scan
Only parts of the source video would be converted with Pan & Scan mode. The program will cut out some detail around the picture, which is not considered that important, to make the width or height fit. S: Stretch
With Stretch mode, the whole video will be recorded at full dimension for preserving all the fine details, but the picture will lost the original aspect ratio and be literally squashed out of shape.
-vc Specify the cropping rectangle of the input video. Please enter four integers here, separated by commas (NO space between comma and integer). The first 2 numbers are the coordinates of the top left of the cropping area, and the second two numbers are the coordinates of the bottom right of the area. For example, if you specify 10,20,330,260, the dimension of the cropping area will be 320x240, locating at (10, 20). If you omit this option, the entire area of the input video will be encoded.
-ad Specify this option if you want to disable the audio. The output .flv will contain video stream only.
-as Specify the audio sample rate in Hz. The available values are 11025, 22050 and 44100. If you omit this option, 44100 Hz will be used.
-ab Specify the audio bit rate in Kbits/S. The available values are related to the sample rate. Please refer to the Audio Settings table for detailed information. If you omit this parameter, 96 Kbps will be used.
-ac Specify the audio channels. The available values are 1 and 2. If you omit this option, the channels of the input audio will be used.
-ag Specify the gain value to adjust audio volume. The value is from -5.0 to 30.0db. Please note that if the gain is too high, the audio may get distortion.
-tn Specify the file name for created thumbnail image file.
-tw Specify the width of created thumbnail image. The program will use the width of source video by default.
-th Specify the height of created thumbnail image. The program will use the height of source video by default.
-tf Specify the frame ID for created thumbnail file. For example, "tf 1" means the program will get the first frame to create thumbnail image, and "tf 48 " means the 48th frame. The program will use the first non-empty frame to create thumbnail image by default.
-wn The full path of the image file used to create the watermark. All common image formats are supported including BMP, JPEG, GIF (support transparent and animated GIF), PNG (support semi-transparent PNG), TIFF (support transparent TIFF).
-wp The desired position of the watermark, for example, 10,10. The coordinates are related to the top left corner of the video.
-ws Duration and interval of watermark in seconds, for example, 5,60.

 

The Output and Exit Code of the Program

When you run the program from the Windows console or execute it in another application, the program will print certain information to the STDOUT. You can catch the STDOUT in your application to get desired information from the program at run-time.

Output

If the input video file is a valid video file and can be encoded, the program will print the following information to the STDOUT in turn:

  • Duration
  • Audio Information
  • Video Information
  • Conversion Progress

Below is an example:

C:Test>fvec c:testmovie.wmv c:testmovie.flv
Duration: 00:00:12
Audio: Windows Media Audio 9, 32 KHz, 32 Kbps, 2 Channels
Video: Windows Media Video 9, 320 x 240, 350 Kbps, 15.00 fps
Percent: 2%
Percent: 43%
Percent: 84%
Percent: 100%

  • Duration: Print the length of the input video. The format is HH:MM:SS.
  • Audio: Print the Audio Codec Name, Audio Sample Rate, Audio Bit Rate, Audio Channels in turn, separated by commas and a space.
  • Video: Print the Video Codec Name, Video Dimension, Video Bit Rate, Frame Rate in turn, separated by commas and a space.
  • Percent: Print the Conversion Progress in percent periodically. The percent of 100% means the conversion is accomplished and the program has terminated automatically.

If the input video file is not a valid video file, or the file can not be encoded correctly, the program will print one line of error message to the STDOUT and then terminate. The error message starts with the text "Error:" and is followed by a description of the error reason. For example, when you type the following command in the console (assume "nonexistent.mpg" does not exist):

C:Test>fvec c:testnonexistent.mpg c:testmovie.flv

You will see the following error message:

Error: Can not find the source file "c:testnonexistent.mpg".

Exit Code

The program may exit with the following exit codes. You can check the exit code to know if the conversion is finished successfully or not.

 

Exit Code Description
0 Conversion is finished successfully.
1 Conversion failed.
2 The 30-day trial version of the program has expired.
3 Program initialization error.
4 Insufficient parameter supplied. For example, you passed the -vb parameter, but did not specify the video bit rate.
5 Unrecognizable parameter found. Please refer to the patameters section for more information.
6 Invalid parameter passed to the program. For example, the bit rate value exceeded the permitted range.
7 Can not parse the input file.
8 Can not encode the input file.

 Go to get video hosting site setup guide for ASP, ASP.net and PHP >>>

 Back to top

 

 

 

If you have any questions about this tutorial, please contact us. We will  reply as soon as possible.