Recherche avancée

Médias (1)

Mot : - Tags -/belgique

Autres articles (55)

  • Personnaliser en ajoutant son logo, sa bannière ou son image de fond

    5 septembre 2013, par

    Certains thèmes prennent en compte trois éléments de personnalisation : l’ajout d’un logo ; l’ajout d’une bannière l’ajout d’une image de fond ;

  • Ecrire une actualité

    21 juin 2013, par

    Présentez les changements dans votre MédiaSPIP ou les actualités de vos projets sur votre MédiaSPIP grâce à la rubrique actualités.
    Dans le thème par défaut spipeo de MédiaSPIP, les actualités sont affichées en bas de la page principale sous les éditoriaux.
    Vous pouvez personnaliser le formulaire de création d’une actualité.
    Formulaire de création d’une actualité Dans le cas d’un document de type actualité, les champs proposés par défaut sont : Date de publication ( personnaliser la date de publication ) (...)

  • Publier sur MédiaSpip

    13 juin 2013

    Puis-je poster des contenus à partir d’une tablette Ipad ?
    Oui, si votre Médiaspip installé est à la version 0.2 ou supérieure. Contacter au besoin l’administrateur de votre MédiaSpip pour le savoir

Sur d’autres sites (10540)

  • 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.

    


  • 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 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 !