Streaming to batc.tv with ffmpeg

From BATC Wiki
Revision as of 15:31, 24 March 2016 by G8GTZ (talk | contribs) (Created page with "Example: Using webcam at /dev/video0, and pulse audio input, this encodes H.264 video and MP3 audio, at bitrates of 256kbps and 64kbps respectively. ffmpeg -f video4linux2...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.

Example: Using webcam at /dev/video0, and pulse audio input, this encodes H.264 video and MP3 audio, at bitrates of 256kbps and 64kbps respectively.

ffmpeg -f video4linux2  -i /dev/video0 -f alsa -i pulse \
-acodec libmp3lame -ac 1 -ab 64k -ar 22050 \
-vcodec libx264 -preset veryfast -b:v 256k -minrate 256k -maxrate 256k -bufsize 320k -s 640x480 \
-f flv "rtmp://fms.batc.tv/live/<stream-id-here>/<stream-id-here> flashver=FMLE/3.0\20(compatible;\20FMSc/1.0)"