Can anyone walk me through the steps of taking a video from our website and changing it to a m3U8 so we can then insert it to our app dashboard to have video on our app?
Asked
Active
Viewed 1,433 times
-1
-
what format is the video currently - mp4? – Rachel Gallen Jun 20 '14 at 13:41
-
http://samalpramod.blogspot.ie/2013/03/how-convert-mp4-file-to-http-live.html – Rachel Gallen Jun 20 '14 at 13:46
2 Answers
2
Download FFMPEG
then download a http segmenter e.g. apple's one or the google one
Now run the command prompt using cmd.
Go to bin directory of the FFMPEG from the command prompt.
Type ffmpeg –h
to find various option of the ffmpeg.
This sample code converts a mp4 to a ts file:
ffmpeg -i myvideo.mp4 -acodec libfaac -ar 48000 -ab 64k -s 320x320 -vcodec libx264 -vbsf h264_mp4toannexb -f mpegts myvideo.ts
then run the segmenter to break up the ts file into smaller segments
segmenter -i myvideo.ts -d 20 -o la -x test/myvideo.m3u8
add the following to your htaccess file if you are running on apache
.M3U8 application/x-mpegURL
.ts video/MP2T
that's about it

Cœur
- 37,241
- 25
- 195
- 267

Rachel Gallen
- 27,943
- 21
- 72
- 81
0
Use gstreamill, which can transcode video to m3u8 format.

Zhang Ping
- 1
- 3
-
Can you add a code sample to better elaborate how to implement gstreamill? – Abhishek Asthana Nov 27 '14 at 13:05