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
*[email protected] <[email protected]>*
Skype: fas_tm_an
Mob   : +39 324 8243 304
_______________________________________________
Libav-user mailing list
[email protected]
https://ffmpeg.org/mailman/listinfo/libav-user

To unsubscribe, visit link above, or email
[email protected] with subject "unsubscribe".

Reply via email to