[FFmpeg-user] bgra to yuv

Paul B Mahol onemda at gmail.com
Sun Mar 25 20:32:38 CEST 2012


On 3/25/12, Josh long <funkyirish at gmail.com> wrote:
>>
>>
>> For lossless with that codec use "-global_quality 0".
>> _______________________________________________
>> ffmpeg-user mailing list
>> ffmpeg-user at ffmpeg.org
>> http://ffmpeg.org/mailman/listinfo/ffmpeg-user
>>
>
> Thanks, but it seems that I'm not doing this correctly as there is a lot of
> distortion again.  Could you tell me where I'm going wrong here? I also
> tried it (first) just using -global_quality 0, and it didn't work well so I
> added the -q 0 before it.

Converting from one colorspace to another one may not be lossless.

So if you do not want distortions at all only colorspace conversions which are
actually lossless should be used.

>
> #include<stdio.h>
> #include<stdlib.h>
> #include<string.h>
>
> main(){
>   char out[120];
>   int a;
>   for(a=0;a<25;a++){
>   sprintf(out,"ffmpeg -i 0libschbgra%d.avi -vcodec libschroedinger -q 0
> -global_quality 0 0libsch%d.avi\n",a,a);
>   system(out);
>   sprintf(out,"ffmpeg -i 0libsch%d.avi -vcodec rawvideo -pix_fmt bgra -q 0
> 0libschbgra%d.avi\n",a,a+1);
>   system(out);
>   }
> }
>
> thanks again,
>
> Joshua
> _______________________________________________
> ffmpeg-user mailing list
> ffmpeg-user at ffmpeg.org
> http://ffmpeg.org/mailman/listinfo/ffmpeg-user
>


More information about the ffmpeg-user mailing list