[Libav-user] mpeg dash audio/video in separate folders
Yury Kisliak
fas.ysk at gmail.com
Fri Mar 6 12:45:21 EET 2020
Hello,
I'm using now working solution like this one:
AVDictionary* optionsDASH = 0;
av_dict_set(&optionsDASH, "use_timeline" , "1", 0);
av_dict_set(&optionsDASH, "use_template" , "1", 0);
av_dict_set(&optionsDASH, "adaptation_sets", "id=0,streams=v
id=1,streams=a", 0);
fs::path fsPath = cMediaName;
fsPath.remove_filename();
std::string initPath = fsPath.u8string();
std::string sgmtPath = fsPath.u8string();
initPath.append("\\init$RepresentationID$.$ext$");
sgmtPath.append("\\clip$RepresentationID$-$Number%05d$.$ext$");
av_dict_set(&optionsDASH, "init_seg_name" , initPath.c_str(), 0);
av_dict_set(&optionsDASH, "media_seg_name", sgmtPath.c_str(), 0);
So, questions are:
1. Is it possible to store A/V fragments to different folders?
2. I would like to store fragments with a relative path, is there a way to
do that?
I mean:
out.mpd
AUDIO_FOLDER
VIDEO_FOLDER
and inside mpd manifest should be something like:
<SegmentTemplate timescale="60000" media="VIDEO_FOLDER /clip-V-$Time$.m4s"
initialization=" VIDEO_FOLDER /clip-init.m4s ">
...
<SegmentTemplate timescale="60000" media=" AUDIO_FOLDER /clip-V-$Time$.m4s"
initialization=" AUDIO_FOLDER /clip-init.m4s ">
Thanks.
--
Yury Kisliak
*fas.ysk at gmail.com <fas.ysk at gmail.com>*
Skype: fas_tm_an
Mob : +39 324 8243 304
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://ffmpeg.org/pipermail/libav-user/attachments/20200306/892b71ac/attachment.html>
More information about the Libav-user
mailing list