<?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 How do I identify the video compression method in a file using  in Intel® Integrated Performance Primitives</title>
    <link>https://community.intel.com/t5/Intel-Integrated-Performance/How-do-I-identify-the-video-compression-method-in-a-file-using/m-p/896552#M12211</link>
    <description>&lt;P&gt;Frank,&lt;/P&gt;
&lt;P&gt;Thanks for the quick repsonse. I have been trying to figure this out for several days. We are all stuck at home (Virginia) in the snow today, so I will try to get the code running at work tomorrow.&lt;/P&gt;
&lt;P&gt;Thanks again,&lt;/P&gt;
&lt;P&gt;dabbler&lt;/P&gt;</description>
    <pubDate>Wed, 10 Feb 2010 16:14:17 GMT</pubDate>
    <dc:creator>dabbler</dc:creator>
    <dc:date>2010-02-10T16:14:17Z</dc:date>
    <item>
      <title>How do I identify the video compression method in a file using Intel UMC software tools?</title>
      <link>https://community.intel.com/t5/Intel-Integrated-Performance/How-do-I-identify-the-video-compression-method-in-a-file-using/m-p/896550#M12209</link>
      <description>&lt;P&gt;Since an avi file can contain almost any video compression method, and mp4 files can be a couple of different compression methods, as can mpg files, how do I tell what the video compression method is in a file?&lt;/P&gt;
&lt;P&gt;Thanks for any help you can provide.&lt;/P&gt;
&lt;P&gt;dabbler&lt;/P&gt;</description>
      <pubDate>Tue, 09 Feb 2010 17:12:34 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Integrated-Performance/How-do-I-identify-the-video-compression-method-in-a-file-using/m-p/896550#M12209</guid>
      <dc:creator>dabbler</dc:creator>
      <dc:date>2010-02-09T17:12:34Z</dc:date>
    </item>
    <item>
      <title>How do I identify the video compression method in a file using</title>
      <link>https://community.intel.com/t5/Intel-Integrated-Performance/How-do-I-identify-the-video-compression-method-in-a-file-using/m-p/896551#M12210</link>
      <description>&lt;P&gt;First step is to identify what kind of file you're dealing with [it's cheating to rely exclusively on the file extension]. That will help you choose your splitter. Then determine what kind of compression is used, and that will help you choose your decoder.&lt;/P&gt;
&lt;P&gt;To identify what kind of stream you're dealing with, model your code on the following:&lt;/P&gt;
&lt;P&gt;UMC::FIOReader reader;&lt;BR /&gt;...&lt;BR /&gt;UMC::Splitter *splitter;&lt;BR /&gt;UMC::SystemStreamType streamType = UMC::Splitter::GetStreamType();&lt;BR /&gt;switch (streamType)&lt;BR /&gt;{&lt;BR /&gt;case UMC::MP4_ATOM_STREAM :&lt;BR /&gt; splitter = (UMC::Splitter*)(new UMC::MP4Splitter());&lt;BR /&gt; break;&lt;BR /&gt;case UMC::MPEGx_SYSTEM_STREAM :&lt;BR /&gt; splitter = (UMC::Splitter*)(new UMC::ThreadedDemuxer());&lt;BR /&gt; break;&lt;BR /&gt;default :&lt;BR /&gt; printf("Unknown stream type 0x%X\n", streamType);&lt;BR /&gt; break;&lt;BR /&gt;}&lt;BR /&gt;...&lt;/P&gt;
&lt;P&gt;// search tracks for supported video data&lt;BR /&gt;for (videoTrack = 0; videoTrack &amp;lt; splitterInfo-&amp;gt;m_nOfTracks; videoTrack++)&lt;BR /&gt;if (splitterInfo-&amp;gt;m_ppTrackInfo[videoTrack]-&amp;gt;m_Type == UMC::TRACK_MPEG4V ||&lt;BR /&gt;splitterInfo-&amp;gt;m_ppTrackInfo[videoTrack]-&amp;gt;m_Type == UMC::TRACK_H264 ||&lt;BR /&gt;splitterInfo-&amp;gt;m_ppTrackInfo[videoTrack]-&amp;gt;m_Type == UMC::TRACK_MPEG2V)&lt;BR /&gt;break;&lt;/P&gt;
&lt;P&gt;// if no track with supported video data found&lt;BR /&gt;if (videoTrack &amp;gt;= splitterInfo-&amp;gt;m_nOfTracks)&lt;BR /&gt;{&lt;BR /&gt;str.Format("VideoThread %s file does not contain video TRACK_MPEG4V or TRACK_H264 or TRACK_MPEG2V", (LPCTSTR)m_strStreamDisplayPath);&lt;BR /&gt;AfxMessageBox(str);&lt;BR /&gt;splitter-&amp;gt;Stop();&lt;BR /&gt;splitter-&amp;gt;Close();&lt;BR /&gt;reader.Close();&lt;BR /&gt;return;&lt;BR /&gt;}&lt;BR /&gt;...&lt;/P&gt;
&lt;P&gt;UMC::VideoDecoder *decoder;&lt;BR /&gt;switch (videoTrackInfo-&amp;gt;stream_type)&lt;BR /&gt;{&lt;BR /&gt;case UMC::MPEG4_VIDEO :&lt;BR /&gt;decoder = (UMC::VideoDecoder*)(new UMC::MPEG4VideoDecoder());&lt;BR /&gt;break;&lt;BR /&gt;case UMC::H264_VIDEO :&lt;BR /&gt;decoder = (UMC::VideoDecoder*)(new UMC::H264VideoDecoder());&lt;BR /&gt;break;&lt;BR /&gt;case UMC::MPEG2_VIDEO :&lt;BR /&gt;decoder = (UMC::VideoDecoder*)(new UMC::MPEG2VideoDecoder());&lt;BR /&gt;break;&lt;BR /&gt;default :&lt;BR /&gt;str.Format("VideoThread %s unknown video stream_type 0x%X", (LPCTSTR)m_strStreamDisplayPath, videoTrackInfo-&amp;gt;stream_type);&lt;BR /&gt;AfxMessageBox(str);&lt;BR /&gt;splitter-&amp;gt;Stop();&lt;BR /&gt;splitter-&amp;gt;Close();&lt;BR /&gt;reader.Close();&lt;BR /&gt;return;&lt;BR /&gt;}&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;Or for audio:&lt;/P&gt;
&lt;P&gt;// search tracks for supported audio data&lt;BR /&gt;Ipp32u audioTrack;&lt;BR /&gt;for (audioTrack = 0; audioTrack &amp;lt; splitterInfo-&amp;gt;m_nOfTracks; audioTrack++)&lt;BR /&gt;if (splitterInfo-&amp;gt;m_ppTrackInfo[audioTrack]-&amp;gt;m_Type == UMC::TRACK_AAC ||&lt;BR /&gt;splitterInfo-&amp;gt;m_ppTrackInfo[audioTrack]-&amp;gt;m_Type == UMC::TRACK_MPEGA)&lt;BR /&gt;break;&lt;/P&gt;
&lt;P&gt;// if no track with supported audio data found&lt;BR /&gt;if (audioTrack &amp;gt;= splitterInfo-&amp;gt;m_nOfTracks)&lt;BR /&gt;{&lt;BR /&gt;str.Format("AudioThread %s file does not contain audio TRACK_AAC or TRACK_MPEGA", (LPCTSTR)m_strStreamDisplayPath);&lt;BR /&gt;AfxMessageBox(str);&lt;BR /&gt;splitter-&amp;gt;Stop();&lt;BR /&gt;splitter-&amp;gt;Close();&lt;BR /&gt;reader.Close();&lt;BR /&gt;return;&lt;BR /&gt;}&lt;BR /&gt;UMC::AudioStreamInfo *audioTrackInfo = (UMC::AudioStreamInfo *)splitterInfo-&amp;gt;m_ppTrackInfo[audioTrack]-&amp;gt;m_pStreamInfo;&lt;BR /&gt;...&lt;BR /&gt;UMC::AudioCodec *audio;&lt;BR /&gt;UMC::MediaBuffer *media;&lt;BR /&gt;switch (audioTrackInfo-&amp;gt;stream_type)&lt;BR /&gt;{&lt;BR /&gt;case UMC::AAC_AUDIO :&lt;BR /&gt;case UMC::AAC_MPEG4_STREAM :&lt;BR /&gt;audio = (UMC::AudioCodec*)(new UMC::AACDecoder());&lt;BR /&gt;media = (UMC::MediaBuffer*)(new UMC::SampleBuffer());&lt;BR /&gt;break;&lt;BR /&gt;case UMC::MP1L1_AUDIO :&lt;BR /&gt;case UMC::MP1L2_AUDIO :&lt;BR /&gt;case UMC::MP1L3_AUDIO :&lt;BR /&gt;case UMC::MP2L1_AUDIO :&lt;BR /&gt;case UMC::MP2L2_AUDIO :&lt;BR /&gt;case UMC::MP2L3_AUDIO :&lt;BR /&gt;audio = (UMC::AudioCodec*)(new UMC::MP3Decoder);&lt;BR /&gt;media = (UMC::MediaBuffer*)(new UMC::LinearBuffer());&lt;BR /&gt;break;&lt;BR /&gt;default :&lt;BR /&gt;str.Format("AudioThread %s unknown audio stream_type 0x%X", (LPCTSTR)m_strStreamDisplayPath, audioTrackInfo-&amp;gt;stream_type);&lt;BR /&gt;AfxMessageBox(str);&lt;BR /&gt;splitter-&amp;gt;Stop();&lt;BR /&gt;splitter-&amp;gt;Close();&lt;BR /&gt;reader.Close();&lt;BR /&gt;return;&lt;BR /&gt;}&lt;/P&gt;</description>
      <pubDate>Wed, 10 Feb 2010 13:22:09 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Integrated-Performance/How-do-I-identify-the-video-compression-method-in-a-file-using/m-p/896551#M12210</guid>
      <dc:creator>franknatoli</dc:creator>
      <dc:date>2010-02-10T13:22:09Z</dc:date>
    </item>
    <item>
      <title>How do I identify the video compression method in a file using</title>
      <link>https://community.intel.com/t5/Intel-Integrated-Performance/How-do-I-identify-the-video-compression-method-in-a-file-using/m-p/896552#M12211</link>
      <description>&lt;P&gt;Frank,&lt;/P&gt;
&lt;P&gt;Thanks for the quick repsonse. I have been trying to figure this out for several days. We are all stuck at home (Virginia) in the snow today, so I will try to get the code running at work tomorrow.&lt;/P&gt;
&lt;P&gt;Thanks again,&lt;/P&gt;
&lt;P&gt;dabbler&lt;/P&gt;</description>
      <pubDate>Wed, 10 Feb 2010 16:14:17 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Integrated-Performance/How-do-I-identify-the-video-compression-method-in-a-file-using/m-p/896552#M12211</guid>
      <dc:creator>dabbler</dc:creator>
      <dc:date>2010-02-10T16:14:17Z</dc:date>
    </item>
    <item>
      <title>How do I identify the video compression method in a file using</title>
      <link>https://community.intel.com/t5/Intel-Integrated-Performance/How-do-I-identify-the-video-compression-method-in-a-file-using/m-p/896553#M12212</link>
      <description>audio-video-codecs\application\simple_player\src\simple_player.cpp invokes audio-video-codecs\pipeline\umc-pipeline\src\avsync.cpp and between the two you can find a model for the code that I document above.</description>
      <pubDate>Thu, 11 Feb 2010 02:06:13 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Integrated-Performance/How-do-I-identify-the-video-compression-method-in-a-file-using/m-p/896553#M12212</guid>
      <dc:creator>franknatoli</dc:creator>
      <dc:date>2010-02-11T02:06:13Z</dc:date>
    </item>
  </channel>
</rss>

