
Recherche avancée
Autres articles (56)
-
La file d’attente de SPIPmotion
28 novembre 2010, parUne file d’attente stockée dans la base de donnée
Lors de son installation, SPIPmotion crée une nouvelle table dans la base de donnée intitulée spip_spipmotion_attentes.
Cette nouvelle table est constituée des champs suivants : id_spipmotion_attente, l’identifiant numérique unique de la tâche à traiter ; id_document, l’identifiant numérique du document original à encoder ; id_objet l’identifiant unique de l’objet auquel le document encodé devra être attaché automatiquement ; objet, le type d’objet auquel (...) -
Creating farms of unique websites
13 avril 2011, parMediaSPIP platforms can be installed as a farm, with a single "core" hosted on a dedicated server and used by multiple websites.
This allows (among other things) : implementation costs to be shared between several different projects / individuals rapid deployment of multiple unique sites creation of groups of like-minded sites, making it possible to browse media in a more controlled and selective environment than the major "open" (...) -
Supporting all media types
13 avril 2011, parUnlike most software and media-sharing platforms, MediaSPIP aims to manage as many different media types as possible. The following are just a few examples from an ever-expanding list of supported formats : images : png, gif, jpg, bmp and more audio : MP3, Ogg, Wav and more video : AVI, MP4, OGV, mpg, mov, wmv and more text, code and other data : OpenOffice, Microsoft Office (Word, PowerPoint, Excel), web (html, CSS), LaTeX, Google Earth and (...)
Sur d’autres sites (8208)
-
How to detect two identical audio/video files with different volume level ?
3 juillet 2017, par Marina RappoportI’m working on program that could compare 2 video files and show difference.
I compare audio track of files using SOX and FFMPEG :- invert one of the files (sox)
- merge other file and invert version of first (sox)
- detect silence (ffmpeg)
But if two file differs only by volume level - all audio track will be detected as non-silent ranges.
How to understand that 2 files have the same audio track, but with different volume level ?
I tried to change sound level via sox :
sox -v 1.1 input.wav output.wav
And then compare statistical information (-n stat).
It works fine. Result of division parameters audio2/audio1 :Samples read 1.00;
Length (seconds) 1.00;
Scaled by 1.00;
Maximum amplitude 1.10;
Minimum amplitude 1.10;
Midline amplitude 1.10;
Mean norm 1.10;
Mean amplitude 1.00;
RMS amplitude 1.10;
Maximum delta 1.10;
Mean delta 1.10;
RMS delta 1.10;
Rough frequency 1.00;
Volume adjustment 1/1.10;BUT ! When I tried ffmpeg to change volume of video :
ffmpeg -i input.mp4 -vcodec copy -af "volume=10dB" output.mp4
(orvolume=volume=0.5
) and than compared sox audio statistic : I can’t find any patterns...Samples read 1.00
Length (seconds) 1.00
Scaled by 1.00
Maximum amplitude 0.71
Minimum amplitude 0.64
Midline amplitude -2401.73
Mean norm 0.34
Mean amplitude 0.50
RMS amplitude 0.36
Maximum delta 0.37
Mean delta 0.34
RMS delta 0.36
Rough frequency 0.99
Volume adjustment 0.71I will be grateful for any ideas and help.
-
Dynamic volume mixing with FFMPeg
1er juin 2021, par jvhangI am streaming audio using FFMPeg and need to mix two audio sources using FFMpeg and set the volume level dynamically. I.e. once the stream starts, I need to be able update the ratio of the two volumes.


Currently, I have the volume mixing and streaming working using the CLI version of FFMPeg but the volume mix ratio is static.


Is there a way to dynamically set the volume ratio using the CLI tool ? Perhaps something with an FFMpeg expression ?


Or is using the API the only option ? If so, can anyone point me towards an example of dynamically mixing audio ? I haven't been able to find one.


Edit : here are the params I currently pass to mix audio. Again, this works fine, so not including the log as there is no error to fix. The question is how can I adjust the ratio of the
amix
mix after the process has launched. Willing to use the API if need be.

"-f rawvideo" + // container
 " -vcodec rawvideo" + // codec
 " -s " + width + "x" + height + // input video size, must be correct
 " -pix_fmt rgba" + // pixel format
 " -framerate " + frameRate +
 " -i pipe:0" + // from stdin in via pipe
 " -f dshow" +
 " -i audio=\"Stereo Mix (Realtek(R) Audio)\"" + //
 " -f dshow" +
 " -i audio=\"Microphone Array (Xbox NUI Sensor)\"" + // 
 " -filter_complex \"amix\"" + // mix the two inputs, can added ratio if needed
 " -c:v libx264" + // x264 software encoder
 " -g " + frameRate *2 +
 " -keyint_min " + frameRate +
 " -c:a aac" + // audio format
 " -b:v 6M -maxrate 2M -bufsize 1M" + // constrain bitrate per twitch
 " -f flv" +
 " " + address 
 );



-
youtube to mp3 conversion on server
3 juin 2016, par user1610362I’m wondering how can this site process file so quickly youtube-mp3.org. Could i use xuggler and convert to mp3 without downloading flv ? Could i use youtube-mp3.org in my program in order to download mp3 file from some youtube link. I’m trying to make server in java that has these capabilities and i could accomplish that just by downloading file and converting to mp3 but that isn’t fast enough...