
Recherche avancée
Autres articles (59)
-
Personnaliser en ajoutant son logo, sa bannière ou son image de fond
5 septembre 2013, parCertains thèmes prennent en compte trois éléments de personnalisation : l’ajout d’un logo ; l’ajout d’une bannière l’ajout d’une image de fond ;
-
MediaSPIP v0.2
21 juin 2013, parMediaSPIP 0.2 est la première version de MediaSPIP stable.
Sa date de sortie officielle est le 21 juin 2013 et est annoncée ici.
Le fichier zip ici présent contient uniquement les sources de MediaSPIP en version standalone.
Comme pour la version précédente, il est nécessaire d’installer manuellement l’ensemble des dépendances logicielles sur le serveur.
Si vous souhaitez utiliser cette archive pour une installation en mode ferme, il vous faudra également procéder à d’autres modifications (...) -
Mise à disposition des fichiers
14 avril 2011, parPar défaut, lors de son initialisation, MediaSPIP ne permet pas aux visiteurs de télécharger les fichiers qu’ils soient originaux ou le résultat de leur transformation ou encodage. Il permet uniquement de les visualiser.
Cependant, il est possible et facile d’autoriser les visiteurs à avoir accès à ces documents et ce sous différentes formes.
Tout cela se passe dans la page de configuration du squelette. Il vous faut aller dans l’espace d’administration du canal, et choisir dans la navigation (...)
Sur d’autres sites (5736)
-
Convertion of mp3 file with ffmpeg results in a file with wrong length [duplicate]
16 avril 2018, par Arthur EfixtyThis question already has an answer here :
I wrote a simple script for Linux where I loop through the folder (containing only .mp3 files) and add an album art to every item.
Here is my code :
for file in ~/Desktop/Rise\ Against/*
do
ffmpeg -i "${file}" -i ~/Desktop/appeal\ to\ reason.jpeg -map 0:0 -map 1:0 -codec copy -id3v2_version 3 \-metadata:s:v title="Album cover" -metadata:s:v comment="Cover (front)" "${file%}";
doneIf I set the output filename to hardcoded value like
out.mp3
then it works fine. But I need these files to have the same name as existing and overwrite them.Running this script results in having all files edited as expected (the album art changed) but they all have a length of 3 seconds. In terminal I get this
[mp3 @ 0xc695e0] Audio packet of size 378219 (starting with 6B0855F2...) is invalid, writing it anyway.
Thanks in advance !
-
End Part of .WAV file is not converted to .MP3 file
29 janvier 2021, par Shailendra Patil

As you can see the in the above image, the end part of the .wav file is not represented in the mp3 file. Here, I am making use of avcodec_decode_audio4() api to decode each packet, and using lame_encode_buffer() api to encode it in mp3 format. Here, I am seeing this issue for MONO streams( 1.wav -> 1.mp3 ). I just wanted to know why is this occuring, even when I am providing all the .wav file content. I am suspecting there is some caching that is happening, due to which I am unable to get whole data into the mp3 file. Any help here would be appreciated.


-
Using find / for how do I remove the original file extension for the output file name ?
2 septembre 2022, par burntscarrWhen using
find
orfor
to run things on multiple files, how would I make something not keep the file extension ?

For example if using ffmpeg on multiple files to convert from DTS to WAV I would run one of the following :


find . -name "*.dts" -exec ffmpeg -i "{}" -c:a pcm_s24le "{}.wav" \;


or


for f in ./*.dts; do ffmpeg -i "$f" -c:a pcm_s24le "$f.wav"; done


Both of these make files that end in .dts.wav rather than just .wav


My goal is to find out what I would add/change to make the "{}.wav" or "$f.wav" not include the .dts part for the output file name. (and several other examples with various extensions)


This happens automatically when using the cli version of
flac
, the output file automatically removes .wav and has .flac instead, when no output file is specified.
(Ex :flac -8 *.wav
would create .flac files next to the .wav files, but they aren't .wav.flac, they're just .flac)