[MPlayer-users] simultanous playing of 2 audio streams

Andrew Savchenko Bircoph at list.ru
Thu Sep 7 18:15:47 CEST 2006


В сообщении от 7 Сентябрь 2006 20:08 Andrew Savchenko написал(a):
> Hi!
>
> > Is it possible to play 2 audio streams
> > at the same time?
> >
> > The option '-aid' let play only one of the
> > audio streams in the file.
>
> This rude script will help:
> ---
> #!/bin/bash
> mplayer -aid 0 file.avi
> mplayer -aid 1 -vo null -vc null file.avi
> ---
> You must use some audiomixer (e.g., alsa) or soundserver, allows
> muxing without delays (e.g., jack).
>
> But be aware that you can't rewind both audiostreams in sync. Howere,
> you can stop | continue them simaltaneously by issuing appropriate
> signals:
> killall -19 mplayer -- stop
> killall -18 mplayer -- resume

Sorry, small typo: "&" forgotten:
#!/bin/bash
mplayer -aid 0 file.avi &
mplayer -aid 1 -vo null -vc null file.avi &
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 191 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/mplayer-users/attachments/20060907/7f3b1e32/attachment.pgp>


More information about the MPlayer-users mailing list