<div dir="ltr"><div>This is the commit that causes a failure on BBC streams with the devel/ffmpeg-resync branch:</div><div><br></div>1bba2b59941d575ade7206d0ba52a556f5d3e672 is the first bad commit<br>commit 1bba2b59941d575ade7206d0ba52a556f5d3e672<br>Author: Scott Theisen <<a href="mailto:scott.the.elm@gmail.com">scott.the.elm@gmail.com</a>><br>Date:   Fri Mar 18 00:34:50 2022 -0400<br><div><br></div><div>The problem is not in the MHEG processing but in the presence of the streams that contain the additional MHEG information.</div><div>With MHEG processing disabled it crashes in the same way.</div><div><br></div><div>Details:</div><div>- BBC streams received from Astra-2 satellite (a.k.a. Freesat).</div><div>- When playing a recording, the failure is on stopping playback.</div><div>- When using Live TV the failure is immediate, probably because Live TV does a start / stop / start sequence when starting playback.</div><div><br></div><div>Could just be that your new reference counting code is not very good at counting....</div><div><br></div><div>Hope this helps,</div><div>Klaas.</div><div><br></div><div><br></div><div><br></div><div><br></div><div><br></div><div><br></div><div><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Thu, 28 Jul 2022 at 01:45, Scott Theisen <<a href="mailto:scott.the.elm@gmail.com">scott.the.elm@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">On 7/27/22 17:20, John Pilkington wrote:<br>
> On 27/07/2022 19:14, John Pilkington wrote:<br>
>> On 27/07/2022 18:15, Scott Theisen wrote:<br>
>>> On 7/27/22 11:15, John Pilkington wrote:<br>
>>>> On 27/07/2022 14:20, John Pilkington wrote:<br>
>>>><br>
>>>>> My apologies, but I'm having git problems again and ought to do <br>
>>>>> something else.  I created a local sub-branch for the earlier work <br>
>>>>> on frame counting, and it's getting in the way.<br>
>>>><br>
>>>> I think that got fixed by deleting the contents of my repoB folder <br>
>>>> and recloning from repoA.  Now it would build the real current <br>
>>>> devel/ffmpeg-resync but git apply --check reports a patching error <br>
>>>> with what I extracted from your email.  Perhaps an attachment? Thanks.<br>
>>>>><br>
>>>>>  > John<br>
>>><br>
>>> I don't think my original patch would have worked correctly anyways. <br>
>>> Try the attached instead.<br>
>>><br>
>>> If this correctly demuxes two DSMCC_B streams for your sample I will <br>
>>> consider this "working" even if you can't test the interactive TV <br>
>>> behavior versus master.<br>
>>><br>
>>> Could you upload your sample somewhere so I can try to test it myself?<br>
>>><br>
>>> Thanks,<br>
>>><br>
>>> Scott<br>
>><br>
>> <a href="https://drive.google.com/file/d/1Xm5dSJVRZj3BgGl38xPp6USGuQm2lzq_/view?usp=sharing" rel="noreferrer" target="_blank">https://drive.google.com/file/d/1Xm5dSJVRZj3BgGl38xPp6USGuQm2lzq_/view?usp=sharing</a> <br>
>><br>
> Attached is mythcommflag --resync log for the same BBC ONE newsclip using<br>
><br>
> <a href="https://github.com/MythTV/mythtv/commit/d16fafb504110d12d55e698e12bf21c5aea7a082" rel="noreferrer" target="_blank">https://github.com/MythTV/mythtv/commit/d16fafb504110d12d55e698e12bf21c5aea7a082</a> <br>
><br>
><br>
> with<br>
><br>
> 0001-libavformat-mpegts-mythtv.c-reuse-existing-DSMCC_B-s.patch<br>
><br>
> Quitting playback of this clip no longer causes a crash.<br>
><br>
> Thanks and regards,<br>
><br>
> John<br>
<br>
Thanks for testing and the sample.  Unfortunately, I appear to have <br>
broken MHEG, so I'll need to fix that with the help of your sample.<br>
<br>
Regards,<br>
<br>
Scott<br>
<br>
_______________________________________________<br>
mythtv-dev mailing list<br>
<a href="mailto:mythtv-dev@mythtv.org" target="_blank">mythtv-dev@mythtv.org</a><br>
<a href="http://lists.mythtv.org/mailman/listinfo/mythtv-dev" rel="noreferrer" target="_blank">http://lists.mythtv.org/mailman/listinfo/mythtv-dev</a><br>
<a href="http://wiki.mythtv.org/Mailing_List_etiquette" rel="noreferrer" target="_blank">http://wiki.mythtv.org/Mailing_List_etiquette</a><br>
MythTV Forums: <a href="https://forum.mythtv.org" rel="noreferrer" target="_blank">https://forum.mythtv.org</a><br>
</blockquote></div>