Skip to content

FFmpeg Live Streaming

Jollen edited this page Mar 29, 2019 · 6 revisions

Streamming with FFmpeg

Mac

Video capture (qtkit or avfoundation):

$ ffmpeg -f qtkit -r 30 -i "0" -f mpeg1video -b:v 1000k -s 640x480 http://localhost:8100/video/555ada050757f8140300000/send
$ ffmpeg -f avfoundation -r 30 -i "0" -f mpeg1video -b:v 800k -s 640x480 http://localhost:8100/video/555ada050757f8140300000/send

Screen capture:

ffmpeg -f avfoundation -i 1 -f mpeg1video -b:v 1000k -s 640x480 http://localhost:8100/vid
eo/555ada050757f8140300000/send

Linux

ffmpeg -s 640x480 -f video4linux2 -i /dev/video0 -f mpeg1video -b 800k -r 30 http://v.wot.city:8100/video/5550937980d51931b3000009/send

Windows

ffmpeg -y -f vfwcap -i list
ffmpeg -f vfwcap -r 30 -i "0" -f mpeg1video -b:v 1000k -s 640x480 http://v.wot.city:8100/video/555ada050757f8140300000/send

FFmpeg on 7688

opkg update
opkg install ffmpeg

FFmpeg with Audio

Convert a video into wav format

ffmpeg -i http://static.mokoversity.com/webm/big_buck_bunny.webm -vn -ar 44100 -ac 2 -ab 192k -f wav audio.wav

References