Difference between revisions of "Download streaming flv"

From OnnoWiki
Jump to navigation Jump to search
Line 30: Line 30:
 
Konversi ke avi
 
Konversi ke avi
  
  ffmpeg -i habibie-najwa-20140205.flv habibie-najwa-20140205.avi
+
  # ffmpeg -i habibie-najwa-20140205.flv habibie-najwa-20140205.avi
  ffmpeg -sameq -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
+
  # ffmpeg -i habibie-najwa-20140205.flv -s 1024x768 -b 3000k habibie-najwa-20140205.avi
 +
 
 +
ffmpeg -async 1 -i habibie-najwa-20140205.flv -f avi -b 1000k -ab 160k -ar 44100 habibie-najwa-20140205.avi

Revision as of 05:17, 6 February 2014

Coba menggunakan

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

Contoh 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	
ffmpeg -async 1 -i habibie-najwa-20140205.flv -f avi -b 1000k -ab 160k -ar 44100 habibie-najwa-20140205.avi