[Mplayer-cvslog] CVS: main help_mp-en.h,1.27,1.28 mplayer.c,1.503,1.504

Arpi of Ize arpi at mplayerhq.hu
Thu May 23 23:58:32 CEST 2002


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

Modified Files:
	help_mp-en.h mplayer.c 
Log Message:
- put back SystemTooSlow message
- more tips for tooslow (ni vs cache) and buffer overflow (-ni)


Index: help_mp-en.h
===================================================================
RCS file: /cvsroot/mplayer/main/help_mp-en.h,v
retrieving revision 1.27
retrieving revision 1.28
diff -u -r1.27 -r1.28
--- help_mp-en.h	20 May 2002 05:09:18 -0000	1.27
+++ help_mp-en.h	23 May 2002 21:58:29 -0000	1.28
@@ -112,6 +112,7 @@
 "  with -framedrop !  Read DOCS/video.html for video tuning/speedup tips.\n"\
 "- Slow cpu. don't try to playback big dvd/divx on slow cpu! try -hardframedrop\n"\
 "- Broken file. try various combinations of these: -nobps  -ni  -mc 0  -forceidx\n"\
+"- You're using -cache to play a non-interleaved file? try with no cache...\n"\
 "If none of these apply, then read DOCS/bugreports.html !\n\n"
 
 #define MSGTR_NoGui "MPlayer was compiled WITHOUT GUI support!\n"
@@ -145,7 +146,8 @@
 #define MSGTR_VideoStreamRedefined "Warning! video stream header %d redefined!\n"
 #define MSGTR_TooManyAudioInBuffer "\nDEMUXER: Too many (%d in %d bytes) audio packets in the buffer!\n"
 #define MSGTR_TooManyVideoInBuffer "\nDEMUXER: Too many (%d in %d bytes) video packets in the buffer!\n"
-#define MSGTR_MaybeNI "(maybe you play a non-interleaved stream/file or the codec failed)\n"
+#define MSGTR_MaybeNI "(maybe you play a non-interleaved stream/file or the codec failed)?\n" \
+		      "For .AVI files, try to force non-interleaved mode with option -ni\n"
 #define MSGTR_DetectedFILMfile "Detected FILM file format!\n"
 #define MSGTR_DetectedFLIfile "Detected FLI file format!\n"
 #define MSGTR_DetectedROQfile "Detected RoQ file format!\n"

Index: mplayer.c
===================================================================
RCS file: /cvsroot/mplayer/main/mplayer.c,v
retrieving revision 1.503
retrieving revision 1.504
diff -u -r1.503 -r1.504
--- mplayer.c	20 May 2002 03:25:21 -0000	1.503
+++ mplayer.c	23 May 2002 21:58:29 -0000	1.504
@@ -1639,13 +1639,8 @@
 	      // printf ("audio slp req: %.3f TF: %.3f delta: %.3f (v: %.3f a: %.3f) | ", i, time_frame,
 	      //	    i - time_frame, sh_video->timer, sh_audio->timer - (float)((float)delay / (float)sh_audio->o_bps));
 	      if(SH_AV_delay<-2*frame_time){
-		  static int drop_message=0;
 	          drop_frame=frame_dropping; // tricky!
 	          ++drop_frame_cnt;
-		  if(drop_frame_cnt>50 && AV_delay>0.5 && !drop_message){
-	    	      drop_message=1;
-	    	      mp_msg(MSGT_AVSYNC,MSGL_WARN,MSGTR_SystemTooSlow);
-	         }
 		mp_msg(MSGT_AVSYNC,MSGL_INFO,"A-V SYNC: FRAMEDROP (SH_AV_delay=%.3f)!\n", SH_AV_delay);
 	        mp_msg(MSGT_AVSYNC,MSGL_DBG2,"\nframe drop %d, %.2f\n", drop_frame, time_frame);
 	        /* go into unlimited-TF cycle */
@@ -1792,8 +1787,13 @@
       mp_dbg(MSGT_AVSYNC,MSGL_DBG2,"### A:%8.3f (%8.3f)  V:%8.3f  A-V:%7.4f  \n",a_pts,a_pts-audio_delay-delay,v_pts,(a_pts-delay-audio_delay)-v_pts);
 
       if(delay_corrected){
+	static int drop_message=0;
         float x;
 	AV_delay=(a_pts-delay-audio_delay)-v_pts;
+	if(drop_frame_cnt>50+drop_message*250 && AV_delay>0.5){
+	  ++drop_message;
+	  mp_msg(MSGT_AVSYNC,MSGL_WARN,MSGTR_SystemTooSlow);
+	}
         x=AV_delay*0.1f;
         if(x<-max_pts_correction) x=-max_pts_correction; else
         if(x> max_pts_correction) x= max_pts_correction;




More information about the MPlayer-cvslog mailing list