[MPlayer-dev-eng] Adding threaded functionality to mplayer NODAEMON

James Courtier-Dutton James at superbug.demon.co.uk
Fri Sep 10 23:18:12 CEST 2004


Roberto Ragusa wrote:
> 
> 
> And don't forget all the extra features which can be more easily
> implemented.
> What about this?
>   mplayer -input name=DVB:source=/dev/dvb/adapter0/dvr0
>     -demux name=CH1:source=DVB:vpid=640:apid=512
>     -demux name=CH2:source=DVB:vpid=650:apid=513
>     -decoder name=CH1D:source=CH1
>     -decoder name=CH2D:source=CH2
>     -filter name=CH1F:source=CH1D:filter=deinterlace
>     -filter name=CH2F:source=CH2D:filter=half_transparency
>     -virtualcanvas name=CANV:size=1024x768
>     -compose dest=CANV:source=CH1F:size=1024x768:pos=0,0
>     -compose dest=CANV:source=CH2F:size=320x240:pos=680,20
>     -output name=CRT:source:CANV:driver=xv:1024x768
>     -output name=TV:source:CANV:driver=nvidiatv:800x600
>     -output name=MPEG:source:CANV:driver=mpegwriter:filename=a.mpg
>     -baseclock source=CH1D
> Receive two channels from DVB, filter them, composite them in a PIP
> style with half trasparency and output on CRT, TV and an MPEG file at
> the same time.
> 
> It could look much too complicated but we have almost all the pieces:
> input drivers, demuxers, decoders, filters, output drivers, rescalers...
> we only miss compositing (not a great task) and a good infrastructure
> to put pieces together (that would include negotiation of YUV2/RGB
> and auto placing of rescalers or converters) and handle the
> syncronization.
> 
> Ambitious, but not out of reach.
> 
> Current mplayer can display 5 channels from DVB at the same time on my
> system.
> But you have to run 5 different copies of the player and position your
> windows manually and you are not able to switch which audio you want to
> listen without closing and relaunching everything.
> 

For your info, if you want to look at a multimedia app that already uses 
threads, and can handle multiple streams, try xine.
There are always some advantages of one method, and also disadvantages.
mplayer is better at some things, xine is better at others.




More information about the MPlayer-dev-eng mailing list