<?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: MPEG4 encoding/decodeing issues in Intel® Integrated Performance Primitives</title>
    <link>https://community.intel.com/t5/Intel-Integrated-Performance/MPEG4-encoding-decodeing-issues/m-p/871073#M8938</link>
    <description>&lt;P&gt;I will try those settings with IPP 5.1. Unfrotunately I have downloaded and tried IPP 5.2, but it is:&lt;/P&gt;
&lt;P&gt;1. Not compiling h264_enc - some redefinition errors.&lt;BR /&gt;2. When mpeg4 encoder Init(...) is called with encode param PADTYPE = 0, 1 or 2 I get immidiet crush "access violation reading location..." and break point in dbgdel.cpp line 52 according to stack view on delete operator. I have used encoder settings listed &lt;A href="https://community.intel.com/en-us/forums//topic/53736#40889"&gt;here&lt;/A&gt;(post 30233318). Any ideas what is going on?&lt;/P&gt;</description>
    <pubDate>Wed, 11 Apr 2007 15:43:25 GMT</pubDate>
    <dc:creator>phoenixpl</dc:creator>
    <dc:date>2007-04-11T15:43:25Z</dc:date>
    <item>
      <title>MPEG4 encoding/decodeing issues</title>
      <link>https://community.intel.com/t5/Intel-Integrated-Performance/MPEG4-encoding-decodeing-issues/m-p/871069#M8934</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;I have two questions:&lt;/P&gt;
&lt;P&gt;1. I have tryied H264 and MPEG4 encoders to encode 16 live images at the same time. Right now I have best performance on MPEG4, but still for only 5 video streams I'm getting only 8-10 frames per stream on bitrate = 2000000 (for 16 streams even lower). Ether I'm doing something wrong or I'm changing wrong parameters, but it seams that bitrate is the only parameter that has influance on image quality and I need it quite high. Is there a way to set MPEG4 or H264 to encode 16 live streams with at least 12 frames? I'm using P4 2.8Ghz with 512MB RAM.&lt;/P&gt;
&lt;P&gt;2. I have tried to decode MPEG4 stream, but I can't get any response from decoder. I have already written all compressed data to AVI file and I can play it back in any kind of player without any problems, but I need to put compressed data into specific file structure that is not AVI or any other media format. I have already tested my solution with raw data or H264, so I know that I'm reading file stream correctly. The problem is that when I feed single data chunk into MPEG4 decoder it is returning me -899 error code. This is a part of code that I'm using to initialize decoder:&lt;/P&gt;&lt;PRE&gt;&lt;FONT size="1"&gt;&lt;P&gt;//constructor&lt;/P&gt;&lt;P&gt;m_dataOut = &lt;/P&gt;&lt;/FONT&gt;&lt;FONT color="#0000ff" size="1"&gt;new&lt;/FONT&gt;&lt;FONT size="1"&gt; UMC::VideoData;&lt;P&gt;&lt;/P&gt;&lt;P&gt;m_dataIn = &lt;/P&gt;&lt;/FONT&gt;&lt;FONT color="#0000ff" size="1"&gt;new&lt;/FONT&gt;&lt;FONT size="1"&gt; UMC::MediaData;&lt;P&gt;&lt;/P&gt;&lt;P&gt;UMC::VideoStreamInfo video_info;&lt;/P&gt;&lt;P&gt;video_info.color_format = UMC::YV12;&lt;/P&gt;&lt;/FONT&gt;&lt;FONT color="#008000" size="1"&gt;&lt;P&gt;&lt;/P&gt;&lt;/FONT&gt;&lt;FONT size="1"&gt;&lt;P&gt;video_info.stream_type = UMC::MPEG4_VIDEO;&lt;/P&gt;&lt;P&gt;video_info.stream_subtype = UMC::UNDEF_VIDEO_SUBTYPE;&lt;/P&gt;&lt;P&gt;video_info.clip_info.width = XDIM;&lt;/P&gt;&lt;P&gt;video_info.clip_info.height = YDIM;&lt;/P&gt;&lt;P&gt;UMC::ColorConversionInfo ColorInit;&lt;/P&gt;&lt;P&gt;ColorInit.SizeSource.width = XDIM;&lt;/P&gt;&lt;P&gt;ColorInit.SizeSource.height = YDIM;&lt;/P&gt;&lt;P&gt;ColorInit.FormatDest = UMC::YV12; &lt;/P&gt;&lt;/FONT&gt;&lt;FONT color="#008000" size="1"&gt;&lt;P&gt;&lt;/P&gt;&lt;/FONT&gt;&lt;FONT size="1"&gt;&lt;P&gt;ColorInit.SizeDest.width = XDIM;&lt;/P&gt;&lt;P&gt;ColorInit.SizeDest.height = YDIM;&lt;/P&gt;&lt;P&gt;ColorInit.lFlags = 1;&lt;/P&gt;&lt;P&gt;ColorInit.lDeinterlace = 0;&lt;/P&gt;&lt;P&gt;ColorInit.lInterpolation = UMC::FLAG_CCNV_CONVERT;&lt;/P&gt;&lt;P&gt;UMC::ColorSpaceConverter ColorDecoder;&lt;/P&gt;&lt;P&gt;m_mpeg4_Param.info = video_info;&lt;/P&gt;&lt;P&gt;m_mpeg4_Param.cformat = UMC::YV12; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/FONT&gt;&lt;FONT size="1"&gt;m_mpeg4_Param.lFlags = 0;&lt;P&gt;&lt;/P&gt;&lt;P&gt;m_mpeg4_Param.lpConverter = &amp;amp;ColorDecoder;&lt;/P&gt;&lt;P&gt;m_mpeg4_Param.lpConvertInit = &amp;amp;ColorInit;&lt;/P&gt;&lt;P&gt;m_mpeg4_Param.uiLimitThreads = 1;&lt;/P&gt;&lt;P&gt;UMC::Status status = m_mpeg4_dec.Init( &amp;amp;m_mpeg4_Param );&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;// decoding routin&lt;/P&gt;&lt;FONT size="1"&gt;&lt;P&gt;&lt;/P&gt;&lt;/FONT&gt;&lt;FONT color="#0000ff" size="1"&gt;int&lt;/FONT&gt;&lt;FONT size="1"&gt; mRetval;&lt;/FONT&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="1"&gt;BYTE *pY = _buffer;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="1"&gt;BYTE *pU = _buffer + ( XDIM * YDIM );&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="1"&gt;BYTE *pV = pU + ( XDIM * YDIM ) / 4;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;m_dataOut-&amp;gt;SetDest( pY, pU, pV&lt;/P&gt;&lt;/FONT&gt;&lt;FONT size="1"&gt; &lt;/FONT&gt;&lt;FONT size="1"&gt;);&lt;P&gt;&lt;/P&gt;&lt;P&gt;m_dataOut-&amp;gt;SetPitch( XDIM, XDIM/4, XDIM/4 );&lt;/P&gt;&lt;/FONT&gt;&lt;FONT size="1"&gt;&lt;P&gt;m_dataIn-&amp;gt;SetBufferPointer( _dataFile.data, _dataFile.dataSize );&lt;/P&gt;&lt;P&gt;m_dataIn-&amp;gt;SetDataSize( _dataFile.dataSize );&lt;/P&gt;&lt;/FONT&gt;&lt;FONT size="1"&gt;&lt;P&gt;mRetval = m_mpeg4_dec.GetFrame( m_dataIn, m_dataOut );&lt;/P&gt;&lt;/FONT&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;return _buffer;&lt;FONT size="1"&gt;&lt;FONT size="1"&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;/PRE&gt;
&lt;P&gt;When I retrive mRetval value it's -899. What am I doing wrong? Do I have problems because I'm not using streams from avisplitter or yuvreader?&lt;FONT size="1"&gt;&lt;FONT size="1"&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 10 Apr 2007 15:45:27 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Integrated-Performance/MPEG4-encoding-decodeing-issues/m-p/871069#M8934</guid>
      <dc:creator>phoenixpl</dc:creator>
      <dc:date>2007-04-10T15:45:27Z</dc:date>
    </item>
    <item>
      <title>Re: MPEG4 encoding/decodeing issues</title>
      <link>https://community.intel.com/t5/Intel-Integrated-Performance/MPEG4-encoding-decodeing-issues/m-p/871070#M8935</link>
      <description>I have manage to solve my problem with decoding. It apperas that all I had to do was to add FLAG_VDEC_COMPATIBLE. Now decoding seams to work fine. However I still have a big speed issue. Any ideas what can I do to speed up encoding?</description>
      <pubDate>Wed, 11 Apr 2007 07:06:32 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Integrated-Performance/MPEG4-encoding-decodeing-issues/m-p/871070#M8935</guid>
      <dc:creator>phoenixpl</dc:creator>
      <dc:date>2007-04-11T07:06:32Z</dc:date>
    </item>
    <item>
      <title>Re: MPEG4 encoding/decodeing issues</title>
      <link>https://community.intel.com/t5/Intel-Integrated-Performance/MPEG4-encoding-decodeing-issues/m-p/871071#M8936</link>
      <description>&lt;P&gt;I have v5.1.&lt;/P&gt;
&lt;P&gt;These are my settings for encoder, where image size is 720x576:&lt;/P&gt;&lt;PRE&gt;&lt;FONT size="1"&gt;&lt;P&gt;m_mpeg4_Param.Width = XDIM;&lt;/P&gt;&lt;P&gt;m_mpeg4_Param.Height = YDIM;&lt;/P&gt;&lt;P&gt;m_mpeg4_Param.NumOfFrames = 1000000;&lt;/P&gt;&lt;P&gt;m_mpeg4_Param.TimeIncrement = 1;&lt;/P&gt;&lt;P&gt;m_mpeg4_Param.TimeResolution = 30;&lt;/P&gt;&lt;P&gt;m_mpeg4_Param.RateControl = 1;&lt;/P&gt;&lt;P&gt;m_mpeg4_Param.BitRate =2000000;&lt;/P&gt;&lt;/FONT&gt;&lt;FONT color="#008000" size="1"&gt;//25000;&lt;P&gt;&lt;/P&gt;&lt;/FONT&gt;&lt;FONT size="1"&gt;&lt;P&gt;m_mpeg4_Param.quant_type = 0;&lt;/P&gt;&lt;P&gt;m_mpeg4_Param.quantIVOP = 4;&lt;/P&gt;&lt;P&gt;m_mpeg4_Param.quantPVOP = 4;&lt;/P&gt;&lt;P&gt;m_mpeg4_Param.quantBVOP = 6;&lt;/P&gt;&lt;P&gt;m_mpeg4_Param.short_video_header = 0;&lt;/P&gt;&lt;P&gt;m_mpeg4_Param.IVOPdist = 300;&lt;/P&gt;&lt;P&gt;m_mpeg4_Param.BVOPdist = 0;&lt;/P&gt;&lt;P&gt;m_mpeg4_Param.PVOPsearchWidth = 15;&lt;/P&gt;&lt;P&gt;m_mpeg4_Param.PVOPsearchHeight = 15;&lt;/P&gt;&lt;P&gt;m_mpeg4_Param.BVOPsearchWidthForw = 15;&lt;/P&gt;&lt;P&gt;m_mpeg4_Param.BVOPsearchHeightForw = 15;&lt;/P&gt;&lt;P&gt;m_mpeg4_Param.BVOPsearchWidthBack = 15;&lt;/P&gt;&lt;P&gt;m_mpeg4_Param.BVOPsearchHeightBack = 15;&lt;/P&gt;&lt;P&gt;m_mpeg4_Param.MEalgorithm = 1;&lt;/P&gt;&lt;P&gt;m_mpeg4_Param.MEaccuracy = 2;&lt;/P&gt;&lt;P&gt;m_mpeg4_Param.ME4mv = 0;&lt;/P&gt;&lt;P&gt;m_mpeg4_Param.obmc_disable = 1;&lt;/P&gt;&lt;P&gt;m_mpeg4_Param.RoundingControl = 1;&lt;/P&gt;&lt;P&gt;m_mpeg4_Param.calcPSNR = 0;&lt;/P&gt;&lt;P&gt;m_mpeg4_Param.SceneChangeThreshold = 50;&lt;/P&gt;&lt;P&gt;m_mpeg4_Param.insertGOV = 0;&lt;/P&gt;&lt;P&gt;m_mpeg4_Param.repeatHeaders = 0;&lt;/P&gt;&lt;P&gt;m_mpeg4_Param.resync = 0;&lt;/P&gt;&lt;P&gt;m_mpeg4_Param.VideoPacketLenght = 8192;&lt;/P&gt;&lt;P&gt;m_mpeg4_Param.data_partitioned = 0;&lt;/P&gt;&lt;P&gt;m_mpeg4_Param.reversible_vlc = 0;&lt;/P&gt;&lt;P&gt;m_mpeg4_Param.interlaced = 0;&lt;/P&gt;&lt;P&gt;m_mpeg4_Param.top_field_first = 1;&lt;/P&gt;&lt;P&gt;m_mpeg4_Param.alternate_vertical_scan_flag = 1;&lt;/P&gt;&lt;P&gt;m_mpeg4_Param.interlacedME = 0;&lt;/P&gt;&lt;P&gt;m_mpeg4_Param.sprite_enable = 0;&lt;/P&gt;&lt;P&gt;m_mpeg4_Param.no_of_sprite_warping_points = 0;&lt;/P&gt;&lt;P&gt;m_mpeg4_Param.sprite_warping_accuracy = 0;&lt;/P&gt;&lt;P&gt;m_mpeg4_Param.sprite_brightness_change = 0;&lt;/P&gt;&lt;P&gt;m_mpeg4_Param.sprite_left_coordinate = 0;&lt;/P&gt;&lt;P&gt;m_mpeg4_Param.sprite_top_coordinate = 0;&lt;/P&gt;&lt;P&gt;m_mpeg4_Param.sprite_width = 0;&lt;/P&gt;&lt;P&gt;m_mpeg4_Param.sprite_height = 0;&lt;/P&gt;&lt;P&gt;m_mpeg4_Param.warping_mv_code_du = NULL;&lt;/P&gt;&lt;P&gt;m_mpeg4_Param.warping_mv_code_dv = NULL;&lt;/P&gt;&lt;P&gt;m_mpeg4_Param.brightness_change_factor = NULL;&lt;/P&gt;&lt;P&gt;m_mpeg4_Param.load_intra_quant_mat = 0;&lt;/P&gt;&lt;P&gt;m_mpeg4_Param.load_intra_quant_mat_len = 0;&lt;/P&gt;&lt;P&gt;m_mpeg4_Param.load_nonintra_quant_mat = 0;&lt;/P&gt;&lt;P&gt;m_mpeg4_Param.load_nonintra_quant_mat_len = 0;&lt;/P&gt;&lt;P&gt;m_mpeg4_Param.bsBuffer = (Ipp8u*)1;&lt;/P&gt;&lt;P&gt;m_mpeg4_Param.bsBuffSize = 1; &lt;/P&gt;&lt;/FONT&gt;&lt;FONT color="#008000" size="1"&gt;// encoder will not allocate buffer&lt;P&gt;&lt;/P&gt;&lt;/FONT&gt;&lt;FONT size="1"&gt;&lt;P&gt;m_mpeg4_Param.padType = 0; &lt;/P&gt;&lt;/FONT&gt;&lt;FONT color="#008000" size="1"&gt;// set 1 for QuickTime and 2 for DivX  v. &amp;gt;= 5&lt;P&gt;&lt;/P&gt;&lt;/FONT&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 11 Apr 2007 07:19:55 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Integrated-Performance/MPEG4-encoding-decodeing-issues/m-p/871071#M8936</guid>
      <dc:creator>phoenixpl</dc:creator>
      <dc:date>2007-04-11T07:19:55Z</dc:date>
    </item>
    <item>
      <title>Re: MPEG4 encoding/decodeing issues</title>
      <link>https://community.intel.com/t5/Intel-Integrated-Performance/MPEG4-encoding-decodeing-issues/m-p/871072#M8937</link>
      <description>Regarding second question I know that I need to have raw data. AVI file that I have created was just to see if compression is done correctly. All the raw data received from encoder is placed in custom file structure and there is no need to extract it from AVI. The only thing missing that has solved my problem was flag FLAG_VDEC_COMPATIBLE, but thanks for the tip.</description>
      <pubDate>Wed, 11 Apr 2007 07:23:10 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Integrated-Performance/MPEG4-encoding-decodeing-issues/m-p/871072#M8937</guid>
      <dc:creator>phoenixpl</dc:creator>
      <dc:date>2007-04-11T07:23:10Z</dc:date>
    </item>
    <item>
      <title>Re: MPEG4 encoding/decodeing issues</title>
      <link>https://community.intel.com/t5/Intel-Integrated-Performance/MPEG4-encoding-decodeing-issues/m-p/871073#M8938</link>
      <description>&lt;P&gt;I will try those settings with IPP 5.1. Unfrotunately I have downloaded and tried IPP 5.2, but it is:&lt;/P&gt;
&lt;P&gt;1. Not compiling h264_enc - some redefinition errors.&lt;BR /&gt;2. When mpeg4 encoder Init(...) is called with encode param PADTYPE = 0, 1 or 2 I get immidiet crush "access violation reading location..." and break point in dbgdel.cpp line 52 according to stack view on delete operator. I have used encoder settings listed &lt;A href="https://community.intel.com/en-us/forums//topic/53736#40889"&gt;here&lt;/A&gt;(post 30233318). Any ideas what is going on?&lt;/P&gt;</description>
      <pubDate>Wed, 11 Apr 2007 15:43:25 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Integrated-Performance/MPEG4-encoding-decodeing-issues/m-p/871073#M8938</guid>
      <dc:creator>phoenixpl</dc:creator>
      <dc:date>2007-04-11T15:43:25Z</dc:date>
    </item>
    <item>
      <title>Re: MPEG4 encoding/decodeing issues</title>
      <link>https://community.intel.com/t5/Intel-Integrated-Performance/MPEG4-encoding-decodeing-issues/m-p/871074#M8939</link>
      <description>&lt;P&gt;It is crushing with any padType. It doesn't metter if I will but 0, 1 or 2 and it crushes and Init(). Now I have modified mpeg4_enc_mis.cpp a little in order to see what is going on. The only thing that I have added is vm_debug_trace and it is showing me that Init() is crushing at delete [] MBinfo ( only number "1" is shown in debug outputwithout "end 1" ). I have already tried cleaning and rebuilding my api, but it doesn't help.&lt;/P&gt;&lt;PRE&gt;void ippVideoEncoderMPEG4::Close()&lt;BR /&gt;{&lt;BR /&gt; if (mIsInit) {&lt;BR /&gt; // free&lt;BR /&gt; if (MBinfo)&lt;BR /&gt;{&lt;BR /&gt;vm_debug_trace( 1, VM_STRING("1") );&lt;BR /&gt; delete [] MBinfo;&lt;BR /&gt;vm_debug_trace( 1, VM_STRING("end 1") );&lt;BR /&gt;}&lt;BR /&gt; if (mbsAlloc &amp;amp;&amp;amp; cBS.mBuffer)&lt;BR /&gt;{&lt;BR /&gt;vm_debug_trace( 1, VM_STRING("2") );&lt;BR /&gt; ippsFree(cBS.mBuffer);&lt;BR /&gt;}&lt;BR /&gt; if (mBuffer_1)&lt;BR /&gt;{&lt;BR /&gt;vm_debug_trace( 1, VM_STRING("3") );&lt;BR /&gt; ippsFree(mBuffer_1);&lt;BR /&gt;}&lt;BR /&gt; if (mBuffer_2)&lt;BR /&gt;{&lt;BR /&gt;vm_debug_trace( 1, VM_STRING("4") );&lt;BR /&gt; ippsFree(mBuffer_2);&lt;BR /&gt;}&lt;BR /&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 11 Apr 2007 16:23:37 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Integrated-Performance/MPEG4-encoding-decodeing-issues/m-p/871074#M8939</guid>
      <dc:creator>phoenixpl</dc:creator>
      <dc:date>2007-04-11T16:23:37Z</dc:date>
    </item>
    <item>
      <title>Re: MPEG4 encoding/decodeing issues</title>
      <link>https://community.intel.com/t5/Intel-Integrated-Performance/MPEG4-encoding-decodeing-issues/m-p/871075#M8940</link>
      <description>&lt;P&gt;I have removed IPP 5.1 just in case and left only IPP 5.2. I'm sure that I'm using correct inlcude files.&lt;/P&gt;
&lt;P&gt;I can't build video_enc_con application because I have problem with compiling h264_enc. I was pointed by you to replace header file from some other thread, but it didn't help. I'm still not able to compile h264. This time I don't have redefinition error, but "identifier not found". I have attached both log files. Any other ideas what can I do?&lt;/P&gt;</description>
      <pubDate>Thu, 12 Apr 2007 09:16:19 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Integrated-Performance/MPEG4-encoding-decodeing-issues/m-p/871075#M8940</guid>
      <dc:creator>phoenixpl</dc:creator>
      <dc:date>2007-04-12T09:16:19Z</dc:date>
    </item>
  </channel>
</rss>

