[FFmpeg-user] Playing audio with ffmpeg

Nicolas George nicolas.george at normalesup.org
Sun Nov 11 16:57:31 CET 2012


Le decadi 20 brumaire, an CCXXI, Deron a écrit :
> I have a headless server that I would like to play audio out the
> standard headphone port using ffmpeg. I thought asla might be the
> ticket, but the documentation is a bit sparse. Is that the right
> device, and does anyone have an example that works?

The basic command would be:

ffmpeg -i anything -f alsa default

You can put any named ALSA device instead of "default", provided you know
how ALSA works; Carl Eugen's command is an example of that, where "hw:0"
points directly to the first sound controller, bypassing ALSA's
configuration, software sharing and automatic conversion to formats
controlled by your card.

But I do not advise you to use such a solution: ffmpeg is not meant as a
playback tool, and lacks all basic features, including simple pause. You
should look for a console-based player, MPlayer can work like that, or a
daemon-based one (I know "mpd" exist, but I do not know anything more about
it).

Regards,

-- 
  Nicolas George
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: Digital signature
URL: <http://ffmpeg.org/pipermail/ffmpeg-user/attachments/20121111/28d73460/attachment.asc>


More information about the ffmpeg-user mailing list