
Recherche avancée
Médias (1)
-
Rennes Emotion Map 2010-11
19 octobre 2011, par
Mis à jour : Juillet 2013
Langue : français
Type : Texte
Autres articles (15)
-
Publier sur MédiaSpip
13 juin 2013Puis-je poster des contenus à partir d’une tablette Ipad ?
Oui, si votre Médiaspip installé est à la version 0.2 ou supérieure. Contacter au besoin l’administrateur de votre MédiaSpip pour le savoir -
Organiser par catégorie
17 mai 2013, parDans MédiaSPIP, une rubrique a 2 noms : catégorie et rubrique.
Les différents documents stockés dans MédiaSPIP peuvent être rangés dans différentes catégories. On peut créer une catégorie en cliquant sur "publier une catégorie" dans le menu publier en haut à droite ( après authentification ). Une catégorie peut être rangée dans une autre catégorie aussi ce qui fait qu’on peut construire une arborescence de catégories.
Lors de la publication prochaine d’un document, la nouvelle catégorie créée sera proposée (...) -
Les thèmes de MediaSpip
4 juin 20133 thèmes sont proposés à l’origine par MédiaSPIP. L’utilisateur MédiaSPIP peut rajouter des thèmes selon ses besoins.
Thèmes MediaSPIP
3 thèmes ont été développés au départ pour MediaSPIP : * SPIPeo : thème par défaut de MédiaSPIP. Il met en avant la présentation du site et les documents média les plus récents ( le type de tri peut être modifié - titre, popularité, date) . * Arscenic : il s’agit du thème utilisé sur le site officiel du projet, constitué notamment d’un bandeau rouge en début de page. La structure (...)
Sur d’autres sites (4355)
-
How do I use ffmpeg's `filter_complex` `volume` filter on videos that might not have an audio track ?
9 mars 2023, par jaygoobyI'm mixing new audio tracks into videos, and I want the original video audio to be at a lower volume in the mix :


ffmpeg -i audio.wav -i video.mp4 -c:v copy -filter_complex "[1:a:0]volume=0.5[originalAudio]; [0:a:0][originalAudio]amix=inputs=2[m]" -map [m] -map 1:v:0 tmp.mp4



that sets the original video audio to be 50% less than it was, when audio.wav is mixed with it. This works fine until there's a video with no audio track. Then I get the error :


Stream specifier ':a:0' in filtergraph description [1:a:0]volume=0.05[originalAudio]; [0:a:0][originalAudio]amix=inputs=2[m] matches no streams.



because the video has no audio track.


Is there a way for me to use ffmpeg filters in the same call, to ensure there's an audio track if one is originally missing, so I don't need to check for the presence of an audio track using an additional step with
ffprobe
,mediainfo
etc ?

[Edit 1] Looks like I need to add a
anullsrc
track to the video inside thefilter_complex
, and then not specifically choose which audio track from the video I want, so either the original or the new silent one (if it's the only one present) is selected via ffmpeg's automatic stream selection...

[Edit 2] Something like this, where I have 2 audio inputs, the first is silence and the second is the input wav. Use
concat
to pick either the silence or the video audio, use the result of that to reduce the volume, then mix in the new audio to the result of that, but I'm not there yet :

ffmpeg -f lavfi -i anullsrc \
 -i audio.wav \
 -i video.mp4 \
 -c:v copy \
 -filter_complex \
 "[0:a] [2:a] concat=n=2:v=0:a=1 [silence-or-video-audio];
 [silence-or-video-audio]volume=0.5[reduced-audio]; [1:a:0][reduced-audio]amix=inputs=2[mixed-audio]" \
 -map "[mixed-audio]" \
 -map "[2:v:0]" \
 tmp.mp4



The error is :
Stream specifier ':a' in filtergraph description [0:a] [2:a] concat=n=2:v=0:a=1 [silence-or-video-audio]; [silence-or-video-audio]volume=0.5[reduced-audio]; [1:a:0][reduced-audio]amix=inputs=2[mixed-audio] matches no streams.


-
How to increase or decrease volume for multi input in ffmpeg ?
15 mars 2023, par Ali AzmoodehI have an input file, I want the volume of the input file to increase when the loop reaches index 7, otherwise the volume is small, I need to merge it in these, Is it possible to set a filter for each input ?


createPhoneNumberAudioWithEncrypt('09030207892');

function createPhoneNumberAudioWithEncrypt(mobilNumber) {

 mobilNumber = mobilNumber.split('').reverse();

 let mergedVideo = ffmpeg();

 for (let i = 0; i < mobilNumber.length; i++)
 if (i >= 7)
 mergedVideo = mergedVideo.input(`./sound/${mobilNumber[i]}.mp3`);
 else
 mergedVideo = mergedVideo.input(`./sound/${mobilNumber[i]}.mp3`);

 mergedVideo.mergeToFile('./mergedAudio.mp3');

}



-
discordjs/voice : Changing volume does not have any effect
27 avril 2023, par CoxcopiI'm using @discordjs/voice for a bot. When I try to change the audio volume of a resource, no matter if it's while the resource is being played currently or if I do it before playing it, it doesn't seem to have any effect.


My code for creating the resource looks like this :


const stream = ytdl(url, {
 filter: "audioonly",
 format: "mp3",
 highWaterMark: 1 << 62,
 liveBuffer: 1 << 62,
 dlChunkSize: 0,
 bitrate: 128,
 quality: "lowestaudio"
})
const resource = createAudioResource(stream, {inlineVolume: true});



And for changing the volume before playing :


resource.volume.setVolume(audioVolume);
audioPlayer.play(resource);



I've tried
audioVolume
values between 0.0-1.0 as well as between 0-100 but no matter the value, the audio volume stayed exactly the same. Any Ideas what could be the issue here ?