Recherche avancée

Médias (0)

Mot : - Tags -/xmlrpc

Aucun média correspondant à vos critères n’est disponible sur le site.

Autres articles (85)

  • Websites made ​​with MediaSPIP

    2 mai 2011, par

    This page lists some websites based on MediaSPIP.

  • Amélioration de la version de base

    13 septembre 2013

    Jolie sélection multiple
    Le plugin Chosen permet d’améliorer l’ergonomie des champs de sélection multiple. Voir les deux images suivantes pour comparer.
    Il suffit pour cela d’activer le plugin Chosen (Configuration générale du site > Gestion des plugins), puis de configurer le plugin (Les squelettes > Chosen) en activant l’utilisation de Chosen dans le site public et en spécifiant les éléments de formulaires à améliorer, par exemple select[multiple] pour les listes à sélection multiple (...)

  • Emballe médias : à quoi cela sert ?

    4 février 2011, par

    Ce 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 (5549)

  • How to speed ffmpeg transform on Raspberry Pi 4 8gb

    19 décembre 2023, par Boaztheostrich

    I am attempting to rotate a 1920x1080 video stream coming into my pi from a elgato usb capture card. This is then being output as a 480x800 stream.

    


    Currently I have about 5 seconds of latency, I am trying to reduce this as much as possible.

    


    Here is my current command.

    


    ffmpeg -f v4l2 -input_format yuyv422 -r 30 -i /dev/video0 -vf "transpose=1,scale=800:480,format=yuv420p" -c:v h264_v4l2m2m -b:v 250k -f h264 pipe:1 | ffplay -fflags nobuffer -


    


    Thanks !

    


  • Increase processing speed FFmpeg

    12 juillet 2018, par Yarik Denisyk

    I try to scale video from a gallery using FFmpeg library on android.
    I am using the following command :

    val command = arrayOf("-i", background, "-vf", "scale=$width :$height", out)

    But for it`s very slow. For the video 10 sec, I need to wait around one minute.
    My video resolution 2160x3840
    As I understand now FFmpeg uses CPU for processing. Do have some way to use GPU or make it process faster ?

  • How to slow down the ouput speed of ffmpeg while streaming to a RTMP server ?

    25 avril 2023, par Loc Bui Nhien

    I'm currently trying to process multipul short videos (each is about 0.5s long) to be stream on a RTMP server. However, the output/fps/speed when sending is too high (results printed here), making the server crashed very often.

    


    Here is the the code and settings that I'm using :

    


    import cv2
import ffmpeg
import av
import numpy as np
import os
import subprocess

url = "rtmp://..."
key = "..."
rtmp_url = url + "/" + key

cap = cv2.VideoCapture('traffic.mp4')

# gather video info to ffmpeg
fps = int(cap.get(cv2.CAP_PROP_FPS))
width = int(cap.get(cv2.CAP_PROP_FRAME_WIDTH))
height = int(cap.get(cv2.CAP_PROP_FRAME_HEIGHT))

# command and params for ffmpeg
command = ['ffmpeg',
           '-y',
           '-f', 'rawvideo',
           '-vcodec', 'rawvideo',
           '-pix_fmt', 'bgr24',
           '-s', "{}x{}".format(width, height),
           '-i', '-',
           '-r', '20',
           '-c:v', 'libx264',
           '-pix_fmt', 'yuv420p',
           '-preset', 'slow',
           '-f', 'flv',
           rtmp_url]

# using subprocess and pipe to fetch frame data
p = subprocess.Popen(command, stdin=subprocess.PIPE, shell=True)

received_video_path = 'ReceivedRecording'
while True:
    video_files = [filenames for filenames in sorted(os.listdir(received_video_path), reverse=True)]
    # Loop through the videos and concatenate them
    for filename in video_files[:len(video_files)-3]:
        video = cv2.VideoCapture(os.path.join(received_video_path,filename))

        # Loop through the frames of each video
        while True:
            ret, frame = video.read()
            if not ret:
                # End of video, move to next video
                video.release()
                break
            
            p.stdin.write(frame.tobytes())

        os.remove(os.path.join(received_video_path, filename))


    


    The same settings work fine with the webcam, but I can not control the speed and fps of it sending to the server. The stream on the server seems to work fine with a steady 20fps as intended.