Skip to content

Blocking artifacts with mpeg-ts in fixes/32 when using nvdec or vdpau #634

@KungFuJesus

Description

@KungFuJesus
  • Platform: Linux mythtvbox 5.17.5-gentoo #1 SMP PREEMPT Sun May 1 02:28:31 EDT 2022 x86_64 Intel(R) Core(TM)2 Quad CPU Q9650 @ 3.00GHz GenuineIntel GNU/Linux

  • MythTV version: fixes/32

  • Package version:

  • Component: mythfrontend / mythavcodec

What steps will reproduce the bug?

Playback 1080i video from OTA MPEG-TS with nvdec or VDPAU decoding.

How often does it reproduce? Is there a required condition?

Somewhat random but most often occurs during sharp scene transitions or high motion

What is the expected behaviour?

No blocking artifacts

Here's the "debug" playback output when this issue occurs:
https://pastebin.com/m6cfem9q

Here's a screenshot:
blocking_artifact

What do you see instead?

Blocking artifacts

Additional information

This issue I believe to be inherited during a resync to ffmpeg 4.4 but it's hard to say for certain. I only exhibit this with VDPAU or nvdec decoding and the issue seems to disappear when the video is pulled from the transport stream into a regular mpeg2 container. I was able to see this same buggy behavior with nvdec on a different machine with mpv for a while, but now that I've updated ffmpeg and mpv over the past year or so, I cannot observe it anymore. The issue cropped up right around the v32 update and I seem to not be the only one exhibiting this issue, as this mailing list user also seems to have the symptoms: https://lists.archive.carbon60.com/mythtv/dev/638570

I'm attaching a minimally sized ts that exhibits the issue. Hopefully it's not too large.
problem.zip

I've mentioned this issue in issue #428. The machine using nvdec with mpv is leveraging ffmpeg 4.4.2, so it's at least fixed in that verison.

Let me know if there's anything more I can provide.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions