Difference between revisions of "Live Stream"

From Hackerspace.gr
Jump to: navigation, search
 
Line 5: Line 5:
  
 
avconv  -f video4linux2 -s 640x480 -r 10 -i /dev/video0 -f alsa -ac 2 -i hw:0,0 -re -vcodec libx264  -vprofile baseline -g 60 -vb 150000 -strict experimental -acodec aac -ab 64000 -ar 32000 -ac 1  -f mpegts tcp://wut:port?pkt_size=1316
 
avconv  -f video4linux2 -s 640x480 -r 10 -i /dev/video0 -f alsa -ac 2 -i hw:0,0 -re -vcodec libx264  -vprofile baseline -g 60 -vb 150000 -strict experimental -acodec aac -ab 64000 -ar 32000 -ac 1  -f mpegts tcp://wut:port?pkt_size=1316
 +
 +
 +
avconv -f alsa -ac 1 -ar 22050 -i plughw:0,0 -itsoffset -10 -f video4linux2 -s 640x480 -r 10 -i /dev/video0 -map 1:0 -map 0:0  -vcodec libx264  -vprofile baseline -g 60 -vb 150000 -strict experimental -acodec aac -ab 64000 -ar 22050 -ac 1 -r 10 -f mpegts - | tee log.mpegts | avconv -re -i - -r 10 -vcodec copy -acodec copy -f mpegts cp://wut:port?pkt_size=1316

Latest revision as of 18:01, 25 April 2012

/dev/video0: v4l2 device -vb 150000: video bitrate -ab 64000: audio bitrate


avconv -f video4linux2 -s 640x480 -r 10 -i /dev/video0 -f alsa -ac 2 -i hw:0,0 -re -vcodec libx264 -vprofile baseline -g 60 -vb 150000 -strict experimental -acodec aac -ab 64000 -ar 32000 -ac 1 -f mpegts tcp://wut:port?pkt_size=1316


avconv -f alsa -ac 1 -ar 22050 -i plughw:0,0 -itsoffset -10 -f video4linux2 -s 640x480 -r 10 -i /dev/video0 -map 1:0 -map 0:0 -vcodec libx264 -vprofile baseline -g 60 -vb 150000 -strict experimental -acodec aac -ab 64000 -ar 22050 -ac 1 -r 10 -f mpegts - | tee log.mpegts | avconv -re -i - -r 10 -vcodec copy -acodec copy -f mpegts cp://wut:port?pkt_size=1316