Recherche avancée

Médias (0)

Mot : - Tags -/flash

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

Autres articles (107)

  • MediaSPIP version 0.1 Beta

    16 avril 2011, par

    MediaSPIP 0.1 beta est la première version de MediaSPIP décrétée comme "utilisable".
    Le fichier zip ici présent contient uniquement les sources de MediaSPIP en version standalone.
    Pour avoir une installation fonctionnelle, il est nécessaire d’installer manuellement l’ensemble des dépendances logicielles sur le serveur.
    Si vous souhaitez utiliser cette archive pour une installation en mode ferme, il vous faudra également procéder à d’autres modifications (...)

  • MediaSPIP 0.1 Beta version

    25 avril 2011, par

    MediaSPIP 0.1 beta is the first version of MediaSPIP proclaimed as "usable".
    The zip file provided here only contains the sources of MediaSPIP in its standalone version.
    To get a working installation, you must manually install all-software dependencies on the server.
    If you want to use this archive for an installation in "farm mode", you will also need to proceed to other manual (...)

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

Sur d’autres sites (11063)

  • Using FFMPEG command to read the frame and show using the inshow function in opencv

    28 novembre 2024, par HARSH BHATNAGAR

    I am trying to get the frame using the ffmpeg command and show using the opencv function cv2.imshow(). This snippet gives the black and white image on the RTSP Stream link . Output is given below link [ output of FFmpeg link].
I have tried the ffplay command but it gives the direct image . i am not able to access the frame or apply the image processing.

    


    Output of FFMPEG

    


    import cv2
import subprocess as sp
command = [ 'C:/ffmpeg/ffmpeg.exe',
            '-i', 'rtsp://192.168.1.12/media/video2',
            '-f', 'image2pipe',
            '-pix_fmt', 'rgb24',
            '-vcodec', 'rawvideo', '-']


import numpy
pipe = sp.Popen(command, stdout = sp.PIPE, bufsize=10**8)
while True:
    raw_image = pipe.stdout.read(420*360*3)
   # transform the byte read into a numpy array
    image =  numpy.fromstring(raw_image, dtype='uint8')
    image = image.reshape((360,420,3))
    cv2.imshow('hello',image)
    cv2.waitKey(1)
    # throw away the data in the pipe's buffer.
    pipe.stdout.flush()


    


  • avcodec/dvbsubdec : Fix conditions for fallback to default resolution

    3 décembre 2021, par softworkz
    avcodec/dvbsubdec : Fix conditions for fallback to default resolution
    

    The previous code expected a segment of type CLUT definition to exist
    in order to accept a set of segments to be complete.
    This was an incorrect assumption as the presence of a CLUT segment
    is not mandatory.
    (version 1.6.1 of the spec is probably a bit more clear about this
    than earlier versions : https://www.etsi.org/deliver/etsi_en/
    300700_300799/300743/01.06.01_20/en_300743v010601a.pdf)

    The incorrect condition prevented proper fallback to using the default
    resolution for the decoding context.

    This also adds variables and moves the fallback check to the outside
    for better clarity.

    Signed-off-by : softworkz <softworkz@hotmail.com>

    • [DH] libavcodec/dvbsubdec.c
  • why mpd file contain same resolution AdaptationSet

    18 mars, par Jahid Hasan Antor

    this is the code that i used. this code create a minifest.mpd file, with the same resolution AdaptationSet set

    &#xA;

    const createCourse = async (req: Request, res: Response, next: NextFunction) => {&#xA;    try {&#xA;        const VIDEO_STORAGE_PATH = path.join(__dirname, "../../public/uploads").replace(/\\/g, "/");&#xA;        const videoId = req.body.videoId;&#xA;        const inputPath = path.join(VIDEO_STORAGE_PATH, "original", `${videoId}.mp4`).replace(/\\/g, "/");&#xA;        const outputDir = path.join(VIDEO_STORAGE_PATH, "dash", videoId).replace(/\\/g, "/");&#xA;&#xA;        if (!fs.existsSync(outputDir)) {&#xA;            fs.mkdirSync(outputDir, { recursive: true });&#xA;        }&#xA;&#xA;        if (!ffmpegStatic) {&#xA;            return next(new Error("❌ ffmpegStatic path is null"));&#xA;        }&#xA;&#xA;        ffmpeg.setFfmpegPath(ffmpegStatic);&#xA;&#xA;        const qualities = [&#xA;            { resolution: "1280x720", bitrate: "1800k" },&#xA;            { resolution: "854x480", bitrate: "1200k" },&#xA;            { resolution: "640x360", bitrate: "800k" },&#xA;            { resolution: "426x240", bitrate: "400k" }&#xA;        ];&#xA;&#xA;        const outputMpd = path.join(outputDir, "manifest.mpd").replace(/\\/g, "/");&#xA;&#xA;        // Create FFmpeg command&#xA;        let command = ffmpeg(inputPath)&#xA;            .output(outputMpd)&#xA;            .outputOptions([&#xA;                &#x27;-f dash&#x27;, // Output format&#xA;                &#x27;-seg_duration 4&#x27;, // Segment duration in seconds&#xA;                &#x27;-window_size 10&#x27;, // Number of segments in the manifest&#xA;                &#x27;-init_seg_name init-stream$RepresentationID$.webm&#x27;, // Name for initialization segments&#xA;                &#x27;-media_seg_name chunk-stream$RepresentationID$-$Number%05d$.webm&#x27;, // Name for media segments&#xA;            ]);&#xA;&#xA;        // Add multiple resolutions&#xA;        qualities.forEach(({ resolution, bitrate }) => {&#xA;            console.log(&#x27;esolution, bitrate :>> &#x27;, resolution, bitrate);&#xA;            command&#xA;                .outputOptions([&#xA;                    `-map 0:v`, // Map the video stream&#xA;                    `-s ${resolution}`, // Set resolution&#xA;                    `-b:v ${bitrate}`, // Set bitrate&#xA;                    `-c:v libvpx-vp9`, // Use VP9 codec&#xA;                    `-c:a libopus`, // Use Opus codec&#xA;                ]);&#xA;        });&#xA;&#xA;        command&#xA;            .on("end", () => {&#xA;                console.log(`&#128640; Video processing complete: ${outputMpd}`);&#xA;            })&#xA;            .on("error", (err) => {&#xA;                console.error("❌ ffmpeg error:", err);&#xA;                next(err);&#xA;            })&#xA;            .run();&#xA;

    &#xA;