Download - TaipeiMac 20090226
![Page 1: TaipeiMac 20090226](https://reader035.vdocuments.net/reader035/viewer/2022062615/548afbaab479597f478b4b0d/html5/thumbnails/1.jpg)
TV –
天王大亂鬥 Tivo篇
2009.02.26
Jacky Chu
TaipeiMac Group Party
Tivo, Apple TV & Slimdevice
![Page 2: TaipeiMac 20090226](https://reader035.vdocuments.net/reader035/viewer/2022062615/548afbaab479597f478b4b0d/html5/thumbnails/2.jpg)
Agenda
認識認識 TvioTvio的另一面的另一面
TivoTivo節目隨身看節目隨身看
![Page 3: TaipeiMac 20090226](https://reader035.vdocuments.net/reader035/viewer/2022062615/548afbaab479597f478b4b0d/html5/thumbnails/3.jpg)
認識 Tvio的另一面
用瀏覽器瀏覽用瀏覽器瀏覽 TivoTivo錄製好的節目清單錄製好的節目清單
https://tivo.ip.address/https://tivo.ip.address/
帳號:帳號: tivotivo
密碼:密碼: MAKMAK
![Page 4: TaipeiMac 20090226](https://reader035.vdocuments.net/reader035/viewer/2022062615/548afbaab479597f478b4b0d/html5/thumbnails/4.jpg)
Tivo節目隨身看
影片檔案下載影片檔案下載
影片格式轉換影片格式轉換
匯入匯入 iTunesiTunes
![Page 5: TaipeiMac 20090226](https://reader035.vdocuments.net/reader035/viewer/2022062615/548afbaab479597f478b4b0d/html5/thumbnails/5.jpg)
影片檔案下載
手動下載手動下載
批次下載批次下載
取得節目清單列表取得節目清單列表
下載影片下載影片
![Page 6: TaipeiMac 20090226](https://reader035.vdocuments.net/reader035/viewer/2022062615/548afbaab479597f478b4b0d/html5/thumbnails/6.jpg)
取得節目清單列表
curl -scurl -s 'https://'https://tivo.ip.addresstivo.ip.address/TiVoConnect?/TiVoConnect?Command=QueryContainer&Container=Command=QueryContainer&Container=%2FNowPlaying&Recurse=Yes&AnchorOffset=%2FNowPlaying&Recurse=Yes&AnchorOffset=0'0' -k --digest-k --digest -u tivo:$MAK-u tivo:$MAK
![Page 7: TaipeiMac 20090226](https://reader035.vdocuments.net/reader035/viewer/2022062615/548afbaab479597f478b4b0d/html5/thumbnails/7.jpg)
節目清單 XML
![Page 8: TaipeiMac 20090226](https://reader035.vdocuments.net/reader035/viewer/2022062615/548afbaab479597f478b4b0d/html5/thumbnails/8.jpg)
下載影片
curlcurl 'http://'http://tivo.ip.addresstivo.ip.address/download//download/%E6%81%90%E6%81%90%E9%BE%8D%E7%8E%8B%E9%BE%8D%E7%8E%8B.TiVo?Container=.TiVo?Container=%2FNowPlaying&id=%2FNowPlaying&id=xxxxxxxxxxxxxxxxxxxxxx'' --digest--digest -u -u tivo:$MAKtivo:$MAK -c /tmp/cookies.txt-c /tmp/cookies.txt -o $filename.tivo-o $filename.tivo
![Page 9: TaipeiMac 20090226](https://reader035.vdocuments.net/reader035/viewer/2022062615/548afbaab479597f478b4b0d/html5/thumbnails/9.jpg)
影片格式轉換
tivo tivo 轉 轉 mpeg2mpeg2
tivodecodertivodecoder
mpeg2 mpeg2 轉 轉 H.264H.264
mencodermencoder
![Page 10: TaipeiMac 20090226](https://reader035.vdocuments.net/reader035/viewer/2022062615/548afbaab479597f478b4b0d/html5/thumbnails/10.jpg)
tivo 轉 mpeg2
tivodecode -n -m tivodecode -n -m $MAK$MAK -o $filename.mpg-o $filename.mpg $filename.tivo$filename.tivo
![Page 11: TaipeiMac 20090226](https://reader035.vdocuments.net/reader035/viewer/2022062615/548afbaab479597f478b4b0d/html5/thumbnails/11.jpg)
mpeg2 轉 H.264
mencoder -af volume=13:1 -of lavf -lavfopts mencoder -af volume=13:1 -of lavf -lavfopts i_certify_that_my_video_stream_does_not_use_i_certify_that_my_video_stream_does_not_use_b_frames -demuxer lavf -lavfdopts b_frames -demuxer lavf -lavfdopts probesize=128 -oac lavc -ovc lavc -lavcopts probesize=128 -oac lavc -ovc lavc -lavcopts keyint=15:aglobal=1:vglobal=1:coder=1:vcodkeyint=15:aglobal=1:vglobal=1:coder=1:vcodec=mpeg4:acodec=aac:vbitrate=1800:abitratec=mpeg4:acodec=aac:vbitrate=1800:abitrate=128 -vf pp=lb,scale=e=128 -vf pp=lb,scale=640:480640:480,harddup ,harddup -o -o $filename.mp4$filename.mp4 $filename.mpg$filename.mpg
![Page 12: TaipeiMac 20090226](https://reader035.vdocuments.net/reader035/viewer/2022062615/548afbaab479597f478b4b0d/html5/thumbnails/12.jpg)
匯入 iTunes
AppleScriptAppleScript
tell application "iTunes" activate open("Videos:tivo:video:xxxx.mp4") delay 90 stop update iPodend tell
![Page 13: TaipeiMac 20090226](https://reader035.vdocuments.net/reader035/viewer/2022062615/548afbaab479597f478b4b0d/html5/thumbnails/13.jpg)
The End
Q & A