[MPlayer-dev-eng] Audio visualization

Pavel Modilaynen kopli at mail.ru
Fri Feb 1 16:23:45 CET 2008


Wednesday, January 30, 2008, 8:05:35 PM, Andrew Calkin wrote:
>>
>> I think there is another and more powerfull approach could
>> be used to add this feature to mplayer without xmms and libvisual.
>> It could be implemented as additional feature which is enabled
>> in command line (maybe with -viz [oscill | spectrum | ... ]) only
>> if only one stream is present - audio.
>>
>> This feature could be useful for various diagnostic / test /
>> demonstration purposes.
>>

> IIRC, the issue was the messing with video and audio streams. The way
> it was implemented before was that the audio was output via an audio
> fifo to libvisual as well as the regular output. Then libvisual
> generated the required images using optimized routines and exported
> those images to a fifo. The image fifo was read by -vf bmovl and used
> to display the image on MPlayer vo.

I see ... It is really messy and inconvenient. There is a lot of
obvious drawbacks in this approach (I suspect everebody sees that).

> IMHO I really think that reinventing the wheel in terms of re-writing
> libvisual image creation algs is not such a good idea, and the
> internal messing with audio/video streams would not be accepted into
> MPlayer (at least that was the stance of developers some years ago,
> according to m/l archives I looked at, IIRC).

Of course, I don't want to reinvent the wheel or mess existing code
of mplayer. God forbid :)
I only propose a new approach to this issue. This approach is very
local and with little invasion to mplayer code (only to demux_audio.c
at least).

Thank you for your consideration.
-- 
Pavel Modilaynen




More information about the MPlayer-dev-eng mailing list