
Recherche avancée
Autres articles (72)
-
Le profil des utilisateurs
12 avril 2011, parChaque utilisateur dispose d’une page de profil lui permettant de modifier ses informations personnelle. Dans le menu de haut de page par défaut, un élément de menu est automatiquement créé à l’initialisation de MediaSPIP, visible uniquement si le visiteur est identifié sur le site.
L’utilisateur a accès à la modification de profil depuis sa page auteur, un lien dans la navigation "Modifier votre profil" est (...) -
Configurer la prise en compte des langues
15 novembre 2010, parAccéder à la configuration et ajouter des langues prises en compte
Afin de configurer la prise en compte de nouvelles langues, il est nécessaire de se rendre dans la partie "Administrer" du site.
De là, dans le menu de navigation, vous pouvez accéder à une partie "Gestion des langues" permettant d’activer la prise en compte de nouvelles langues.
Chaque nouvelle langue ajoutée reste désactivable tant qu’aucun objet n’est créé dans cette langue. Dans ce cas, elle devient grisée dans la configuration et (...) -
Sélection de projets utilisant MediaSPIP
29 avril 2011, parLes exemples cités ci-dessous sont des éléments représentatifs d’usages spécifiques de MediaSPIP pour certains projets.
Vous pensez avoir un site "remarquable" réalisé avec MediaSPIP ? Faites le nous savoir ici.
Ferme MediaSPIP @ Infini
L’Association Infini développe des activités d’accueil, de point d’accès internet, de formation, de conduite de projets innovants dans le domaine des Technologies de l’Information et de la Communication, et l’hébergement de sites. Elle joue en la matière un rôle unique (...)
Sur d’autres sites (9886)
-
Video is cut after adding 2 watermarks with FFMPEG-KIT [closed]
7 août 2023, par dfjickI made a FFMPEG-KIT command to add 2 PNG watermarks to the video and everything went smoothly.


String ffmpegCommand = "-y -i " + videoPath +
 " -i " + watermarkImagePath +
 " -i " + userID +
 " -filter_complex " +
 "\"[0:v][1:v]overlay=x='if(lt(mod(t,10),5),10,W-w-10)':y='if(lt(mod(t,10),5),10,H-h-35)',\"" +
 "\"overlay=x='if(lt(mod(t,10),5),7,W-w-7)':y='if(lt(mod(t,10),5),165,H-h-15)'[out]\"" +
 " -map [out] -map 0:a -c:v libx264 -crf 18 -preset slow -c:a aac " + outputPath;



But for videos that are longer than 20 seconds, the results don't match the original video, sometimes the videos are only <20 seconds and at random times.


I get this error, how do I fix it ?


W/ffmpeg-kit: [mov,mp4,m4a,3gp,3g2,mj2 @ 0xb400007c5c1243f0] Packet corrupt (stream = 1, dts = 366976)
W/ffmpeg-kit: [mov,mp4,m4a,3gp,3g2,mj2 @ 0xb400007c5c1243f0] .
E/ffmpeg-kit: [NULL @ 0xb400007c6c179400] Invalid NAL unit size (63547 > 20190).
E/ffmpeg-kit: [NULL @ 0xb400007c6c179400] missing picture in access unit with size 20194
W/ffmpeg-kit: /storage/emulated/0/DCIM/android_100394_20230807_162805_5465009.mp4: corrupt input packet in stream 1
E/ffmpeg-kit: [h264 @ 0xb400007c6c210750] Invalid NAL unit size (63547 > 20190).
E/ffmpeg-kit: [h264 @ 0xb400007c6c210750] Error splitting the input into NAL units.
E/ffmpeg-kit: Error while decoding stream #0:1: Invalid data found when processing input



I've tried to use this
-fflags +discardcorrupt
, but the result is still the same. The duration of the video that has been watermarked does not match the original video.

-
Evolution #3179 : Pouvoir désactiver l’héritage de logo entre les rubriques (via une constante)
13 mars 2014, par b bÇa me semble être une bonne idée, sans ça on est obligé de fourber à coup de :
[(#LOGO_RUBRIQUE|matchrubon#ID_RUBRIQUE\.|oui)[(#LOGO_RUBRIQUE|image_reduire150,150)]]
Reste à voir si le nom de la constante convient à tout le monde et hop commit :)
-
How to merge two audio files while retaining correct timings with ffmpeg
31 août 2017, par andyDisclaimer : I don’t understand ffmpeg and mostly just copy commands
I have two webm video files. Their duration is off by about a second.
I converted these to mp4 and everything was fine :
ffmpeg -acodec libopus -i 1.webm -r 10 -cpu-used 5 -c:v libx264 -crf 20 -c:a aac -strict experimental -loglevel error 1.mp4
I then extracted the audio from each video and everything was fine. By fine, I mean, when I playback the audio files by themselves they match the timings on the original video. I used this command to extract the audio :
fmpeg -i 1.mp4 -map 0:a -vn -acodec copy 1audio.m4a
I now have two audio tracks and I want to combine them into one, I want to "overlay" them, AND I want to keep the timings the same as they were.
BUT, whenever I try and combine the audio the timings are off. The "seconds" don’t match the original single audio files.
I have tried these commands to merge the audio :
ffmpeg -i 1audio.m4a -i 2audio.m4a -filter_complex "[0:a][1:a]amerge=inputs=2[a]" -map [a] -c:a libfdk_aac mergedaudio.m4a
ffmpeg -i 2audio.m4a -i 1audio.m4a -filter_complex amix=inputs=2:duration=first mergedaudio.m4a
ffmpeg -i 1audio.m4a -i 2audio.m4a -filter_complex amerge -ac 2 -c:a libfdk_aac -vbr 4 mergedaudio.m4a
All the above command have resulted in a merged audio file... but the timings are off.
What am I doing wrong ?