[FFmpeg-user] Playing audio with ffmpeg
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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Size: 198 bytes
Desc: Digital signature
More information about the ffmpeg-user