Recherche avancée

Médias (0)

Mot : - Tags -/presse-papier

Aucun média correspondant à vos critères n’est disponible sur le site.

Autres articles (64)

  • Le profil des utilisateurs

    12 avril 2011, par

    Chaque utilisateur dispose d’une page de profil lui permettant de modifier ses informations personnelle. Dans le menu de haut de page par défaut, un élément de menu est automatiquement créé à l’initialisation de MediaSPIP, visible uniquement si le visiteur est identifié sur le site.
    L’utilisateur a accès à la modification de profil depuis sa page auteur, un lien dans la navigation "Modifier votre profil" est (...)

  • Configurer la prise en compte des langues

    15 novembre 2010, par

    Accéder à la configuration et ajouter des langues prises en compte
    Afin de configurer la prise en compte de nouvelles langues, il est nécessaire de se rendre dans la partie "Administrer" du site.
    De là, dans le menu de navigation, vous pouvez accéder à une partie "Gestion des langues" permettant d’activer la prise en compte de nouvelles langues.
    Chaque nouvelle langue ajoutée reste désactivable tant qu’aucun objet n’est créé dans cette langue. Dans ce cas, elle devient grisée dans la configuration et (...)

  • XMP PHP

    13 mai 2011, par

    Dixit Wikipedia, XMP signifie :
    Extensible Metadata Platform ou XMP est un format de métadonnées basé sur XML utilisé dans les applications PDF, de photographie et de graphisme. Il a été lancé par Adobe Systems en avril 2001 en étant intégré à la version 5.0 d’Adobe Acrobat.
    Étant basé sur XML, il gère un ensemble de tags dynamiques pour l’utilisation dans le cadre du Web sémantique.
    XMP permet d’enregistrer sous forme d’un document XML des informations relatives à un fichier : titre, auteur, historique (...)

Sur d’autres sites (5865)

  • spawn ENOENT error when trying to convert to mp3

    14 août 2021, par seriously

    I was trying to make a youtube video to mp3 converter using an npm package called youtube-mp3-downloader the npm documentation says I have to download FFmpeg inorder for the program to run so I did download the FFmpeg windows build. And then I added the FFmpeg binary path to the code in order to run the program and get the expected output which is the mp3 file saved to a specified location and the output data but every time I run the program I get the error spawn ../client/ffmpeg-4.4-full_build/bin ENOENT. When I research about the error I came accross that I have to install the ffmpeg and the fluent-ffmpeg dependencies to my node module and so I did but the error is still there. What am I doing wrong ? Any help is appreciated. Feel free to comment if you have any questions. Thanks in advance.

    


    

    

    var YoutubeMp3Downloader = require("youtube-mp3-downloader");

//Configure YoutubeMp3Downloader with your settings
var YD = new YoutubeMp3Downloader({
  // FFmpeg binary location *Where the error is arising
  "ffmpegPath": "../client/ffmpeg-4.4-full_build/bin",
  // Output file location (default: the home directory)
  "outputPath": "../client/audio",
  // Desired video quality (default: highestaudio)
  "youtubeVideoQuality": "highestaudio",
  "queueParallelism": 2, // Download parallelism (default: 1)
  // Interval in ms for the progress reports (default: 1000)
  "progressTimeout": 2000,
  "allowWebm": false // Enable download from WebM sources (default: false)
});

//Download video and save as MP3 file
YD.download("Vhd6Kc4TZls");

YD.on("finished", function(err, data) {
  console.log(JSON.stringify(data));
});

YD.on("error", function(error) {
  console.log(error);
});

YD.on("progress", function(progress) {
  console.log(JSON.stringify(progress));
});

    


    


    



  • Read Output in Batch

    29 septembre 2016, par arielbeje

    I am using this code to try and download a video+subtitles using youtube-dl and then combine them using ffmpeg.

    I am trying to set the video/subtitle output to title.extension instead of the regular title id.extesion, but to do that youtube-dl has a command that outputs it like an echo command, so I need to read it.

    @echo off
    echo Write a link and press enter
    set /p link=
    cls

    youtube-dl.exe -u myusername -p mypassword --skip-download --sub-lang enUS --sub-format "ass" --output "%(uploader)s%(title)s.%(ext)s" "%link%"
    youtube-dl.exe -u myusername -p mypassword -f worst --ffmpeg-location "%cd%\ffmpeg.exe" --hls-prefer-ffmpeg --console-title --output "%(uploader)s%(title)s.%(ext)s" "%link%"

    youtube-dl.exe -u myusername -p mypassword --skip-download --get-title "%link%" > title.txt
    for /f "delims=" %%x in (title.txt) do set title=%%x
    ffmpeg.exe -i "%cd%\%title%.flv" -vf "ass=%cd%\%title%.ass" "%cd%\%title%.mkv"
    pause
  • ffmpeg installation on macOS for MoviePy fails with SSL error

    26 juillet 2018, par shmible

    I’m trying to write a Python program that uses MoviePy on Mac OS 10.11.16 to convert an MP4 file to GIF. I use :

    import moviepy.editor as mp

    and I get an error saying I need to call imageio.plugins.ffmpeg.download() so I can download ffmpeg. I use :

    import imageio
    imageio.plugins.ffmpeg.download()

    which gives me the following error :

    Imageio: 'ffmpeg.osx' was not found on your computer; downloading it now.
    Error while fetching file: <urlopen error="error" certificate="certificate" verify="verify" failed="failed">.
    Error while fetching file: <urlopen error="error" certificate="certificate" verify="verify" failed="failed">.
    Error while fetching file: <urlopen error="error" certificate="certificate" verify="verify" failed="failed">.
    Error while fetching file: <urlopen error="error" certificate="certificate" verify="verify" failed="failed">.
    Traceback (most recent call last):
     File "", line 1, in <module>
       imageio.plugins.ffmpeg.download()
     File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/imageio/plugins/ffmpeg.py", line 55, in download
       get_remote_file('ffmpeg/' + FNAME_PER_PLATFORM[plat])
     File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/imageio/core/fetching.py", line 121, in get_remote_file
       _fetch_file(url, filename)
     File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/imageio/core/fetching.py", line 177, in _fetch_file
       os.path.basename(file_name))
    OSError: Unable to download 'ffmpeg.osx'. Perhaps there is a no internet connection? If there is, please report this problem.
    </module></urlopen></urlopen></urlopen></urlopen>

    I definitely have an internet connection. I found this link, and tried installing with Homebrew and Static builds, but neither have worked. It seems like compiling it myself would be a little too advanced for me (I’ve only briefly looked into it). I used imageio.plugins.ffmpeg.download() on IDLE. I read something about using PyCharm to run the MoviePy code, but I get the same initial error. ffmpeg is currently in my /usr/local/bin folder. Any suggestions are welcome. Thank for your help.

    Edit : I’m using Python 3.6.1