[MPlayer-users] simultanous playing of 2 audio streams

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


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

-------------- 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/947f3a92/attachment.pgp>


More information about the MPlayer-users mailing list