
Recherche avancée
Autres articles (74)
-
Emballe médias : à quoi cela sert ?
4 février 2011, parCe plugin vise à gérer des sites de mise en ligne de documents de tous types.
Il crée des "médias", à savoir : un "média" est un article au sens SPIP créé automatiquement lors du téléversement d’un document qu’il soit audio, vidéo, image ou textuel ; un seul document ne peut être lié à un article dit "média" ; -
Script d’installation automatique de MediaSPIP
25 avril 2011, parAfin de palier aux difficultés d’installation dues principalement aux dépendances logicielles coté serveur, un script d’installation "tout en un" en bash a été créé afin de faciliter cette étape sur un serveur doté d’une distribution Linux compatible.
Vous devez bénéficier d’un accès SSH à votre serveur et d’un compte "root" afin de l’utiliser, ce qui permettra d’installer les dépendances. Contactez votre hébergeur si vous ne disposez pas de cela.
La documentation de l’utilisation du script d’installation (...) -
Automated installation script of MediaSPIP
25 avril 2011, parTo overcome the difficulties mainly due to the installation of server side software dependencies, an "all-in-one" installation script written in bash was created to facilitate this step on a server with a compatible Linux distribution.
You must have access to your server via SSH and a root account to use it, which will install the dependencies. Contact your provider if you do not have that.
The documentation of the use of this installation script is available here.
The code of this (...)
Sur d’autres sites (4144)
-
Trim with ffmpeg without re-encoding gives issues on the trimming point
3 mai 2022, par Oleg MerkulovI have a video file with following parameters :


Container: mp4
Video: h264
Audio: AAC
Duration: 00:29:38.03



I need to extract 2 parts from it and merge it into one video. I want to keep the quality and make the operation as fast as possible. Thus -> I don't want to re-encode.


I'm using the following :


ffmpeg -y -ss 00:01:00 -to 00:03:00 -i 30.mp4 -c copy part-1.mp4
ffmpeg -y -ss 00:21:00 -to 00:29:00 -i 30.mp4 -c copy part-2.mp4
ffmpeg -y -f concat -safe 0 -i parts.txt -c copy merged.mp4
parts.txt:
file 'part-1.mp4'
file 'part-2.mp4'



the output has 103 warnings like that :


[mp4 @ 0x7fa91d707e40] Non-monotonous DTS in output stream 0:1; previous: 5759491, current: 5719904; changing to 5759492. This may result in incorrect timestamps in the output file.
[mp4 @ 0x7fa91d707e40] Non-monotonous DTS in output stream 0:0; previous: 3598631, current: 3574391; changing to 3598632. This may result in incorrect timestamps in the output file.



merged.mp4 has an issue on 00:02:00, right after the cut.
The audio is not in sync with video for around 5 seconds and then after that it goes perfectly.


What can cause such an issue ? Is there is a way to trim without losing quality ?


-
Merge two audio files using ffmpeg : Unsafe file name './temp/speech/audio0.mp3'
18 juillet 2022, par PixelPagei want to merge audio files (/temp/speech/audio.mp3) into one (/temp/audio.mp3). I already tried
ffmpeg -f concat -i ./temp/speech/afiles.txt -c copy ./temp/audio.mp3
(I use nodejs child_process), but i get this error :

[concat @ 0x7fc08f70f140] Unsafe file name './temp/speech/audio0.mp3'
./temp/speech/afiles.txt: Operation not permitted

at ChildProcess.exithandler (node:child_process:398:12)
at ChildProcess.emit (node:events:527:28)
at maybeClose (node:internal/child_process:1092:16)
at Process.ChildProcess._handle.onexit (node:internal/child_process:302:5)



Note : This is my ./temp/speech/afiles.txt file :


file './temp/speech/audio0.mp3'
file './temp/speech/audio1.mp3'
file './temp/speech/audio2.mp3'
file './temp/speech/audio3.mp3'
file './temp/speech/audio4.mp3'



Thanks, Pixelpage


-
ffmpeg use resized image on the fly
30 avril 2018, par Pier Giorgio MisleyAt the moment I can successfully add an image to a video in a desired position.
I can also resize an image to a desired scale.
What I am actually missing is to resize the image and use the resized one on the fly.
with this command I can resize the image
ffmpeg -i input.jpg -vf scale=320:240 output.png
and with this command I can add an image to my video
ffmpeg -i input.mp4 -i output.png -filter_complex "[0:v][1:v] overlay=25:25:enable='between(t,0,20)'" -pix_fmt yuv420p -c:a copy output.mp4
is there a way to concat the two operation without creating
output.png
?something like
ffmpeg -i input.mp4 -i "-i input.jpg -vf scale=320:240" -filter_complex "[0:v][1:v] overlay=25:25:enable='between(t,0,20)'" -pix_fmt yuv420p -c:a copy output.mp4
thanks !