Recherche avancée

Médias (91)

Autres articles (60)

  • Les vidéos

    21 avril 2011, par

    Comme les documents de type "audio", Mediaspip affiche dans la mesure du possible les vidéos grâce à la balise html5 .
    Un des inconvénients de cette balise est qu’elle n’est pas reconnue correctement par certains navigateurs (Internet Explorer pour ne pas le nommer) et que chaque navigateur ne gère en natif que certains formats de vidéos.
    Son avantage principal quant à lui est de bénéficier de la prise en charge native de vidéos dans les navigateur et donc de se passer de l’utilisation de Flash et (...)

  • Websites made ​​with MediaSPIP

    2 mai 2011, par

    This page lists some websites based on MediaSPIP.

  • Possibilité de déploiement en ferme

    12 avril 2011, par

    MediaSPIP peut être installé comme une ferme, avec un seul "noyau" hébergé sur un serveur dédié et utilisé par une multitude de sites différents.
    Cela permet, par exemple : de pouvoir partager les frais de mise en œuvre entre plusieurs projets / individus ; de pouvoir déployer rapidement une multitude de sites uniques ; d’éviter d’avoir à mettre l’ensemble des créations dans un fourre-tout numérique comme c’est le cas pour les grandes plate-formes tout public disséminées sur le (...)

Sur d’autres sites (11701)

  • Python - How to convert .mkv videos to .mp4 videos

    2 septembre 2022, par sabari

    I have two folders.
Download folder and converted folder.

    


    I want to convert files from .mkv to .mp4

    


    import os
import boto3
import ffmpeg
from os import path, makedirs

downloadFolder = 'D:'+os.sep+'abc'+os.sep+'def'+os.sep+'downloaded'
convertedFolder = 'D:'+os.sep+'abc'+os.sep+'def'+os.sep+'converted'

#find the number of files in the Downloaded folder
initial_count = 0
for path in os.listdir(downloadFolder):
    if os.path.isfile(os.path.join(downloadFolder, path)):
        initial_count += 1
print("Files downloaded")
print(initial_count)

# convert all files from .mkv to .mp4
source_folder = downloadFolder
for file_name in os.listdir(source_folder):
    try:
        # construct full file path
        source = source_folder + os.sep + file_name
        print("source"+source)
        destination = convertedFolder +os.sep +file_name
        # copy only files
        if os.path.isfile(source):
            name, ext = os.path.splitext(file_name)
            outFileName = convertedFolder + os.sep + name + '.mp4'
            # convert .mkv into .mp4
            ffmpeg.input(source).output(outFileName).run()
    except Exception as e:
        # print("Exception "+ key['Key'])
        print("error")
        print(e)


    


    The below is the error i get because of ffmpeg

    


    error
[WinError 2] The system cannot find the file specified


    


    I also tried moviepy library. But couldnt solve.
Please let me know a solution.

    


    Thanks.

    


  • FFMPEG - Concat 3 videos with one of the videos becoming a picture in picture overlay

    7 décembre 2022, par John

    I have been getting to grips with FFMPEG for the last few days...so please excuse my lack of knowledge. It's very much early days.

    


    I need to join 3 video elements together with one of the videos becoming an overlay at a specific time.

    


    intro.mp4

    


    mainvideo.mp4

    


    endboard.mp4

    


    I need the intro.mp4 to bolt on to the front of the mainvideo.mp4 and then ideally with 20 seconds to go before the end of the mainvideo.mp4, I need the endboard.mp4 video to be bolted on to the sequence and take over the frame. When this happens, I then need the mainvideo.mp4 to be overlayed in the top left corner and continue playing seamlessly through the transition.

    


    I also need the audio from the main video to play until the end of the video.

    


    I currently achieve this but putting all of the video elements into Premiere and exporting them out but I know this process can be much quicker with FFMPEG. For reference, here is an example of how it looks. If you skip to the end of the video below (just after 45 mins into the video) as the credits are rolling you will see the main video transition to the picture in picture overlay, and the endboard video take over the main frame.

    


    https://www.youtube.com/watch?v=RtgIvWxZUwM&t=2723s

    


    There will be lots of mainvideo.mp4 files that this will be applied to individually, and the lengths of these videos will always be different. I am hoping that there is a way to have the transition to the endboard.mp4 happen relative to 20secs before the end of the files. If not I guess I would have to manually input the time I want this change over transition to happen.

    


    I roughly understand in theory what needs to be done, but being so new to this world I am really unsure of how something this complicated would be pieced together.

    


    If there is anyone out there that can help me , it would be greatly appreciated !

    


    I have got my head around the process of merging videos together with a simple concat command and I can see that overlaying a video in the top left corner of the frame is also possible...but my brain cannot figure out the sequence of events that needs to happen to bolt the intro video on to the main video....and then have the main video transition into the picture in picture overlay video at a specific time, while also bolting on the endboard video for the main video to overlay onto.

    


    Any help for a complete newb would be so unbelievably appreciated !

    


  • opencv cmake didn't find latest ffmpeg libs

    15 décembre 2018, par Eric

    Here the output of the ffmpeg command :

    ffmpeg version git-2014-01-20-4014b40 Copyright (c) 2000-2014 the FFmpeg developers
    built on Jan 20 2014 14:18:13 with gcc 4.8 (Ubuntu/Linaro 4.8.1-10ubuntu9)
    configuration: --extra-libs=-ldl --enable-gpl --enable-libass --enable-libfdk-aac --    enable-libmp3lame --enable-libopus --enable-libtheora --enable-libvorbis --enable-libvpx --  enable-libx264 --enable-nonfree --enable-x11grab
    libavutil      52. 63.100 / 52. 63.100
    libavcodec     55. 48.101 / 55. 48.101
    libavformat    55. 25.100 / 55. 25.100
    libavdevice    55.  5.102 / 55.  5.102
    libavfilter     4.  1.100 /  4.  1.100
    libswscale      2.  5.101 /  2.  5.101
    libswresample   0. 17.104 /  0. 17.104
    libpostproc    52.  3.100 / 52.  3.100
    Hyper fast Audio and Video encoder
    usage: ffmpeg [options] [[infile options] -i infile]... {[outfile options] outfile}...

    When running CmakeLists.txt for Opencv 2.4.8 installation :

    cmake -DCMAKE_BUILD_TYPE=RELEASE -DCMAKE_INSTALL_PREFIX=/usr/local -DBUILD_NEW_PYTHON_SUPPORT=ON -DWITH_TBB=ON -DWITH_V4L=ON -DWITH_QT=ON -DWITH_OPENGL=ON -DWITH_EIGEN=ON -DWITH_OPENEXR=ON ..

    I get :

    --   Video I/O:
    --     DC1394 1.x:                  NO
    --     DC1394 2.x:                  YES (ver 2.2.1)
    --     FFMPEG:                      YES
    --       codec:                     YES (ver 53.35.0)
    --       format:                    YES (ver 53.21.1)
    --       util:                      YES (ver 51.22.1)
    --       swscale:                   YES (ver 2.1.0)
    --       gentoo-style:              YES
    --     GStreamer:                  
    --       base:                      YES (ver 0.10.36)
    --       app:                       YES (ver 0.10.36)
    --       video:                     YES (ver 0.10.36)

    My question : Why opencv didn’t link with the lastest libavutil, libavcodec, etc ...