
Recherche avancée
Médias (29)
-
#7 Ambience
16 octobre 2011, par
Mis à jour : Juin 2015
Langue : English
Type : Audio
-
#6 Teaser Music
16 octobre 2011, par
Mis à jour : Février 2013
Langue : English
Type : Audio
-
#5 End Title
16 octobre 2011, par
Mis à jour : Février 2013
Langue : English
Type : Audio
-
#3 The Safest Place
16 octobre 2011, par
Mis à jour : Février 2013
Langue : English
Type : Audio
-
#4 Emo Creates
15 octobre 2011, par
Mis à jour : Février 2013
Langue : English
Type : Audio
-
#2 Typewriter Dance
15 octobre 2011, par
Mis à jour : Février 2013
Langue : English
Type : Audio
Autres articles (56)
-
Les autorisations surchargées par les plugins
27 avril 2010, parMediaspip core
autoriser_auteur_modifier() afin que les visiteurs soient capables de modifier leurs informations sur la page d’auteurs -
Emballe Médias : Mettre en ligne simplement des documents
29 octobre 2010, parLe plugin emballe médias a été développé principalement pour la distribution mediaSPIP mais est également utilisé dans d’autres projets proches comme géodiversité par exemple. Plugins nécessaires et compatibles
Pour fonctionner ce plugin nécessite que d’autres plugins soient installés : CFG Saisies SPIP Bonux Diogène swfupload jqueryui
D’autres plugins peuvent être utilisés en complément afin d’améliorer ses capacités : Ancres douces Légendes photo_infos spipmotion (...) -
Contribute to a better visual interface
13 avril 2011MediaSPIP is based on a system of themes and templates. Templates define the placement of information on the page, and can be adapted to a wide range of uses. Themes define the overall graphic appearance of the site.
Anyone can submit a new graphic theme or template and make it available to the MediaSPIP community.
Sur d’autres sites (12204)
-
Produce high quality GIF with Fluent FFmpeg
3 mars 2023, par MensurI'm trying to generate high quality GIF's with Fluent FFmpeg, which is a wrapper for FFmpeg for Nodejs and i'm stuck.
What i need to do is add to add palletegen & palleteuse and i found a great example how this can be use directly in FFmpeg here.


However, I need help to add this in fluent ffmpeg code below. Does anyone have any example how I can produce high quality GIF's with fluent ffmpeg below ? The code below is generating GIF's but not that high quality.


const inputPath = videoname + ".mp4";
 const outputPath = videoname + ".gif";
 const startTime = "00:00:05";
 const duration = "00:00:08";
 const fps = 10;

 ffmpeg(videotemp)
 .setStartTime(startTime)
 .setDuration(duration)
 .fps(fps)
 .size("500x300")
 .output(outputPath)
 .on("end", () => {
 console.log("Video has been converted to " +outputPath+ " animation successfully!");
 })
 .on("error", (err) => {
 console.log("Error: " + err.message);
 })
 .run();



-
lavc : disable an obsolete hack for real video
20 février 2023, par Anton Khirnovlavc : disable an obsolete hack for real video
AVCodecContext.slice_count,offset are unneeded since 2007, commit
383b123ed37df4ff99010646f1fa5911ff1428cc and following. Deprecate those
fields. -
Simultaneously map video and data streams to one subprocess pipeline in real-time
9 février 2023, par seabass1217I need to process the video stream and the klvdata streams simultaneously in real-time in OpenCV/Python. I'm using FFMPEG to read the file or stream as OpenCV does not retain the klvdata. I pass the data to OpenCV with the subprocess module.


My problem is I cannot figure out how to map both the video and klvdata to the same subprocess pipe simultaneously ?


My code :


#!/usr/bin/env python3
import sys, json, klvdata;
from subprocess import PIPE
import subprocess as sp
import cv2
import numpy

command = ['ffmpeg',
 '-i', 'DayFlight.mpg',
 '-map', '0:0',
 '-map', '0:d', 
 '-pix_fmt', 'bgr24',
 '-c:v', 'rawvideo', 
 '-an','-sn', 
 '-f', 'image2pipe', '-',
 '-c:d', 'copy',
 '-f','data',
 ]

pipe = sp.Popen(command, stdin=sp.PIPE, stdout=sp.PIPE, stderr=sp.PIPE, bufsize=10**8)

while True:
 raw_image = pipe.stdout.read(1280*720*3)
 image = numpy.fromstring(raw_image, dtype='uint8')
 image = image.reshape((720,1280,3)) 
 if image is not None:
 cv2.imshow('Video', image)
 if cv2.waitKey(1) & 0xFF == ord('q'):
 break
 for packet in klvdata.StreamParser(pipe.stdout): 
 metadata = packet.MetadataList()
 print(metadata)
pipe.stdout.flush()
cv2.destroyAllWindows()




Produces the below error :


Traceback (most recent call last):
 File "test_cv.py", line 32, in <module>
 metadata = packet.MetadataList()
AttributeError: 'UnknownElement' object has no attribute 'MetadataList'

</module>


Any help is greatly appreciated.