[FFmpeg-user] RTSP streaming through ffmpeg
Laxi Khatri
laxi.khatri at gmail.com
Tue Sep 16 12:53:03 CEST 2014
Hi
Thanks for reply.
I've done the rtsp stream using vlc with the same ip(192.168.0.3:8554). It
is working fine. I was successfully able to capture the stream.
For streaming over internet i've used ffserver. First I created feed for
ffserver using rtp and ran this command:
ffmpeg -f alsa -i hw:0,0 -acodec mp3 -f rtp rtp://192.168.0.3:8554/
feed1.ffm
Then on the server side I made following changes in the ffserver.conf file:
Port 8554
NoDaemon
RTSPPort 5454
RTSPBindAddress 0.0.0.0
BindAddress 0.0.0.0
MaxHTTPConnections 500
MaxClients 300
MaxBandwidth 10000
CustomLog -
<Feed feed1.ffm>
File /tmp/feed1.ffm
FileMaxSize 500M
ACL allow localhost
ACL allow 192.168.0.0 192.168.255.255
</Feed>
<Stream live.mp3>
Format rtp
Feed feed1.ffm
AudioCodec libmp3lame
AudioBitRate 32
AudioChannels 2
AudioSampleRate 44100
NoVideo
AVOptionAudio flags +global_header
ACL allow localhost
ACL allow 192.168.0.0 192.168.255.255
</Stream>
When i started the ffserver it says ffserver started along with the
message- Codecs do not match for stream 0.
With the ffplay if I try to capture the stream with the following command:
ffplay rtsp://192.168.0.3:5454/live.mp3
After 1-2 minutes it says UDP timeout, retrying with TCP.
Can you please help me on this?
Thanks & Regards
Laxmi Khatri
On Tue, Sep 16, 2014 at 7:12 AM, Qianliang Zhang <zhangqianliang at gmail.com>
wrote:
> 1. 192.168.0.3:8554 is s server supports rtsp?
> 2. Maybe you can try a video file
>
> On Thu, Sep 11, 2014 at 1:56 PM, Laxi Khatri <laxi.khatri at gmail.com>
> wrote:
>
> > Hi
> >
> > I'm trying to stream audio file from rtsp using below command:
> >
> > ffmpeg -re -i song.mp3 -f rtsp -muxdelay 0.1 rtsp://
> > 192.168.0.3:8554/live.sdp
> >
> > But it is doing nothing. Can you please tell what I'm doing wrong?
> >
> >
> >
> > Thanks & Regards
> >
> > Laxmi Khatri
> > _______________________________________________
> > ffmpeg-user mailing list
> > ffmpeg-user at ffmpeg.org
> > http://ffmpeg.org/mailman/listinfo/ffmpeg-user
> >
> _______________________________________________
> ffmpeg-user mailing list
> ffmpeg-user at ffmpeg.org
> http://ffmpeg.org/mailman/listinfo/ffmpeg-user
>
More information about the ffmpeg-user
mailing list