IPB

Welcome Guest ( Log In | Register )



Tags
This content has not been tagged yet
 
Reply to this topicStart new topic

Streaming Video Capture On Linux

, this script will download all the stream video using linux mplayer


zamaliphe
no avatar
Advanced Member
*******
Group: Members
Posts: 129
Joined: 1-February 07
Member No.: 38,108



Post #1 post Jan 5 2008, 02:03 AM
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
no avatar
Do you want to know?
***************
Group: [MODERATOR]
Posts: 2,463
Joined: 22-June 05
From: 127.0.0.1 — no place like it.
Member No.: 8,528
myCENT:12.00



Post #2 post 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.
Go to the top of the page
+Quote Post
zamaliphe
no avatar
Advanced Member
*******
Group: Members
Posts: 129
Joined: 1-February 07
Member No.: 38,108



Post #3 post Jan 5 2008, 01:26 PM
QUOTE(truefusion @ Jan 5 2008, 03:06 AM) [snapback]366265[/snapback]
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

    Topic Title Replies Topic Starter Views Last Action
No New Posts   1 triggerhappy 549 12th January 2009 - 08:25 PM
Last post by: iG-cfraschetti
No New Posts   2 gpinvest 1,559 19th July 2006 - 12:10 PM
Last post by: Florisjuh
No new   17 pr3dr49 23,475 18th March 2009 - 07:08 AM
Last post by: aloKNsh
No new   68 BoSZ 24,107 26th March 2009 - 03:10 PM
Last post by: aloKNsh
No new   42 stevey 20,202 26th March 2009 - 03:16 PM
Last post by: aloKNsh
No New Posts   6 stevey 3,937 22nd April 2009 - 12:52 AM
Last post by: mahesh2k
No New Posts   4 bttfpromo 9,910 1st March 2009 - 07:34 PM
Last post by: mc05w37
No New Posts   1 hatebreed 5,669 5th September 2004 - 02:05 PM
Last post by: redsky
No New Posts   5 Shadow 4,769 26th February 2009 - 12:38 AM
Last post by: novic_1223
No new   23 whatknows 13,504 22nd April 2009 - 12:35 AM
Last post by: mahesh2k
No New Posts 4 Saint_Michael 3,659 29th September 2004 - 08:52 PM
Last post by: alperuzi
No new   20 Shadow 8,048 25th October 2004 - 06:38 PM
Last post by: PhraX
No New Posts   3 elrohir 1,246 8th April 2009 - 02:28 PM
Last post by: varalu
No New Posts   5 Lyon2 2,904 7th February 2009 - 05:48 AM
Last post by: Pankyy
No New Posts   1 ICE-XG 2,446 11th October 2004 - 09:18 PM
Last post by: xc3ll


 



RSS Open Discussion Time is now: 5th July 2009 - 12:18 AM

Web Hosting Powered by ComputingHost.com.