Successfully reported this slideshow.
We use your LinkedIn profile and activity data to personalize ads and to show you more relevant ads. You can change your ad preferences anytime.

TaipeiMac 20090226


Published on

TaipeiMac Group Party
TV天王大亂鬥 – Tivo篇

Published in: Technology
  • Be the first to comment

TaipeiMac 20090226

  1. 1. TV 天王大亂鬥 – Tivo 篇 2009.02.26 Jacky Chu TaipeiMac Group Party Tivo, Apple TV & Slimdevice
  2. 2. Agenda <ul><li>認識 Tvio 的另一面 </li></ul><ul><li>Tivo 節目隨身看 </li></ul>
  3. 3. 認識 Tvio 的另一面 <ul><li>用瀏覽器瀏覽 Tivo 錄製好的節目清單 </li></ul><ul><li>https://tivo.ip.address/ </li></ul><ul><ul><li>帳號: tivo </li></ul></ul><ul><ul><li>密碼: MAK </li></ul></ul>
  4. 4. Tivo 節目隨身看 <ul><li>影片檔案下載 </li></ul><ul><li>影片格式轉換 </li></ul><ul><li>匯入 iTunes </li></ul>
  5. 5. 影片檔案下載 <ul><li>手動下載 </li></ul><ul><li>批次下載 </li></ul><ul><ul><li>取得節目清單列表 </li></ul></ul><ul><ul><li>下載影片 </li></ul></ul>
  6. 6. 取得節目清單列表 <ul><li>curl -s 'https:// tivo.ip.address /TiVoConnect?Command=QueryContainer&Container=%2FNowPlaying&Recurse=Yes&AnchorOffset=0' -k --digest -u tivo:$MAK </li></ul>
  7. 7. 節目清單 XML
  8. 8. 下載影片 <ul><li>curl 'http:// tivo.ip.address /download/ %E6%81%90%E9%BE%8D%E7%8E%8B .TiVo?Container=%2FNowPlaying&id= xxxxxxxxxxx ' --digest -u tivo:$MAK -c /tmp/cookies.txt -o $filename.tivo </li></ul>
  9. 9. 影片格式轉換 <ul><li>tivo 轉 mpeg2 </li></ul><ul><ul><li>tivodecoder </li></ul></ul><ul><li>mpeg2 轉 H.264 </li></ul><ul><ul><li>mencoder </li></ul></ul>
  10. 10. tivo 轉 mpeg2 <ul><li>tivodecode -n -m $MAK -o $filename.mpg $filename.tivo </li></ul>
  11. 11. mpeg2 轉 H.264 <ul><li>mencoder -af volume=13:1 -of lavf -lavfopts i_certify_that_my_video_stream_does_not_use_b_frames -demuxer lavf -lavfdopts probesize=128 -oac lavc -ovc lavc -lavcopts keyint=15:aglobal=1:vglobal=1:coder=1:vcodec=mpeg4:acodec=aac:vbitrate=1800:abitrate=128 -vf pp=lb,scale= 640:480 ,harddup -o $filename.mp4 $filename.mpg </li></ul>
  12. 12. 匯入 iTunes <ul><li>AppleScript </li></ul>tell application &quot;iTunes&quot; activate open(&quot; Videos:tivo:video:xxxx.mp4 &quot;) delay 90 stop update iPod end tell
  13. 13. <ul><li>The End </li></ul>Q & A