<?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 Displaying video with OpenCV in Intel® Integrated Performance Primitives</title>
    <link>https://community.intel.com/t5/Intel-Integrated-Performance/Displaying-video-with-OpenCV/m-p/867755#M8495</link>
    <description>Hi!&lt;BR /&gt;I am trying to play an AVI video using a short program.&lt;BR /&gt;&lt;BR /&gt;// AVI Stream.cpp : &lt;BR /&gt;// This program displays an AVI video and performs processing on it&lt;BR /&gt;// and thus displays the processed video.&lt;BR /&gt;//&lt;BR /&gt;&lt;BR /&gt;#include "stdafx.h"&lt;BR /&gt;#include "highgui.h"&lt;BR /&gt;#include "cv.h"&lt;BR /&gt;#include &lt;IOSTREAM&gt;&lt;BR /&gt;#include &lt;STDIO.H&gt;&lt;BR /&gt;&lt;BR /&gt;using namespace std;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;int main(int argc, char** argv)&lt;BR /&gt;{&lt;BR /&gt;/*IplImage* frame;&lt;BR /&gt;int key;&lt;BR /&gt;&lt;BR /&gt;//assert(argc == 2);&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;CvCapture* capture = cvCaptureFromAVI("music.avi");&lt;BR /&gt;&lt;BR /&gt;if(!capture) return 1;&lt;BR /&gt;&lt;BR /&gt;int framesPerSecond = (int)cvGetCaptureProperty(capture,CV_CAP_PROP_FPS);&lt;BR /&gt;&lt;BR /&gt;cvNamedWindow("Video Example",0);&lt;BR /&gt;&lt;BR /&gt;while(key != 'q'){&lt;BR /&gt;frame = cvQueryFrame(capture);&lt;BR /&gt;&lt;BR /&gt;if(!frame) break;&lt;BR /&gt;&lt;BR /&gt;cvShowImage("Video Example",frame);&lt;BR /&gt;&lt;BR /&gt;key = cvWaitKey(1000/framesPerSecond);&lt;BR /&gt;&lt;BR /&gt;}&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;//frame = cvGrabFrame(capture);&lt;BR /&gt;//frame1 = cvRetrieveFrame(capture);&lt;BR /&gt;//cvShowImage("Example",frame1);&lt;BR /&gt;//while(1)&lt;BR /&gt;//{&lt;BR /&gt;//frame = cvQueryFrame(capture);&lt;BR /&gt;//if(!frame) break;&lt;BR /&gt;//cvShowImage("Video Example",frame);&lt;BR /&gt;//char c = cvWaitKey(1000);&lt;BR /&gt;//if(c == 27) break;&lt;BR /&gt;//}&lt;BR /&gt;&lt;BR /&gt;cvReleaseCapture(&amp;amp;capture);&lt;BR /&gt;cvDestroyWindow("Video Example");&lt;BR /&gt;&lt;BR /&gt;return 0;*/&lt;BR /&gt;&lt;BR /&gt;cvNamedWindow("Video", CV_WINDOW_AUTOSIZE);&lt;BR /&gt;CvCapture* capture = cvCreateFileCapture("music.avi");&lt;BR /&gt;&lt;BR /&gt;IplImage* frame;&lt;BR /&gt;while(1)&lt;BR /&gt;{&lt;BR /&gt;frame = cvQueryFrame(capture);&lt;BR /&gt;if(!frame) break;&lt;BR /&gt;cvShowImage("Video",frame);&lt;BR /&gt;char c = cvWaitKey(10000000);&lt;BR /&gt;if(c == 27) break;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;}&lt;BR /&gt;&lt;BR /&gt;//frame = cvQueryFrame(capture);&lt;BR /&gt;//cout &amp;lt;&amp;lt; "This is what is stored in capture: " &amp;lt;&amp;lt; capture;&lt;BR /&gt;//cvShowImage("Video",capture);&lt;BR /&gt;&lt;BR /&gt;cvReleaseCapture(&amp;amp;capture);&lt;BR /&gt;cvDestroyWindow("Video");&lt;BR /&gt;//cout &amp;lt;&amp;lt; "This is what is stored in capture: " &amp;lt;&amp;lt; capture;&lt;BR /&gt;&lt;BR /&gt;}&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Unfortunately, a window displays with the name of the window, but no video plays. HELP ME PLEASE!! &lt;BR /&gt;I don't know if there is a codec I need or what. The variable that holds my capture structure is 0.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/STDIO.H&gt;&lt;/IOSTREAM&gt;</description>
    <pubDate>Tue, 30 Jun 2009 18:11:11 GMT</pubDate>
    <dc:creator>l1nuxn3wbie</dc:creator>
    <dc:date>2009-06-30T18:11:11Z</dc:date>
    <item>
      <title>Displaying video with OpenCV</title>
      <link>https://community.intel.com/t5/Intel-Integrated-Performance/Displaying-video-with-OpenCV/m-p/867755#M8495</link>
      <description>Hi!&lt;BR /&gt;I am trying to play an AVI video using a short program.&lt;BR /&gt;&lt;BR /&gt;// AVI Stream.cpp : &lt;BR /&gt;// This program displays an AVI video and performs processing on it&lt;BR /&gt;// and thus displays the processed video.&lt;BR /&gt;//&lt;BR /&gt;&lt;BR /&gt;#include "stdafx.h"&lt;BR /&gt;#include "highgui.h"&lt;BR /&gt;#include "cv.h"&lt;BR /&gt;#include &lt;IOSTREAM&gt;&lt;BR /&gt;#include &lt;STDIO.H&gt;&lt;BR /&gt;&lt;BR /&gt;using namespace std;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;int main(int argc, char** argv)&lt;BR /&gt;{&lt;BR /&gt;/*IplImage* frame;&lt;BR /&gt;int key;&lt;BR /&gt;&lt;BR /&gt;//assert(argc == 2);&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;CvCapture* capture = cvCaptureFromAVI("music.avi");&lt;BR /&gt;&lt;BR /&gt;if(!capture) return 1;&lt;BR /&gt;&lt;BR /&gt;int framesPerSecond = (int)cvGetCaptureProperty(capture,CV_CAP_PROP_FPS);&lt;BR /&gt;&lt;BR /&gt;cvNamedWindow("Video Example",0);&lt;BR /&gt;&lt;BR /&gt;while(key != 'q'){&lt;BR /&gt;frame = cvQueryFrame(capture);&lt;BR /&gt;&lt;BR /&gt;if(!frame) break;&lt;BR /&gt;&lt;BR /&gt;cvShowImage("Video Example",frame);&lt;BR /&gt;&lt;BR /&gt;key = cvWaitKey(1000/framesPerSecond);&lt;BR /&gt;&lt;BR /&gt;}&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;//frame = cvGrabFrame(capture);&lt;BR /&gt;//frame1 = cvRetrieveFrame(capture);&lt;BR /&gt;//cvShowImage("Example",frame1);&lt;BR /&gt;//while(1)&lt;BR /&gt;//{&lt;BR /&gt;//frame = cvQueryFrame(capture);&lt;BR /&gt;//if(!frame) break;&lt;BR /&gt;//cvShowImage("Video Example",frame);&lt;BR /&gt;//char c = cvWaitKey(1000);&lt;BR /&gt;//if(c == 27) break;&lt;BR /&gt;//}&lt;BR /&gt;&lt;BR /&gt;cvReleaseCapture(&amp;amp;capture);&lt;BR /&gt;cvDestroyWindow("Video Example");&lt;BR /&gt;&lt;BR /&gt;return 0;*/&lt;BR /&gt;&lt;BR /&gt;cvNamedWindow("Video", CV_WINDOW_AUTOSIZE);&lt;BR /&gt;CvCapture* capture = cvCreateFileCapture("music.avi");&lt;BR /&gt;&lt;BR /&gt;IplImage* frame;&lt;BR /&gt;while(1)&lt;BR /&gt;{&lt;BR /&gt;frame = cvQueryFrame(capture);&lt;BR /&gt;if(!frame) break;&lt;BR /&gt;cvShowImage("Video",frame);&lt;BR /&gt;char c = cvWaitKey(10000000);&lt;BR /&gt;if(c == 27) break;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;}&lt;BR /&gt;&lt;BR /&gt;//frame = cvQueryFrame(capture);&lt;BR /&gt;//cout &amp;lt;&amp;lt; "This is what is stored in capture: " &amp;lt;&amp;lt; capture;&lt;BR /&gt;//cvShowImage("Video",capture);&lt;BR /&gt;&lt;BR /&gt;cvReleaseCapture(&amp;amp;capture);&lt;BR /&gt;cvDestroyWindow("Video");&lt;BR /&gt;//cout &amp;lt;&amp;lt; "This is what is stored in capture: " &amp;lt;&amp;lt; capture;&lt;BR /&gt;&lt;BR /&gt;}&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Unfortunately, a window displays with the name of the window, but no video plays. HELP ME PLEASE!! &lt;BR /&gt;I don't know if there is a codec I need or what. The variable that holds my capture structure is 0.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/STDIO.H&gt;&lt;/IOSTREAM&gt;</description>
      <pubDate>Tue, 30 Jun 2009 18:11:11 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Integrated-Performance/Displaying-video-with-OpenCV/m-p/867755#M8495</guid>
      <dc:creator>l1nuxn3wbie</dc:creator>
      <dc:date>2009-06-30T18:11:11Z</dc:date>
    </item>
    <item>
      <title>Re: Displaying video with OpenCV</title>
      <link>https://community.intel.com/t5/Intel-Integrated-Performance/Displaying-video-with-OpenCV/m-p/867756#M8496</link>
      <description>&lt;DIV style="margin:0px;"&gt;&lt;/DIV&gt;
&lt;BR /&gt;As far as I know, OpenCV uses ffmpeg for video decoding. You may need to ensure that compression format used in your AVI file is supported by ffmpeg.&lt;BR /&gt;&lt;BR /&gt;Vladimir</description>
      <pubDate>Mon, 06 Jul 2009 16:48:36 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Integrated-Performance/Displaying-video-with-OpenCV/m-p/867756#M8496</guid>
      <dc:creator>Vladimir_Dudnik</dc:creator>
      <dc:date>2009-07-06T16:48:36Z</dc:date>
    </item>
  </channel>
</rss>

