[FFmpeg-devel] [PATCH] avformat/hlsenc: enhanced %v handling with variant names

Michael Niedermayer michael at niedermayer.cc
Wed Jun 19 12:37:04 EEST 2019

On Tue, Jun 18, 2019 at 11:09:12PM +0200, Bodecs Bela wrote:
> Dear All,
> When multiple variant streams are specified by var_stream_map option, %v
> placeholder in various names ensures that each variant has its unique
> names. Currently %v is substituted by its variant index value (0, 1, 2
> etc.). In some use cases it would be handy to specify names for variants
> instead of numerical indexes. This patch makes it possible to use names
> instead of default indexes. In var_stream_map option each or some of the
> variant streams may use an optional name attributum (e.g.
> -var_stream_map "v:0,a:0,name:sd v:1,a:1,name:720p") If a name is
> specified for a variant, then this name value will be used as
> substitution value of %v instead of the default index value.
> example:
> ffmpeg -re -i in.ts -b:v:0 1000k -b:v:1 256k -b:a:0 64k -b:a:1 32k \
>   -map 0:v:0 -map 0:a:0 -map 0:v:1 -map 0:a:1 -f hls -var_stream_map
> "v:0,a:0,name:my_hd v:1,a:1,name:mysd" \
>   http://example.com/live/out_%v.m3u8
> This example creates two hls variant streams, the two output media playlist
> with file names out_my_hd.m3u8 and out_mysd.m3u8 will be created.
> Please review this patch.
> best regards,

maybe i made a mistake but this seems not to apply

Applying: avformat/hlsenc: enhanced %v handling with variant names
error: sha1 information is lacking or useless (libavformat/hlsenc.c).
error: could not build fake ancestor
Patch failed at 0001 avformat/hlsenc: enhanced %v handling with variant names
hint: Use 'git am --show-current-patch' to see the failed patch
When you have resolved this problem, run "git am --continue".
If you prefer to skip this patch, run "git am --skip" instead.
To restore the original branch and stop patching, run "git am --abort".


Michael     GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB

it is not once nor twice but times without number that the same ideas make
their appearance in the world. -- Aristotle
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 181 bytes
Desc: not available
URL: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20190619/cfa48d54/attachment.sig>

More information about the ffmpeg-devel mailing list