Recherche avancée

Médias (91)

Autres articles (24)

  • Personnaliser les catégories

    21 juin 2013, par

    Formulaire de création d’une catégorie
    Pour ceux qui connaissent bien SPIP, une catégorie peut être assimilée à une rubrique.
    Dans le cas d’un document de type catégorie, les champs proposés par défaut sont : Texte
    On peut modifier ce formulaire dans la partie :
    Administration > Configuration des masques de formulaire.
    Dans le cas d’un document de type média, les champs non affichés par défaut sont : Descriptif rapide
    Par ailleurs, c’est dans cette partie configuration qu’on peut indiquer le (...)

  • 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

  • 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 (6156)

  • How to fix "FFmpeg command cannot work when multiple mp3 file to process into one" on server side

    9 février 2019, par Harshil Dholakiya

    I am using FFmpeg in my php yii2 project. FFmpeg working fine in my project but one major problem is execute FFmpeg command with multiple input file. When i try to use single file to process in ffmpeg command then it works. so, how can i fix this problem ? I am using hostGator shared plan for my project. Please, help if is there any process limit or file open limit on server that i don’t know.

    I have tried using this command in php exec() :

    ffmpeg -y -i /uploads/ac/10122018-09351115-a94rlvlawvikskb4vdrca.mp3 -i /uploads/ac/09012019-035928988-assknyrk8oujccwevir7.mp3 -f lavfi -i anullsrc -filter_complex "[2]atrim=duration=3[g0];[2]atrim=duration=1[g1];[2]atrim=duration=5[g2];[g0][0][g1][1][g2]concat=n=5:v=0:a=1" /uploads/jm/concat.mp3 2>&1

    Above command works local side but not working on server side.

    output on server side with error code 1:
    Press [q] to stop, [?] for help
    pthread_create failed: Resource temporarily unavailable. Try to increase `ulimit -v` or decrease `ulimit -s`.
    Conversion failed!

    ulimit -v
    unlimited

    ulimit -s
    15240
  • FFMPEG not "decoding" the right url input

    9 mars 2019, par Tayax

    Ok sorry everyone if the title is not very clear. Any idea would be helpful.

    Basically I am trying to save small portions of videos and upload them to my server. The thing is, it seems that somehow the video input url I put is being redirected during the process, and FFmpeg get rid of some of it.

    Explanation with a practical example :

    ffmpeg -ss 5 -i "https://serverigetmyvideofrom.com/videos/xxxxx.mp4" -t 139 -y \
    -codec:v libx264 -codec:a libfaac /var/www/vhosts/www/36.mp4 \
    > /var/www/vhosts/xxx/block.txt 2>&1 &

    And in the block.txt file, I have this error :

    https://serverigetmyvideofrom.com/videos/x/xxxx/xx.mp4?someparameter%3D: Server returned 401 Unauthorized (authorization failed)

    And so it seems that FFMPEG stopped the url at the caracter " : " but somehow I doubt it’s the end of the url.

    Nonetheless, I would like to know how I can access directly the end url ?

  • Ffmpeg "no directory found" when passing in a path to the mp3 file

    21 février 2020, par Eugene Levinson

    How my code should work :

    Join the voice channel with the user who sent the command

    Download the video using the link

    Save it as random 16 digit number .mp3

    Then pass the path to the FFmpeg player to play

    My code :

    The random 16 digit number

    def get_digits(amount):
       st = ""
       for i in range(amount):
           n = random.randint(0,9)
           st = st + str(n)

       return int(st)

    Downloading the file

    def get_path(url):

       #checking if the directory exists
       os.makedirs('Music', exist_ok=True)

       title = YouTube(url).streams.get_highest_resolution().title
       current_directory = pathlib.Path(__file__).parent.absolute()

       print(str(current_directory))

       #name for the music
       name = str(get_digits(16))

       YouTube(url).streams.filter(only_audio=True).order_by("bitrate").desc().first().download("Music",name )
       return str(str(current_directory) + "/Music/" + name + ".mp3")

    This gets called on command play

    #function to connect to a voice chat
    async def join_auth(ctx):
       try:
           channel = ctx.author.voice.channel
           vc = await channel.connect()
           return vc
       except Exception as e:
           logg("Exception occured when joining a voice channel: " + str(e),"error",str(ctx.guild.name), str(ctx.guild.id))

    The error I get :
    C:\Users\Eugene\Desktop\Discord bot/Music/4343941300524002.mp3: No such file or directory
    But the directory C:\Users\Eugene\Desktop\Discord bot\Music exists and it does contain the 4343941300524002.mp3 file. Does anyone know why do I get the error ?