Re: [Libav-user] Coversion from YUV to RGB loss of image details

2012-06-06 Thread Carl Eugen Hoyos
Sampath Subasinghe susiriss@... writes: I was wondering whether this is what you meant. This is broken (because odd width is not supported by yuv rawvideo): ffmpeg -i ref.ppm ref.yuv ffmpeg -s 45x32 -i ref.yuv ref2.ppm The following does work and produces the same black edge: $ ffmpeg -i

Re: [Libav-user] Coversion from YUV to RGB loss of image details

2012-06-06 Thread Alex Cohn
On Wed, Jun 6, 2012 at 9:12 AM, Carl Eugen Hoyos ceho...@ag.or.at wrote: Sampath Subasinghe susiriss@... writes: I was wondering whether this is what you meant. This is broken (because odd width is not supported by yuv rawvideo): ffmpeg -i ref.ppm ref.yuv ffmpeg -s 45x32 -i ref.yuv

Re: [Libav-user] Coversion from YUV to RGB loss of image details

2012-06-06 Thread Sampath Subasinghe
The following does work and produces the same black edge: $ ffmpeg -i out.ppm -pix_fmt yuv420p -strict experimental out.ljpg $ ffmpeg -i out.ljpg ref2.ppm Carl Eugen I'm also seeing the black edge with above commands. (Except, I had to precede the second command with -pix_fmt yuv420p to

Re: [Libav-user] Coversion from YUV to RGB loss of image details

2012-06-06 Thread Carl Eugen Hoyos
Sampath Subasinghe susiriss@... writes: $ ffmpeg -i out.ppm -pix_fmt yuv420p -strict experimental out.ljpg $ ffmpeg -i out.ljpg ref2.ppm I'm also seeing the black edge with above commands. (Except, I had to precede the second command with -pix_fmt yuv420p to avoid seg faulting

Re: [Libav-user] Coversion from YUV to RGB loss of image details

2012-06-06 Thread Carl Eugen Hoyos
Alex Cohn alexcohn@... writes: This is broken (because odd width is not supported by yuv rawvideo): ffmpeg -i ref.ppm ref.yuv ffmpeg -s 45x32 -i ref.yuv ref2.ppm I am not using the latest build, but for me the round-trip worked without artifacts I forgot to add -pix_fmt yuv420p to

Re: [Libav-user] Coversion from YUV to RGB loss of image details

2012-06-06 Thread Sampath Subasinghe
$ ffmpeg -i out.ppm -pix_fmt yuv420p -strict experimental out.ljpg $ ffmpeg -i out.ljpg ref2.ppm I'm also seeing the black edge with above commands. (Except, I had to precede the second command with -pix_fmt yuv420p to avoid seg faulting ffmpeg). This sounds like an important issue that I

Re: [Libav-user] Coversion from YUV to RGB loss of image details

2012-06-05 Thread Alex Cohn
On Tue, Jun 5, 2012 at 5:16 AM, Sampath Subasinghe susir...@gmail.comwrote: Hi All, I am using libswscale to do some YUV - RGB conversion back and forth. There are 2 steps performed on an image. 1. RGB - YUV conversion 2. YUV - RGB conversion Issue is that in the image output

[Libav-user] Coversion from YUV to RGB loss of image details

2012-06-04 Thread Sampath Subasinghe
Hi All, I am using libswscale to do some YUV - RGB conversion back and forth. There are 2 steps performed on an image. 1. RGB - YUV conversion 2. YUV - RGB conversion Issue is that in the image output from step 2, the right edge of the image is missing, means the pixels are black.