Capturing and processing a live RTMP stream
Andrew Mclaughlin
I'm trying to download a live stream (not a file) coming from a live camera feed available at the following website: .
I used Wireshark for sniffing the TCP packets and was able to extract the RTMP parameters, but wasn't able to use them with FFMPEG/VLC for downloading / playing the stream on VLC (I guess I didn't construct the URL correctly).
for example, for the camera feed available here, I got the following parameters:
- swfUrl:
- pageUrl..Ehttp:// N17_at_Saratoga_Rd.html
- tcUrl: rtmp://wzmedia.dot.ca.gov:1935/D4
- Play : E37_at_Lakeville_Rd.stream.
Is there a chance someone is familiar with this and can help with understanding how I can use the above for downloading the stream?
Thanks a lot! Yaniv
1 Answer
You only need the RTMP url (which is combined from the server connection url and stream name). Use this command:
ffmpeg -i rtmp://wzmedia.dot.ca.gov:1935/D4/E37_at_Lakeville_Rd.stream your_output.mp4or open vlc with the RTMP url.
1