Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
"Ad alta voce" ( come scaricare lo streaming rstp)
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Forum italiano (Italian)
View previous topic :: View next topic  
Author Message
bornfreethinker
n00b
n00b


Joined: 17 Dec 2007
Posts: 26

PostPosted: Fri May 21, 2010 7:44 am    Post subject: "Ad alta voce" ( come scaricare lo streaming rstp) Reply with quote

Ho scritto questo semplice script per il download di tutti gli audio libri dell'archivio rai (per chi non lo sapesse sul sito di radio rai è possibile scaricare soltanto i NUOVI audio libri, per quelli vecchi esiste solo la possibilità di ascoltarli online)

Code:
#!/bin/bash
# Download v1.0
URL="http://www.radio.rai.it/radio3/terzo_anello/alta_voce/archivio_2005/eventi/2005_05_01_vicere/index.cfm"

#Parsing della pagina
wget $URL
RAMS=`cat index.cfm | sed -e '/Q_CANALE=http:\/\/www.radio.rai.it\/radio3\/terzo_anello\/alta_voce\//!d' -e 's/.*Q_CANALE=[^h]*//' -e 's/.ram.,.*$/.ram/' | uniq | sort`
for r in $RAMS;
do
    wget $r
done

#Preleva rtsp url
for file in $(ls *.ram);
do
    rtsp=$(cat $file)
    mplayer -prefer-ipv4 -noframedrop -dumpstream $rtsp -dumpfile ${file%.ram}.ra
done

# Pulizia file temporanei
rm *.cfm *.ram

echo "FINE"


Il problema di questo script è semplice: il dump è LENTO. Mi chiedevo: avendo il reale IP del server rstp è possibile effettuare il download diretto del file e non il download graduale dello streaming?

p.s. ho trovato questo programma per windows HiDownload con il quale il dump è molto più veloce, esiste un equivalente per linux?


Last edited by bornfreethinker on Fri May 21, 2010 4:05 pm; edited 1 time in total
Back to top
View user's profile Send private message
Apetrini
Veteran
Veteran


Joined: 09 Feb 2005
Posts: 1158

PostPosted: Fri May 21, 2010 1:41 pm    Post subject: Reply with quote

Il titolo non è abbastanza esplicativo.

La sezione del forum è sbagliata.

Se hai accesso diretto al file, per scaricarlo puoi usare wget.
_________________
Linux ape 2.6.31-vanilla. Paludis since 0.28.0.
Back to top
View user's profile Send private message
bornfreethinker
n00b
n00b


Joined: 17 Dec 2007
Posts: 26

PostPosted: Fri May 21, 2010 4:07 pm    Post subject: Reply with quote

Riesco a reperire il vero indirizzo del server dello streaming
212.162.69.29:544 purtroppo modificando gli urls da:

Code:
rtsp://mm3.rai.it/clip1/radio3/napoli/terzo_anello/2007/altavoce2007_01_08.ra


a

Code:
212.162.69.29:544/clip1/radio3/napoli/terzo_anello/2007/altavoce2007_01_08.ra

non ottengo alcun risultato con wget.
Back to top
View user's profile Send private message
cloc3
Advocate
Advocate


Joined: 13 Jan 2004
Posts: 4788
Location: http://www.gentoo-users.org/user/cloc3/

PostPosted: Fri May 21, 2010 4:16 pm    Post subject: Reply with quote

prova qui
_________________
vu vu vu
gentù
mi piaci tu
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Forum italiano (Italian) All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum