
Recherche avancée
Médias (91)
-
Les Miserables
9 décembre 2019, par
Mis à jour : Décembre 2019
Langue : français
Type : Textuel
-
VideoHandle
8 novembre 2019, par
Mis à jour : Novembre 2019
Langue : français
Type : Video
-
Somos millones 1
21 juillet 2014, par
Mis à jour : Juin 2015
Langue : français
Type : Video
-
Un test - mauritanie
3 avril 2014, par
Mis à jour : Avril 2014
Langue : français
Type : Textuel
-
Pourquoi Obama lit il mes mails ?
4 février 2014, par
Mis à jour : Février 2014
Langue : français
-
IMG 0222
6 octobre 2013, par
Mis à jour : Octobre 2013
Langue : français
Type : Image
Autres articles (62)
-
L’espace de configuration de MediaSPIP
29 novembre 2010, parL’espace de configuration de MediaSPIP est réservé aux administrateurs. Un lien de menu "administrer" est généralement affiché en haut de la page [1].
Il permet de configurer finement votre site.
La navigation de cet espace de configuration est divisé en trois parties : la configuration générale du site qui permet notamment de modifier : les informations principales concernant le site (...) -
HTML5 audio and video support
13 avril 2011, parMediaSPIP uses HTML5 video and audio tags to play multimedia files, taking advantage of the latest W3C innovations supported by modern browsers.
The MediaSPIP player used has been created specifically for MediaSPIP and can be easily adapted to fit in with a specific theme.
For older browsers the Flowplayer flash fallback is used.
MediaSPIP allows for media playback on major mobile platforms with the above (...) -
XMP PHP
13 mai 2011, parDixit Wikipedia, XMP signifie :
Extensible Metadata Platform ou XMP est un format de métadonnées basé sur XML utilisé dans les applications PDF, de photographie et de graphisme. Il a été lancé par Adobe Systems en avril 2001 en étant intégré à la version 5.0 d’Adobe Acrobat.
Étant basé sur XML, il gère un ensemble de tags dynamiques pour l’utilisation dans le cadre du Web sémantique.
XMP permet d’enregistrer sous forme d’un document XML des informations relatives à un fichier : titre, auteur, historique (...)
Sur d’autres sites (5387)
-
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 ?


-
Add a 2nd audio stream using ffmpeg so you can switch audio streams on iOS ?
26 décembre 2019, par Tony MI have an
m.mp4
with English audio and want to add a second audio stream in Italian so that I can play either language using the iPhone. When I used this command :ffmpeg -i m.mp4 -i ita.mp3 -c copy -map 0 -map 1 out.mp4
The output from
ffmpeg -i out.mp4
(see below) shows that a new audio stream is added, and I can switch between audio streams using the VLC player. Yet when I transfer the video to the TV app and play it on either MacOS or iOS it only plays the original English and I see no options to play other languages.How do I get it to be able to switch between either audio on iOS ?
Here is the output from
ffmpeg -i out.mp4:
Stream #0:0(und): Video: h264 (High) (avc1 / 0x31637661), yuv420p, 400x300 [SAR 1:1 DAR 4:3], q=2-31, 482 kb/s, 23.98 fps, 23.98 tbr, 24k tbn, 24k tbc (default)
Metadata:
handler_name : VideoHandler
Stream #0:1(und): Audio: aac (LC) (mp4a / 0x6134706D), 48000 Hz, stereo, fltp, 102 kb/s (default)
Metadata:
handler_name : SoundHandler
Stream #0:2: Audio: mp3 (mp4a / 0x6134706D), 44100 Hz, stereo, fltp, 152 kb/s
Metadata:
encoder : LAME3.100
Stream mapping:
Stream #0:0 -> #0:0 (copy)
Stream #0:1 -> #0:1 (copy)
Stream #1:0 -> #0:2 (copy) -
Extract all audio streams from video into seperate audio files using ffmpeg and python
15 novembre 2020, par InsberrI'm trying to extract all the audio streams/tracks (whatever you wanna call them) from a video and save each one to a separate audio file using python and ffmpeg.

The problem is, I would need to know how many audio streams there are and I don't want to have to enter the number of streams the file has manually nor do I want to run a ffmpeg command for each file to figure it out.

Is there a way for the program to figure out how many streams there are so I can extract each stream to a separate file ?

Here is a snippet of the code

inputFiles
is a list of directories to each video file being inputted

_dir_in
is the directory that all the input files are in

_dir_out
is the directory all the files outputted by the code are placed

for video in inputFiles:
 number_of_audio_streams = 0 # this is where I need to know how many audio streams there are
 for i in range(number_of_audio_stremas):
 subprocess.call(f'ffmpeg -i {_dir_in}/{video} -map 0:a:{str(i)} {_dir_out}/audio/{video}-{str(i)}.m4a')