
Recherche avancée
Médias (1)
-
The Great Big Beautiful Tomorrow
28 octobre 2011, par
Mis à jour : Octobre 2011
Langue : English
Type : Texte
Autres articles (69)
-
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 ;
-
Personnaliser les catégories
21 juin 2013, parFormulaire de création d’une catégorie
Pour ceux qui connaissent bien SPIP, une catégorie peut être assimilée à une rubrique.
Dans le cas d’un document de type catégorie, les champs proposés par défaut sont : Texte
On peut modifier ce formulaire dans la partie :
Administration > Configuration des masques de formulaire.
Dans le cas d’un document de type média, les champs non affichés par défaut sont : Descriptif rapide
Par ailleurs, c’est dans cette partie configuration qu’on peut indiquer le (...) -
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 (9403)
-
Batch-file script to automatically add an mp3 track to the same mp4 video in ffmpeg [closed]
15 janvier, par PoroI have several video and audio files :


- 

- file 01.mp3
- file 01.mkv
- file 02.mp3
- file 02.mkv
- file 03.mp3
- file 03.mkv














what should be the script for ffmpeg to take each video file and add an additional second audio track with the same name (file 01.mkv + file 01.mp3) ?


it's a main question


But ultimately I need to get each video (let's say it's mp4) with 3 audio streams :


- 

- mixed stream from mp3 (100%) + mkv (10% volume) - by default
- stream from mp3 file (100%)
- and last stream from mkv (100% volume)








I would like to write all these commands in one batch-file


I already use .bat files to automatically convert to another format (for example) :


for %%i in (*.mkv) do (
ffmpeg -y -i "%%i" -c copy "%%~ni.mp4"
)



As far as I understand, for the audio track task I need to set a variable for .mp3 (besides %%i ) and make it compare to the .mkv name, but I don't understand how to do it correctly.


to manually add a track, I use (for example) :


ffmpeg -i video.mkv -i audio.mp3 -map 0 -map 1:a -c:v copy -shortest output.mkv



to change the track order and set the default track, I use (for example) :


ffmpeg -i input.mkv -map 0:v:0
-map 0:a:2 -map 0:a:0 -map 0:a:1 -map 0:a:3
-map 0:s -c copy
-disposition:a:0 default
reordered.mp4



It takes a lot of time to do all this work with a lot of files. it would be great to delegate it to a machine.


-
ffmpeg volumn not work in complex filter
6 février 2018, par rick lee"volumn" filter not work in complex filter.
the audio that converted volumn is not affected.env : Mac OS 10.12.6
ffmpeg -i /path/bg.mp3 -y -filter_complex [0:0]volume=0[output] -map
[output] -acodec libmp3lame -write_xing 0 /path/mixed.mp3full log =====================================================================
liqideMacBook-Pro:pinyin-api work$ ffmpeg -i
/Users/work/dev/codebase/pinyin/pinyin-api/test/resources/bg_audio2.mp3
-y -filter_complex [0:0]volume=0.1[output] -map [output] -acodec
libmp3lame -f mp3 -write_xing 0 /Users/work/dev/codebase/pinyin/pinyin-
api/test/resources/mixed3.mp3
ffmpeg version 3.4.1 Copyright (c) 2000-2017 the FFmpeg developers
built with Apple LLVM version 9.0.0 (clang-900.0.39.2)
configuration: --prefix=/usr/local/Cellar/ffmpeg/3.4.1 --enable-
shared --enable-pthreads --enable-version3 --enable-hardcoded-tables --
enable-avresample --cc=clang --host-cflags= --host-ldflags= --enable-
gpl --enable-libmp3lame --enable-libx264 --enable-libxvid --enable-
opencl --enable-videotoolbox --disable-lzma
libavutil 55. 78.100 / 55. 78.100
libavcodec 57.107.100 / 57.107.100
libavformat 57. 83.100 / 57. 83.100
libavdevice 57. 10.100 / 57. 10.100
libavfilter 6.107.100 / 6.107.100
libavresample 3. 7. 0 / 3. 7. 0
libswscale 4. 8.100 / 4. 8.100
libswresample 2. 9.100 / 2. 9.100
libpostproc 54. 7.100 / 54. 7.100
Input #0, mp3, from '/Users/work/dev/codebase/pinyin/pinyin-
api/test/resources/bg_audio2.mp3':
Metadata:
title : 喜洋洋
album : 贺岁新年音乐会
encoder : Lavf56.4.101
Duration: 00:02:43.58, start: 0.025057, bitrate: 128 kb/s
Stream #0:0: Audio: mp3, 44100 Hz, stereo, s16p, 128 kb/s
Stream mapping:
Stream #0:0 (mp3) -> volume
volume -> Stream #0:0 (libmp3lame)
Press [q] to stop, [?] for help
Output #0, mp3, to '/Users/work/dev/codebase/pinyin/pinyin-
api/test/resources/mixed3.mp3':
Metadata:
TIT2 : 喜洋洋
TALB : 贺岁新年音乐会
TSSE : Lavf57.83.100
Stream #0:0: Audio: mp3 (libmp3lame), 44100 Hz, stereo, fltp
Metadata:
encoder : Lavc57.107.100 libmp3lame
[libmp3lame @ 0x7fad80001a00] Trying to remove 1152 samples, but the
queue is empty
size= 2556kB time=00:02:43.57 bitrate= 128.0kbits/s speed=51.7x
video:0kB audio:2556kB subtitle:0kB other streams:0kB global
headers:0kB muxing overhead: 0.003782%
liqideMacBook-Pro:pinyin-api work$=====================================================================
-
FFMPEG Python implementation
29 décembre 2019, par user1452030I’m trying to implement the FFMPEG command in the following question in Python :
ffmpeg : Repeat an audio watermark, except in the first frame
FFMPEG Command :
ffmpeg -i in.wav -filter_complex "amovie=watermark.wav:loop=0,asetpts=N/SR/TB,adelay=10s:all=1[beep];
[0][beep]amix=duration=shortest,volume=2" -b:a 320 out.mp3I’m trying to use the ffmpeg-python library, but I’m not particular about actual library. However I’d like the code to be platform agnostic i.e. I don’t want to run this as an OS command. This is what I tried so far :
watermarkAudioStream = (
ffmpeg
.input('watermark.wav')
.filter(amovie, watermarkFile,loop = 0)
.filter(asetpts, 'N/SR/TB')
.filter(adelay, '10s', all=1)
)
(
ffmpeg
.input(in.wav)
.concat(watermarkAudioStream)
.filter(amix, duration=shortest, volume=2)
.output(out.mp3, 'b:a=320')
.run()
)Any guidance on getting this done would be much appreciated. Thanks in advance.