[Libav-user] Right pixel column is repeated in the left
Alex Cohn
alexcohn at netvision.net.il
Wed Nov 2 15:42:45 CET 2011
On Wed, Nov 2, 2011 at 14:52, Drabner <drabner at zoobe.com> wrote:
> Hey,
>
> I have a rather weird problem:
>
> I use ffmpeg to convert frames from a video engine to a video. Now in the
> engine, everything looks fine.
>
> And basically, the conversion of the frames into the video also works. But
> somehow, the rightmost pixel of each line is repeated in the left. This does
> not happen in the engine, so it must be something within the ffmpeg code.
>
> Here is the function that writes the frames:
> [...]
Your loop is, essentialy,
sws_scale(ARGB->YUV420P);
avcodec_encode_video();
> As I said, this generally works, except that glitch.
> Any ideas what could cause this?
I would suggest to save few samples of YUV420P frames (after
sws_scale(), but before avcodec_encode_video()). Maybe you will find
that the input for encoder is already screwed.
Cheers,
Alex
More information about the Libav-user
mailing list