nginx + ffmpeg + hls (vod) test
* ffmpeg (mp4 -> m3u8)
1 2 | ffmpeg -i kollus-test.mp4 -vcodec libx264 -acodec libvo_aacenc -b:v 128k -flags -global_header -map 0:0 -map 0:1 -f segment -segment_time 4 -segment_list_size 0 -segment_list testlist.m3u8 -segment_format mpegts stream%05d.ts | cs |
- segment 옵션을 통한 m3u8 & ts 파일 생성.
* ffmpeg (mp3 -> m3u8)
1 2 3 | ffmpeg -i a.mp3 -acodec libvo_aacenc -b:v 128k -flags -global_header -map 0 -f segment -segment_time 4 -segment_list_size 0 -segment_list testlist.m3u8 -segment_format mpegts stream%05d.ts | cs |
> play & seeking..
> seeking ..