<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Continuous screen capture in avi format in LabVIEW</title>
    <link>https://ni.lithium.com/t5/LabVIEW/Continuous-screen-capture-in-avi-format/m-p/3270187#M954635</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I need to continuously capture a test screen using Labview.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The vi used is attached alongwith.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;However,my test is a webpage.So this is what I do.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;1.Run the VI&lt;/P&gt;&lt;P&gt;2.Select AVI File name&lt;/P&gt;&lt;P&gt;3.Press "start recording"&lt;/P&gt;&lt;P&gt;4.Now open the webpage and attempt the test&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What I want is the test performance being recorded and saved as an avi file.However,the moment webpage is opened,vi shows an error stating:"Error -1074396160 occurred at IMAQ ClipboardToImage".&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;How can I correct this?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 21 Mar 2016 04:02:17 GMT</pubDate>
    <dc:creator>anushaas</dc:creator>
    <dc:date>2016-03-21T04:02:17Z</dc:date>
    <item>
      <title>Continuous screen capture in avi format</title>
      <link>https://ni.lithium.com/t5/LabVIEW/Continuous-screen-capture-in-avi-format/m-p/3270187#M954635</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I need to continuously capture a test screen using Labview.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The vi used is attached alongwith.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;However,my test is a webpage.So this is what I do.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;1.Run the VI&lt;/P&gt;&lt;P&gt;2.Select AVI File name&lt;/P&gt;&lt;P&gt;3.Press "start recording"&lt;/P&gt;&lt;P&gt;4.Now open the webpage and attempt the test&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What I want is the test performance being recorded and saved as an avi file.However,the moment webpage is opened,vi shows an error stating:"Error -1074396160 occurred at IMAQ ClipboardToImage".&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;How can I correct this?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 21 Mar 2016 04:02:17 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/Continuous-screen-capture-in-avi-format/m-p/3270187#M954635</guid>
      <dc:creator>anushaas</dc:creator>
      <dc:date>2016-03-21T04:02:17Z</dc:date>
    </item>
    <item>
      <title>Re: Continuous screen capture in avi format</title>
      <link>https://ni.lithium.com/t5/LabVIEW/Continuous-screen-capture-in-avi-format/m-p/3270295#M954682</link>
      <description>&lt;P&gt;You forgot to attach your VI! &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 21 Mar 2016 10:14:55 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/Continuous-screen-capture-in-avi-format/m-p/3270295#M954682</guid>
      <dc:creator>Sam_Sharp</dc:creator>
      <dc:date>2016-03-21T10:14:55Z</dc:date>
    </item>
    <item>
      <title>Re: Continuous screen capture in avi format</title>
      <link>https://ni.lithium.com/t5/LabVIEW/Continuous-screen-capture-in-avi-format/m-p/3270455#M954761</link>
      <description>&lt;P&gt;Sorry&lt;/P&gt;</description>
      <pubDate>Mon, 21 Mar 2016 14:14:05 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/Continuous-screen-capture-in-avi-format/m-p/3270455#M954761</guid>
      <dc:creator>anushaas</dc:creator>
      <dc:date>2016-03-21T14:14:05Z</dc:date>
    </item>
    <item>
      <title>Re: Continuous screen capture in avi format</title>
      <link>https://ni.lithium.com/t5/LabVIEW/Continuous-screen-capture-in-avi-format/m-p/4066345#M1167788</link>
      <description>&lt;P&gt;Did you ever solve this problem? I am seeing the exact same issue now.&lt;/P&gt;</description>
      <pubDate>Thu, 09 Jul 2020 21:27:52 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/Continuous-screen-capture-in-avi-format/m-p/4066345#M1167788</guid>
      <dc:creator>craigp</dc:creator>
      <dc:date>2020-07-09T21:27:52Z</dc:date>
    </item>
    <item>
      <title>Re: Continuous screen capture in avi format</title>
      <link>https://ni.lithium.com/t5/LabVIEW/Continuous-screen-capture-in-avi-format/m-p/4066427#M1167825</link>
      <description>&lt;P&gt;I am not quite sure what the OP was after. If you want to do a screen capture and save the screen capture to a movie file I can think of two options:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;- I remember seeing that LabVIEW have hooks into the windows screen print functionality. You could do a screen print every 100ms for example and write that as a frame in an avi file.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;- Alternatively, an my prefered option, would be to use ffMPEG.(You can download executables for Windows &lt;A href="https://ffmpeg.zeranoe.com/builds/" target="_blank" rel="noopener"&gt;here)&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;You can call this ffmpeg using the command line, so to call it from your LabVIEW Software you can use the System Exec function.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You would need a command along the lines of "ffmpeg.exe -f gdigrab -i desktop -framerate 30 out.avi"&lt;/P&gt;</description>
      <pubDate>Fri, 10 Jul 2020 07:37:13 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/Continuous-screen-capture-in-avi-format/m-p/4066427#M1167825</guid>
      <dc:creator>Worle</dc:creator>
      <dc:date>2020-07-10T07:37:13Z</dc:date>
    </item>
    <item>
      <title>Re: Continuous screen capture in avi format</title>
      <link>https://ni.lithium.com/t5/LabVIEW/Continuous-screen-capture-in-avi-format/m-p/4066512#M1167873</link>
      <description>&lt;P&gt;Thanks. My goal was not actually to do screen capture to a movie, but continuous screen capture to be able to get a live histogram of an image captured in another non-LabVIEW application. I ran into the same error code mentioned by the OP when using the IMAQ ClipboardToImage vi. The error code has the unhelpful explanation "System Error" but it looks like it is probably related to trying to execute when the contents of the clipboard are missing or maybe in flux. I found that if I included a wait state between the PrintScreen and the ClipboardToImage steps, I could reduce or eliminate this issue. In the end, however, to get it working reliably I had to make the wait long enough that it made the frame rate too slow, so I reverted to a snapshot approach rather than a live histogram.&lt;/P&gt;</description>
      <pubDate>Fri, 10 Jul 2020 13:09:21 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/Continuous-screen-capture-in-avi-format/m-p/4066512#M1167873</guid>
      <dc:creator>craigp</dc:creator>
      <dc:date>2020-07-10T13:09:21Z</dc:date>
    </item>
  </channel>
</rss>

