You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I downloaded the .m3u8 file and video segments, I want to combine the segments to a .mp4 video, but I got an exception: "System.Net.Http.HttpRequestException: The requested address is not valid in this context".
I am not sure what is wrong, here is the code and part of .m3u8 content, can you help me?
code :
var cmdParams = "-y -allowed_extensions ALL -protocol_whitelist "file,http,crypto,tcp" -i "/storage/emulated/0/MyBrowser/2e37c5c3526f5c560dc0092fe762f807/index.m3u8" -c copy "/storage/emulated/0/MyBrowser/b1cb7094-f590-403c-9397-d1d6af32f46b.mp4"";
await FFMpeg.Xamarin.FFMpegLibrary.Run(this, cmdParams, (s) =>
{
System.Diagnostics.Debug.WriteLine(s);
});
I downloaded the .m3u8 file and video segments, I want to combine the segments to a .mp4 video, but I got an exception: "System.Net.Http.HttpRequestException: The requested address is not valid in this context".
I am not sure what is wrong, here is the code and part of .m3u8 content, can you help me?
code :
var cmdParams = "-y -allowed_extensions ALL -protocol_whitelist "file,http,crypto,tcp" -i "/storage/emulated/0/MyBrowser/2e37c5c3526f5c560dc0092fe762f807/index.m3u8" -c copy "/storage/emulated/0/MyBrowser/b1cb7094-f590-403c-9397-d1d6af32f46b.mp4"";
await FFMpeg.Xamarin.FFMpegLibrary.Run(this, cmdParams, (s) =>
{
System.Diagnostics.Debug.WriteLine(s);
});
index.m3u8 content:
#EXTM3U
#EXT-X-VERSION:3
#EXT-X-MEDIA-SEQUENCE:0
#EXT-X-ALLOW-CACHE:YES
#EXT-X-TARGETDURATION:11
#EXTINF:6.000000,
/storage/emulated/0/MyBrowser/Cache/2e37c5c3526f5c560dc0092fe762f807/segment_0.ts
#EXTINF:10.133333,
/storage/emulated/0/MyBrowser/Cache/2e37c5c3526f5c560dc0092fe762f807/segment_1.ts
#EXTINF:1.466667,
/storage/emulated/0/MyBrowser/Cache/2e37c5c3526f5c560dc0092fe762f807/segment_2.ts
#EXTINF:4.333333,
/storage/emulated/0/MyBrowser/Cache/2e37c5c3526f5c560dc0092fe762f807/segment_3.ts
#EXTINF:10.366667,
/storage/emulated/0/MyBrowser/Cache/2e37c5c3526f5c560dc0092fe762f807/segment_4.ts
...
The text was updated successfully, but these errors were encountered: