rtsp://192.168.11.10:554/user=admin&password=XXXXXXX&channel=1&
stream=1.stp
Low-res photo:
rtsp://192.168.11.10:554/user=admin&password=XXXXXXX&channel=1&
stream=0.sdp
Hi-res stream (This is the main stream in the camera setup):
rtsp://192.168.11.10:554/user=admin&password=XXXXXXX&channel=1&
stream=0.stp?real_stream--rtp-caching=100
ffprobe "rtsp://192.168.11.10:554/user=admin&password=xxxxxxxx&channel=1&stream=0.stp"
Input #0, rtsp, from 'rtsp://192.168.11.10:554/user=admin&password=xxxxxxxx&channel=1&stream=0.stp':
Metadata:
title : RTSP Session
Duration: N/A, start: 0.000000, bitrate: N/A
Stream #0:0: Video: h264 (Main), yuvj420p(pc, bt709), 1280x960, 90k tbr, 90k tbn, 180k tbc
Stream #0:1: Audio: pcm_alaw, 8000 Hz, 1 channels, s16, 64 kb/s
ffprobe "rtsp://192.168.11.10:554/user=admin&password=xxxxxxxx&channel=1&stream=1.stp"
Input #0, rtsp, from 'rtsp://192.168.11.10:554/user=admin&password=xxxxxxxx&channel=1&stream=1.stp':
Metadata:
title : RTSP Session
Duration: N/A, start: 0.000000, bitrate: N/A
Stream #0:0: Video: h264 (Main), yuvj420p(pc, bt709), 352x288, 1 fps, 1 tbr, 90k tbn, 2 tbc
Stream #0:1: Audio: pcm_alaw, 8000 Hz, 1 channels, s16, 64 kb/s
Extracting Stream to a File
ffmpeg -i "rtsp://192.168.11.10:554/user=admin&password=pass&channel=1&stream=1.stp" -f mp3 output.mp3
And to Stdout
ffmpeg -i "rtsp://192.168.11.10:554/user=admin&password=pass&channel=1&stream=1.stp" -f mp3 - > stdout.mp3
Forwarding Stream to IceCast
Output to a named fifo
mkfifo /disk/media/Media/Music/Streams/BirdBox1/mediastream.mp3
ffmpeg -i "rtsp://192.168.11.10:554/user=admin&password=pass&channel=1&stream=1.stp" -f mp3 - > /disk/media/Media/Music/Streams/BirdBox1/mediastream.mp3
And Configure IceCast to use the fifo
Create an ezstream channel file containing a reference to the mediastream.mp3 file, e.g.:
5.m3u
/disk/media/Media/Music/Streams/BirdBox1/mediastream.mp3
Configure Icecast to Process ezstream
/etc/icecast2/icecast.conf
<sources>9</sources>
<listen-socket>
<port>8000</port>
<shoutcast-mount>/channel1</shoutcast-mount>
....