In iPhone OS 3, Apple has introduced HTTP Live Streaming which should allow live streaming of video from the internet. I am currently operating a webcam, which feeds into m
This is quite an old topic, but HLS support, a seemingly new feature of FFmpeg might be useful to someone.
An example use would be as follows:
ffmpeg -i -c:v libx264 -preset slow -map 0 -an -flags -global_header -f hls -hls_time
If you would like to do live streaming, this would be another example:
ffmpeg -i -c:v libx264 -preset ultrafast -map 0 -an -flags -global_header -f hls -hls_time -hls_list_size -hls_wrap
The -hls_list_size
argument limits the number of files in the playlist, and the -hls-wrap
argument limits the number of files total and will wrap filenames once it gets to that point (ex: test0.ts, test1.ts... test7.ts, test0.ts, test1.ts... when wrap is 8).
For more information, see the documentation. Please note, the above examples strip out audio with the -an
flag, as I personally never needed it.