Discussion:
[FFmpeg-user] playing audio file using ffmpeg from console
Nyaika David
2012-11-21 07:42:55 UTC
Permalink
Dear ffmpeg users

Im trying to play an audio file from the console using ffmpeg, but
dont seem to find the command for doing the same.

Any one out there with an idea how to do that will have saved my day

thanks in advance

Regards
David Nyaika
Phone:+256706353274
Skype:davie2086
Email: ***@gmail.com
Carl Eugen Hoyos
2012-11-21 11:40:06 UTC
Permalink
Post by Nyaika David
Im trying to play an audio file from the console using ffmpeg, but
dont seem to find the command for doing the same.
See this recent thread for an answer and some caveats:
http://thread.gmane.org/gmane.comp.video.ffmpeg.user/41654

Carl Eugen
Nyaika David
2012-11-21 14:20:36 UTC
Permalink
hi Carl

Thanks for the thread,

im using windows 7 and when i run the command below from the console

*ffmpeg -i laser-01.wav -f alsa hw:0 *

I get the following output



regards
David Nyaika
Post by Carl Eugen Hoyos
Post by Nyaika David
Im trying to play an audio file from the console using ffmpeg, but
dont seem to find the command for doing the same.
http://thread.gmane.org/gmane.comp.video.ffmpeg.user/41654
Carl Eugen
_______________________________________________
ffmpeg-user mailing list
http://ffmpeg.org/mailman/listinfo/ffmpeg-user
--
Regards
David Nyaika
Phone:+256706353274
Skype:davie2086
Email: ***@gmail.com
Tom Evans
2012-11-21 15:09:12 UTC
Permalink
Post by Nyaika David
hi Carl
Thanks for the thread,
im using windows 7 and when i run the command below from the console
*ffmpeg -i laser-01.wav -f alsa hw:0 *
I get the following output
The Advanced Linux Sound Architecture is unlikely to exist on Windows
7. The command line you showed is intended to encode the audio to a
format ALSA will accept, and write it to a specific sound device.

Why don't you just use one of the many many players out there. mplayer
is built using a lot of shared ffmpeg code, but is designed to play
things, rather than convert them. Why not use that instead.

Cheers

Tom
Paul B Mahol
2012-11-21 15:11:09 UTC
Permalink
Post by Nyaika David
hi Carl
Thanks for the thread,
im using windows 7 and when i run the command below from the console
*ffmpeg -i laser-01.wav -f alsa hw:0 *
I get the following output
alsa is for linux, but you are using windows
Roger Pack
2012-11-21 16:17:15 UTC
Permalink
Post by Nyaika David
Dear ffmpeg users
Im trying to play an audio file from the console using ffmpeg, but
dont seem to find the command for doing the same.
Any one out there with an idea how to do that will have saved my day
Try "ffplay" which usually comes bundled with your ffmpeg...though
it's not the most user friendly player :)
-r

Loading...