[Libav-user] mpeg dash audio/video in separate folders

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

[Libav-user] mpeg dash audio/video in separate folders

Yury Kisliak
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
Skype: fas_tm_an
Mob   : +39 324 8243 304

_______________________________________________
Libav-user mailing list
[hidden email]
https://ffmpeg.org/mailman/listinfo/libav-user

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