home
products
contribute
download
documentation
forum
Home
Forums
New posts
Search forums
What's new
New posts
All posts
Latest activity
Members
Registered members
Current visitors
Donate
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Search forums
Search titles only
By:
Menu
Log in
Register
Navigation
Install the app
Install
More options
Contact us
Close Menu
Forums
MediaPortal 1
Support
General Support
Unable to scan for Astra 4K channel
Contact us
RSS
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
<blockquote data-quote="Sebastiii" data-source="post: 1086426" data-attributes="member: 60104"><p>From LAV Splitter source, it seems that there is not a big change (no new NALU code) but like it relay on ffmpeg maybe all new stuff are done there lol.</p><p></p><p>For ex : </p><p>[CODE=C++]HRESULT CLAVFVideoHelper::ProcessH264Extradata(BYTE *extradata, int extradata_size, MPEG2VIDEOINFO *mp2vi, BOOL bAnnexB)</p><p>{</p><p> if (*(char *)extradata == 1) {</p><p> if (extradata[1])</p><p> mp2vi->dwProfile = extradata[1];</p><p> if (extradata[3])</p><p> mp2vi->dwLevel = extradata[3];</p><p> mp2vi->dwFlags = (extradata[4] & 3) + 1;</p><p> mp2vi->cbSequenceHeader = avc_quant(extradata, (BYTE *)(&mp2vi->dwSequenceHeader[0]), extradata_size);</p><p> } else {</p><p> // MPEG-TS gets converted for improved compat.. for now!</p><p> if (bAnnexB) {</p><p> mp2vi->dwFlags = 4;</p><p> mp2vi->cbSequenceHeader = (DWORD)avc_parse_annexb(extradata, extradata_size, (BYTE *)(&mp2vi->dwSequenceHeader[0]));</p><p> } else {</p><p> return -1;</p><p> }</p><p> }</p><p> return 0;</p><p>}</p><p></p><p>HRESULT CLAVFVideoHelper::ProcessHEVCExtradata(BYTE *extradata, int extradata_size, MPEG2VIDEOINFO *mp2vi)</p><p>{</p><p> if (extradata[0] || extradata[1] || extradata[2] > 1 && extradata_size > 25) {</p><p> mp2vi->dwFlags = (extradata[21] & 3) + 1;</p><p> }</p><p> return -1;</p><p>}[/CODE]</p><p></p><p>ProcessHEVCExtradata was added / some new HEVC mediasubtype added</p><p></p><p>[CODE=C++]// 31435648-0000-0010-8000-00AA00389B71</p><p>DEFINE_GUID(MEDIASUBTYPE_HVC1,</p><p> 0x31435648, 0x0000, 0x0010, 0x80, 0x00, 0x00, 0xAA, 0x00, 0x38, 0x9B, 0x71);</p><p></p><p>// 43564548-0000-0010-8000-00AA00389B71</p><p>DEFINE_GUID(MEDIASUBTYPE_HEVC,</p><p> 0x43564548, 0x0000, 0x0010, 0x80, 0x00, 0x00, 0xAA, 0x00, 0x38, 0x9B, 0x71);</p><p>[/CODE]</p><p></p><p>And also : (else if (avstream->codec->codec_id == AV_CODEC_ID_HEVC)....)</p><p></p><p>[CODE=C++]if(avstream->codec->codec_id == AV_CODEC_ID_H264)</p><p> {</p><p> int ret = ProcessH264Extradata(extradata, extra, mp2vi, bConvertToAVC1);</p><p> if (ret < 0)</p><p> bCopyUntouched = TRUE;</p><p> } else if (avstream->codec->codec_id == AV_CODEC_ID_HEVC) {</p><p> int ret = ProcessHEVCExtradata(extradata, extra, mp2vi);</p><p> if (ret < 0)</p><p> bCopyUntouched = TRUE;[/CODE]</p><p></p><p>And : (HRESULT ProcessHEVCExtradata(BYTE ....)</p><p></p><p>[CODE=C++]HRESULT ProcessH264Extradata(BYTE *extradata, int extradata_size, MPEG2VIDEOINFO *mp2vi, BOOL bConvertToAVC1);</p><p> HRESULT ProcessHEVCExtradata(BYTE *extradata, int extradata_size, MPEG2VIDEOINFO *mp2vi);[/CODE]</p><p></p><p>So not sure if it help lol</p></blockquote><p></p>
[QUOTE="Sebastiii, post: 1086426, member: 60104"] From LAV Splitter source, it seems that there is not a big change (no new NALU code) but like it relay on ffmpeg maybe all new stuff are done there lol. For ex : [CODE=C++]HRESULT CLAVFVideoHelper::ProcessH264Extradata(BYTE *extradata, int extradata_size, MPEG2VIDEOINFO *mp2vi, BOOL bAnnexB) { if (*(char *)extradata == 1) { if (extradata[1]) mp2vi->dwProfile = extradata[1]; if (extradata[3]) mp2vi->dwLevel = extradata[3]; mp2vi->dwFlags = (extradata[4] & 3) + 1; mp2vi->cbSequenceHeader = avc_quant(extradata, (BYTE *)(&mp2vi->dwSequenceHeader[0]), extradata_size); } else { // MPEG-TS gets converted for improved compat.. for now! if (bAnnexB) { mp2vi->dwFlags = 4; mp2vi->cbSequenceHeader = (DWORD)avc_parse_annexb(extradata, extradata_size, (BYTE *)(&mp2vi->dwSequenceHeader[0])); } else { return -1; } } return 0; } HRESULT CLAVFVideoHelper::ProcessHEVCExtradata(BYTE *extradata, int extradata_size, MPEG2VIDEOINFO *mp2vi) { if (extradata[0] || extradata[1] || extradata[2] > 1 && extradata_size > 25) { mp2vi->dwFlags = (extradata[21] & 3) + 1; } return -1; }[/CODE] ProcessHEVCExtradata was added / some new HEVC mediasubtype added [CODE=C++]// 31435648-0000-0010-8000-00AA00389B71 DEFINE_GUID(MEDIASUBTYPE_HVC1, 0x31435648, 0x0000, 0x0010, 0x80, 0x00, 0x00, 0xAA, 0x00, 0x38, 0x9B, 0x71); // 43564548-0000-0010-8000-00AA00389B71 DEFINE_GUID(MEDIASUBTYPE_HEVC, 0x43564548, 0x0000, 0x0010, 0x80, 0x00, 0x00, 0xAA, 0x00, 0x38, 0x9B, 0x71); [/CODE] And also : (else if (avstream->codec->codec_id == AV_CODEC_ID_HEVC)....) [CODE=C++]if(avstream->codec->codec_id == AV_CODEC_ID_H264) { int ret = ProcessH264Extradata(extradata, extra, mp2vi, bConvertToAVC1); if (ret < 0) bCopyUntouched = TRUE; } else if (avstream->codec->codec_id == AV_CODEC_ID_HEVC) { int ret = ProcessHEVCExtradata(extradata, extra, mp2vi); if (ret < 0) bCopyUntouched = TRUE;[/CODE] And : (HRESULT ProcessHEVCExtradata(BYTE ....) [CODE=C++]HRESULT ProcessH264Extradata(BYTE *extradata, int extradata_size, MPEG2VIDEOINFO *mp2vi, BOOL bConvertToAVC1); HRESULT ProcessHEVCExtradata(BYTE *extradata, int extradata_size, MPEG2VIDEOINFO *mp2vi);[/CODE] So not sure if it help lol [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
MediaPortal 1
Support
General Support
Unable to scan for Astra 4K channel
Contact us
RSS
Top
Bottom