Difference between revisions of "SysRec/es"

From Free Pascal wiki
Jump to navigationJump to search
Line 15: Line 15:
 
[[User:Lightning|Razvan Adrian Bogdan]]
 
[[User:Lightning|Razvan Adrian Bogdan]]
  
=== Download ===
+
=== Cómo obtenerla ===
The application can be found on the [http://sourceforge.net/project/showfiles.php?group_id=92177&package_id=148359&release_id=331555 Lazarus CCR Files page].
+
La aplicación se puede encontrar en la página de archivos [http://sourceforge.net/project/showfiles.php?group_id=92177&package_id=148359&release_id=331555 ''Lazarus CCR''].
  
 
=== Usage ===
 
=== Usage ===

Revision as of 14:47, 12 June 2008

English (en) español (es)

Acerca de SysRec

  • La aplicación funciona en todas las versiones de Windows usando el VFW API disponible para todos los Windows de 32bit.
  • Permite los modos Prevista y Superposición (Overlay) con cualquier dispositivo de captura cómo cámaras y tarjetas sintonizadoras de TV, a pesar de que ha sido diseñado para su utilización con una WebCam.
  • Permite la captura silente de vídeo con cualquier resolución y profundidad de color, se puede seleccionar la codificación, de entre las disponibles, de la grabación para reducir el tamaño de los archivos y existe una función para guardar fotogramas. Añadir grabación de sonido es fácil.
  • Una aplicación llamadora se ha añadido para demostrar la intercomunicación de procesos mediante mensajes.
  • La aplicación está realizada con Lazarus pero algunos archivos y directivas han sido añadidos para que compile en Delphi
  • La aplicación utiliza la unidad Delphi-JEDI VFW con licencia MPL, no obstante son necesarias algunas pequeñas modificaciones para poder descargala de nuevo, busca "FPC" en la unidad actual para ello. Pudes descargar la unidad desde aquí (n.t.: la unidad VFW incluida en el paquete de la aplicación es más reciente).

Licencia

Esta aplicación puede ser utilizada según las licencias Lazarus modified LGPL y MPL, que permite la realización de proyectos comerciales que utilicen este código, pero no da garantía, tú eres el único responsable si esto código no funciona o causa algún percance a tu ordenador.

Autor

Razvan Adrian Bogdan

Cómo obtenerla

La aplicación se puede encontrar en la página de archivos Lazarus CCR.

Usage

To use the application simply open the .lpi files from your File Browser or using the Open Project option from the Lazarus IDE the press Run, the Main form should display and if you have a Capture Driver installed you should be able to see some images, in the Status Bar you will see if your device supports Overlay or just Software Preview, in Overlay mode the application use less CPU and with more dynamic rendering.
You should also see some buttons: Source, Format, Quality, Connect, Record/Stop.
The first 3 buttons open various dialogs wich are dependant on your configuration.
The Source button allows selecting and configuring a video source wich is capable of using a WDM driver.
The Format button allows selecting the resolution and number of colors for the captured images.
The Quality button allows selecting and configuring a codec, this is dependant on your installed codecs.
The Connect button is a workaround for a Windows bug wich does not detect Overlay/Preview modes properly when changing the video source using Select.
The Record button switches from Record to Stop when clicked and starts recording, the files are saved in the same directory and have the start and stop time in their name and the .avi extension.

Description

If any of the links do not work ask MS why did they move the website again and why is it so sloooow :)

How does it work ?

  • VFW is one of the simplest parts of the Windows API, this application simply creates a special window using capCreateCaptureWindow, you can call various functions using the handle resulted by creating this window.
  • After creating the window you have to connect it to a valid driver, for newer devices this is the default WDM driver, use capDriverConnect to connect the Capture window to a capture driver.
  • You will have to find if the driver supports hardware acceleration or Overlay, this is done by capDriverGetCaps, use the fHasOverlay member of the TCapDriverCaps structure.
  • Next you have to decide if you want live preview from the capture device, to activate it use capOverlay or capPreview depending on your driver capabilities, if you have overlay then set capPreviewRate to 0 otherwise set it to a resonable value, you might also want the image to be stretched to the window size, to do this use capPreviewScale, to stop the preview use capOverlay or capPreview (depending on fHasOverlay member) and pass false as the second parameter.
  • To record you should use capFileSetCaptureFile, capCaptureSequence and capFileSaveAs if you did not use capFileSetCaptureFile, to stop recording you should use capCaptureStop.
  • To get a single frame use capGrabFrameNoStop and capEditCopy or use the internal CapGrabFrame wich captures one frame as a TBitmap from the clipboard so you can process/save it later.
  • You will have to also disconnect the driver, to do so use capDriverDisconnect.
  • Before you close the program you also need to free the window with DestroyWindow
  • How to use a hook and process messages from various system windows or dynamic messages obtained with RegisterWindowMessage.