[MEncoder-users] x264 file playback is too slow!

Reimar Döffinger Reimar.Doeffinger at stud.uni-karlsruhe.de
Sat Mar 25 21:37:31 CET 2006


Hi,
On Wed, Mar 22, 2006 at 09:46:41PM +0000, Raphael wrote:
> Corey Hickey wrote:
> > That's because it's not really a wave file, even though you call it
> > one. It's still an avi file.
> >
> > $ mplayer k3b_image.iso -ao pcm:file=k3b.wav \
> >   -vc null -vo null -benchmark
[...]
> 2) It runs very slowly and is generally rather odd. Here is the full
> mplayer -v output attached. See how it complains that I don't have -vo
> null etc. and then says my system is too slow to play the file!

No idea about the message, but against the "runs very slowly", try the
attached patch and use the "fast" suboption for -ao pcm.

Greetings,
Reimar Döffinger
-------------- next part --------------
Index: libao2/ao_pcm.c
===================================================================
RCS file: /cvsroot/mplayer/main/libao2/ao_pcm.c,v
retrieving revision 1.31
diff -u -r1.31 ao_pcm.c
--- libao2/ao_pcm.c	9 Feb 2006 14:07:54 -0000	1.31
+++ libao2/ao_pcm.c	25 Mar 2006 20:32:10 -0000
@@ -27,6 +27,7 @@
 
 static char *ao_outputfilename = NULL;
 static int ao_pcm_waveheader = 1;
+static int fast = 0;
 
 #define WAV_ID_RIFF 0x46464952 /* "RIFF" */
 #define WAV_ID_WAVE 0x45564157 /* "WAVE" */
@@ -83,6 +84,7 @@
 	opt_t subopts[] = {
 	  {"waveheader", OPT_ARG_BOOL, &ao_pcm_waveheader, NULL},
 	  {"file",       OPT_ARG_MSTRZ, &ao_outputfilename, NULL},
+	  {"fast",       OPT_ARG_BOOL, &fast, NULL},
 	  {NULL}
 	};
 	// set defaults
@@ -179,7 +181,7 @@
 static int get_space(void){
 
     if(vo_pts)
-      return ao_data.pts < vo_pts ? ao_data.outburst : 0;
+      return ao_data.pts < vo_pts + fast * 30000 ? ao_data.outburst : 0;
     return ao_data.outburst;
 }
 


More information about the MEncoder-users mailing list