[mythtv] Mythtranscode HLS/AVF heavily distorted output
Warpme
warpme at o2.pl
Thu Jul 30 14:16:02 UTC 2015
On 29/07/15 15:02, William Wilhelm wrote:
> The culprit was commit db5c40cfc14dcca456446fe059b01fe90211dd60.
>
> This is the reversion diff.
>
> diff --git a/mythtv/libs/libmythtv/mythframe.h
> b/mythtv/libs/libmythtv/mythframe.h
> index 444b676..f27da5b 100644
> --- a/mythtv/libs/libmythtv/mythframe.h
> +++ b/mythtv/libs/libmythtv/mythframe.h
> @@ -95,7 +95,7 @@ static inline void init(VideoFrame *vf,
> VideoFrameType _codec,
> const int *p = 0,
> const int *o = 0,
> float _aspect = -1.0f, double _rate = -1.0f,
> - int _aligned = 64) MUNUSED;
> + int _aligned = 0) MUNUSED;
> static inline void clear(VideoFrame *vf);
> static inline bool compatible(const VideoFrame *a,
> const VideoFrame *b) MUNUSED;
> @@ -284,7 +284,7 @@ static inline int bitsperpixel(VideoFrameType type)
> }
>
> static inline uint buffersize(VideoFrameType type, int width, int
> height,
> - int _aligned = 64)
> + int _aligned = 16)
> {
> int type_bpp = bitsperpixel(type);
> uint bpp = type_bpp / 4; /* bits per pixel div common factor */
> diff --git a/mythtv/libs/libmythtv/videobuffers.h
> b/mythtv/libs/libmythtv/videobuffers.h
> index 14fed78..b1f93c1 100644
> --- a/mythtv/libs/libmythtv/videobuffers.h
> +++ b/mythtv/libs/libmythtv/videobuffers.h
> @@ -47,7 +47,7 @@ class YUVInfo
> {
> public:
> YUVInfo(uint w, uint h, uint size, const int *p, const int *o,
> - int aligned = 64);
> + int aligned = 0);
>
> public:
> uint width;
>
> John are you able to test this on your end, and do you know what is
> going on here?
> The original commit message is "Create pitch/strides that are a
> multiple of 32 bytes".
>
> Thanks.
>
Will,
Many thx for finding root cause. I have exactly the same HLS distortions
on H264 SD channels. HD channels are OK.
Reverting commit You mention fixes issue for me.
This is definitely regression.
Thx!
More information about the mythtv-dev
mailing list