[FFmpeg-user] Generating HLS stream with ffmpeg programmatically

Anatol anatol2002 at gmail.com
Fri Apr 25 07:06:21 CEST 2014


M3U8 is just a text file that you can easily parse and change to whatever
you like.


On Thu, Apr 24, 2014 at 11:44 AM, Szabolcs Balogh <bszabolcs at gmail.com>wrote:

> Hi,
>
> I'm trying to convert an mp4 file to HLS stream (*.ts files + *.m3u8 file)
> on Android using ffmpeg through Android NDK.
>
> If specified the output file as "index.m3u8" and the output format as
> "hls". I also specified "hls_time" and "hls_list_size" using
> av_opt_set_int. It works properly and generates the *.ts files and the m3u8
> file. My problem is, that the m3u8 file contains only the segment name.
>
>
>
> *#EXTINF:10.0,segment0001.ts*
> But I need something like:
>
>
>
> *#EXTINF:10.0,http://www.myserver.com/segment0001.ts
> <http://www.myserver.com/segment0001.ts>*
>
> I tried to specify "segment_list_entry_prefix", but it seems that it has no
> effect for hls. I checked the source code, and there is no such parameter
> for hls.
>
> How can I specify a full URL for the segment name in the m3u8 file?
>
> Thanks in advance,
> Szabolcs Balogh
> _______________________________________________
> ffmpeg-user mailing list
> ffmpeg-user at ffmpeg.org
> http://ffmpeg.org/mailman/listinfo/ffmpeg-user
>


More information about the ffmpeg-user mailing list