Recherche avancée

Médias (1)

Mot : - Tags -/lev manovitch

Autres articles (45)

  • Demande de création d’un canal

    12 mars 2010, par

    En fonction de la configuration de la plateforme, l’utilisateur peu avoir à sa disposition deux méthodes différentes de demande de création de canal. La première est au moment de son inscription, la seconde, après son inscription en remplissant un formulaire de demande.
    Les deux manières demandent les mêmes choses fonctionnent à peu près de la même manière, le futur utilisateur doit remplir une série de champ de formulaire permettant tout d’abord aux administrateurs d’avoir des informations quant à (...)

  • Installation en mode standalone

    4 février 2011, par

    L’installation de la distribution MediaSPIP se fait en plusieurs étapes : la récupération des fichiers nécessaires. À ce moment là deux méthodes sont possibles : en installant l’archive ZIP contenant l’ensemble de la distribution ; via SVN en récupérant les sources de chaque modules séparément ; la préconfiguration ; l’installation définitive ;
    [mediaspip_zip]Installation de l’archive ZIP de MediaSPIP
    Ce mode d’installation est la méthode la plus simple afin d’installer l’ensemble de la distribution (...)

  • MediaSPIP en mode privé (Intranet)

    17 septembre 2013, par

    À partir de la version 0.3, un canal de MediaSPIP peut devenir privé, bloqué à toute personne non identifiée grâce au plugin "Intranet/extranet".
    Le plugin Intranet/extranet, lorsqu’il est activé, permet de bloquer l’accès au canal à tout visiteur non identifié, l’empêchant d’accéder au contenu en le redirigeant systématiquement vers le formulaire d’identification.
    Ce système peut être particulièrement utile pour certaines utilisations comme : Atelier de travail avec des enfants dont le contenu ne doit pas (...)

Sur d’autres sites (5898)

  • Why i'm failing to download mp4 file using youtube-dl in python

    9 décembre 2019, par Joao

    Python noob :(

    I created a script that downloads any youtube video.

    Then the script inserts a subtitle into the video and that works fine.

    However, I have a problem, I can’t make the script always download the video in mp4. Most of the time it is downloaded in mkv and i can’t understand why that happens and how can I change the code in order to always download the video in the format I prefer.

    The function in charge to download the video is this one :

    def video_download():
       #global resolution
       try:
           print(linkvideo)
           ydl_opts = {
               'format': 'bestvideo[ext=mp4]+bestaudio/best',
               'outtmpl': video_id+"."+'%(ext)s'
               #'bestvideo': 'mp4',
               #'bestaudio': 'm4a',
               #'ext': 'mp4'
           }
           with youtube_dl.YoutubeDL(ydl_opts) as ydl:
               ydl.download([linkvideo])
               result = ydl.extract_info("{}".format(linkvideo))
               title = result.get("id", None)
               videoext = result.get("ext", None)
               resolution = result.get("resolution", None)
       except:
           print("falhou")
           pass
       global ficheiro
       ficheiro2 = str(title)+"."+"mkv"
       ficheiro =""
       for i in ficheiro2:
           if (i == '"' or i =="'" or i =="/"):
               pass
           else:
               ficheiro += i

    Can any one help me ? Thanks in advance.

    I got it, thanks to everyone who tried to help me.

    The problem is this : when we try to download any video with the opts i’ve selected, youtube-dl will download the best video/audio combination in the same file, so I’ve added the following in my code :

    ytdl = YoutubeDL()
       result = ytdl.extract_info(linkvideo, download=False)
       formats = result['formats']
       formato = ""
       formatoaudio =  ""
       extaudio = ""
       for format in formats:
           if format['format_note'] == "1080p" and format['ext'] == "mp4":
               print(format)
               formato = (format['format_id'])
               break
           else:
               print("no 1080p mp4?!")

       if formato == "":
           for format in formats:
               if format['format_note'] == "720p" and format['ext'] == "mp4":
                   print(format)
                   formato = (format['format_id'])
                   break
               else:
                   print("no 720p mp4")

    Then I did the same to the sound file, checking if there is any m4a or webm sound file. To finish I’m joining both files using FFmpeg.

    Maybe this is not the best solution, but I’m still learning. :)

    Thank you all

  • How to download m3u8 playlist with URL redirection ? (blob URL,HydraX, JW Player version 8.4.2)

    17 novembre 2019, par wltprgm

    The video in https://hydrax.net/ is using HLS, .m3u8 file, direct link is https://hydrax.net/demo/hydrax.html (from the iframe src).

    However, youtube-dl couldn’t read from the .m3u8 file I downloaded from blob in chrome.

    And using ffmpeg method (which usually works) to download from the .m3u8 file failed because the first segment of the file is a URL redirect

    Error when loading first segment 'https://i.donald-gaines.xyz/redirect/7qC173pnWiDwe2TumUTYnzX4WdbPn8XJDzhqDzXPo39PWtX4EaAxLq7FLUW17aI/WhsiWh1RO6oSXzr6QqkTOgljgRrXBgpJtQf6gMBAC5Jq95JkuQlWKpfpgPoo/BSGGloj6MOe7cO4K9HoDj76PRzjSVoiwcJ1Xl34kc3Z5/Bl2WS3KO8WsicRVG8l1EBoi3RN2DnqZx6o13U56YnDBv'
    2b0bdf87-656f-4880-8357-f7fd6329b2f8.m3u8: Invalid data found when processing input

    Somebody asked the same question in reddit some days ago : link

  • Do ffmpeg create thumbnail download all of file via URL nodejs ?

    11 novembre 2019, par Nam Nguyễn

    I am creating a thumbnail from video URL by ffmpeg.

    This is my code :

    function createThumbnail(videoURL, keyFileThumb) {
       return new Promise((resolve, reject) => {
           let tmpFile = createWriteStream(`./${keyFileThumb}`)
           const ffmpeg = spawn(ffmpegPath, [
               '-ss',
               '00:00:01.000',
               '-i',
               videoURL,
               '-frames:v',
               '1',
               '-f',
               'image2',
               '-c:v',
               'mjpeg',
               'pipe:1'
           ])

           ffmpeg.stdout.pipe(tmpFile)

           ffmpeg.on('close', function (code) {
               tmpFile.end()
               resolve(code)
           })

           ffmpeg.on('error', function (err) {
               console.log(err)
               reject(err)
           })
       })
    }

    I just want to create thumbnail from stream video URL then disconnect. I do not want download all of file to generate thumbnail in few second of video.