Recording a stream

From BATC Wiki
Jump to: navigation, search

Linux Only and Requires rtmpdump

rtmpdump --live -r "rtmp://<stream-id>/<stream-id>" -o output.flv

rtmpdump will print any metadata associated with the stream, often containing a description of the hardware being used to capture/encode the video.

output.flv will contain the same codecs used by the stream encoder, and should be playable in VLC or similar media players.

Finding the stream id

On the stream page, view the HTML source and look for the following snippet:

<embed src="" width="320" height="310" quality="high" allowFullScreen="true"
FlashVars="vol=1.0&video=q8d92qrx&islive=true&auto=true" name="main" align="middle" allowScriptAccess="sameDomain" 
pluginspage="" type="application/x-shockwave-flash" />

The stream id is in the FlashVars as "&video=<stream-id>&..", and here can be seen in this example to be q8d92qrx.