2015年3月28日 星期六

使用 LiveStreamer 下載香港電台節目重溫

方法:使用 LiveStreamer下載香港電台節目重溫 (聲音)
=========================
livestreamer 介紹
http://www.videohelp.com/tools/livestreamer

用法例子 
http://stream-recorder.com/forum/download-audio-streamed-jwplayer-t19521.html

以 windows 版的 LiveStremer 為例,下載以下節目

講東講西 - 任性

先下載 LiveStreamer ,解壓

「命令提示字元」 MS-DOS Command Prompt 下輸入

Step 1
============================================================
livestreamer "hlsvariant://stmw3.rthk.hk/aod/_definst_/radio/archive/radio1/Free_as_the_wind/mp3/mp3:20150327.mp3/playlist.m3u8"  best -o 20150327.ts

Step 2
============================================================
再使用ffmpeg轉換 ts file為 mp3 file,去除一些不必要的 header data

ffmpeg -i "20150327.ts" -c:a copy "20150327.mp3"



ref:
http://passerbyhk.blogspot.hk/2014/02/blog-post.html




使用 LiveStreamer下載港台節目 (影片)

首先建議先看看有沒有rthk podcast / rthk@youtube 的影片可以下載,如果沒有才考慮從 rthk  網站下載,以下載以下節目為例

左右紅藍綠 - 政府打壓新聞自由
 
Step 1
檢視原始碼,找出要下載的 playlist 網址 (以 .m3u8結尾)
http://rthkvod1-vh.akamaihd.net/i/mp4/tv/2015/201503302255.smil/master.m3u8

將  http 改為 hlsvariant,造成新的 parameter

hlsvariant://rthkvod1-vh.akamaihd.net/i/mp4/tv/2015/201503302255.smil/master.m3u8

在 「命令提示字元」 MS-DOS Command Prompt 下輸入

============================================================


Step 2
============================================================
再使用ffmpeg轉換 ts file為 mp4 file,去除一些不必要的 header data







註:RTHK 直播 link 為 http://rthk.hk/dtt/rthktv31.m3u8

1 則留言:

Elegant Universe 提到...

此方法仍然有效!