[FFmpeg-user] ALSA flags in ffplay

Marton Balint cus at passwd.hu
Sat Feb 23 02:44:57 CET 2013



On Sat, 23 Feb 2013, Timothy Gu wrote:

> Hello all,
>
> I am trying to use ffplay to play a movie with HDMI sound. I have
> already did every thing to
> get the aplay working as following: aplay -D plughw:0,3 input.wav, but
> I need to use ffplay
> to make the sound go direct to plughw:0,3. The movie contains an ac3
> stream. I tried to
> use ffmpeg to decode the ac3 and then pipe to aplay, but it does not work
> either.

ffplay is using SDL for audio, therefore you should make sure SDL is using 
the alsa driver (by setting the SDL_AUDIODRIVER environment variable) and 
the audio device you want (by setting the AUDIODEV environment variable).

Regards,
Marton


More information about the ffmpeg-user mailing list