
Recherche avancée
Médias (91)
-
Chuck D with Fine Arts Militia - No Meaning No
15 septembre 2011, par
Mis à jour : Septembre 2011
Langue : English
Type : Audio
-
Paul Westerberg - Looking Up in Heaven
15 septembre 2011, par
Mis à jour : Septembre 2011
Langue : English
Type : Audio
-
Le Tigre - Fake French
15 septembre 2011, par
Mis à jour : Septembre 2011
Langue : English
Type : Audio
-
Thievery Corporation - DC 3000
15 septembre 2011, par
Mis à jour : Septembre 2011
Langue : English
Type : Audio
-
Dan the Automator - Relaxation Spa Treatment
15 septembre 2011, par
Mis à jour : Septembre 2011
Langue : English
Type : Audio
-
Gilberto Gil - Oslodum
15 septembre 2011, par
Mis à jour : Septembre 2011
Langue : English
Type : Audio
Autres articles (83)
-
Participer à sa traduction
10 avril 2011Vous pouvez nous aider à améliorer les locutions utilisées dans le logiciel ou à traduire celui-ci dans n’importe qu’elle nouvelle langue permettant sa diffusion à de nouvelles communautés linguistiques.
Pour ce faire, on utilise l’interface de traduction de SPIP où l’ensemble des modules de langue de MediaSPIP sont à disposition. ll vous suffit de vous inscrire sur la liste de discussion des traducteurs pour demander plus d’informations.
Actuellement MediaSPIP n’est disponible qu’en français et (...) -
Emballe médias : à quoi cela sert ?
4 février 2011, parCe plugin vise à gérer des sites de mise en ligne de documents de tous types.
Il crée des "médias", à savoir : un "média" est un article au sens SPIP créé automatiquement lors du téléversement d’un document qu’il soit audio, vidéo, image ou textuel ; un seul document ne peut être lié à un article dit "média" ; -
Menus personnalisés
14 novembre 2010, parMediaSPIP utilise le plugin Menus pour gérer plusieurs menus configurables pour la navigation.
Cela permet de laisser aux administrateurs de canaux la possibilité de configurer finement ces menus.
Menus créés à l’initialisation du site
Par défaut trois menus sont créés automatiquement à l’initialisation du site : Le menu principal ; Identifiant : barrenav ; Ce menu s’insère en général en haut de la page après le bloc d’entête, son identifiant le rend compatible avec les squelettes basés sur Zpip ; (...)
Sur d’autres sites (3088)
-
ffmpeg - convert background to black ? [closed]
22 juin 2022, par david furstthe basic problem

convert all pixels in all frames of a source video to black if they have a white value below a certain threshold and output the results as a series of static images with no transparency.

my solution so far

i am able to do this with a two-step process :

- 

- convert pixels below the threshold to transparent using ffmpeg's
colorkey
filtre, outputting a series as PNG. - use imagemagick to convert the PNG to JPEG.






this approach is very slow. ideally i'd like to do everything in one go, within ffmpeg.


the reason i haven't been able to do that so far is that the resulting transparency isn't discarded (as i'd hoped) when outputting to non-transparent formats like JPG, even if i try to 'discard' the alpha layer beforehand using combinations of
split
andlutrgb
; the resulting JPEGs still resemble the original images.

my current filter chain :


ffmpeg -hide_banner -y -i input.mp4 -f lavfi -i color=c=white \
 -filter_complex "[0:v]format=gray[src];
 [1][src]scale2ref[white][vid];
 [vid][white]blend=all_mode=multiply:shortest=1,colorkey=black:0.95" %05d.png



- convert pixels below the threshold to transparent using ffmpeg's
-
ffmpeg not creating audio file
13 février 2015, par DriesI’m trying to write raw s16le audio to an audio file using ffmpeg.
This is the command I’m using :ffmpeg -y -f s16le -acodec pcm_s16le -ar 44100 -ac 1 -i - -vn -ar 44100 -ac 1 OUTPUT_FILE.wav
After this command is handled I use stdin to put data in the encoder like this :
fwrite(samples_, sizeof(short int*), numSamples, audioffmpeg);
where
samples_
is ashort int*
with a number ofnumSamples
combined. At the moment I’m trying this per sample (sonumSamples
is 1).For some reason this isn’t creating a new file. Although, when I use a previously created file as input (so I don’t use stdin) it does create a new file.
FFmpeg doesn’t seem to be outputting so I can’t give that
-
Libx264 width not divisible by 2
1er mai 2022, par Meh SadnessI have this ffmpeg command :


ffmpeg -framerate 1 \
-i \"path/to/background\" \
-i \"path/to/source/mp3\" \
-filter_complex \"[1:v]scale=600:-1, pad=(16/15)*iw:(16/15)*ih:(ow-iw)/2:(oh-ih)/2:white, [0:v]overlay=(W-w)/7:(H-h)/2:shortest=1,drawtext=fontsize={fontsize}:fontfile={font}:fontcolor=white:text=\'{artist} - {title}\':x=W/2+W/10.5:y=H/11,drawtext=fontsize={fontsize}:fontfile={font}:fontcolor=white:text=\'{album}\':x=W/2+W/10.5:y=2*(H/10),drawtext=fontsize={fontsize}:fontfile={font}:fontcolor=white:text=\'{date}\':x=W/2+W/10.5:y=3*(H/10),format=yuv420p\" \
-c:v libx264 \
-r 30 \
-movflags +faststart \"{output}\"



It should convert the music into a video that will contain the cover art and various metadata.


However, I am getting the error indicated in the title and, at the same time, various changes to the pad and scale filter unfortunately didn't work. Moreover, no matter what part of the command I change, I still get an error like this :


[libx264 @ 000001581b1d7b80] width not divisible by 2 (555x260)



And at the same time, the dimensions are always the same - 555x260