On Sun, Apr 8, 2012 at 5:42 PM, Martin Storsjö <[email protected]> wrote:
> On Sun, 8 Apr 2012, Samuel Pitoiset wrote: > > Hmm, this doesn't feel too nice, but I do see that we need to do the >> same parsing to find the playpath. Or should the full path be used as >> playpath if an app parameter is given? (How does rtmpdump/librtmp do >> it?) >> >> >> librtmp has an option for the application name (ie. -app) and an other >> option for the stream name (ie. playpath). So, I have to make a new patch >> in >> order to introduce the option '-playpath'. >> > > Yes, but I meant, if I pass app as a separate parameter to librtmp but > don't pass any playpath option, does it take the full path as playpath, or > does it split the path into app/path as usual and just replace app with the > one passed on the command line? > librtmp replaces the one passed on the command line. This option is mainly used when the rtmpdump URL parser cannot determine the app name automatically. > > That is, if I specify the app parameter, should I do > rtmp://server/playpath -rtmp_app the/actual/app/path > or do I have to do something like > rtmp://server/fakeapp/playpath -rtmp_app the/actual/app/path > > Do you see what I mean? > Yeah, I understand what you mean and we have to do something like that in any cases rtmp://server/fakeapp/playpath -rtmp_app the/actual/app/path. Btw, you can see the following example : $ rtmpdump -r "rtmp:// vod-fms.canalplus.fr/ondemand/videos/1203/BREF_EPISODES_120328_CAN_249936_video_HD.mp4" --app "ondemand" (works fine) In that case, app=ondemand and playpath=/videos/1203/BREF_EPISODES_120328_CAN_249936_video_HD.mp4. $ rtmpdump -r "rtmp:// vod-fms.canalplus.fr/videos/1203/BREF_EPISODES_120328_CAN_249936_video_HD.mp4" --app "ondemand" (doesn't work) In that case, app=ondemand and playpath=/1203/BREF_EPISODES_120328_CAN_249936_video_HD.mp4. Do you understand my explanations ? > That is, normally if I do something like this: > rtmp://server/app/path/**playpath > This is split into app=app/path and playpath=playpath > But if I add the playpath parameter separately, should the full > app/path/playpath be parsed as app path? > > I don't think because in any cases the URL parser tries to split the playpath. So, if we pass playpath as a separate parameter, the playpath extracted by using the parser will be override. > Neither of them is an issue if one specifies both app and playpath as > separate parameters, but it's a slight bit of ambiguity if only one of them > is specified, and I'd like to look up how librtmp handles that case. > > > // Martin > ______________________________**_________________ > libav-devel mailing list > [email protected] > https://lists.libav.org/**mailman/listinfo/libav-devel<https://lists.libav.org/mailman/listinfo/libav-devel> > -- Best regards, Samuel Pitoiset.
_______________________________________________ libav-devel mailing list [email protected] https://lists.libav.org/mailman/listinfo/libav-devel
