2016年2月18日 星期四

港台節目《開源香港》下載

港台節目《開源香港》下載 (已cut非節目部份)
https://www.sendspace.com/file/5uhju8

主持是活躍於網上討論區,網名為 HKGoldenMr.A 以近乎傻佬或偏執狂態度去推廣安裝和使用 Linux和Open source。

refs:
Mr.A - 香港網絡大典 - Wikia
Mr.A點解你推裝Linux
rthk.hk 香港電台網站: 社區參與廣播時段: 開源香港










檔案使用我寫的windows script下載得來,double click "download_Rthk_audio_By_downloadList.wsf"執行,此script並沒有停止執行功能。

download_rthk_audio_by_LiveStreamer.zip
https://www.sendspace.com/file/9oywy0

download_Rthk_audio_By_downloadList.wsf 使用參考

Step guides:
  • double click "download_Rthk_audio_By_downloadList.wsf" 執行下載
  •  變更 download_link_List.txt 內容,例如,如下
http://programme.rthk.hk/channel/radio/programme.php?name=dab31/g0202_open_source_in_hong_kong&d=2015-05-02&p=6827&e=303957&m=episode
http://programme.rthk.hk/channel/radio/programme.php?name=dab31/g0202_open_source_in_hong_kong&d=2015-05-09&p=6827&e=303958&m=episode
http://programme.rthk.hk/channel/radio/programme.php?name=dab31/g0202_open_source_in_hong_kong&d=2015-05-16&p=6827&e=303963&m=episode
http://programme.rthk.hk/channel/radio/programme.php?name=dab31/g0202_open_source_in_hong_kong&d=2015-05-23&p=6827&e=303964&m=episode
http://programme.rthk.hk/channel/radio/programme.php?name=dab31/g0202_open_source_in_hong_kong&d=2015-05-30&p=6827&e=308169&m=episode
http://programme.rthk.hk/channel/radio/programme.php?name=dab31/g0202_open_source_in_hong_kong&d=2015-06-06&p=6827&e=308183&m=episode
http://programme.rthk.hk/channel/radio/programme.php?name=dab31/g0202_open_source_in_hong_kong&d=2015-06-13&p=6827&e=310369&m=episode
http://programme.rthk.hk/channel/radio/programme.php?name=dab31/g0202_open_source_in_hong_kong&d=2015-06-20&p=6827&e=310370&m=episode
http://programme.rthk.hk/channel/radio/programme.php?name=dab31/g0202_open_source_in_hong_kong&d=2015-06-27&p=6827&e=310371&m=episode
http://programme.rthk.hk/channel/radio/programme.php?name=dab31/g0202_open_source_in_hong_kong&d=2015-07-04&p=6827&e=312953&m=episode
http://programme.rthk.hk/channel/radio/programme.php?name=dab31/g0202_open_source_in_hong_kong&d=2015-07-11&p=6827&e=312955&m=episode

  

2015年12月29日 星期二

新同文堂 在 openfoundry 上的備份

 openfoundry 將在2015年低結束,這裡留下一個回憶的備份


bug tracking system





新同文堂 在 openfoundry 的網頁

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。

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

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

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 應用程式