Welcome Guest ( Log In | Register)



 
Reply to this topicStart new topic
> Streaming Video Capture On Linux, this script will download all the stream video using linux mplayer
zamaliphe
post 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 biggrin.gif

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
Go to the top of the page
 
+Quote Post
truefusion
post Jan 5 2008, 03:06 AM
Post #2


Ephesians 6:10-17
Group Icon

Group: [MODERATOR]
Posts: 1,868
Joined: 22-June 05
From: The World of Gentoo
Member No.: 8,528
T17 GFX Crew



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.
Go to the top of the page
 
+Quote Post
zamaliphe
post Jan 5 2008, 01:26 PM
Post #3


Advanced Member
*******

Group: Members
Posts: 131
Joined: 1-February 07
Member No.: 38,108



QUOTE(truefusion @ Jan 5 2008, 03:06 AM) *
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 biggrin.gif

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
Go to the top of the page
 
+Quote Post

Reply to this topicStart new topic

Collapse

> Similar Topics

Topics Topics
  1. Video Games Are A Complete Waste Of Time, Face It!(145)
  2. Converting Video Files From One Format To Another(6)
  3. Could Someone Make A Php Script For Me?(3)
  4. Legally Download Music And Burn Cds(31)
  5. How 2 Download An Assembler?(27)
  6. Templates(10)
  7. Firefox Hits The 50 Million Download Mark(36)
  8. How Do I Switch From Gnome To Kde?(6)
  9. Watermark Your Image With Simple Php Script(34)
  10. Is There A Linux Distro With Widescreen Support?(7)
  11. Do You Use Imagefilez.com?(30)
  12. Background Image Swap Script(15)
  13. Invite Script..(2)
  14. How To: Flash Streaming(4)
  15. Loaing Script(3)
  1. What Made You Switch To Linux?(32)
  2. Flash Streaming(4)
  3. Best Video Editing Software(6)
  4. Watch Free Movies And Tv Shows Streaming Online!(3)
  5. Flash Wmode(transparent) Pramater In Firefox3(on Linux) - Not Working(1)
  6. Amazed By Linux(3)
  7. Linux Version 8.04 Out(5)
  8. How To Make A View New Post Script?(5)
  9. Phpizabi Social Network Script(1)
  10. Asp.net Hosting On Linux Servers?(1)
  11. Download Little Games(2)
  12. Howl... Debut Album By Empires :p(2)
  13. Php Guest Online Script(2)


 



- Lo-Fi Version Time is now: 26th July 2008 - 09:39 AM