Download streaming flv

From OnnoWiki
Revision as of 04:59, 6 February 2014 by Onnowpurbo (talk | contribs)
Jump to navigation Jump to search

Coba menggunakan

wget -O outfile.flv "http://www.youtube.com/get_video.php?video_id=xxxxx&t=xxxxx&fmt=18"

Download Wawancara Habibie di Mata Najwa. Kadang kala harus di ulang, karena web server MetroTV membatasi jumlah sambungan & membuat connection refused.

wget http://image.metrotvnews.com/bank_video/newsprograms/22098_1.flv
wget http://image.metrotvnews.com/bank_video/newsprograms/22098_2.flv
wget http://image.metrotvnews.com/bank_video/newsprograms/22098_3.flv
wget http://image.metrotvnews.com/bank_video/newsprograms/22098_4.flv
wget http://image.metrotvnews.com/bank_video/newsprograms/22098_5.flv
wget http://image.metrotvnews.com/bank_video/newsprograms/22098_6.flv

Menyatukan jadi satu file flv menggunakan

apt-get install mencoder
mencoder -forceidx -of lavf -oac copy -ovc copy -o habibie-najwa-20140205.flv 22098_1.flv 22098_2.flv 22098_3.flv 22098_4.flv 22098_5.flv 22098_6.flv

Instalasi ffmpeg

sudo apt-get install ffmpeg

Konversi ke mpg

ffmpeg -i habibie-najwa-20140205.flv -s 320x240 habibie-najwa-20140205.mpg
ffmpeg -i habibie-najwa-20140205.flv -s 640x480 habibie-najwa-20140205.mpg
ffmpeg -i habibie-najwa-20140205.flv -s 1024x768 habibie-najwa-20140205.mpg


Konversi ke avi

ffmpeg -i habibie-najwa-20140205.flv habibie-najwa-20140205.avi
ffmpeg -sameq -i habibie-najwa-20140205.flv habibie-najwa-20140205.avi
ffmpeg -i habibie-najwa-20140205.flv -s 1024x768 -b 3000k habibie-najwa-20140205.avi