This is an old revision of the document!
ffmpeg -i ../VID_0266.3gp -map 0 -bsf h264_mp4toannexb -c copy -f segment -segment_list stream.m3u8 stream%03d.ts
ffmpeg -i /mnt/device/36/Blow/Blow.2001.German.AC3.BDRip.XviD-iNCEPTiON.avi -r 25 -c:a libfaac -ab:a 48k -ac:a 2 -c:v libx264 -s:v 320x240 -b:v 150k -aspect:v 16:9 -map 0 -vbsf h264_mp4toannexb -flags -global_header -f segment -segment_time 10 -segment_list stream.m3u8 -segment_format mpegts stream%05d.ts
ffmpeg -i "/mnt/device/36/21 Jump Street/sons-21_jump_street-720p.mkv" -map 0 -bsf h264_mp4toannexb -c copy -vcodec copy -acodec copy -c:a libfaac -f segment -segment_list stream.m3u8 stream%03d.ts
http://php.net/manual/de/function.exec.php
https://gist.github.com/xdamman/e4f713c8cd1a389a5917
lmce Video
// AVCONV START // START STREAMING PROCESS ... //$process = exec("nohup /usr/bin/avconv -i \"$localFile\" -vcodec h264 -acodec mp3 -hls_time 2 -hls_list_size 999999999 -s:v 848x480 -b:v 300k \"$tmp/stream.m3u8\" > /dev/null 2>&1 & echo $!"); // AVCONV END