
Recherche avancée
Autres articles (101)
-
Websites made with MediaSPIP
2 mai 2011, parThis page lists some websites based on MediaSPIP.
-
Amélioration de la version de base
13 septembre 2013Jolie sélection multiple
Le plugin Chosen permet d’améliorer l’ergonomie des champs de sélection multiple. Voir les deux images suivantes pour comparer.
Il suffit pour cela d’activer le plugin Chosen (Configuration générale du site > Gestion des plugins), puis de configurer le plugin (Les squelettes > Chosen) en activant l’utilisation de Chosen dans le site public et en spécifiant les éléments de formulaires à améliorer, par exemple select[multiple] pour les listes à sélection multiple (...) -
Publier sur MédiaSpip
13 juin 2013Puis-je poster des contenus à partir d’une tablette Ipad ?
Oui, si votre Médiaspip installé est à la version 0.2 ou supérieure. Contacter au besoin l’administrateur de votre MédiaSpip pour le savoir
Sur d’autres sites (10428)
-
appending a string constant selectively within a while loop in bash
29 janvier 2017, par Maxwell ChandlerI have a script called
automateutube
that I edit in VIM and execute in the terminal withsh ./automateutube.sh
This script pulls youtube links from a file called songs.txt and downloads the video from youtube then extracts the audio.The songs.txt file looks like this
https://www.youtube.com/watch?v=IxQOlZ3pqtI
https://www.youtube.com/watch?v=IxQOlZ3pqtI
https://www.youtube.com/watch?v=IxQOlZ3pqtI
https://www.youtube.com/watch?v=IxQOlZ3pqtIIt is just a bunch of links, one per line.
The script looks like this
#!/bin/bash
while read p; do
x=/tmp/.youtube-dl-$(date +%y.%m.%d_%H.%M.%S)-$RANDOM.flv
youtube-dl --audio-quality 160k --output=$x --format=18 "$p"
ffmpeg -i $x -acodec libmp3lame -ac 2 -ab 128k -vn -y "$p"
rm $x
done code>Now the first part executes. It downloads the video and starts to unpack it.
It is the second part that fails.
ffmpeg -i $x -acodec libmp3lame -ac 2 -ab 128k -vn -y "$p"
This is because
"$p"
is supposed to be in format "filename.mp3" However as it is p takes the value of a youtube link, without ".mp3" appended.This works for the first line
youtube-dl --audio-quality 160k --output=$x --format=18 "$p"
because
"$p"
is supposed to be in the form of a link there.Now I have tried adding three lines in
a="$.mp3"
b="$p"
c=$b$aand making
ffmpeg -i $x -acodec libmp3lame -ac 2 -ab 128k -vn -y "$p"
into
ffmpeg -i $x -acodec libmp3lame -ac 2 -ab 128k -vn -y "$c"
but I am still getting an error. Any ideas ?
parse error, at least 3 arguments were expected, only 1 given in string ’om/watch ?v=sOAHOxbMOJY’
-
FFMPEG : How to create video using 1 file .mov (transparent) and 1 image (.jpg)
29 mai 2017, par Jim2kHow to create video using 1 file .mov loop (transparent) and 1 image (.jpg Full length video)
like same : https://www.youtube.com/watch?v=fXzh3sMxTpM!!!Sorry for my poor english !!!
-
Anomalie #3495 : Il manque peut-être un accent à icône
3 juillet 2015wikipedia préfère icône
https://fr.wikipedia.org/wiki/Ic%C3%B4neje serais pour laisser le chapeau pour éviter la confusion avec l’anglais