新同文堂 在 openfoundry 的網頁
2015年12月29日 星期二
2015年12月6日 星期日
手機不能 root 機下,PC 用 Fiddler capture手機 tcp data packet步驟
1.) 準備工作
===========
1.) PC 安裝了 Fiddler
2.) 設定 Router的port forward
3.) 設定 手機 wifi proxy
4.) PC 開啟 Fiddler,手機開啟要用 APP
2.) Router設定
===========
以下 Asus RT-18U為例,如開啟了DHCP,在 set MAC address blinding to IP
==> Advanced Settings
==> LAN
==> DHCP Server
==> Manually Assigned IP around the DHCP list
30:76:6F:FA:50:XX 192.168.1.200(PC Local IP)
00:25:22:53:XX:XX 192.168.1.100(手機 Local IP)
==> Add(+)
3.) 設定 手機 wifi proxy
===========
以 LG G2 韓國版320K 為例
長按你的wifi網絡
==> 修改網絡
====> trick(勾選) 顯示進階選項
=====> Proxy 設定 ==> 手動
=====> Proxy 主機名稱 ==> 192.168.1.200 (PC 主機 Local IP)
=====> Proxy 伺服器連接埠 ==> 8888 (Fiddler預設的port)
=====> IP 設定 ==> DHCP
完成
如果 router不使用 DHCP
=====> IP 設定 ==> 靜態
依據你的router設定,再設定你手機的 Local lan IP
註:有一個 android app可以簡化重複的設定 Proxy Settings
4.) PC 開啟 Fiddler,手機開啟要用 APP
使用心得, 雖然 Fiddler能抓加密的 https,但仍然破解不了內容,基本capture https data沒用,一堆使用 https 連線的APP,例如: youtube、hkepc app不能用,連不了線。Fiddler偽造不了https 的e-cert。
===========
1.) PC 安裝了 Fiddler
2.) 設定 Router的port forward
3.) 設定 手機 wifi proxy
4.) PC 開啟 Fiddler,手機開啟要用 APP
2.) Router設定
===========
以下 Asus RT-18U為例,如開啟了DHCP,在 set MAC address blinding to IP
==> Advanced Settings
==> LAN
==> DHCP Server
==> Manually Assigned IP around the DHCP list
30:76:6F:FA:50:XX 192.168.1.200(PC Local IP)
00:25:22:53:XX:XX 192.168.1.100(手機 Local IP)
==> Add(+)
3.) 設定 手機 wifi proxy
===========
以 LG G2 韓國版320K 為例
長按你的wifi網絡
==> 修改網絡
====> trick(勾選) 顯示進階選項
=====> Proxy 設定 ==> 手動
=====> Proxy 主機名稱 ==> 192.168.1.200 (PC 主機 Local IP)
=====> Proxy 伺服器連接埠 ==> 8888 (Fiddler預設的port)
=====> IP 設定 ==> DHCP
完成
如果 router不使用 DHCP
=====> IP 設定 ==> 靜態
依據你的router設定,再設定你手機的 Local lan IP
註:有一個 android app可以簡化重複的設定 Proxy Settings
4.) PC 開啟 Fiddler,手機開啟要用 APP
使用心得, 雖然 Fiddler能抓加密的 https,但仍然破解不了內容,基本capture https data沒用,一堆使用 https 連線的APP,例如: youtube、hkepc app不能用,連不了線。Fiddler偽造不了https 的e-cert。
2015年11月26日 星期四
直接錄下港台的網上直播(聲音) script
https://goo.gl/GnMdHo
下載檔案後,double click以下檔案執行
download_rthk_live_radio_1.wsf
download_rthk_live_radio_2.wsf
download_rthk_live_radio_3.wsf
download_rthk_live_radio_4.wsf
download_rthk_live_radio_5.wsf
download_rthk_live_radio_pth.wsf
download_rthk_live_radio_dab31.wsf
download_rthk_live_radio_dab33.wsf
download_rthk_live_radio_dab35.wsf
已知 Bug
- 沒有停止錄影的按鈕,直接關閉程式就可以了,或在command prompt windows 按 Ctrl + C
refs:
節目表
第一台
第二台
Radio 3
Radio 4
第五台
普通話台
數碼31
DAB33
數碼35
http://programme.rthk.hk/assets/schedule/rthk_radio1_schedule.xml
http://programme.rthk.hk/assets/schedule/rthk_radio2_schedule.xml
http://programme.rthk.hk/assets/schedule/rthk_radio3_schedule.xml
http://programme.rthk.hk/assets/schedule/rthk_radio4_schedule.xml
http://programme.rthk.hk/assets/schedule/rthk_radio5_schedule.xml
http://programme.rthk.hk/assets/schedule/rthk_pth_schedule.xml
http://programme.rthk.hk/assets/schedule/rthk_dab31_schedule.xml
http://programme.rthk.hk/assets/schedule/rthk_dab33_schedule.xml
http://programme.rthk.hk/assets/schedule/rthk_dab35_schedule.xml
下載檔案後,double click以下檔案執行
download_rthk_live_radio_1.wsf
download_rthk_live_radio_2.wsf
download_rthk_live_radio_3.wsf
download_rthk_live_radio_4.wsf
download_rthk_live_radio_5.wsf
download_rthk_live_radio_pth.wsf
download_rthk_live_radio_dab31.wsf
download_rthk_live_radio_dab33.wsf
download_rthk_live_radio_dab35.wsf
已知 Bug
- 沒有停止錄影的按鈕,直接關閉程式就可以了,或在command prompt windows 按 Ctrl + C
refs:
節目表
第一台
第二台
Radio 3
Radio 4
第五台
普通話台
數碼31
DAB33
數碼35
http://programme.rthk.hk/assets/schedule/rthk_radio1_schedule.xml
http://programme.rthk.hk/assets/schedule/rthk_radio2_schedule.xml
http://programme.rthk.hk/assets/schedule/rthk_radio3_schedule.xml
http://programme.rthk.hk/assets/schedule/rthk_radio4_schedule.xml
http://programme.rthk.hk/assets/schedule/rthk_radio5_schedule.xml
http://programme.rthk.hk/assets/schedule/rthk_pth_schedule.xml
http://programme.rthk.hk/assets/schedule/rthk_dab31_schedule.xml
http://programme.rthk.hk/assets/schedule/rthk_dab33_schedule.xml
http://programme.rthk.hk/assets/schedule/rthk_dab35_schedule.xml
2015年11月25日 星期三
直接錄下傷台的網上直播 script
下載檔案後,double click
"download_crhk_881_audio.wsf" 或 "download_crhk_903_audio.wsf"執行
https://goo.gl/GrmrcG
已知 Bug
- 沒有停止錄影的按鈕,直接關閉程式就可以了,或在command prompt windows 按 Ctrl + C
新增檔案:
- download_crhk_881_mp3_directly.wsf 直接使用ffmpeg轉錄成mp3
- download_crhk_903_mp3_directly.wsf 直接使用ffmpeg轉錄成mp3
- download_crhk_881_mp3_duration_mins_5.wsf 錄下時限為 5 分鐘
用途:
配合BIOS或UEFI定時開機,加上Task Scheduler (排定工作)並加上錄音長度設定,能自動錄下定時定長度的電台節目,如果在程式放到 google drive、onedrive的share folder,加上PC 自動 sync 上雲端的 client program 就能完成自動雲端廣播效果。
download_crhk_881_mp3_duration_mins_5.wsf
可更改檔名
download_crhk_881_mp3_duration_mins_60.wsf
則錄下時限為 60 分鐘
可更改檔名
download_crhk_903_mp3_duration_mins_60.wsf
則錄下crhk 903,時限為 60 分鐘
複製檔更改檔名為 download_crhk_881_mp3_duration_mins_10.wsf
則錄下crhk 881,時限為 10 分鐘
download_crhk_881_mp3_duration_mins_5.wsf
參考資料
===============================================================
網上直播
http://event.881903.com/hktbaudioplayer/player_token.php?ch=hd881
http://stream-redirect.hktoolbar.com/radio-HTTP/cr1-hd.3gp/playlist.m3u8
高清881
http://stream-redirect.hktoolbar.com/radio-HTTP/cr1-hd.3gp/playlist.m3u8
高清903
http://stream-redirect.hktoolbar.com/radio-HTTP/cr2-hd.3gp/playlist.m3u8
am864
http://stream-redirect.hktoolbar.com/radio-HTTP/am864.3gp/playlist.m3u8
http://www.hkepc.com/forum/viewthread.php?tid=2175915&rpid=33176153&ordertype=0&page=4#pid33176153
裝hktoolbar、Fiddler後,開啟hktoolbar、Fiddler可以看到真正播放網址
http://www.881903.com/main/modules/webtoolbar/player_geo.html#hd881
http://www.881903.com/main/modules/webtoolbar/player_geo.html?v=5759#hd903
http://www.881903.com/main/modules/webtoolbar/player_geo.html#hd864
http://event.881903.com/hktbaudioplayer/scripts/player_token.js
Free mp3 online broadcasting /host 參考資料
===============================================================
https://soundcloud.com
http://www.myaudiocast.com
https://www.mediafire.com
https://www.dropbox.com
http://www.techbang.com/posts/6503-cover-story-droptunes-music-republic-zhang-sheng
2015年11月23日 星期一
直接錄下港台電視的網上直播 script
下載檔案後,double click
"download_rthk31_live_video.wsf" 或 "download_rthk32_live_video.wsf"執行
https://goo.gl/GnOY6r
已知 Bug
- 聲畫不同步 (甩嘴),Kmplayer 4以前,但奇怪 Media Player Classic、Vlc player 則正常
- 沒有停止錄影的按鈕,直接關閉程式就可以了,或在command prompt windows 按 Ctrl + C
"download_rthk31_live_video.wsf" 或 "download_rthk32_live_video.wsf"執行
https://goo.gl/GnOY6r
已知 Bug
- 聲畫不同步 (甩嘴),Kmplayer 4以前,但奇怪 Media Player Classic、Vlc player 則正常
- 沒有停止錄影的按鈕,直接關閉程式就可以了,或在command prompt windows 按 Ctrl + C
2015年7月1日 星期三
初試下載 i-cable 網頁上的影片,結果....
比我想像之中要更困難,初時我以為是很容易的。
總結,找 i-cable 網頁上片源是有點麻煩................
找i-cable 手機 apps 影片片源是容易的,但不能寫成自動化script,因為破譯不了下載link的 token
想轉貼 i-cable 網頁上片源 到社交網站上,一般人還是推薦使用 Internet Download Manager 去 download i-cable 網頁上片源,這是我現在想到最簡單的解決方法。
基本我不看 i-cable的,而是一位 hkepc 網友問我的問題。
第一天,試看有沒有 hls live streaming link,使用 user agent switcher模擬 iphone 觀看,結果沒有發現網頁有為 iphone 或 android 提供特別觀看 link。 之後直接 google 找有沒有人寫下下載方法,發現有使用 rtmpdump 下載方法,rtmpdump 模擬 rtmp prptocol,使用proxy rtmp連接方法去間接 capture data,試了真 work,但下載方法實在太麻煩,影片質素效果實在太差了,有時會甩嘴,聲畫不同步,下載時間很長,下載時間幾乎等同播放時間。雖然找到下載之法,但效果太差,還是不能用。
第二天,我將 rtmpdump 下載 i-cable 網頁上影片方法寫成script,但效果強差人意
download_icable_web_video.wsf (download i-cable 網頁影片script 要輸入 download i-cable影片網址)
https://onedrive.live.com/download.aspx?cid=46E82FEE17A376C2&resid=46E82FEE17A376C2!162&canary=mmHimANIuy9NcZ8ZhzD4pa5pL11mCng%2BjhZCKtUM0Ok%3D6
其實找i-cable 手機 apps 影片片源更容易,但怎樣教懂一個普通人(這才是問題) 去分析並capture android tcp packet 然後再使用複雜工具去下載?
使用 i-cable apps 再使用Fiddler分析tcp packet,很容易就找到手機影片的 m3u8 playlist link,再使用 livestreamer或 ffmpeg 便很容易 download 得到影片,而且極少出現問題,沒有聲畫不同步的問題,沒有輸入多個 parameter 輸入錯誤之問題,但這個使用方法的先決條件係懂得livestreamer運用和有一定電腦知識,並且需要有一部已 root了的手機和一部PC。
reference link
RTMPDumpHelper 教學(youtube link)
RTMPDumpHelper 教學2 (youtube link)
RtmpDump ksv compile 版本
Downloads · K-S-V/Scripts · GitHub
Save video from i-cable.com
Android抓包方法(一) 之Fiddler代理
ProxyDroid - Google Play Android 應用程式
總結,找 i-cable 網頁上片源是有點麻煩................
找i-cable 手機 apps 影片片源是容易的,但不能寫成自動化script,因為破譯不了下載link的 token
想轉貼 i-cable 網頁上片源 到社交網站上,一般人還是推薦使用 Internet Download Manager 去 download i-cable 網頁上片源,這是我現在想到最簡單的解決方法。
基本我不看 i-cable的,而是一位 hkepc 網友問我的問題。
第一天,試看有沒有 hls live streaming link,使用 user agent switcher模擬 iphone 觀看,結果沒有發現網頁有為 iphone 或 android 提供特別觀看 link。 之後直接 google 找有沒有人寫下下載方法,發現有使用 rtmpdump 下載方法,rtmpdump 模擬 rtmp prptocol,使用proxy rtmp連接方法去間接 capture data,試了真 work,但下載方法實在太麻煩,影片質素效果實在太差了,有時會甩嘴,聲畫不同步,下載時間很長,下載時間幾乎等同播放時間。雖然找到下載之法,但效果太差,還是不能用。
第二天,我將 rtmpdump 下載 i-cable 網頁上影片方法寫成script,但效果強差人意
download_icable_web_video.wsf (download i-cable 網頁影片script 要輸入 download i-cable影片網址)
https://onedrive.live.com/download.aspx?cid=46E82FEE17A376C2&resid=46E82FEE17A376C2!162&canary=mmHimANIuy9NcZ8ZhzD4pa5pL11mCng%2BjhZCKtUM0Ok%3D6
其實找i-cable 手機 apps 影片片源更容易,但怎樣教懂一個普通人(這才是問題) 去分析並capture android tcp packet 然後再使用複雜工具去下載?
使用 i-cable apps 再使用Fiddler分析tcp packet,很容易就找到手機影片的 m3u8 playlist link,再使用 livestreamer或 ffmpeg 便很容易 download 得到影片,而且極少出現問題,沒有聲畫不同步的問題,沒有輸入多個 parameter 輸入錯誤之問題,但這個使用方法的先決條件係懂得livestreamer運用和有一定電腦知識,並且需要有一部已 root了的手機和一部PC。
reference link
RTMPDumpHelper 教學(youtube link)
RTMPDumpHelper 教學2 (youtube link)
RtmpDump ksv compile 版本
Downloads · K-S-V/Scripts · GitHub
Save video from i-cable.com
Android抓包方法(一) 之Fiddler代理
ProxyDroid - Google Play Android 應用程式
2015年5月16日 星期六
Download 網上香港電台節目重溫(影片) script 0.2 (使用LiverStreamer.exe下載)
download_rthk_video_0.2.zip
https://docs.google.com/uc?id=0B0tG3vM1zAQwNGZCd3hZYUgwbVE&export=download
1.) double click "download_rthk_video.wsf"
2.) 輸入
http://programme.rthk.hk/rthk/tv/programme.php?name=tv/sciencewithyou2015&d=2015-05-01&p=6813&e=303232&m=episode
3.) 等待 download 完結
4.) Download 完結後,開啟 download 檔案看看有沒有問題,如有問題可以重複步驟1.)下載多一次
refs:
http://forum8.hkgolden.com/view.aspx?type=BW&message=5820479
註: 以上連結
http://programme.rthk.hk/rthk/tv/programme.php?name=tv/sciencewithyou2015&d=2015-05-01&p=6813&e=303232&m=episode 已失效,如果想測試可以看看 RTHK 31 節目表找還未過期可以網上重溫的影片網址作輸入
https://docs.google.com/uc?id=0B0tG3vM1zAQwNGZCd3hZYUgwbVE&export=download
1.) double click "download_rthk_video.wsf"
2.) 輸入
http://programme.rthk.hk/rthk/tv/programme.php?name=tv/sciencewithyou2015&d=2015-05-01&p=6813&e=303232&m=episode
3.) 等待 download 完結
4.) Download 完結後,開啟 download 檔案看看有沒有問題,如有問題可以重複步驟1.)下載多一次
refs:
http://forum8.hkgolden.com/view.aspx?type=BW&message=5820479
註: 以上連結
http://programme.rthk.hk/rthk/tv/programme.php?name=tv/sciencewithyou2015&d=2015-05-01&p=6813&e=303232&m=episode 已失效,如果想測試可以看看 RTHK 31 節目表找還未過期可以網上重溫的影片網址作輸入
2015年4月8日 星期三
Download 香港電台節目重溫 windows script_alpha v0.08
Download 香港電台節目重溫 windows script_alpha v0.08
- download 1
changelog:
- 新增: 第二次執行時,檢查是否已下載相同檔案,如果在線 m3u8 playlist 長度與已下載音樂檔長度相同,略過該下載任務
"download_Rthk_audio.wsf"
step guides:
===================================================================
unzip file,download click "download_Rthk_audio.wsf",輸入要download節目網頁網址
(不是popup player link)
例如輸入
http://programme.rthk.hk/channel/radio/programme.php?name=radio1/openline_openview&d=2015-03-11&p=1069&e=299215&m=episode
不要輸入
http://programme.rthk.hk/channel/radio/player_popup.php?pid=1069&eid=299215&d=2015-03-11&player=mp3&type=archive&channel=radio1
refs:
http://forum5.hkgolden.com/view.aspx?type=SW&message=4940044
- download 1
changelog:
- 新增: 第二次執行時,檢查是否已下載相同檔案,如果在線 m3u8 playlist 長度與已下載音樂檔長度相同,略過該下載任務
"download_Rthk_audio.wsf"
step guides:
===================================================================
unzip file,download click "download_Rthk_audio.wsf",輸入要download節目網頁網址
(不是popup player link)
例如輸入
http://programme.rthk.hk/channel/radio/programme.php?name=radio1/openline_openview&d=2015-03-11&p=1069&e=299215&m=episode
不要輸入
http://programme.rthk.hk/channel/radio/player_popup.php?pid=1069&eid=299215&d=2015-03-11&player=mp3&type=archive&channel=radio1
refs:
http://forum5.hkgolden.com/view.aspx?type=SW&message=4940044
2015年4月7日 星期二
Download 香港電台節目重溫 LiveStreamer script 0.26 (使用LiverStreamer.exe下載 RTHK 節目)
Download
新 v.026
https://goo.gl/15exM2
舊 v0.25
https://www.sendspace.com/file/fsjl2u
v0.2 新增: 執行第二次時,略過已成功下載的檔案
v0.25 修正錯誤,修正不正常執行
v0.26 修正下載檔案名稱錯誤,修正不能下載普通話台節目
step guides:
===================================================================
unzip file,download click "download_Rthk_audio_by_livestreamer",輸入要download節目網頁網址 (不是popup player link)
例如輸入
http://programme.rthk.hk/channel/radio/programme.php?name=radio1/openline_openview&d=2015-03-11&p=1069&e=299215&m=episode
不要輸入
http://programme.rthk.hk/channel/radio/player_popup.php?pid=1069&eid=299215&d=2015-03-11&player=mp3&type=archive&channel=radio1
refs:
http://passerbyhk.blogspot.hk/2014/02/blog-post.html
http://forum5.hkgolden.com/view.aspx?type=SW&message=4940044
新 v.026
https://goo.gl/15exM2
舊 v0.25
https://www.sendspace.com/file/fsjl2u
v0.2 新增: 執行第二次時,略過已成功下載的檔案
v0.25 修正錯誤,修正不正常執行
v0.26 修正下載檔案名稱錯誤,修正不能下載普通話台節目
step guides:
===================================================================
unzip file,download click "download_Rthk_audio_by_livestreamer",輸入要download節目網頁網址 (不是popup player link)
例如輸入
http://programme.rthk.hk/channel/radio/programme.php?name=radio1/openline_openview&d=2015-03-11&p=1069&e=299215&m=episode
不要輸入
http://programme.rthk.hk/channel/radio/player_popup.php?pid=1069&eid=299215&d=2015-03-11&player=mp3&type=archive&channel=radio1
refs:
http://passerbyhk.blogspot.hk/2014/02/blog-post.html
http://forum5.hkgolden.com/view.aspx?type=SW&message=4940044
2015年4月4日 星期六
Download 香港電台節目重溫 LiveStreamer script 0.1
Download 香港電台聲音節目 LiveStreamer script 0.1 (使用LiverStreamer.exe下載 RTHK 節目)
https://www.sendspace.com/file/0w9o23
step guides:
===================================================================
unzip file,download click "download_Rthk_audio_by_livestreamer",輸入要download節目網頁網址 (不是popup player link)
例如輸入
http://programme.rthk.hk/channel/radio/programme.php?name=radio1/openline_openview&d=2015-03-11&p=1069&e=299215&m=episode
不要輸入
http://programme.rthk.hk/channel/radio/player_popup.php?pid=1069&eid=299215&d=2015-03-11&player=mp3&type=archive&channel=radio1
refs:
http://passerbyhk.blogspot.hk/2014/02/blog-post.html
http://forum5.hkgolden.com/view.aspx?type=SW&message=4940044
https://www.sendspace.com/file/0w9o23
step guides:
===================================================================
unzip file,download click "download_Rthk_audio_by_livestreamer",輸入要download節目網頁網址 (不是popup player link)
例如輸入
http://programme.rthk.hk/channel/radio/programme.php?name=radio1/openline_openview&d=2015-03-11&p=1069&e=299215&m=episode
不要輸入
http://programme.rthk.hk/channel/radio/player_popup.php?pid=1069&eid=299215&d=2015-03-11&player=mp3&type=archive&channel=radio1
refs:
http://passerbyhk.blogspot.hk/2014/02/blog-post.html
http://forum5.hkgolden.com/view.aspx?type=SW&message=4940044
2015年4月2日 星期四
2015年3月28日 星期六
mp3DirectCut 新增右鍵選單.reg
將下文貼到記事本,另存新檔,另存檔名 mp3DirectCut.reg,存檔類型要選所有檔案(*.*)
當然要先安裝 mp3DirectCut 到 C:\mp3DirectCutPortable\,Double click "mp3DirectCut.reg" ,按 "是" 匯入到 registry 即完成。 以後在 mp3 檔案按右鍵選單 mp3DirectCut 選項,即可開啟 mp3DirectCut編輯該檔案
使用 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
=========================
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
2015年3月26日 星期四
收集轉貼 link:ffmmpeg、 rtmpdump、mencoder、mplayer
Video Streaming Recording software
http://www.videohelp.com/tools/sections/video-streaming-recording
FFmpeg 簡易教學
http://lnpcd.blogspot.hk/2012/09/ffmpeg.html
http://anemospring.blogspot.hk/2010/09/ffmpeg.html
mencoder/mplayer/ffmpeg 命令的使用大全
http://jashliao.pixnet.net/blog/post/189051483-mencoder-mplayer-ffmpeg-%E5%91%BD%E4%BB%A4%E7%9A%84%E4%BD%BF%E7%94%A8%E5%A4%A7%E5%85%A8
錄下HLS Live直播
https://gist.github.com/John07/7475277
http://sinclairmediatech.com/recording-a-live-hls-stream-to-a-file-for-a-specific-time-period/
http://www.videohelp.com/tools/sections/video-streaming-recording
FFmpeg 簡易教學
http://lnpcd.blogspot.hk/2012/09/ffmpeg.html
http://anemospring.blogspot.hk/2010/09/ffmpeg.html
mencoder/mplayer/ffmpeg 命令的使用大全
http://jashliao.pixnet.net/blog/post/189051483-mencoder-mplayer-ffmpeg-%E5%91%BD%E4%BB%A4%E7%9A%84%E4%BD%BF%E7%94%A8%E5%A4%A7%E5%85%A8
錄下HLS Live直播
https://gist.github.com/John07/7475277
http://sinclairmediatech.com/recording-a-live-hls-stream-to-a-file-for-a-specific-time-period/
2015年3月25日 星期三
Download 香港電台節目重溫 windows script_alpha v0.07
Download 香港電台聲音節目 windows script_alpha v0.07
- download 1
changelog:
- 新增:一個 download_Rthk_audio_By_download_link_List.wsh,批次下載多個不同網址的香港電台聲音節目,下載網址來源檔案為 download_link_List.txt
"download_Rthk_audio.wsf"
step guides:
===================================================================
unzip file,download click "download_Rthk_audio.wsf",輸入要download節目網頁網址
(不是popup player link)
例如輸入
http://programme.rthk.hk/channel/radio/programme.php?name=radio1/openline_openview&d=2015-03-11&p=1069&e=299215&m=episode
不要輸入
http://programme.rthk.hk/channel/radio/player_popup.php?pid=1069&eid=299215&d=2015-03-11&player=mp3&type=archive&channel=radio1
refs:
http://forum5.hkgolden.com/view.aspx?type=SW&message=4940044
====================================================================
"download_Rthk_audio_By_download_link_List.wshf"
Step guides:
http://programme.rthk.hk/channel/radio/programme.php?name=openline_openview&d=2015-03-24&p=1069&e=&m=episode
http://programme.rthk.hk/channel/radio/programme.php?name=radio2/freeaswind&d=2014-07-20&p=414&e=271537&m=episode
http://programme.rthk.hk/channel/radio/programme.php?name=radio2/freeaswind&d=2014-07-06&p=414&e=269266&m=episode
- download 1
changelog:
- 新增:一個 download_Rthk_audio_By_download_link_List.wsh,批次下載多個不同網址的香港電台聲音節目,下載網址來源檔案為 download_link_List.txt
"download_Rthk_audio.wsf"
step guides:
===================================================================
unzip file,download click "download_Rthk_audio.wsf",輸入要download節目網頁網址
(不是popup player link)
例如輸入
http://programme.rthk.hk/channel/radio/programme.php?name=radio1/openline_openview&d=2015-03-11&p=1069&e=299215&m=episode
不要輸入
http://programme.rthk.hk/channel/radio/player_popup.php?pid=1069&eid=299215&d=2015-03-11&player=mp3&type=archive&channel=radio1
refs:
http://forum5.hkgolden.com/view.aspx?type=SW&message=4940044
====================================================================
"download_Rthk_audio_By_download_link_List.wshf"
Step guides:
- 變更 download_link_List.txt 內容,例如,如下
- double click "download_Rthk_audio_By_download_link_List.wshf 執行下載
http://programme.rthk.hk/channel/radio/programme.php?name=openline_openview&d=2015-03-24&p=1069&e=&m=episode
http://programme.rthk.hk/channel/radio/programme.php?name=radio2/freeaswind&d=2014-07-20&p=414&e=271537&m=episode
http://programme.rthk.hk/channel/radio/programme.php?name=radio2/freeaswind&d=2014-07-06&p=414&e=269266&m=episode
2015年3月22日 星期日
Download 香港電台節目重溫 windows script_alpha v0.065
Download 香港電台節目重溫 windows script_alpha v0.065
- download 1
change log:
- 新增:重複下載同一節目時,將已存在檔案改名為 XXXX_old.mp3
- 修正:讀取 clipboard 中港台節目 URL 會讀不到情況
- 新增:一個 download_Rthk_audio & Description.wsh,功能一樣,但多一載節錄內容介紹
step guides:
===================================================================
unzip file,download click "download_Rthk_audio.wsf",輸入要download節目網頁網址
(不是popup player link)
例如輸入
http://programme.rthk.hk/channel/radio/programme.php?name=radio1/openline_openview&d=2015-03-11&p=1069&e=299215&m=episode
不要輸入
http://programme.rthk.hk/channel/radio/player_popup.php?pid=1069&eid=299215&d=2015-03-11&player=mp3&type=archive&channel=radio1
refs:
http://forum5.hkgolden.com/view.aspx?type=SW&message=4940044
- download 1
change log:
- 新增:重複下載同一節目時,將已存在檔案改名為 XXXX_old.mp3
- 修正:讀取 clipboard 中港台節目 URL 會讀不到情況
- 新增:一個 download_Rthk_audio & Description.wsh,功能一樣,但多一載節錄內容介紹
step guides:
===================================================================
unzip file,download click "download_Rthk_audio.wsf",輸入要download節目網頁網址
(不是popup player link)
例如輸入
http://programme.rthk.hk/channel/radio/programme.php?name=radio1/openline_openview&d=2015-03-11&p=1069&e=299215&m=episode
不要輸入
http://programme.rthk.hk/channel/radio/player_popup.php?pid=1069&eid=299215&d=2015-03-11&player=mp3&type=archive&channel=radio1
refs:
http://forum5.hkgolden.com/view.aspx?type=SW&message=4940044
2015年3月15日 星期日
Download 香港電台節目重溫 windows script_alpha v0.05
Download 香港電台節目重溫 windows script_alpha v0.05
- download 1
- download 2
change log:
- 更改下載節目的 ffmpeg windows 標題為節目分段名稱
- 同時 call 多個 ffmpeg windows,同時下載同一節目中的多個分段
unzip file,download click "download_Rthk_audio.wsf",輸入要download節目網頁 (不是popup player link),
例如輸入
http://programme.rthk.hk/channel/radio/programme.php?name=radio1/openline_openview&d=2015-03-11&p=1069&e=299215&m=episode
不要輸入
http://programme.rthk.hk/channel/radio/player_popup.php?pid=1069&eid=299215&d=2015-03-11&player=mp3&type=archive&channel=radio1
refs:
http://forum5.hkgolden.com/view.aspx?type=SW&message=4940044
- download 1
- download 2
change log:
- 更改下載節目的 ffmpeg windows 標題為節目分段名稱
- 同時 call 多個 ffmpeg windows,同時下載同一節目中的多個分段
unzip file,download click "download_Rthk_audio.wsf",輸入要download節目網頁 (不是popup player link),
例如輸入
http://programme.rthk.hk/channel/radio/programme.php?name=radio1/openline_openview&d=2015-03-11&p=1069&e=299215&m=episode
不要輸入
http://programme.rthk.hk/channel/radio/player_popup.php?pid=1069&eid=299215&d=2015-03-11&player=mp3&type=archive&channel=radio1
refs:
http://forum5.hkgolden.com/view.aspx?type=SW&message=4940044
訂閱:
文章 (Atom)