2015-04-26 128 views
2

我有以下m3u8文件。 http://pastie.org/10114441如何從M3u8文件下載視頻?

我想從上述文件下載視頻文件。我有谷歌很多,發現M3U8 parser。但它並沒有幫助我。

我做了以下的事情。

NSString *str = [NSString stringWithContentsOfFile:[[NSBundle mainBundle] pathForResource:@"1" ofType:@"m3u8"] encoding:NSUTF8StringEncoding error:nil]; 
M3U8SegmentInfoList *list= [M3U8Parser m3u8SegmentInfoListFromPlanString:str baseURL:[NSURL URLWithString:@"http://hls.ted.com/talks/2238.m3u8?sponsor=Ripple"]]; 
    NSLog(@"%@",list); 

但它總是返回零。

任何人都可以幫助我下載視頻。

+0

任何運氣嗎? –

+0

還沒有...... – Mahavir

+0

您可以使用Adownloader。 –

回答

-1

Hotstar也使用m3u8文件類型。在這個網站你可以觀看在線視頻,但你無法下載。 我找到了一種從本網站下載視頻的方法。

  1. 下載Zip文件。提取Zip文件和檢查屬性(361個文件33 文件夾)。 在資源管理器中打開hotstarlivestreamer.php並下載 再次替換它。打開hotstarlivestreamer.bat。 (注意:如果不是 則以管理員身份打開)。粘貼hotstat可播放的視頻網址,例如 (例如 http://www.hotstar.com/#!/dance -isse-kehte-hain-dance-4679/gauhar-boosts-the-contestants-1000066630-e)。 選擇視頻像素並按回車。等待一些時間加載 時間

你這樣做之前,你可以下載文件和一些最重要的注意事項.. Hotstar video downloader

+2

這個人試圖用objective-c來做,而不是用外部工具。 –