[FFmpeg-user] bgra to yuv

Josh long funkyirish at gmail.com
Sun Mar 25 03:25:02 CEST 2012


>
> Alternatively, there should be a launchpad version:
> https://launchpad.net/~jon-severinsson/+archive/ffmpeg
>
> Carl Eugen
>
> _______________________________________________
> ffmpeg-user mailing list
> ffmpeg-user at ffmpeg.org
> http://ffmpeg.org/mailman/listinfo/ffmpeg-user
>

 Thanks I've now upgraded to ffmpeg 0.9.1.  I tried the libschroedinger
codec, but it's not to lossy for me (unless I'm doing it wrong).  I ran
this code (after compiling of course)

#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
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);
  }
}
When I was finished I could see clear distortion between the last and first
videos.  I know that ffmpeg has not had lossless enabled in the past, is
that still the case?  I could really use a tip for lossless compression; I
tried converting to yuv444p and then using dirac encoder, but the results
wouldn't play correctly.  I'm going to run a script to convert back and
forth that way and get back here.  Thanks again for the help I'm getting.

Joshua


More information about the ffmpeg-user mailing list