|
|
|
|
![]() ![]() |
Jan 5 2008, 02:03 AM
Post
#1
|
|
|
Advanced Member ![]() ![]() ![]() ![]() ![]() ![]() ![]() Group: Members Posts: 131 Joined: 1-February 07 Member No.: 38,108 |
i was looking for video capter on linux and i coldent find one
so i rote one of my one if you use linux then you can try this script and if you need any hep just ask CODE #!/bin/bash # # mplayer auto dump stream script #this script will download all the stream files in the ./zam_list files #this script by (mohammed tawfeek) zamaliphe@gmail.com #i have do this to be able to watch the video on Linux #if you think it is illegally or some thing just don't tel me that ha #© #bash 6/6/2006 download_folder="./video/" #grep -e HREF ./asx/*.asx > ./list1.txt #sed -i 's/[^"]*"\([^"]*\).*/\1/' ./list1.txt #nl ./list1.txt >./list.txt let max=`grep -c [:alnum:] ./list.txt` echo "$max files will be downloaded" if [ -d $download_folder ] then for ((i=1; i<=$max; i++)) do download_src=`gawk '$1 =="'$i'" {print $2}' ./list.txt` download_file=${download_folder}${download_src##*/} printf "please wite...\ndownloading file number:%d of:%d \nfile is : %s\n" "$i" "$max" "$download_file" mplayer -dumpstream -dumpfile "$download_file" "$download_src" done else echo "folder "$download_folder" notfound created " mkdir "$download_folder" for ((i=1; i<=$max; i++)) do download_src=`gawk '$1 =="'$i'" {print $2}' ./list.txt` download_file=${download_folder}${download_src##*/} printf "please wite...\ndownloading file number:%d of:%d \nfile is : %s\n" "$i" "$max" "$download_file" mplayer -dumpstream -dumpfile "$download_file" "$download_src" done fi reated " mkdir ./asx CODE fi #!/bin/bash asx_folder="./asx" asx_list=./asx_list if [ -d $asx_folder ]then echo "folder "$asx_folder" notfound created " mkdir "$asx_folder" fi if [ -r $asx_list ] then wget -T 60 -t 0 -c -nd -P ./asx -i ./asx_list else echo "error: no file list found pleases add the list of '*.asx' fils you wish do download to file './asx_list' " fi if [ -d $asx_folder ] then grep -e HREF ./asx/*.asx > ./list1.txt sed -i 's/[^"]*"\([^"]*\).*/\1/' ./list1.txt nl ./list1.txt >./list.txt else echo "folder './asx' notfound created " mkdir ./asx fi fell free to edit this script as you like under "gnu gpl" linsses note:: link to my post at egptian form http://www.eglug.org/node/2079 the post under my name also zamaliphe and if you have any qustion fell free to ask This post has been edited by zamaliphe: Jan 5 2008, 02:10 AM |
|
|
|
Jan 5 2008, 03:06 AM
Post
#2
|
|
|
Ephesians 6:10-17 ![]() Group: [MODERATOR] Posts: 1,868 Joined: 22-June 05 From: The World of Gentoo Member No.: 8,528 ![]() |
Most people just use Firefox's video downloader and then play the files through VLC. Konqueror also has an mplayer plug-in which has a record button; it'll record anything streamable.
|
|
|
|
Jan 5 2008, 01:26 PM
Post
#3
|
|
|
Advanced Member ![]() ![]() ![]() ![]() ![]() ![]() ![]() Group: Members Posts: 131 Joined: 1-February 07 Member No.: 38,108 |
Most people just use Firefox's video downloader and then play the files through VLC. Konqueror also has an mplayer plug-in which has a record button; it'll record anything streamable. i have trayed every thing and every thing fals apart nothing work for me perfict than this small script it is not perfct but it work this script you can just creat a list of videos on text file and pass it to the script and it wil download them all for you not just that it will decode them also so you can play the videos using any video player in linux like mplayer kmplayer kaffeine and so . youdont need to use flav player in linux and it take times to download videos so you beret do that will you are not a round me i just find the videos creat list to download and start the script from the command line with a command to hatl the system when it finsh after it finsh and that some thing you cant do without this script it take fom me about 7 dayes to wrote this script bay the way and it is one of 6 apps i have created allredy one of them fore backing up your web site to your email using bash script also so you can corn it and you get email every day hav back up of your site i will pos it here soon god willing |
|
|
|
![]() ![]() |
Similar Topics
|
Lo-Fi Version | Time is now: 26th July 2008 - 09:39 AM |