Recherche avancée

Médias (1)

Mot : - Tags -/lev manovitch

Autres articles (62)

  • Les autorisations surchargées par les plugins

    27 avril 2010, par

    Mediaspip core
    autoriser_auteur_modifier() afin que les visiteurs soient capables de modifier leurs informations sur la page d’auteurs

  • Publier sur MédiaSpip

    13 juin 2013

    Puis-je poster des contenus à partir d’une tablette Ipad ?
    Oui, si votre Médiaspip installé est à la version 0.2 ou supérieure. Contacter au besoin l’administrateur de votre MédiaSpip pour le savoir

  • HTML5 audio and video support

    13 avril 2011, par

    MediaSPIP uses HTML5 video and audio tags to play multimedia files, taking advantage of the latest W3C innovations supported by modern browsers.
    The MediaSPIP player used has been created specifically for MediaSPIP and can be easily adapted to fit in with a specific theme.
    For older browsers the Flowplayer flash fallback is used.
    MediaSPIP allows for media playback on major mobile platforms with the above (...)

Sur d’autres sites (11553)

  • Adding mp3 metadata with space in ffmpeg using bash [duplicate]

    15 septembre 2019, par ctrlnot

    This question already has an answer here :

    I have this bash script on downloading youtube videos then convert it to mp3 using youtube-dl and ffmpeg.

    #!/bin/bash

    ytlink=""
    outputFileName=""
    title=""
    artist=""
    album=""

    while getopts l:o:t:r:b: flag; do
     case "${flag}" in
       l) ytlink="${OPTARG}";;
       o) outputFileName="${OPTARG}";;
       t) title="${OPTARG}";;
       r) artist="${OPTARG}";;
       b) album="${OPTARG}";;
     esac
    done

    youtube-dl "$ytlink" --add-metadata --extract-audio --audio-format mp3 --output "temp.%(ext)s"

    tempFilename="temp.mp3"
    outputFileName="$outputFileName.mp3"

    args+=("-i" "$tempFilename" "-metadata" "title='$title'" "-metadata" "artist='$artist'" "-metadata" "album='$album'" "-metadata" "comment=Source:$ytlink")
    ffmpeg -loglevel debug ${args[@]} -acodec copy "$outputFileName"
    rm "$tempFilename"

    This script is fine if I have one word title/artist/album. However, if I have a space, ffmpeg interprets each word before space as another parameter. This is how I use this on command line :

    ./yttomp3.sh -l "https://www.youtube.com/watch?v=KwQnSHAilOQ" -o "Lee - Autumn Day" -t "Autumn Day" -r "Lee" -b "(Free) Lo-fi Type Beat - Autumn Day"

    The debug output of ffmpeg :

    Splitting the commandline.
    Reading option '-loglevel' ... matched as option 'loglevel' (set logging level) with argument 'debug'.
    Reading option '-i' ... matched as input url with argument 'temp.mp3'.
    Reading option '-metadata' ... matched as option 'metadata' (add metadata) with argument 'title='Autumn'.
    Reading option 'Day'' ... matched as output url.
    Reading option '-metadata' ... matched as option 'metadata' (add metadata) with argument 'artist='Lee''.
    Reading option '-metadata' ... matched as option 'metadata' (add metadata) with argument 'album='(Free)'.
    Reading option 'Lo-fi' ... matched as output url.
    Reading option 'Type' ... matched as output url.
    Reading option 'Beat' ... matched as output url.
    Reading option '-' ... matched as output url.
    Reading option 'Autumn' ... matched as output url.
    Reading option 'Day'' ... matched as output url.
    Reading option '-metadata' ... matched as option 'metadata' (add metadata) with argument 'comment=Source:https://www.youtube.com/watch?v=KwQnSHAilOQ'.
    Reading option '-acodec' ... matched as option 'acodec' (force audio codec ('copy' to copy stream)) with argument 'copy'.
    Reading option 'Lee - Autumn Day.mp3' ... matched as output url.
    Finished splitting the commandline.

    I tried enclosing the arguments to quotes on the script but it’s still not working. How should I deal with this ? Thanks.

  • Is it safe to ignore the error "Invalid UTF-8 in decoded subtitles text ; maybe missing -sub_charenc option Error while decoding stream" ?

    30 avril 2022, par Clogged-artery

    I was encoding a video with subtitles and I got the error, "Invalid UTF-8 in decoded subtitles text ; maybe missing -sub_charenc option. Error while decoding stream" but the video encoded anyway. What are the consequences of ignoring this error ? A google search showed a result of one guy saying it skips that sub so the resulting video will have missing subs. Can someone confirm this ?

    


    I know how to fix it but I have already converted 50+ videos with subtitles and I'm fairly certain that a few of them had this error. I just want someone to tell me that it's okay to ignore so I don't have to watch 200 hours of videos.

    


    Solution for fixing subtitle errors :

    


    Create a batch file and edit with the following :

    


    for %%a in ("*.srt") do ffmpeg -v 9 -loglevel 99 -sub_charenc CP1252 -i "%%a" "newfiles\%%~na.srt"
pause


    


  • Heroku : [Errno 13] Permission Denied : /app/ffmpeg.exe

    4 mars 2021, par GetTwoBirdsStonedAtOnce

    So I made a python bot and I wanted to equip it with the ability to play music. I have been following this tutorial.

    


    Unfortunately when I run the play command I get the [Errno 13] Permission Denied: /app/ffmpeg.exe error. I have included the ffmpeg.exe file in my project branch as well as all of the ffmpeg files. I host this bot on heroku. I ran heroku logs --tail but this doesn't show me anything, I see the error as the output on a discord channel. Before you suggest it, I already have ran this : heroku config:set DISABLE_COLLECTSTATIC = 1. Of course to no avail... Here's the fragment of my code where I point to the ffmpeg.exe file :
return cls(discord.FFmpegPCMAudio(executable="/app/ffmpeg.exe", source = source), data=data, requester=ctx.author)

    


    Rest of the code is irrelevant as this is the only part that makes impact on the end result. Hope you can help me, cheers !