streamaserver / streama

Self hosted streaming media server. https://docs.streama-project.com/
MIT License
9.68k stars 984 forks source link

speed video conversion HLS #117

Open omgbox opened 8 years ago

omgbox commented 8 years ago

hello buddy, i came to let you know that on-demand encoding for HLS

!/bin/bash -x

find /var/www/downloads -regextype posix-egrep -regex '.*.(avi|m2ts|flv|M2TS|3gp|AVI|MPG|mkv|MKV|ogv|wmv|WMV|mp4|mpg|divx|MPG|mpeg|ogg|ogm)$' -exec ffmpeg -i "{}" -acodec libvo_aacenc -c:v libx264 -profile:v high -level 41 -b:v 360K -flags -global_header -map 0:0 -map 0:1 -f segment -segment_time 4 -segment_list_size 0 -segment_list {}.m3u8 -segment_format mpegts {}%d.ts \;

omgbox commented 8 years ago

ffmpeg version N-63893-gc69defd Copyright (c) 2000-2014 the FFmpeg developers

static ffmpeg binary linux

http://ffmpeg.gusari.org/static/

dularion commented 8 years ago

awesome thanks!