Re: [Libav-user] sws_scale has weird behavior when not resizing

2015-08-17 Thread mxvuser
Hi, thanks to Alexandre for the fix with SWS_ACCURATE_RND flag. The original post dated back to 2012, I use the lib of a version close to the end of 2014, but this issue still existed, videos might show similar artifacts when converted without scaling and the width (or height) is not evenly divid

Re: [Libav-user] sws_scale has weird behavior when not resizing

2012-07-16 Thread Michael Bradshaw
On Mon, Jul 16, 2012 at 10:15 AM, Alexandre Millette wrote: > On a somewhat related note, can the sws_scale behavior that I was seeing be > considered a bug? Yes. It's either a bug in your code or in sws_scale. The fact that ffmpeg doesn't reproduce it makes me lean towards it being a bug in your

Re: [Libav-user] sws_scale has weird behavior when not resizing

2012-07-16 Thread Alexandre Millette
Hi again. TL;DR: use the SWS_ACCURATE_RND flag. I have solve my issue (or rather found a workaround) and thought it might help some people: > Also I am not sure what would be the proper way to handle this situation. > Sure I can round the width of the frame to the nearest greater multiple o

Re: [Libav-user] sws_scale has weird behavior when not resizing

2012-07-13 Thread 沉默的大多数
来信收到,谢谢! -- 原始邮件 -- From:"Alex Cohn"; Date:2012年7月13日(星期五) 凌晨2:18 To:"This list is about using libavcodec, libavformat, libavutil,libavdevice and libavfilter."; Subject:Re: [Libav-user] sws_scale has weird behavior when not resizing On Jul 12, 2012 6:30 PM, "A

Re: [Libav-user] sws_scale has weird behavior when not resizing

2012-07-13 Thread Alexandre Millette
> I also have encountered this "right band" issue when converting from > YUV to RGB. However, I noticed that issue doesn't appear when your > frame width is a multiple of 8. I assumed you mentioned HeightxWidth, > not widthxheight and, thus frame width is 240, which is a multiple of > 8. In that

Re: [Libav-user] sws_scale has weird behavior when not resizing

2012-07-12 Thread Sampath Subasinghe
On 07/12/2012 08:59 PM, Alexandre Millette wrote: Upon testing with various video formats and files, I've encountered a problem with a small MPEG4/mp4v file (190x240). The issue is that a small green band (6 px in width) will appear on the right side of the frames. I also have encountered th

Re: [Libav-user] sws_scale has weird behavior when not resizing

2012-07-12 Thread Alexandre Millette
Thanks for replying. > I believe your problem could be rooted in bicubic transform. > It makes n9 sense when source and target sizes are the same. > Try to set linear. I tried both SWS_FAST_BILINEAR and SWS_BILINEAR (as well as a few others) and there is no change. From what I understand of the

Re: [Libav-user] sws_scale has weird behavior when not resizing

2012-07-12 Thread Alex Cohn
On Jul 12, 2012 6:30 PM, "Alexandre Millette" wrote: > > Hello all. > > I'm working on a C++ video player using libav. > Upon testing with various video formats and files, I've encountered a problem with a small MPEG4/mp4v file (190x240). > The issue is that a small green band (6 px in width) will

Re: [Libav-user] sws_scale has weird behavior when not resizing

2012-07-12 Thread Carl Eugen Hoyos
Alexandre Millette writes: > Upon testing with various video formats and files, I've encountered a > problem with a small MPEG4/mp4v file (190x240). > The issue is that a small green band (6 px in width) will appear on the > right side of the frames. Can you reproduce this with ffmpeg (the com

[Libav-user] sws_scale has weird behavior when not resizing

2012-07-12 Thread Alexandre Millette
Hello all. I'm working on a C++ video player using libav. Upon testing with various video formats and files, I've encountered a problem with a small MPEG4/mp4v file (190x240). The issue is that a small green band (6 px in width) will appear on the right side of the frames. This is what I've g