[mythtv] FF/Rew Woes

Peter Bennett pb.mythtv at gmail.com
Sun Jul 1 19:40:12 UTC 2018



On 07/01/2018 02:51 PM, David Engel wrote:
> On Sun, Jul 01, 2018 at 10:18:54AM -0400, Peter Bennett wrote:
>> On 07/01/2018 12:20 AM, David Engel wrote:
>>> Here is what I got after turning on libav:debug via the remote control
>>> socket.  There are two strange things.  First, the behavior I see
>>> between 0628 and 0629 is almost reverse of what you claim.  The
>>> timestamps and filenames of my builds look correct.  I might try to do
>>> a rebuild tomorrow with the 0629 patch again to make absolutely sure.
>>> Second, adb logcat always exits on 0628 after the hang even though
>>> mythfrontend doesn't fully crash and does eventually exit back to the
>>> playback box after two or three minutes.
>>>
>> Check the source for this before the avcodec_flush_buffers in
>> avformatdecoder.cpp, in case my patch went wrong or something else happened.
>> This is what fixed the illegalstateexception for me.
>>
>>                  int ret = 0;
>>                  // This loop should not be necessary as the
>> avcodec_flush_buffers is supposed to
>>                  // free all the buffers. With mediacodesc that is not
>> happening correctly.
>>                  while (ret == 0)
>>                  {
>>                      AVFrame *frame = av_frame_alloc();
>>                      ret = avcodec_receive_frame(enc, frame);
>>                      av_frame_free(&frame);
>>                  }
> I confirmed that that loop is there.  With the package I built today,
> it still hangs everytime.  The only difference is that it takes a
> little longer before it hangs -- about 10 seconds instead of 1 or 2.
>
> David

So I assume that only FF and REW are a problem now and have that error.

I will upgrade my Shield and try again, hopefully be able to reproduce 
it. I hope gdb will work on oreo.

Peter


More information about the mythtv-dev mailing list