
Recherche avancée
Médias (1)
-
GetID3 - Bloc informations de fichiers
9 avril 2013, par
Mis à jour : Mai 2013
Langue : français
Type : Image
Autres articles (46)
-
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 (...) -
Installation en mode ferme
4 février 2011, parLe mode ferme permet d’héberger plusieurs sites de type MediaSPIP en n’installant qu’une seule fois son noyau fonctionnel.
C’est la méthode que nous utilisons sur cette même plateforme.
L’utilisation en mode ferme nécessite de connaïtre un peu le mécanisme de SPIP contrairement à la version standalone qui ne nécessite pas réellement de connaissances spécifique puisque l’espace privé habituel de SPIP n’est plus utilisé.
Dans un premier temps, vous devez avoir installé les mêmes fichiers que l’installation (...) -
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" ;
Sur d’autres sites (6250)
-
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" -
Revision d8a120c196 : Unify decode_sb for >16x16 in vp9_decodframe.c First patch to make sb decoding
27 avril 2013, par John KoleszarChanged Paths :
Modify /vp9/decoder/vp9_decodframe.c
Unify decode_sb for >16x16 in vp9_decodframe.cFirst patch to make sb decoding based on the transform size. This patch
is working for the sb modes, combining the parts of decode_mb that fit
into this framework will come as a second patch.Change-Id : I26123416a7a87e096bbdb5eb944ce5bb198384f8