[FFmpeg-user] bgra to yuv

Josh long funkyirish at gmail.com
Sun Mar 25 19:38:43 CEST 2012


>
>
> 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.

#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


More information about the ffmpeg-user mailing list