[FFmpeg-user] FFMPEG RTSP Streaming

Imran Husain imran.husain at zingma.com
Thu Sep 11 09:43:37 CEST 2014


Hi,

I'm trying to stream mp3 file(locally store) using below command:

ffmpeg -re -i song.mp3 -f rtsp -muxdelay 0.1 rtsp://192.168.1.21:8556/song

ffmpeg -re -i song.mp3 -c copy -f rtsp -rtsp_transport tcp
rtsp://localhost:8888/live.sdp

ffmpeg -re -y -i song.mp3 -vcodec libx264 -b:v 600k -r 25 -s 640x360
-filter:v yadif -ab 64k -ac 1 -ar 44100 -f flv "rtsp://
192.168.1.21:8556/song"

.......100 diff ways.

but after ctrl+C i got error message
"Could not write header for output file #0 (incorrect codec parameters ?):
Error number -5 occurred"

Can you please suggest me what I'm doing wrong?

My Question::

Q1:How to stream local mp3 file with rtsp on Windows 8.?(any setting needs)

Q2:For rtp what is the exact ip address range ?(i tried above command with
rtp it stream but stream only locally )

Q-3 What can be the input for ffserver? Can we capture soundcard as an
input for ffserver?(because of feeds(2-step process for streaming ) it
increase delay).

my aim is to pick sound from soundcard and stream it with rtsp with minimum
delay(<1sec) (on local network) .How i can achieve this with  FFMPEG?


Thanks & Regards

Imran Husain


More information about the ffmpeg-user mailing list