Votre discussion m'a donné envie de faire un screen cast avec recordmydesktop.
Maintenant, j'ai l'impression qu'il faut beaucoup réfléchir auparavant et faire un véritable scénario. Car je préfère de ne pas enregistrer du son, je me suis programmé un logiciel qui « lit » les explications d'un fichier texte, ligne par ligne, et me donne au même temps les directives pour les changements de fenêtre, les actions à démontrer etc. Dans le cas de mon premier ébauche, j'ai besoin de changer entre un terminal et le navigateur web. Ici le screen cast (80+M):
http://www.petit-fichier.fr/2015/09/01/get-mp3/, et voici le « scénario » qui est « filmé » :
- Code: Tout sélectionner
Hi and welcome to the live-demonstration of the get_mp3 utility.
The purpose of get_mp3 is to download radio-broadcasts from either France Culture or France Inter
in mp3 format.
I will start by showing you *where* you can find these broadcasts on the web-site of
France Culture (www.franceculture.fr). The procedure is not different on www.franceinter.fr.
You must know that each broadcast corresponds to the URL of a "player".
Let me explain this.
Normally, you can listen to the program directly on the web-site of the chosen radio-station,
which means an almost "live" experience of the currently running broadcast.
But long after the sought content has been transmitted, you can still find a specific broadcast
and either listen to the stored sound-file "online" or choose a podcast.
Technically, these are three different ways to access to a radio broadcast :
1. Live program
2. Podcast
3. Access to the sound file stored on the server of the radio station by means of an online
player-application..,
3 a) ... or after downloading the complete sound file to your own hard-disk.
Only the third possibility is of interest to us. On the web-site of France Culture, ...
let's just get there, now and I'll show you. ;-) (Web-Browser: www.france-culture.fr)
My favorite show on France Culture is "Terre à Terre".
I take the "page" of Terre à Terre as an example, but you can access to the page of any
other show as well, either via the search function or via the links, that you find in different
places on the web-site...
Back to Terre à Terre (Web-Browser: http://www.franceculture.fr/emission-terre-a-terre%20|%2013-14)
Different broadcasts are suggested... (Web-Browser: List of past broadcasts)
Now, where is the mp3? You click on the link that sais
"Écouter l'émission" (little red button). And you get to ... the page for this very broadcast.
(Web-Browser: Autour du rapport Pur projet)
The most important thing on these pages is the red button! (Web-Browser: Show red button)
Do not click it, but copy the link that it refers to...
Having said that, you can also click it. But it does not help us a lot. (Web-Browser: Click it)
All it does is open the "Player" which will then play the broadcast. We do not need that,
as we want to *DOWNLOAD* the mp3-file right away.
So do a *right click* on the red button and *copy* the url (address) of the player... like this. (Do it)
(If you have, instead, opened the player (by a *left click* on the red button), the url is then
hidden behind the pause-icon on top and also at display in the address bar of the popup-window.) (Show it)
What you copied is this:
http://www.franceculture.fr/player/reecouter?play=4863276
This is the *player-url* for the broadcast "Autour du rapport Pur projet".
Now start get_mp3 with the player-url and tell it where to save the mp3-file. (other terminal)
That's it.
We wait for the file to come in... (do so)
it does. That was the basic usage.
Here is, just as an example, the page of the show "Boomerang" on France Inter
(Web-Browser: http://www.franceinter.fr/reecouter-diffusions/953586)
This time, you find the past broadcasts directly under the links named « (ré)écouter cette émission ».
I summarize..:
1) fetch the player-url for the broadcast that you want to download.
2) start get_mp3 with this url as first argument and add the file-name where you want to safe
the resulting mp3-file.
You can omit the local file-name, which means that the downloaded content will be stored to
the file 'download.mp3' in the current directory. But this way, you will overwrite the file
each time, that you get another broadcast. So keep it in mind and rename the file, if need be.
EOF
C'est mon tout premier screen cast, et je sais qu'il faut le refaire (trop de bousillage encore). Mais est-ce que ça sert à quelque chose ? J'avoue que c'est un peu ludique...

Ah. Le logiciel qui « lit ligne par ligne » est disponible comme Ruby -Gem (naturellement):
- Code: Tout sélectionner
gem install line_by_line