Blocks with VDPAU and H264/1080i
|Reported by:||Klaas de Waal||Owned by:|
|Cc:||Klaas de Waal||Blocked By:|
|Blocking:||Reproduced by developer:||no|
|Analyzed by developer:||no|
Playing back H264 1080i recordings with MythTV frontend player gives blocking artifacts when VDPAU hardware decoding is used. Playback is OK when software decoding is used.
The blocking artifacts appear often, but not always, for a short time when skipping backward and forward. Sometimes the blocking artifacts also appear on start of playback.
Continuous playback is OK, it is the first second after the skip that gives the problems.
The problem has been reproduced with the mpv player when VDPAU hardware decoding is configured; also here playback is OK when software decoding is used.
The problem is bisected and it is caused by the following commit:
avcodec/h264_slice: don't copy frame data during error concealment
In addition to the fact that av_image_copy() cannot handle hardware pixel formats,
h->short_ref->f may not be writable at this point.
Based on a patch by Hendrik Leppkes.
Signed-off-by: James Almer <email@example.com>
Reversing this patch in the release/4.4 tree does solve the problem for MythTV and for the mpv player.
The mpv player command used:
$ mpv -vo=vdpau --hwdec=vdpau tweevoortwaalf_ffmpeg.ts