<doc>
  <legacy_id>1818</legacy_id>
  <name>revRecordVideo</name>
  <type>command</type>
  <syntax>
    <example>revRecordVideo <i>filePath</i></example>
  </syntax>
  <library>Video library</library>
  <objects>
  </objects>
  <synonyms>
  </synonyms>
  <classification>
    <category>Images &amp; Multimedia</category>
    <category>Standalone Applications</category>
  </classification>
  <references>
    <command tag="revStopRecordingVideo">revStopRecordingVideo Command</command>
    <command tag="revInitializeVideoGrabber">revInitializeVideoGrabber Command</command>
    <command tag="revPreviewVideo">revPreviewVideo Command</command>
    <command tag="revVideoFrameImage">revVideoFrameImage Command</command>
    <command tag="revVideoGrabIdle">revVideoGrabIdle Command</command>
  </references>
  <history>
    <introduced version="2.0">Added.</introduced>
  </history>
  <platforms>
    <mac/>
    <windows/>
  </platforms>
  <classes>
    <desktop/>
  </classes>
  <security>
    <disk access="???"/>
    <privacy/>
  </security>
  <summary>Records video from a video camera to a file.</summary>
  <examples>
    <example>revRecordVideo "/Disk/Folder/file.mov"</example>
    <example>revRecordVideo "mymovie.avi"</example>
    <example>revRecordVideo theFileName</example>
  </examples>
  <description>
    <p>Use the <b>revRecordVideo</b> <glossary tag="command">command</glossary> to record a <function tag="movie">movie</function> file.</p><p/><p><b>Parameters:</b></p><p>The <i>filePath</i> is the <glossary tag="file path">name and location</glossary> of the <keyword tag="file">file</keyword> that will hold the recorded video data. If you specify a name but not a location, LiveCode assumes the <keyword tag="file">file</keyword> is in the <property tag="defaultFolder">defaultFolder</property>.</p><p/><p><b>Comments:</b></p><p>You must use the <b>revInitializeVideoGrabber</b> <glossary tag="command">command</glossary> to open the <glossary tag="video grabber">video grabber</glossary> before you can use the <b>revRecordVideo</b> <glossary tag="command">command</glossary>.</p><p/><p>If you specified "QT" as the video method when you executed the <b>revInitializeVideoGrabber</b> <glossary tag="command">command</glossary>, the recorded video is stored in <glossary tag="QuickTime">QuickTime</glossary> <function tag="format">format</function>. If you specified "VFW", the recorded video is stored in <glossary tag="AVI">AVI</glossary> <function tag="format">format</function>.</p><p/><p>If the video grabber was already recording video to a file, executing the <b>revRecordVideo</b> <glossary tag="command">command</glossary> again stops that recording and starts a new one.</p><p/><p><code/><img src="202653"/> <b>Important!</b><code/> If you are using <glossary tag="QuickTime">QuickTime</glossary> for video capture, <glossary tag="execute">execute</glossary> the <command tag="revVideoGrabIdle">revVideoGrabIdle</command> <glossary tag="command">command</glossary> periodically while previewing or recording video. Not doing so may cause the video in the <glossary tag="video grabber">video grabber</glossary> to stutter or display strange screen artifacts</p><p/><p>To stop recording the video input, use the <b>revStopRecordingVideo</b> <glossary tag="command">command</glossary>.</p><p/><p><code/><img src="202653"/> <b>Important!</b><code/> The <b>revRecordVideo</b> <glossary tag="command">command</glossary> is part of the <glossary tag="Video library">Video library</glossary>. To ensure that the <glossary tag="command">command</glossary> works in a <glossary tag="standalone application">standalone application</glossary>, you must include this <glossary tag="LiveCode custom library">custom library</glossary> when you create your <glossary tag="standalone application">standalone</glossary>. In the Inclusions section on the General screen of the <glossary tag="Standalone Application Settings">Standalone Application Settings</glossary> window, make sure that "Video Grabber" is selected from the list of script libraries.</p>
  </description>
</doc>