
Recherche avancée
Médias (1)
-
The pirate bay depuis la Belgique
1er avril 2013, par
Mis à jour : Avril 2013
Langue : français
Type : Image
Autres articles (74)
-
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 (...) -
La sauvegarde automatique de canaux SPIP
1er avril 2010, parDans le cadre de la mise en place d’une plateforme ouverte, il est important pour les hébergeurs de pouvoir disposer de sauvegardes assez régulières pour parer à tout problème éventuel.
Pour réaliser cette tâche on se base sur deux plugins SPIP : Saveauto qui permet une sauvegarde régulière de la base de donnée sous la forme d’un dump mysql (utilisable dans phpmyadmin) mes_fichiers_2 qui permet de réaliser une archive au format zip des données importantes du site (les documents, les éléments (...)
Sur d’autres sites (4405)
-
How to make multiple edits to a single video file, and then encode once in ffmpeg ?
4 juin 2022, par EdesemI simply want to be able to do actions such as trimming videos and concatenate videos possibly mulitples times for one video file without encoding each time, and then finally at the end encode once. This would be similar to how normal video editors work where you can make all the edits first and then encode at the end ?


Is this possible ? Alternatives ? Currently it is very inefficient and bad for quality that if I want to cut out some parts of a video I have to wait for it to reencode and then do the next edit one after the other.


Thank you.


-
ffmpeg-python trim and concat video
29 août 2021, par AsisI'm trying to split an input video into 3 parts from different points in the video and then concat the parts back into 1 video.


I have the following code using subprocess that works fine.


import subprocess


def process_preview(file_in, destination_file):
 cmd = "ffmpeg -i " + file_in + " -filter_complex \"[0:v]split=3[copy1][copy2][copy3]," \
 "[copy1]trim=0:03,setpts=PTS-STARTPTS[p1]," \
 "[copy2]trim=30:33,setpts=PTS-STARTPTS[p2]," \
 "[copy3]trim=50:53,setpts=PTS-STARTPTS[p3],[p1][p2][p3]concat=n=3[out]\" -map [out] " + destination_file
 
 subprocess.call(cmd, shell=True)



This code works fine and does what I expect it too. However I want to use the ffmpeg-python library to achive the same result. This is the code I've come up with for that, but its doesn't work as I expect.


import ffmpeg


def process_preview(file_in, destination_file):
 original_video = ffmpeg.input(file_in)

 part_1 = original_video.video.trim(start=0, end=3).setpts('PTS-STARTPTS')
 part_2 = original_video.video.trim(start=30, end=33).setpts('PTS-STARTPTS')
 part_3 = original_video.video.trim(start=50, end=53).setpts('PTS-STARTPTS')

 joined = ffmpeg.concat(part_1, part_2, part_3, v=3).node
 output = ffmpeg.output(joined[0], joined[1], joined[2], destination_file).overwrite_output()
 output.run()



I'd like to know what I'm doing wrong and how to fix it. Thanks.


-
FFmpeg (merge two audio)
10 septembre 2017, par Ameer AlkateebI have two long audio files. I want to merge cut some part from each video
and merge both parts in one file.In below command the problem there is no audio in the second audio part. It contain the first part and the second is empty.
What is the problem ?
ffmpeg -f lavfi -i color=c=black
-ss 157.824 -t 99.818
-i "file1.mp4"
-ss 315.764 -t 50.308
-i "file2.mp4"
-s 854x480
-aspect 1.779167
-r 25
-c:v libx264
-b:v 800k
-c:a aac
-strict experimental
-b:a 128k
-f mp4
-t 150.126 -async 1
-y "output.mp4"