Recherche avancée

Médias (1)

Mot : - Tags -/copyleft

Autres articles (57)

  • Submit enhancements and plugins

    13 avril 2011

    If you have developed a new extension to add one or more useful features to MediaSPIP, let us know and its integration into the core MedisSPIP functionality will be considered.
    You can use the development discussion list to request for help with creating a plugin. As MediaSPIP is based on SPIP - or you can use the SPIP discussion list SPIP-Zone.

  • Utilisation et configuration du script

    19 janvier 2011, par

    Informations spécifiques à la distribution Debian
    Si vous utilisez cette distribution, vous devrez activer les dépôts "debian-multimedia" comme expliqué ici :
    Depuis la version 0.3.1 du script, le dépôt peut être automatiquement activé à la suite d’une question.
    Récupération du script
    Le script d’installation peut être récupéré de deux manières différentes.
    Via svn en utilisant la commande pour récupérer le code source à jour :
    svn co (...)

  • Creating farms of unique websites

    13 avril 2011, par

    MediaSPIP platforms can be installed as a farm, with a single "core" hosted on a dedicated server and used by multiple websites.
    This allows (among other things) : implementation costs to be shared between several different projects / individuals rapid deployment of multiple unique sites creation of groups of like-minded sites, making it possible to browse media in a more controlled and selective environment than the major "open" (...)

Sur d’autres sites (12521)

  • Not able to play video file in Qt5 based Web browser on Linux ARM machine

    20 février 2016, par user3436349

    I am using Yocto Buildsystem to generate customized Linux Image with Qt5.4
    support in it for TI AM335x based ARM platform, here in Yocto I have selected
    components those are required for Qt5 based Webbrowser so as to play HTML5 audio
    and video files such as :
    - qtmultimedia
    - gstreamer (1.0)
    - qtscript
    - qtwebsockets
    - qtimageformats
    - libgles-omap3
    - lighttpd
    - gst-ffmpeg
    - gst-fluendo-mp3
    - gstreamer (0.10)

    Here after building the final image. I found that there are
    both gstreamer and gstreamer-1.0 directories in /usr/lib, also the
    required ffmpeg libs are located in /usr/lib/gstreamer directory.
    But I suspect the webkit by default links to /usr/lib/gstreamer-1.0
    directory and hence cannot find required libs.

    When I tried the manually copy the ffmepg related libs in /usr/lib/gstreamer-1.0
    directory from /usr/lib/gstreamer, then I got the libav related version error.

    Please guide me regarding who to configure webkit or webcore .bb file so that
    it links to both the gstreamer directories in /usr/lib and can thus play
    HTML5 audio and video files in qt5 based web-browser.

  • Play video using ffmpeg

    17 juin 2023, par MCD

    The following code stuck in the middle of the video. I want to play the video start at start_seconds and end at end_seconds.

    


    import subprocess
import cv2
import numpy as np
import subprocess

def play_video_with_ffmpeg(video_path, start_seconds, end_seconds):
print(start_seconds)

    # Set the desired frame size
    width = 920
    height = 600
    
    # Set the window position
    print("here")
    window_x = 600  # X position
    window_y = 10  # Y position
    cv2.namedWindow('Video Player', cv2.WINDOW_NORMAL)
    cv2.moveWindow('Video Player', window_x, window_y)
    
    # Build the ffmpeg command to skip to the desired start time and end time
    command = [
        'ffmpeg',
        '-ss', str(start_seconds),
        '-i', video_path,
        '-t', str((end_seconds - start_seconds)),
        '-vf', f'scale={width}:{height}',
        '-r', '30',
        '-f', 'image2pipe',
        '-pix_fmt', 'bgr24',
        '-vcodec', 'rawvideo',
        '-'
    ]
    
    # Open a subprocess to execute the ffmpeg command
    process = subprocess.Popen(command, stdout=subprocess.PIPE, stderr=subprocess.PIPE)
    
    # Create a buffer to hold the frame data
    buffer_size = width * height * 3
    frame_buffer = bytearray(buffer_size)
    
    while process.poll() is None:
        # Read the frame from the subprocess stdout into the buffer
        bytes_read = process.stdout.readinto(frame_buffer)
    
        if bytes_read == buffer_size:
            # Convert the frame buffer to a numpy array
            frame = np.frombuffer(frame_buffer, dtype='uint8').reshape((height, width, 3))
    
            # Resize the frame
            frame_resized = cv2.resize(frame, (width, height), interpolation=cv2.INTER_AREA)
    
            # Display the frame
            cv2.imshow('Video Player', frame_resized)
    
            if cv2.waitKey(1) & 0xFF == ord('q'):
                break
    
    process.stdout.close()
    process.stderr.close()
    cv2.destroyAllWindows()


    


    I expect to play the video start from start_second and end at end_second. I used cv2.set but it took long time to play from start_second.

    


  • Play audio out through specific output device with ffplay

    4 février 2018, par ComedicChimera

    I just have a quick question regarding ffplay (extension of ffmpeg) for Windows. I am trying to get it to allow me to play audio out of specific device (ie. a virtual audio cable), and I cannot find any documentation on how to do it.

    Here is my current command :

    "ffplay -loglevel panic -nodisp -volume volume -i url"

    I could not find any documentation of how to do this.

    If it is not possible to do this ffplay, I would like to ask if there is away to set a specific audio output device in Python 3 (as that is the language I am using to call ffplay)

    Thanks