
Recherche avancée
Médias (1)
-
La conservation du net art au musée. Les stratégies à l’œuvre
26 mai 2011
Mis à jour : Juillet 2013
Langue : français
Type : Texte
Autres articles (41)
-
Personnaliser les catégories
21 juin 2013, parFormulaire de création d’une catégorie
Pour ceux qui connaissent bien SPIP, une catégorie peut être assimilée à une rubrique.
Dans le cas d’un document de type catégorie, les champs proposés par défaut sont : Texte
On peut modifier ce formulaire dans la partie :
Administration > Configuration des masques de formulaire.
Dans le cas d’un document de type média, les champs non affichés par défaut sont : Descriptif rapide
Par ailleurs, c’est dans cette partie configuration qu’on peut indiquer le (...) -
Les tâches Cron régulières de la ferme
1er décembre 2010, parLa gestion de la ferme passe par l’exécution à intervalle régulier de plusieurs tâches répétitives dites Cron.
Le super Cron (gestion_mutu_super_cron)
Cette tâche, planifiée chaque minute, a pour simple effet d’appeler le Cron de l’ensemble des instances de la mutualisation régulièrement. Couplée avec un Cron système sur le site central de la mutualisation, cela permet de simplement générer des visites régulières sur les différents sites et éviter que les tâches des sites peu visités soient trop (...) -
Encoding and processing into web-friendly formats
13 avril 2011, parMediaSPIP automatically converts uploaded files to internet-compatible formats.
Video files are encoded in MP4, Ogv and WebM (supported by HTML5) and MP4 (supported by Flash).
Audio files are encoded in MP3 and Ogg (supported by HTML5) and MP3 (supported by Flash).
Where possible, text is analyzed in order to retrieve the data needed for search engine detection, and then exported as a series of image files.
All uploaded files are stored online in their original format, so you can (...)
Sur d’autres sites (10194)
-
expected end of line but found unknown token
17 juin 2017, par Denzil WilliamsOk so after days of searching, here I am. I am new to ffmpeg, applescript, and terminal.
I want to use ffmpeg to batch convert a group of selected files in any folder. I was successful in doing this by opening the terminal at the folder location and using this code :
for f in *.flv; do ffmpeg -i "$f" -acodec libmp3lame -b:a 256k "${f%.flv}.mp3" && rm "$f"; done
which finds all flv files, and converts it to 256 bit rate mp3, then deletes the original files.
Now I want it to be more automated, so I looked into creating a service. I tried running an apple script through automator, which I want it to open the terminal at the folder location the file then run the code to convert the files. Here’s the code I attempted :
tell application "Finder" to set currentFolder to target of front Finder window as text
set theWin to currentFolder's POSIX path
tell application "Terminal"
if not (exists window 1) then reopen
activate
do script "cd " & quoted form of theWin & ";clear" in window 1
tell application "Terminal"
do script "for f in *.flv; do ffmpeg -i "$f" -acodec libmp3lame -b:a 256k "${f%.flv}.mp3" && rm "$f"; done"
end tell
end tellThe first part of code opens up terminal at the folder location just fine. But when I add the part with the ffmpeg code it crashes. The error is apparently with the "$", those are what light up as the error, the error message says "Expected end of line, but found unknown token". Looking for some assistance please. I need the "$" because those are what make the loop work for renaming the files and such.
-
Is there a way to convert uploaded videos to browser MP4 using most basic ffmpeg ?
22 janvier 2016, par PeterTheLobsterI am trying to convert videos uploaded to my website to browser friendly mp4 using ffmpeg.
The Problem : the website is hosted by a company and it seems like it does not have the codecs I need (the ones I’m aware to be browser-friendly.) I have learned that h264 and libx264 are the codecs I would want to encode the mp4 videos to, but libx264 is not present and h264 is decodable only. Doing :
exec("ffmpeg -codecs", $output);
tells me that :
D V D h264 H.264 / AVC / MPEG-4 AVC / MPEG-4 part 10
I have tried converting the videos using mpeg4 codecs, but those are not supported natively in browsers it appears :
$command ="$ffmpeg -i $target -b 1500k -vcodec mpeg4 -pix_fmt yuv420p -acodec aac -strict experimental $converted2 2>&1";
exec($command, $output);The videos converted using the method above play only audio in chrome for example (the mpeg4 codec encoding is supported).
Edit : I was able to convert videos to ogg and webm, but those won’t cover all browsers as far as I’m aware. Especially not the mobile ones anyway.
Question : is there another type of basic ffmpeg, browser friendly mp4 codecs that I am not ware of or was there something wrong with my conversion $command above ? Or would I have to somehow try to install libx264 codecs and libraries ? (My guess is, that I probably cant do that to their servers, right ?)
-
avfilter/avf_showvolume : implement basic rms metering mode
23 mars 2018, par Paul B Mahol