
Recherche avancée
Médias (1)
-
Richard Stallman et le logiciel libre
19 octobre 2011, par
Mis à jour : Mai 2013
Langue : français
Type : Texte
Autres articles (62)
-
Mise à jour de la version 0.1 vers 0.2
24 juin 2013, parExplications des différents changements notables lors du passage de la version 0.1 de MediaSPIP à la version 0.3. Quelles sont les nouveautés
Au niveau des dépendances logicielles Utilisation des dernières versions de FFMpeg (>= v1.2.1) ; Installation des dépendances pour Smush ; Installation de MediaInfo et FFprobe pour la récupération des métadonnées ; On n’utilise plus ffmpeg2theora ; On n’installe plus flvtool2 au profit de flvtool++ ; On n’installe plus ffmpeg-php qui n’est plus maintenu au (...) -
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 ;
-
Ecrire une actualité
21 juin 2013, parPrésentez les changements dans votre MédiaSPIP ou les actualités de vos projets sur votre MédiaSPIP grâce à la rubrique actualités.
Dans le thème par défaut spipeo de MédiaSPIP, les actualités sont affichées en bas de la page principale sous les éditoriaux.
Vous pouvez personnaliser le formulaire de création d’une actualité.
Formulaire de création d’une actualité Dans le cas d’un document de type actualité, les champs proposés par défaut sont : Date de publication ( personnaliser la date de publication ) (...)
Sur d’autres sites (8612)
-
How to record video and audio with ffmpeg and pipe only audio to python process
9 juin 2023, par urico12I have an ffmpeg command recording video and audio as one output and
I'm trying to add a second output to pipe out only the raw audio to python so that I can run additional processing on the audio chunks.


from subprocess import Popen, PIPE, STDOUT

record_audio_video_command = f"ffmpeg -i small_bunny_1080p_60fps.mp4 \ 
 -vcodec libx264 output.mp4 -f s16le pipe:1"

record_command = Popen(record_audio_video_command, 
 shell=True, 
 stdout=PIPE, 
 stderr=STDOUT)

f = open("output.txt", "w")
data = record_command.stdout.read(320)
f.write(str(data))
while len(data) > 0:
 data = record_command.stdout.read(320)
 f.write(str(data))



Is there a way to have ffmpeg pipe out only the raw audio bytes as one output, while still recording video and audio as the other output ?


-
FFMPEG : Appending an audio file at a specified time in a video file with pre-existing audio results in no addition [duplicate]
15 juin 2020, par JarsOfJam-SchedulerI have a video that contains images and a pre-existing audio.



I have an audio file of a duration Y that I would want to start in this video, after 5 seconds. It must no replace the audio during these Y seconds, but be appended. As a result I should hear both audio during these Y seconds.



What I've try to do is :



ffmpeg -i the_video.webm -itsoffset 5 -i the_audio_file.mp3 -map 0 -map 1 -c:v copy resulting_video_with_both_audio.webm



So it should add
the_audio_file.mp3
after 5 seconds. It should take all the streams of the video file, and all the streams of the new audio file, and mix it.


However my problem is that I only hear the audio of the video. I don't hear, indeed, the new audio at all. I should hear, during the first 5 seconds, the audio of the video. Then after 5 seconds, the audio of the video PLUS the Y seconds of the new audio file. Then after these Y seconds, the audio of the video until the end of the video.



Do you know how to fix this bug ? Why doesn't this command work ? Please I would prefer an answer that doesn't use
-filter
(because this command'll be executed in a Python script).

-
ffmpeg add background audio loop with video without overwriting existing audio
5 mars 2021, par Munish KapoorI am trying to add a new background audio loop using
ffmpeg
in the existing video

but when the new audio has been added. It overwrites existing audio in the video.


I tried this command


ffmpeg -i input.mp4 -stream_loop -1 -i input.mp3 -shortest -map 0:v:0 -map 1:a:0 -y out.mp4



Please help