
Recherche avancée
Médias (3)
-
MediaSPIP Simple : futur thème graphique par défaut ?
26 septembre 2013, par
Mis à jour : Octobre 2013
Langue : français
Type : Video
-
GetID3 - Bloc informations de fichiers
9 avril 2013, par
Mis à jour : Mai 2013
Langue : français
Type : Image
-
GetID3 - Boutons supplémentaires
9 avril 2013, par
Mis à jour : Avril 2013
Langue : français
Type : Image
Autres articles (22)
-
La sauvegarde automatique de canaux SPIP
1er avril 2010, parDans le cadre de la mise en place d’une plateforme ouverte, il est important pour les hébergeurs de pouvoir disposer de sauvegardes assez régulières pour parer à tout problème éventuel.
Pour réaliser cette tâche on se base sur deux plugins SPIP : Saveauto qui permet une sauvegarde régulière de la base de donnée sous la forme d’un dump mysql (utilisable dans phpmyadmin) mes_fichiers_2 qui permet de réaliser une archive au format zip des données importantes du site (les documents, les éléments (...) -
Script d’installation automatique de MediaSPIP
25 avril 2011, parAfin de palier aux difficultés d’installation dues principalement aux dépendances logicielles coté serveur, un script d’installation "tout en un" en bash a été créé afin de faciliter cette étape sur un serveur doté d’une distribution Linux compatible.
Vous devez bénéficier d’un accès SSH à votre serveur et d’un compte "root" afin de l’utiliser, ce qui permettra d’installer les dépendances. Contactez votre hébergeur si vous ne disposez pas de cela.
La documentation de l’utilisation du script d’installation (...) -
Automated installation script of MediaSPIP
25 avril 2011, parTo overcome the difficulties mainly due to the installation of server side software dependencies, an "all-in-one" installation script written in bash was created to facilitate this step on a server with a compatible Linux distribution.
You must have access to your server via SSH and a root account to use it, which will install the dependencies. Contact your provider if you do not have that.
The documentation of the use of this installation script is available here.
The code of this (...)
Sur d’autres sites (3580)
-
How do you suppress "Error in the pull function" messages to stdout ?
23 mai 2021, par Vincent LinI am working on making my Discord bot into a music player using youtube-dl. I got past the common problem of music being interrupted from an "Error in the pull function" by having ffmpeg reconnect upon this error. However, I cannot figure out how to suppress the error messages being sent to stdout anyway :


[tls @ 0000023ea3564e80] Error in the pull function.
[https @ 0000023ea3560d80] Will reconnect at 327680 in 0 second(s), error=I/O error.



My ytdl options and ffmpeg options are as follows :


YTDL_OPTIONS = \
{"format": "bestaudio",
 "noplaylist": True,
 "quiet": True}
FFMPEG_OPTIONS = \
{"before_options": "-reconnect 1 -reconnect_streamed 1 -reconnect_delay_max 5",
 "options": "-vn"}



I experimented with various YTDL options like
"no_warnings": False
,"debug_printtraffic": False
,"progress_hooks": []
, etc. However, none of these additions worked. To be honest, I don't even know the source of these messages (youtube-dl or discord.py itself). Is there a way to suppress these messages ?

-
Low CPU Usage with dbPoweramp Powershell
21 janvier 2014, par CaulenI am using a program called dbPoweramp to convert music from within Powershell. I am using the documentation here which was all I could find for it when searching. Whenever I use the program itself to convert I get 100% CPU usage and it fully utilizes all eight threads. However, whenever I launch through the command line I only get something around 13% CPU usage. It obviously isn't desirable to have to launch the program manually because I am going for automation here. I have tried messing with the -processors argument but it has made no difference. Does anyone have any idea as to why that would be ?
I have also tried using FFMPEG instead, but the CPU usage for FFMPEG is similarly low. If anyone could post code that would make FFMPEG utilize all eight cores that would work just as well.
Here is the section of code that does the actual conversion, essentially it just searches for all flac, m4a, or mp3 files and then automatically converts them to variable bitrate quality 1 mp3s for streaming.
$oldMusic = Get-ChildItem -Include @("*.flac", "*.m4a", "*.mp3") -Path $inProcessPath -Recurse #gets all of the music
cd 'C:\Program Files (x86)\Illustrate\dBpoweramp'
foreach ($oldSong in $oldMusic) {
$newSong = [io.path]::ChangeExtension($oldSong.FullName, '.mp3')
$oldSongPath = $oldSong.FullName
$newSongPath = "E:\Temp\$newSong"
.\CoreConverter.exe -infile= $oldSongPath -outfile= $newSong -convert_to= "mp3 (Lame)" -V $quality #converts the file}
Thanks in advance !
-
Can FFmpeg encode multiple files at once ?
28 décembre 2016, par ivanI’m working on a shell script to encode the audio files in a given directory and output .flac files to another directory. My proof of concept loops through each file one by one and runs it through ffmpeg. I suspect there’s a way to pass the whole list of input files to ffmpeg in a single command, but haven’t been able to figure it out.
My current version looks like this :
#!/bin/sh
encode_album() {
local artist=$1; shift
local album=$1; shift
local in_dir="${HOME}/Music/raw-imports/${artist}/${album}"
local out_dir="${HOME}/Music/library/${artist}/${album}"
mkdir -p "${out_dir}"
find "${in_dir}" -type f -name *.aiff | while IFS= read -r in_file; do
local track_name=$(basename "${in_file}" .aiff)
local out_file="${out_dir}/${track_name}.flac"
encode_track "${in_file}" "${out_file}"
done
}
encode_track() {
local in_file=$1; shift
local out_file=$1; shift
null ffmpeg -i "${in_file}" -codec:a flac "${out_file}"
}
encode_album "Rolf Lislevand" "La Mascarade"This works, but do I need to feed these files into ffmpeg one by one, or is it capable of accepting a batch of files and processing them ?