HTTP Live Streaming with a Webcam on Linux using VLC and a Segmenter

I was referencing the post at http://stackoverflow.com/a/6454381/655200 to set up a http live streaming server which streams video stream captured from a webcam for iOS device.

The original post was of great help but I would like to make a few remarks here as a reference for whoever searched out this post and hope this could help you.

1. Single Dash should be double dashes in Command Line

The command line in OP was as below.

[plain]  view plain copy
  1.   
[plain]  view plain copy
  1. $ vlc /dev/camera –intf=dummy –sout-transcode-audio-sync –sout='#transcode{\  
  2.         vcodec=h264,venc=x264{\  
  3.             aud,profile=baseline,level=30,keyint=30,bframes=0,ref=1,nocabac\  
  4.         },\  
  5.         acodec=mp4a,ab=56,deinterlace\  
  6.     }:\  
  7.     duplicate{dst=std{access=file,mux=ts,dst=-}}' > test.ts  

actually all the single dash leading parameters should be double dashes at least with the VLC version 1.0.6 which I was using.

2. Segmenter Program

OP then mentioned a Segmenter program and provide with its URL. However, the segmenter program is not able to produce standard Http Live Stream video segment. I then searched out a program named m3u8-segmenter program which is hosted at github and able to produce standard HLS video.
I located that the Segmenter.c file does not call avformat_write_header() when producing video segments after the first one was generated while the m3u8-segment.c called and fix the issue. But I am having an issue that m3u8-segment crashes for every 40 segment video or so.

完毕 by lucoz
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值