[Ffmpeg-cvslog] CVS: ffmpeg/libavcodec motion_est.c,1.116,1.117

Corey Hickey bugfood-ml
Wed Dec 28 22:12:25 CET 2005


Michael Niedermayer CVS wrote:
> Update of /cvsroot/ffmpeg/ffmpeg/libavcodec
> In directory mail:/var2/tmp/cvs-serv17458/libavcodec
> 
> Modified Files:
> 	motion_est.c 
> Log Message:
> dont discard least significant bits


I tested this on The Matrix:

-----------------------------------------------------------------
for i in 1:turbo 2 ; do
  time mencoder ~/dumpstream/matrix.vob -aid 128 -oac copy \
  -vf crop=718:356:0:60,scale=640:272 -sws 9 -ovc lavc -lavcopts \
vcodec=mpeg4:vbitrate=581:psnr:vpass=$i:mbd=2:mv0:trell:cbp:\
precmp=2:cmp=2:subcmp=2:predia=2:dia=2:preme=2:vme=5:v4mv:\
last_pred=2:vqcomp=0.6:vmax_b_frames=2:qpel -ofps 24000/1001 \
  -o test.avi
done

-----------------------------------------------------------------
before:

(pass 1)
Video stream:  580.769 kbit/s  (72596 B/s)  size: 593666956 bytes
PSNR: Y:40.05, Cb:44.29, Cr:44.59, All:41.08

(pass 2)
Video stream:  580.835 kbit/s  (72604 B/s)  size: 593734566 bytes
PSNR: Y:42.04, Cb:45.15, Cr:45.84, All:42.91

-----------------------------------------------------------------
after:

(pass 1)
Video stream:  580.769 kbit/s  (72596 B/s)  size: 593667003 bytes
PSNR: Y:40.05, Cb:44.29, Cr:44.59, All:41.08
user    34m52.509s

(pass 2)
Video stream:  580.835 kbit/s  (72604 B/s)  size: 593734474 bytes
PSNR: Y:42.04, Cb:45.15, Cr:45.84, All:42.91
user    190m8.100s

-----------------------------------------------------------------

Yes, the PSNR is exactly the same for both passes. I included the video
stream size information as an indication I didn't do the same encode
twice. :)

As I mentioned before, I don't have encoding time data because my
cpufreq was screwy, but there wasn't any real change between "after" and
the encode before the "before".

The two videos look almost identical. In the "after" encode I found a
few frames with more ringing and a few frames with less blocking, but
overall they just looked the same.

-Corey





More information about the ffmpeg-cvslog mailing list