[MEncoder-users] x264 file playback is too slow!
Raphael
mencoder at lesshaste.plus.com
Sun Mar 26 12:27:37 CEST 2006
Reimar Döffinger wrote:
> 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.
>
>
> ------------------------------------------------------------------------
>
> 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;
> }
>
>
Thanks. That seems to have sped it up.
time mplayer -frames 3000 k3b_image.iso -ao pcm:file=k3b.wav -vo null
-benchmark
real 0m21.526s
user 0m0.060s
sys 0m0.032s
time mplayer -frames 3000 k3b_image.iso -ao pcm:file=k3b.wav:fast -vo
null -benchmark
real 0m1.894s
user 0m0.944s
sys 0m0.172s
-vc dummy is still broken of course and the warning messages still appear :)
Cheers,
Raphael
More information about the MEncoder-users
mailing list