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.
- $ vlc /dev/camera –intf=dummy –sout-transcode-audio-sync –sout='#transcode{\
- vcodec=h264,venc=x264{\
- aud,profile=baseline,level=30,keyint=30,bframes=0,ref=1,nocabac\
- },\
- acodec=mp4a,ab=56,deinterlace\
- }:\
- 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