One more suggestion, here (https://github.com/FFmpeg/FFmpeg/blob/845bb401781ef04e342bd558df16a8dbf5f800f9/libavformat/http.c <https://github.com/FFmpeg/FFmpeg/blob/845bb401781ef04e342bd558df16a8dbf5f800f9/libavformat/http.c>) it says char *cookies; ///< holds newline (\n) delimited Set-Cookie header field values (without the "Set-Cookie: " field name)
So may be you can try starting the cookie string with “Set-Cookie:” instead of “Cookie:" and use '\n’ as the delimeter. I don’t have the project on my machine so I can not test it sorry for that. Hope this helps, Ugur > On Jan 3, 2017, at 11:15 PM, Georg Stein SMC <[email protected]> wrote: > > this makes no difference and by the way at the command line with ffmpeg > everything works with my cookie string below. I only do not figure out how to > put it into avformat in my code > > > Georg > > Am 04.01.2017 um 00:09 schrieb Uğur Bozkaya: >> Just a suggestion without any deep knowledge. >> >> Did you try to add a space after ‘;’ In the command line doc >> (https://ffmpeg.org/ffmpeg-protocols.html#HTTP-Cookies >> <https://ffmpeg.org/ffmpeg-protocols.html#HTTP-Cookies>) it seems to have it >> for ffplay. >> ffplay -cookies "nlqptid=nltid=tsn; path=/; domain=somedomain.com >> <http://somedomain.com/>;" http://somedomain.com/somestream.m3u8 >> <http://somedomain.com/somestream.m3u8> >> >> Ugur >> >> >> >> >> >> >>> On Jan 3, 2017, at 11:00 AM, Georg Stein SMC <[email protected] >>> <mailto:[email protected]>> wrote: >>> >>> I have 3 cookies i need to hand over to the avformat lib, i tried this as >>> an optione (see below) but without success, so perhasp somebody has a hint >>> for me how i have to do this correct >>> >>> Georg >>> i tried this way (under Qt 5, windows) >>> cookies = "Cookie: >>> CloudFront-Policy=eyJTdGF0ZW1lbnQiOlt7IlJlc291cmNlIjoiaHR0cHM6Ly9yZXBsYXkucGVyaXNjb3BlLnR2L3JaXzhYbk5yeVhWVnA3M2JKbG1OVlZ3RldkS0lDbTBNbHdyaGRPelBZMFY4b3lUM2ZfWl9nbkdiRVJ6NGhERDhzT3NsSFE1WEZTaUdySmFla1lXTVpnKiIsIkNvbmRpdGlvbiI6eyJEYXRlTGVzc1RoYW4iOnsiQVdTOkVwb2NoVGltZSI6MTQ4MzQ3MjYwMX19fV19;CloudFront-Key-Pair-Id=APKAIHCXHHQVRTVSFRWQ;CloudFront-Signature=CWCFrF5gKg-cCgxUWyN1c~rtHTL4Oor8cShBfWdbX4KmjFodsVgEHdMbwHP6cP8KYWL1oFD1Xq6SURLTFVQK3iW8XvIaogdq-Ef4vAElWumdHOGXdNxDMi-19yV2q0lDormiUCk4hp-TGhxlx3ojFYfUXpIPUJTgE3GoxLtGoS6Zu1hsS50zuy6Kbg~h~wa1MbHRgTAlq3QGMf1ECiJ3BO6j5xmxwJyiYwD~piqYOLU-~lTVeGHOll9oLl5YDidCfeU6ixWMiOSa0a6sejk7utZzYPHVRMsNUbYKh8SYxg50t7V06BHJ8Bdml8kh~d9Rt2epS49objhVEg56YBiE5w__;'$'\r\n'" >>> >>> and also without thr trainling $'\r\n' >>> >>> av_opt_set(&avoption, "headers", cookies.toStdString().c_str(), >>> AV_DICT_APPEND); >>> >>> >>> >>> but this is not working >>> >>> Georg >>> >>> >>> Am 03.01.2017 um 00:06 schrieb Anthony Ettinger: >>>> Can you install the static builds? https://johnvansickle.com/ffmpeg/ >>>> <https://johnvansickle.com/ffmpeg/> >>>> >>>> On Mon, Jan 2, 2017 at 12:17 AM, Carl Eugen Hoyos <[email protected]> >>>> <mailto:[email protected]> >>>> wrote: >>>> >>>>> 2017-01-01 19:57 GMT+01:00 Georg Stein SMC <[email protected]> >>>>> <mailto:[email protected]>: >>>>> >>>>>> ffmpeg version 3.1.3 Copyright (c) 2000-2016 the FFmpeg developers >>>>>> built with gcc 4.8 (SUSE Linux) >>>>> This is an intentionally broken binary that cannot be used for >>>>> anything! >>>>> Suse is abusing the name of our project in a similar way as Debian >>>>> and Ubuntu did in the past, there is nothing we can do about it;-( >>>>> >>>>> The solution for you is to switch to packman as package provider. >>>>> >>>>> Carl Eugen >>>>> _______________________________________________ >>>>> ffmpeg-user mailing list >>>>> [email protected] <mailto:[email protected]> >>>>> http://ffmpeg.org/mailman/listinfo/ffmpeg-user >>>>> <http://ffmpeg.org/mailman/listinfo/ffmpeg-user> >>>>> >>>>> To unsubscribe, visit link above, or email >>>>> [email protected] <mailto:[email protected]> >>>>> with subject "unsubscribe". >>>>> >>> >>> -- >>> Stein Micro Computer >>> Georg P. Stein >>> >>> Tel.: 06898-63880 >>> Fax: 06898-63820 >>> Mobil: 0172-3538379 >>> [email protected] <mailto:[email protected]> >>> https://www.steinmc.com >>> <https://www.steinmc.com/>_______________________________________________ >>> Libav-user mailing list >>> [email protected] <mailto:[email protected]> >>> http://ffmpeg.org/mailman/listinfo/libav-user >>> <http://ffmpeg.org/mailman/listinfo/libav-user> >> >> >> >> _______________________________________________ >> Libav-user mailing list >> [email protected] <mailto:[email protected]> >> http://ffmpeg.org/mailman/listinfo/libav-user >> <http://ffmpeg.org/mailman/listinfo/libav-user> > > -- > Stein Micro Computer > Georg P. Stein > > Tel.: 06898-63880 > Fax: 06898-63820 > Mobil: 0172-3538379 > [email protected] <mailto:[email protected]> > https://www.steinmc.com > <https://www.steinmc.com/>_______________________________________________ > Libav-user mailing list > [email protected] > http://ffmpeg.org/mailman/listinfo/libav-user
_______________________________________________ Libav-user mailing list [email protected] http://ffmpeg.org/mailman/listinfo/libav-user
