[FFmpeg-user] How to stream just audio with ffmpeg

Roger Pack rogerdpack2 at gmail.com
Fri Jul 18 00:34:26 CEST 2014


On Sat, Jul 12, 2014 at 12:12 PM, Yan Brenman <ybrenman at xopnetworks.com>
wrote:

> Hello,
>
> I am trying to stream just audio with ffmpeg from a PC with built in
> microphone and play on the other PC with ffplay.
> The name of a microphone device I get with "ffmpeg -list_devices true -f
> dshow -i dummy" command.
>
> The command on the streaming side looks like this:
>
> ffmpeg -f dshow -i audio="Internal Microphone Array (IDT High Definition
> Audio CODEC)" -vn -c:a mp3 -q:a 9 -ar 11025 -ac 1 -f flv
> rtmp://[RTMP_server_name]/live/[file_name]
>
> And as you can see I am explicitly disabling the video component from
> being included by default with "-vn" switch.
> The streaming side seems to be working fine (with no warnings or errors)
> but unfortunately when I try to play the audio stream with ffplay it still
> tries to find the video stream
> and bails out with "RTMP_ReadPacket, failed to read RTMP packet header"
> error and then complaining the codec parameters for the video stream can't
> be found.
>
> Seems to me that the root of the problem is the fact that ffplay is still
> looking for video in stream 0, while in fact stream 0 is an audio (and no
> video of course at all). I tried to run
> ffplay with "-nodisp" option but it didn't help either:
>
> ffplay -nodisp rtmp://[RTMP_server_name]/live/[file_name].
>
> Is there something wrong I am doing on the streaming side or is there
> something else I need to specify on the playing side?
>

full command line and output from failing and successful use cases please?
How is ffplay ever able to receive this?  I presume you have some type of
intermediary server?  I assume ffplay does work with video? Do other
clients work with just audio?



>
> Every piece of advise is greatly appreciated
> Yan
>
>
> _______________________________________________
> ffmpeg-user mailing list
> ffmpeg-user at ffmpeg.org
> http://ffmpeg.org/mailman/listinfo/ffmpeg-user
>


More information about the ffmpeg-user mailing list