Warning: Function split() is deprecated in ..../global.php(29) : eval()'d code on line 31
Setting Up Conversion Configuration
Results 1 to 1 of 1

Article: Setting Up Conversion Configuration

  1. Setting Up Conversion Configuration

    0 Comments by admin Published on 25th March 2010 01:26
    Seyret has a video conversion system for uploaded videos. First lets clear an important subject that conversion is done via third party applications like ffmpeg or mencoder. Seyret only sends the command to start conversion process. Conversion may fail or succeeds, it is totally related to your server settings and ffmpeg or mencoder compilation parameters. Your converter program may need some extra codecs for your uploaded video type.

    Seyret has two setting types for conversion configuration: Basic and Advanced. Basic configuration uses ffmpeg as the default converter application. Also it uses some standard and basic parameters. If you want to use these basic settings, please check some ffmpeg documents and try to find best values for your needs.

    Seyret also has an advanced configuration for conversion process. You can see these settings on Seyret admin->Configuration->Conversion Tab->Advanced Settings Slider. A very important point is that, if you set Use Advanced Conversion Commands value to Yes, Seyret will omit basic settings and will use Advanced Parameters. So if you are not planning to use advanced parameters, you should set Use Advanced Conversion Commands value to No. Otherwise your conversion process will fail.

    We have two important parameters for advanced conversion. These parameters are indeed a special formatted command lines. Seyret will read, process and run them. With these advanced settings, you can use some other converter applications like mencoder. You can set the best values for your server. This new system is very flexible and you can try many different conversion commands.

    Advanced Video Conversion Command parameter has two defined tags to be used. {inputfile} and {outputfile} tags. Your command line should contain these two parameters to run correctly. Also please pay attention that while {inputfile} tag contains the file extension, {outputfile} tag doesn't contain file extension. In other words, after {inputfile} tag you will not use a file extension, but after {outputfile} tag you should enter a file extension. This will give you the flexibility to define your converted video file: flv, mp4 etc. Please check the following example to make it more clear.

    Here we lets give an example. Please don't forget, you don't have to use the same command. Just obey the tag rules and write what ever you want.

    /usr/local/bin/ffmpeg -i {inputfile} -ab 48k -ac 2 -ar 44100 -f flv -deinterlace -nr 500 -s 600x450 -r 30 -b 270k -me_range 25 -i_qfactor 0.9 -qmin 8 -qmax 8 -g 500 {outputfile}.flv

    Now lets explain the command above.
    /usr/local/bin/ffmpeg is the full path of your converter application. If you have some other applications like mencoder, you can enter the path of that application. {inputfile} is the tag that we need to apply this conversion command to the uploaded files. We don't use an extension after this tag, because your uploaded video file may be wmv, avi etc any format. {outputfile} is the tag for output file. It is very important, you should add an extension like .flv . You can use any type for your converted video file. -s 600x450 is the size of output video. You can use however you want.

    We strongly advice you to test your own advanced command from your ssh first. Replace the {inputfile} and {outputfile} tags with real file paths. Then enter that command from ssh. This will help you to test if your command is correct or wrong. Seyret will not return the the reason of error if your conversion command fails. So please use ssh method to detect problems.

    Thumbnail Extraction Command parameter has three defined tags to be used. {inputfile} , {thumbat} and {outputfile}. The naming rules for {inputfile} and {outputfile} are the same with Video Conversion Command tags. There is an extra tag here, {thumbat}. This tag represents the video time for thumbnail extraction. You should include this tag to extract thumbnails correctly.

    Again, lets give an example for Thumbnail Extraction Command. You can use your own command and adjust your own settings.

    /usr/local/bin/ffmpeg -i {inputfile} -y -f mjpeg -s 600x450 -ss {thumbat} -vframes 1 -an {outputfile}.jpg

    We strongly advice you to test your command on ssh. This will help you to detect the problems with thumbnail extraction process.

    Last edited by admin; 16th April 2010 at 04:51.

  2. Total Comments 0


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts