Recherche avancée

Médias (5)

Mot : - Tags -/open film making

Autres articles (53)

  • Des sites réalisés avec MediaSPIP

    2 mai 2011, par

    Cette page présente quelques-uns des sites fonctionnant sous MediaSPIP.
    Vous pouvez bien entendu ajouter le votre grâce au formulaire en bas de page.

  • MediaSPIP v0.2

    21 juin 2013, par

    MediaSPIP 0.2 est la première version de MediaSPIP stable.
    Sa date de sortie officielle est le 21 juin 2013 et est annoncée ici.
    Le fichier zip ici présent contient uniquement les sources de MediaSPIP en version standalone.
    Comme pour la version précédente, 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 (...)

  • Mise à disposition des fichiers

    14 avril 2011, par

    Par défaut, lors de son initialisation, MediaSPIP ne permet pas aux visiteurs de télécharger les fichiers qu’ils soient originaux ou le résultat de leur transformation ou encodage. Il permet uniquement de les visualiser.
    Cependant, il est possible et facile d’autoriser les visiteurs à avoir accès à ces documents et ce sous différentes formes.
    Tout cela se passe dans la page de configuration du squelette. Il vous faut aller dans l’espace d’administration du canal, et choisir dans la navigation (...)

Sur d’autres sites (3137)

  • Get Youtube video original mp4 URL in Googlevideo.com [on hold]

    28 février 2015, par Matan Yedayev
  • convert a normal video to youtube short

    28 mai 2022, par Un1xCr3w

    hello i have videos with width of 1920px and height of 1080 and i wanna crop it at the center and create a youtube short with it

    


    iam using youtube dl wrap node js library
here is my code example

    


    var ffmpeg = require("fluent-ffmpeg");
const fs = require("fs");
let rawdata = fs.readFileSync("./json-files/small.json");
let clips = JSON.parse(rawdata);

function convertIt(fileName) {
  return new Promise((resolve, reject) => {
    ffmpeg(`./media-new/${fileName}`)
      .size("480x640")
      .aspect("9:16")
      .autopad()
      .videoBitrate("4000k")
      .on("end", function () {
        console.log("file has been converted succesfully");
        resolve("foo");
      })
      .on("error", function (err) {
        console.log("an error happened: " + err.message);
        reject(err);
      })
      // save to file
      .save(`./lib/${fileName}`);
  });
}

async function convertToShorts() {
  for (const iterator of clips) {
    await convertIt(`${iterator.id}.mp4`);
  }
}

convertToShorts();


    


  • youtube-dl doesn't see ffmpeg in the executable

    30 novembre 2019, par Михаил Муратов

    I am writing a program to download music and videos via youtube-dl in python. Next, I pack the script into an executable file via pyinstaller.

    The problem is that youtube-dl (in the executable) doesn’t see ffmpeg and ffprobe, even though I add them to the spec file.

    As far as I know youtube-dl has the ffmpeg_location parameter, but that’s only in the console version. Maybe it is also for python ? But I didn’t find any information about it.

    How do I solve the problem ?


    command to create executable :

    pyinstaller --upx-dir=c:\users\exe-builder c:\users\exe-builder\youtubedownloader\main.spec

    .spec file :

    # -*- mode: python -*
    block_cipher = None

    a = Analysis(['C:\\Users\\Exe-Builder\\YoutubeDownloader\\main.py'],
                pathex=['C:\\Users\\Exe-Builder\\YoutubeDownloader'],
                binaries=[],
                datas=[],
                hiddenimports=[],
                hookspath=[],
                runtime_hooks=[],
                excludes=[],
                win_no_prefer_redirects=False,
                win_private_assemblies=False,
                cipher=block_cipher,
                noarchive=False)

    a.binaries += [('ffmpeg.exe','C:\\Users\\Exe-Builder\\YoutubeDownloader\\ffmpeg.exe', "Binary"),
                  ('ffprobe.exe','C:\\Users\\Exe-Builder\\YoutubeDownloader\\ffprobe.exe', "Binary")]

    pyz = PYZ(a.pure, a.zipped_data,
                cipher=block_cipher)
    exe = EXE(pyz,
             a.scripts,
             a.binaries,
             a.zipfiles,
             a.datas,
             [],
             name='MediaDownloader',
             debug=False,
             bootloader_ignore_signals=False,
             strip=False,
             upx=True,
             upx_exclude=['vcruntime140.dll'],
             runtime_tmpdir=None,
             console=True)

    very small example :

    import youtube_dl

    url = 'https://www.youtube.com/watch?v=MIk55C1s0ns'
    outtmpl = '\\%(title)s.%(ext)s'
    ydl_opts = {'format': 'bestaudio/best',
               'outtmpl': outtmpl,
               'postprocessors': [{'key': 'FFmpegExtractAudio',
                                   'preferredcodec': 'mp3',
                                   'preferredquality': '128'}]}

    with youtube_dl.YoutubeDL(ydl_opts) as ydl:
       info_dict = ydl.extract_info(url, download=True)

    error message :

    youtube_dl.utils.DownloadError: ERROR: ffprobe/avprobe and ffmpeg/avconv not found. Please install one.