Recherche avancée

Médias (29)

Mot : - Tags -/Musique

Autres articles (56)

  • Les autorisations surchargées par les plugins

    27 avril 2010, par

    Mediaspip 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, par

    Le 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 2011

    MediaSPIP 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 Mensur

    I'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 Khirnov
    lavc : disable an obsolete hack for real video
    

    AVCodecContext.slice_count,offset are unneeded since 2007, commit
    383b123ed37df4ff99010646f1fa5911ff1428cc and following. Deprecate those
    fields.

    • [DH] libavcodec/avcodec.h
    • [DH] libavcodec/options_table.h
    • [DH] libavcodec/pthread_frame.c
    • [DH] libavcodec/rv10.c
    • [DH] libavcodec/rv34.c
    • [DH] libavcodec/version_major.h
  • Simultaneously map video and data streams to one subprocess pipeline in real-time

    9 février 2023, par seabass1217

    I 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):&#xA;  File "test_cv.py", line 32, in <module>&#xA;    metadata = packet.MetadataList()&#xA;AttributeError: &#x27;UnknownElement&#x27; object has no attribute &#x27;MetadataList&#x27;&#xA;&#xA;</module>

    &#xA;

    Any help is greatly appreciated.

    &#xA;