<?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 Re: number of frames in Intel® Integrated Performance Primitives</title>
    <link>https://community.intel.com/t5/Intel-Integrated-Performance/number-of-frames/m-p/886957#M10946</link>
    <description>&lt;DIV style="margin:0px;"&gt;
&lt;DIV id="quote_reply" style="margin-top: 5px; width: 100%;"&gt;
&lt;DIV style="margin-left:2px;margin-right:2px;"&gt;Quoting - &lt;A href="https://community.intel.com/en-us/profile/418706"&gt;mikl_la&lt;/A&gt;&lt;/DIV&gt;
&lt;DIV style="background-color:#E5E5E5; padding:5px;border: 1px; border-style: inset;margin-left:2px;margin-right:2px;"&gt;&lt;EM&gt;
&lt;DIV style="margin:0px;"&gt;&lt;/DIV&gt;
&lt;BR /&gt;i'm using unified media classes to write a video-decoder/player. so i'd like to show the totalnumber of frames,e.g. of a mpeg2-video, in the gui.&lt;BR /&gt;&lt;BR /&gt;michael&lt;BR /&gt;&lt;/EM&gt;&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;BR /&gt;Unless your file wrapper contains this number, you have to partially decode the stream I think.</description>
    <pubDate>Tue, 16 Jun 2009 15:50:12 GMT</pubDate>
    <dc:creator>shyaki</dc:creator>
    <dc:date>2009-06-16T15:50:12Z</dc:date>
    <item>
      <title>number of frames</title>
      <link>https://community.intel.com/t5/Intel-Integrated-Performance/number-of-frames/m-p/886954#M10943</link>
      <description>hi,&lt;BR /&gt;how can i get the total number of frames of a video?&lt;BR /&gt;regards,&lt;BR /&gt;michael</description>
      <pubDate>Mon, 08 Jun 2009 12:50:23 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Integrated-Performance/number-of-frames/m-p/886954#M10943</guid>
      <dc:creator>mikl_la</dc:creator>
      <dc:date>2009-06-08T12:50:23Z</dc:date>
    </item>
    <item>
      <title>Re: number of frames</title>
      <link>https://community.intel.com/t5/Intel-Integrated-Performance/number-of-frames/m-p/886955#M10944</link>
      <description>&lt;DIV style="margin:0px;"&gt;&lt;/DIV&gt;
From where do you want to get total number of video? What IPP component you are using?&lt;BR /&gt;&lt;BR /&gt;Vladimir&lt;BR /&gt;</description>
      <pubDate>Mon, 08 Jun 2009 15:44:19 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Integrated-Performance/number-of-frames/m-p/886955#M10944</guid>
      <dc:creator>Vladimir_Dudnik</dc:creator>
      <dc:date>2009-06-08T15:44:19Z</dc:date>
    </item>
    <item>
      <title>Re: number of frames</title>
      <link>https://community.intel.com/t5/Intel-Integrated-Performance/number-of-frames/m-p/886956#M10945</link>
      <description>&lt;DIV style="margin:0px;"&gt;
&lt;DIV id="quote_reply" style="margin-top: 5px; width: 100%;"&gt;
&lt;DIV style="margin-left:2px;margin-right:2px;"&gt;Quoting - &lt;A href="https://community.intel.com/en-us/profile/336498"&gt;Vladimir Dudnik (Intel)&lt;/A&gt;&lt;/DIV&gt;
&lt;DIV style="background-color:#E5E5E5; padding:5px;border: 1px; border-style: inset;margin-left:2px;margin-right:2px;"&gt;&lt;EM&gt;From where do you want to get total number of video? What IPP component you are using?&lt;BR /&gt;&lt;BR /&gt;Vladimir&lt;BR /&gt;&lt;/EM&gt;&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;BR /&gt;i'm using unified media classes to write a video-decoder/player. so i'd like to show the totalnumber of frames,e.g. of a mpeg2-video, in the gui.&lt;BR /&gt;&lt;BR /&gt;michael&lt;BR /&gt;</description>
      <pubDate>Mon, 15 Jun 2009 13:23:27 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Integrated-Performance/number-of-frames/m-p/886956#M10945</guid>
      <dc:creator>mikl_la</dc:creator>
      <dc:date>2009-06-15T13:23:27Z</dc:date>
    </item>
    <item>
      <title>Re: number of frames</title>
      <link>https://community.intel.com/t5/Intel-Integrated-Performance/number-of-frames/m-p/886957#M10946</link>
      <description>&lt;DIV style="margin:0px;"&gt;
&lt;DIV id="quote_reply" style="margin-top: 5px; width: 100%;"&gt;
&lt;DIV style="margin-left:2px;margin-right:2px;"&gt;Quoting - &lt;A href="https://community.intel.com/en-us/profile/418706"&gt;mikl_la&lt;/A&gt;&lt;/DIV&gt;
&lt;DIV style="background-color:#E5E5E5; padding:5px;border: 1px; border-style: inset;margin-left:2px;margin-right:2px;"&gt;&lt;EM&gt;
&lt;DIV style="margin:0px;"&gt;&lt;/DIV&gt;
&lt;BR /&gt;i'm using unified media classes to write a video-decoder/player. so i'd like to show the totalnumber of frames,e.g. of a mpeg2-video, in the gui.&lt;BR /&gt;&lt;BR /&gt;michael&lt;BR /&gt;&lt;/EM&gt;&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;BR /&gt;Unless your file wrapper contains this number, you have to partially decode the stream I think.</description>
      <pubDate>Tue, 16 Jun 2009 15:50:12 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Integrated-Performance/number-of-frames/m-p/886957#M10946</guid>
      <dc:creator>shyaki</dc:creator>
      <dc:date>2009-06-16T15:50:12Z</dc:date>
    </item>
    <item>
      <title>Re: number of frames</title>
      <link>https://community.intel.com/t5/Intel-Integrated-Performance/number-of-frames/m-p/886958#M10947</link>
      <description>&lt;DIV style="margin:0px;"&gt;
&lt;DIV id="quote_reply" style="width: 100%; margin-top: 5px;"&gt;
&lt;DIV style="margin-left:2px;margin-right:2px;"&gt;Quoting - &lt;A href="https://community.intel.com/en-us/profile/262284"&gt;shyaki&lt;/A&gt;&lt;/DIV&gt;
&lt;DIV style="background-color:#E5E5E5; padding:5px;border: 1px; border-style: inset;margin-left:2px;margin-right:2px;"&gt;&lt;EM&gt;
&lt;DIV style="margin:0px;"&gt;&lt;/DIV&gt;
&lt;BR /&gt;Unless your file wrapper contains this number, you have to partially decode the stream I think.&lt;/EM&gt;&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;BR /&gt;You can retreive video/audio/etc information using MediaInfo.&lt;BR /&gt;&lt;BR /&gt;The sample code is followed..&lt;BR /&gt;&lt;BR /&gt;
&lt;PRE&gt;[cpp]#include &lt;STDIO.H&gt;

#include "MediaInfoDLL.h"

using namespace MediaInfoLib;

int GetMovieInfo(
	char*					_inp08FilePath,
{
	MediaInfo				MI;
	char					np08Buf[2048]
	int						n32Result,n32FrameCount;


	n32Result = MI.Open(_T(_inp08FilePath));
		
		if (n32Result == 0)
			return -1;

	/*
	 * Retrieve general movie information
	 */
	sprintf(np08Buf,"%s", MI.Get(Stream_General, 0, _T("FileName"        ),	Info_Text, Info_Name).c_str()); 
	sprintf(np08Cuf,"%s", MI.Get(Stream_General, 0, _T("FileExtension"   ),	Info_Text, Info_Name).c_str()); 
	sprintf(np08Buf,"%s", MI.Get(Stream_General, 0, _T("FileSize"        ), Info_Text, Info_Name).c_str()); 
	sprintf(np08Buf,"%s", MI.Get(Stream_General, 0, _T("Format/String"   ),	Info_Text, Info_Name).c_str()); 
	sprintf(np08Buf,"%s", MI.Get(Stream_General, 0, _T("Format/Family"   ),	Info_Text, Info_Name).c_str()); 
	sprintf(np08Buf,"%s", MI.Get(Stream_General, 0, _T("PlayTime/String3"), Info_Text, Info_Name).c_str()); 
	sprintf(np08Buf,"%s", MI.Get(Stream_General, 0, _T("Duration"        ), Info_Text, Info_Name).c_str()); 
	sprintf(np08Buf,"%s", MI.Get(Stream_General, 0, _T("BitRate"         ), Info_Text, Info_Name).c_str()); 
	sprintf(np08Buf,"%s", MI.Get(Stream_General, 0, _T("OveralBitRate"   ),	Info_Text, Info_Name).c_str()); 
	sprintf(np08Buf,"%s", MI.Get(Stream_General, 0, _T("VideoCount"      ), Info_Text, Info_Name).c_str()); 
	sprintf(np08Buf,"%s", MI.Get(Stream_General, 0, _T("AudioCount"      ), Info_Text, Info_Name).c_str()); 
	sprintf(np08Buf,"%s", MI.Get(Stream_General, 0, _T("TextCount"       ),	Info_Text, Info_Name).c_str()); 
	
	
	/*
	 * Retrieve video information
	 */
	sprintf(np08Buf,"%s", MI.Get(Stream_Video, 0, _T("Codec/String"             ), Info_Text, Info_Name).c_str()); 
	sprintf(np08Buf,"%s", MI.Get(Stream_Video, 0, _T("Codec/Family"             ), Info_Text, Info_Name).c_str()); 
	sprintf(np08Buf,"%s", MI.Get(Stream_Video, 0, _T("Width"                    ), Info_Text, Info_Name).c_str()); 
	sprintf(np08Buf,"%s", MI.Get(Stream_Video, 0, _T("Height"                   ), Info_Text, Info_Name).c_str()); 
	sprintf(np08Buf,"%s", MI.Get(Stream_Video, 0, _T("BitRate"                  ), Info_Text, Info_Name).c_str()); 
	sprintf(np08Buf,"%s", MI.Get(Stream_Video, 0, _T("BitRate_Nominal"          ), Info_Text, Info_Name).c_str()); 
	sprintf(np08Buf,"%s", MI.Get(Stream_Video, 0, _T("BitRate_Mode"             ), Info_Text, Info_Name).c_str()); 
	sprintf(np08Buf,"%s", MI.Get(Stream_Video, 0, _T("DisplayAspectRatio"       ), Info_Text, Info_Name).c_str()); 
    sprintf(np08Buf,"%s", MI.Get(Stream_Video, 0, _T("DisplayAspectRatio/String"), Info_Text, Info_Name).c_str()); 
	sprintf(np08Buf,"%s", MI.Get(Stream_Video, 0, _T("FrameRate"                ), Info_Text, Info_Name).c_str()); 
	sprintf(np08Buf,"%s", MI.Get(Stream_Video, 0, _T("Interlacement/String"     ), Info_Text, Info_Name).c_str()); 
	sprintf(np08Buf,"%s", MI.Get(Stream_Video, 0, _T("FrameCount"               ), Info_Text, Info_Name).c_str()); 
	
	n32FrameCount = atoi(np08Buf);


	/*
	 * Retrieve audio information
	 */
	sprintf(np08Buf,"%s", MI.Get(Stream_Audio, 0, _T("Codec"             ), Info_Text, Info_Name).c_str()); 
	sprintf(np08Buf,"%s", MI.Get(Stream_Audio, 0, _T("Codec/String"      ), Info_Text, Info_Name).c_str()); 
	sprintf(np08Buf,"%s", MI.Get(Stream_Audio, 0, _T("BitRate"           ), Info_Text, Info_Name).c_str()); 
	sprintf(np08Buf,"%s", MI.Get(Stream_Audio, 0, _T("BitRate_Mode"      ), Info_Text, Info_Name).c_str()); 
	sprintf(np08Buf,"%s", MI.Get(Stream_Audio, 0, _T("Channel(s)"        ),	Info_Text, Info_Name).c_str()); 
	sprintf(np08Buf,"%s", MI.Get(Stream_Audio, 0, _T("SamplingRate"      ),	Info_Text, Info_Name).c_str()); 
	

	MI.Close();

	return 1;
}



[/cpp]&lt;/STDIO.H&gt;&lt;/PRE&gt;
&lt;BR /&gt;</description>
      <pubDate>Fri, 19 Jun 2009 01:57:19 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Integrated-Performance/number-of-frames/m-p/886958#M10947</guid>
      <dc:creator>iambaeba1</dc:creator>
      <dc:date>2009-06-19T01:57:19Z</dc:date>
    </item>
  </channel>
</rss>

