
Recherche avancée
Autres articles (93)
-
Les vidéos
21 avril 2011, parComme les documents de type "audio", Mediaspip affiche dans la mesure du possible les vidéos grâce à la balise html5 .
Un des inconvénients de cette balise est qu’elle n’est pas reconnue correctement par certains navigateurs (Internet Explorer pour ne pas le nommer) et que chaque navigateur ne gère en natif que certains formats de vidéos.
Son avantage principal quant à lui est de bénéficier de la prise en charge native de vidéos dans les navigateur et donc de se passer de l’utilisation de Flash et (...) -
Websites made with MediaSPIP
2 mai 2011, parThis page lists some websites based on MediaSPIP.
-
Possibilité de déploiement en ferme
12 avril 2011, parMediaSPIP peut être installé comme une ferme, avec un seul "noyau" hébergé sur un serveur dédié et utilisé par une multitude de sites différents.
Cela permet, par exemple : de pouvoir partager les frais de mise en œuvre entre plusieurs projets / individus ; de pouvoir déployer rapidement une multitude de sites uniques ; d’éviter d’avoir à mettre l’ensemble des créations dans un fourre-tout numérique comme c’est le cas pour les grandes plate-formes tout public disséminées sur le (...)
Sur d’autres sites (10885)
-
Passing shell variables containing spaces as arguments
29 octobre 2014, par Julian DelphikiI know there are many of these questions out there already, but my situation is unique enough that none of them have helped me thus far.
I’m writing a script that will reformat my (poorly tagged) music library. It’s currently in the form of Music/Genre/Artist/Album/##-Title.wav.
From the Music directory, I run my script1, which calls
find -name "*.wav" -exec script2 {} ${other_args}
. Script2 parses the path to variables, creates the appropriate output directory if it doesn’t exist, and then calls ffmpeg to do the compression.ex : ($sourcefilepath contains {} from find)
ffmpeg -i "$sourcefilepath" "$path/$to/$outfile.$extension"
If my file name or path contains no spaces, it works like a charm.
If it contains spaces, ffmpeg fails, with the following error :
Blues/Country Blues/Rhythm, Country And Blues/08-Natalie Cole & Reba
McEntire Since I Fell For You.wav : No such file or directoryNote : that’s the source file it can’t find. The output file appears to be working correctly, even with spaces. That’s not the full command I’m running (it has some -metadata flags too, but that also appears to be working correctly. I’m debugging with the command I wrote above).
The interesting thing here is that ffmpeg is NOT interpreting $sourcefilepath as two args, it just can’t find the file I specified. Running the following from the Music directory works.
ffmpeg -i Blues/Country\ Blues/Rhythm\,\ Country\ And\ Blues/08-Natalie\ Cole\ \&\ Reba\ McEntire\ \ \ Since\ I\ Fell\ For\ You.wav output.flac
I’m kind of stuck here. The other information on the web involves getting a command to see a variable with a space as one arg instead of multiple. I appear to have done that, but ffmpeg can’t find my file now.
Normally I’d just use
find -name "*.wav" -exec ffmpeg -i {} ${args} \;
but I need to process the file path to extract my metadata.I’m fairly new to shell scripting ; does anybody know what’s going on here ?
-
doc/general : remove obsolete info about APE decoder
23 mai 2013, par Paul B Mahol -
doc/general : mention recently added PCM codecs
22 décembre 2016, par Paul B Mahol