[FFmpeg-devel] [PATCH] avformat/hlsenc: creation of hls variant streams with master playlist in a single hlsenc instance
刘歧
lq at chinaffmpeg.org
Thu Nov 16 11:38:09 EET 2017
> 在 2017年11月16日,17:28,Bang He <hezhanbang at gmail.com> 写道:
>
> how to use the feature
1st, apply the patch into your ffmpeg project,
2nd, use the command looks like bellow:
./ffmpeg -f lavfi -i color=red -f lavfi –I anullsrc -g 25 -r 25 -b:v:0 1000k -b:v:1 256k -b:a:1 64k -b:a:1 32k -map 0:v -map 1:a -map 0:v -map 1:a -f hls -var_stream_map "v:0,a:0 v:1,a:1" -master_pl_name master.m3u8 -t 10 -hls_time 2 output_sl.m3u8
>
> On Thu, Nov 16, 2017 at 5:10 PM, 刘歧 <lq at chinaffmpeg.org> wrote:
>
>>
>>> 在 2017年11月16日,17:01,Dixit, Vishwanath <vdixit at akamai.com> 写道:
>>>
>>>
>>>
>>>> On 11/16/17, 12:09 PM, "刘歧" <lq at chinaffmpeg.org> wrote:
>>>>
>>>> FATE test passed: Ubuntu, OS X, qemu+MIPS Linux, wine MingW,
>> qemu+ARM Linux, Thanks.
>>>>
>>>> + if (p) {
>>>> + strcpy(extension, p);
>>>> What about use av_strlcpy ?
>>>>
>>>> + while (q < varstr + strlen(varstr)) {
>>>> + if (!strncmp(q, "a:", 2) || !strncmp(q, "v:", 2) ||
>>>> + !strncmp(q, "s:", 2))
>>>> What about use av_strcasecmp ?
>>>>
>>>> + } else {
>>>> + av_log(s, AV_LOG_ERROR, "Invalid keyval %s\n",
>> keyval);
>>>> + return -1;
>>>> What about use return AVERROR(EINVAL)?
>>>>
>>>> + } else {
>>>> + av_log(s, AV_LOG_ERROR, "Unable to map stream at
>> %s\n", keyval);
>>>> + return -1;
>>>> same as above.
>>>>
>>>> + strrchr(master_url, '\\');
>>>> + if (p) {
>>>> + base_len = abs(p - master_url);
>>>> use FFABS
>>>>
>>>> + if (strncmp(master_url, media_url, base_len)) {
>>>> use av_strcasecmp
>>>
>>> I have made updates for all the review comments. Please find the updated
>> patch set in the attachment.
>>>
>>>
>>> <0001-avformat-hlsenc-creation-of-hls-variant-streams-in-a.patch><0002-
>> avformat-hlsenc-creation-of-hls-master-playlist-file.
>> patch><0003-tests-fate-addition-of-test-case-for-hls-
>> variant-str.patch>_______________________________________________
>>> ffmpeg-devel mailing list
>>> ffmpeg-devel at ffmpeg.org
>>> http://ffmpeg.org/mailman/listinfo/ffmpeg-devel
>>
>> Patchset LGTM, i will apply these patch after 24 hours if there have no
>> objections
>>
>> Thanks
>>
>>
>>
>> _______________________________________________
>> ffmpeg-devel mailing list
>> ffmpeg-devel at ffmpeg.org
>> http://ffmpeg.org/mailman/listinfo/ffmpeg-devel
>>
> _______________________________________________
> ffmpeg-devel mailing list
> ffmpeg-devel at ffmpeg.org
> http://ffmpeg.org/mailman/listinfo/ffmpeg-devel
More information about the ffmpeg-devel
mailing list