[Mplayer-cvslog] CVS: main mencoder.c,1.3,1.4

Arpi of Ize arpi at mplayer.dev.hu
Tue Oct 30 23:27:39 CET 2001


Update of /cvsroot/mplayer/main
In directory mplayer:/var/tmp.root/cvs-serv1616

Modified Files:
	mencoder.c 
Log Message:
YV12 fixed (for mpeg)

Index: mencoder.c
===================================================================
RCS file: /cvsroot/mplayer/main/mencoder.c,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -r1.3 -r1.4
--- mencoder.c	30 Oct 2001 21:55:28 -0000	1.3
+++ mencoder.c	30 Oct 2001 22:27:37 -0000	1.4
@@ -80,7 +80,7 @@
   w>>=1;h>>=1;
   // copy U:
   for(y=0;y<h;y++){
-      unsigned char* s=src[1]+stride[1]*(y0+y)+x0;
+      unsigned char* s=src[2]+stride[2]*(y0+y)+x0;
       unsigned char* d=vo_image+vo_w*vo_h+(vo_w>>1)*(y0+y)+x0;
       memcpy(d,s,w);
   }
@@ -146,7 +146,8 @@
   if(argc>1)
     stream=open_stream(argv[1],0,&file_format);
   else
-    stream=open_stream("/3d/divx/405divx_sm_v2[1].avi",0,&file_format);
+    stream=open_stream("/3d/abcug/Weird AL - Amish Paradise (MUSIC VIDEO).mpeg",0,&file_format);
+//    stream=open_stream("/3d/divx/405divx_sm_v2[1].avi",0,&file_format);
 //    stream=open_stream("/dev/cdrom",2,&file_format); // VCD track 2
 
   if(!stream){
@@ -225,6 +226,8 @@
     vo_image_ptr=vo_image;
 }
 
+divx_quality=4;
+
 if(!init_video(sh_video)){
      mp_msg(MSGT_CPLAYER,MSGL_FATAL,MSGTR_CouldntInitVideoCodec);
      exit(1);
@@ -276,7 +279,7 @@
     enc_param.x_dim=sh_video->disp_w;
     enc_param.y_dim=sh_video->disp_h;
     enc_param.framerate=sh_video->fps;
-    enc_param.bitrate=800;
+    enc_param.bitrate=1800000;
     enc_param.rc_period=0;
     enc_param.rc_reaction_period=0;
     enc_param.rc_reaction_ratio=0;




More information about the MPlayer-cvslog mailing list