Watch2Convert

From M1Research

(Difference between revisions)
Jump to: navigation, search
(Configuration)
(Download)
Line 58: Line 58:
==Download==
==Download==
 +
* [{{SERVER}}/downloads/watch2convert/watch2convert.bin.zip watch2convert.bin.zip] - precompiled binaries with some config sample.
 +
* [{{SERVER}}/downloads/watch2convert/watch2convert-r24.src.zip watch2convert-r24.src.zip] - sources, latest svn trank.
==Links==
==Links==

Revision as of 14:59, 26 May 2007

Contents

About

Watch2Convert is frontent for ffmpeg that provide watch-folder functionality. Watch2Convert monitor folder for files that must be converted, convert them and send to another folder or upload to ftp server.

Running

All paramters submitted to watch2conver from command line argument:

bin\watch2convert.exe -conf <config> -ffmpeg <ffmpeg.exe> -ncftpput <ncftpput.exe> -ncftpget <ncftpget.exe>

where:

  • <config> - full name of configuration file
  • <ffmpeg.exe> - full name off ffmpeg.exe executable
  • <ncftpput.exe> - full name off ncftpput.exe executable
  • <ncftpget.exe> - full name off ncftpget.exe executable

Program started minimized as tray icon, double click on icon or use context menu to open window.

It's possible to run multiple instances of watch2convert (with different config files of course).

Configuration

Configuration file is simple text file used ':' to split paramter name from value, i.e.:

title: avi+wav TO dvcam avi on ftp
watch_path: c:\temp\w2c\mjpg2avi
put_path: /
put_ftphost: dvplayout
put_ftpuser: video
put_ftppassw: video
exts : avi wav
del: 0
avisynth_template: C:\projects\watch2convert\conf\wav+avi+12dB.avs
avisynth_args: avi wav
temp: c:\temp
threads: 2
ffmpeg_cmd: -threads 1 -f avi -vcodec dvvideo -r 25 -acodec pcm_s16le -ac 2 -pix_fmt yuv420p 
ffmpeg_args: avs
ffmpeg_ext: avi

Where:

  • title - title (human) name of task provided by this config.
  • watch_path - Local path that is used for files lookup.
  • put_path - Destination path, where encoded files stored.
  • put_ftphost , put_ftpuser , put_ftppassw - if you need to store resulting file (encoded) to remote ftp host you should define this parameters with correct values.
  • exts - Extensions of files should be found. If you need single file - specify single extension, i.e. avi; if you need a pair of files, i.e. sample.avi sample.wav specify two extensions avi wav
  • del - if source files should be deleted after successfull encoding, specify value 1.
  • avisynth_template - if you want to use AviSynth for pre-processing source video/audio, you should specify full name to avs template. For example, AviSynth template used to open avi and wav files, normalize audio:
video = AviSource("%s")
audio = WavSource("%s")
audio = Normalize(audio, 0.25)
return AudioDub(video, audio)
  • avisynth_args - This parameter defines list of files (by extensions) that should be submitted to AviSynth template in same order that they used in template.
  • temp - Path used to store temporarity files.
  • threads - It's possible to run more then one encoding threads simultaneously. Specify desired value (more then zero).
  • ffmpeg_cmd - part of command line arguments used for running ffmpeg, encoder configuration.
  • ffmpeg_args - extensions list of source files should be submitted as ffmpeg sources, specify avs for submitting generated AviSynth template or if you do not use AviSynth for preprocessing, specify extensions from lookup list exts.
  • ffmpeg_ext - resulting file extension.

Download

Links

Licence

    Watch2Convert
    (Watch-folder ffmpeg frontend)

    Copyright (C) 2007 Maksym Veremeyenko.
    This file is part of Watch2Convert (Watch-folder ffmpeg frontend).
    Contributed by Maksym Veremeyenko, verem@m1.tv, 2007.

    Watch2Convert is free software; you can redistribute it and/or modify
    it under the terms of the GNU General Public License as published by
    the Free Software Foundation; either version 2 of the License, or
    (at your option) any later version.

    Watch2Convert is distributed in the hope that it will be useful,
    but WITHOUT ANY WARRANTY; without even the implied warranty of
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    GNU General Public License for more details.

    You should have received a copy of the GNU General Public License
    along with Watch2Convert; if not, write to the Free Software
    Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
Personal tools