
Recherche avancée
Autres articles (52)
-
Des sites réalisés avec MediaSPIP
2 mai 2011, parCette page présente quelques-uns des sites fonctionnant sous MediaSPIP.
Vous pouvez bien entendu ajouter le votre grâce au formulaire en bas de page. -
Librairies et logiciels spécifiques aux médias
10 décembre 2010, parPour un fonctionnement correct et optimal, plusieurs choses sont à prendre en considération.
Il est important, après avoir installé apache2, mysql et php5, d’installer d’autres logiciels nécessaires dont les installations sont décrites dans les liens afférants. Un ensemble de librairies multimedias (x264, libtheora, libvpx) utilisées pour l’encodage et le décodage des vidéos et sons afin de supporter le plus grand nombre de fichiers possibles. Cf. : ce tutoriel ; FFMpeg avec le maximum de décodeurs et (...) -
Prérequis à l’installation
31 janvier 2010, parPréambule
Cet article n’a pas pour but de détailler les installations de ces logiciels mais plutôt de donner des informations sur leur configuration spécifique.
Avant toute chose SPIPMotion tout comme MediaSPIP est fait pour tourner sur des distributions Linux de type Debian ou dérivées (Ubuntu...). Les documentations de ce site se réfèrent donc à ces distributions. Il est également possible de l’utiliser sur d’autres distributions Linux mais aucune garantie de bon fonctionnement n’est possible.
Il (...)
Sur d’autres sites (8064)
-
Create background sound for video with ffmpeg
23 novembre 2020, par NeretI have a video file without sound and a stereo audio file. Video is several times longer than audio. I'd like to create a background sound which starts from 2 second silence, then trim silence of the audio at both ends and duplicate trimmed audio several times to the end of the video.




I found how to trim audio :


ffmpeg -y -i audio.wav -af silenceremove=start_periods=1:start_threshold=-75dB,areverse,silenceremove=start_periods=1:start_threshold=-75dB,areverse trimmed_audio.wav



And how to create silence :


ffmpeg -y -f lavfi -i anullsrc=channel_layout=stereo:sample_rate=48000:duration=2 silence.wav



How can I duplicate the audio and combine it with the video ?


-
writing simple linux bash program to trim video using ffmpeg [closed]
12 août 2020, par feri ariyatmoko- 

-
I know I can trim video using ffmpeg without re-encoding it using this following command :
ffmpeg -i 'inputvideo.mp4' -vcodec copy -acodec copy -ss 00:09:33 -to 00:11:53 'output.mp4'


-
I've tried that command, it worked like a charm.


-
Since I will trim a lot of videos, I think it's better if I have a simple bash program to do it.










This is what the program should do :


- 

- I use ubuntu, so the program should be written for linux system
- I execute the program :
./videotrimmer.sh inputvideo.mp4 outputvideo.mp4
- The program asks the starting time and the time it ends.
- I enter the times.
- And done !












Example :


- 

- I want to trim the first 3 secs of a 10 secs video named videofile10secs.mp4. The file name of the trimmed video is videofile3secs.mp4
./videotrimmer.sh videofile10secs.mp4 videofile3secs.mp4
- The program asks the times. I input "00:00:00" and "00:00:03"
- I press the return key.
- Done. I should have a new file videofile3secs.mp4.












How to write that ? Any help will be highly appreciated.


-
-
intreadwrite : Add intermediate variables in the byteswise AV_W*() macros
1er août 2016, par Martin Storsjöintreadwrite : Add intermediate variables in the byteswise AV_W*() macros
This avoids issues with expanding the argument multiple times,
and makes sure that it is of the right type for the following shifts.Even if the caller of a macro could be expected not to pass parameters
that have side effects if expanded multiple times, these fallback
codepaths are rarely, if ever, tested, so it is expected that such
issues can arise.Thefore, for safety, make sure the fallback codepaths only expand
the arguments once.Signed-off-by : Martin Storsjö <martin@martin.st>