Recherche avancée

Médias (2)

Mot : - Tags -/documentation

Autres articles (21)

  • MediaSPIP Core : La Configuration

    9 novembre 2010, par

    MediaSPIP Core fournit par défaut trois pages différentes de configuration (ces pages utilisent le plugin de configuration CFG pour fonctionner) : une page spécifique à la configuration générale du squelettes ; une page spécifique à la configuration de la page d’accueil du site ; une page spécifique à la configuration des secteurs ;
    Il fournit également une page supplémentaire qui n’apparait que lorsque certains plugins sont activés permettant de contrôler l’affichage et les fonctionnalités spécifiques (...)

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

  • Librairies et logiciels spécifiques aux médias

    10 décembre 2010, par

    Pour un fonctionnement correct et optimal, plusieurs choses sont à prendre en considération.
    Il est important, après avoir installé apache2, mysql et php5, d’installer d’autres logiciels nécessaires dont les installations sont décrites dans les liens afférants. Un ensemble de librairies multimedias (x264, libtheora, libvpx) utilisées pour l’encodage et le décodage des vidéos et sons afin de supporter le plus grand nombre de fichiers possibles. Cf. : ce tutoriel ; FFMpeg avec le maximum de décodeurs et (...)

Sur d’autres sites (7079)

  • ffpmeg - how to detect if video crop is completed ?

    30 septembre 2021, par Radespy

    Thanks in advance.

    


    I'm trying to crop a .mp4 video using an ffmpeg binary (within the context of an electron-react-app).

    


    (The binary is run in a child process using execFile() and outputs to a temp folder which is later deleted)

    


    ffmpeg varies considerably in the time it takes to complete the creation of a cropped video file (1sec to 18sec) depending on the computer (mac vs Windows).

    


    I need to read the cropped video file.

    


    I've set up an event listener in the Main process of electron

    


    
if (!monitorCroppedFile) {
        console.log(`${croppedFilePath} doesn't exist`);
      } else {
        console.log(`${croppedFilePath} exists !`)
        ...readFile...;


    


    Once monitorCroppedFile = true I read it using fs.readfile().

    


    The problem is that ffmpeg initally creates the cropped file path but it sometimes takes ages to complete the process of cropping.

    


    This results in the read file often being blank (as the read is triggered on detecting the file path of the cropped file).

    


    I've tried using -preset ultrafast in the ffmpeg arguments but this only improves things on Windows marginally.

    


    The problem doesn't occur on Macs.

    


    Can anybody suggest a possible solution ? Is there a way to detect when the crop is fully completed ?

    


    Many thanks.

    


  • Merge Audio and Video using ffmpeg - Python Lib [duplicate]

    15 janvier 2021, par badr

    i have tried

    


    import ffmpeg
video = ffmpeg.input('video.mp4')
audio = ffmpeg.input('audio.mp3')
ffmpeg.merge_outputs(video, audio).run()


    


    and it returns

    


    TypeError: Expected incoming stream(s) to be of one of the following types: ffmpeg.nodes.OutputStream; got <class>&#xA;</class>

    &#xA;

    and i have tried

    &#xA;

    import ffmpeg&#xA;video = ffmpeg.input(&#x27;video.mp4&#x27;)&#xA;audio = ffmpeg.input(&#x27;audio.mp3&#x27;)&#xA;ffmpeg.concat(video, audio, v=1, a=1).output(&#x27;finished_video.mp4&#x27;).run()&#xA;

    &#xA;

    and it returns

    &#xA;

    FileNotFoundError: [WinError 2] The system cannot find the file specified&#xA;

    &#xA;

    also i did try

    &#xA;

    import subprocess    &#xA;subprocess.run("ffmpeg -i video.mp4 -i audio.mp3 -c copy output.mp4")&#xA;

    &#xA;

    and it returns

    &#xA;

    &#x27;ffmpeg&#x27; is not recognized as an internal or external command&#xA;

    &#xA;

    how can i do it right ?

    &#xA;

  • How to estimate bandwidth / speed requirements for real-time streaming video ?

    19 juin 2016, par Vivek Seth

    For a project I’m working on, I’m trying to stream video to an iPhone through its headphone jack. My estimated bitrate is about 200kbps (If i’m wrong about this, please ignore that).

    I’d like to squeeze as much performance out of this bitrate as possible and sound is not important for me, only video. My understanding is that to stream a a real-time video I will need to encode it with some codec on-the-fly and send compressed frames to the iPhone for it to decode and render. Based on my research, it seems that H.265 is one of the most space efficient codecs available so i’m considering using that.

    Assuming my basic understanding of live streaming is correct, how would I estimate the FPS I could achieve for a given resolution using the H.265 codec ?

    The best solution I can think of it to take a video file, encode it with H.265 and trim it to 1 minute of length to see how large the file is. The issue I see with this approach is that I think my calculations would include some overhead from the video container format (AVI, MKV, etc) and from the audio channels that I don’t care about.