Recherche avancée

Médias (1)

Mot : - Tags -/epub

Autres articles (34)

  • Creating farms of unique websites

    13 avril 2011, par

    MediaSPIP platforms can be installed as a farm, with a single "core" hosted on a dedicated server and used by multiple websites.
    This allows (among other things) : implementation costs to be shared between several different projects / individuals rapid deployment of multiple unique sites creation of groups of like-minded sites, making it possible to browse media in a more controlled and selective environment than the major "open" (...)

  • Personnaliser en ajoutant son logo, sa bannière ou son image de fond

    5 septembre 2013, par

    Certains thèmes prennent en compte trois éléments de personnalisation : l’ajout d’un logo ; l’ajout d’une bannière l’ajout d’une image de fond ;

  • 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

Sur d’autres sites (6185)

  • Best way to have 2 youtube-dl input with ffmpeg and php

    8 janvier 2021, par Baraque Obahamas

    I'm trying to find the best way to combine a youtube-dl link in mp4 format with another youtube-dl link in m4a format to get an mp4 file through ffmpeg & php and to have an output in stdout in order to download the file directly.

    


    With only one file to convert to another format, I managed to do it easily, for example from m4a to mp3 :

    


    $cmd = "youtube-dl -f bestaudio[ext=m4a] --no-part --no-cache-dir --no-warnings --no-progress -o - https://www.youtube.com/watch?v=6Dh-RL__uN4 | ffmpeg -i - -f mp3 -ab 192k -";


    


    But with 2 inputs, it doesn't work :

    


    $cmd = "cat <(youtube-dl -f bestvideo[ext=mp4] --no-part --no-cache-dir --no-warnings --no-progress -o - https://www.youtube.com/watch?v=6Dh-RL__uN4) <(youtube-dl -f bestaudio[ext=m4a] --no-part --no-cache-dir --no-warnings --no-progress -o - https://www.youtube.com/watch?v=6Dh-RL__uN4) > ffmpeg -i - -movflags frag_keyframe+empty_moov+faststart -frag_duration 3600 -c:v copy -c:a copy -f mp4 -";


    


    In this case I get a "said into stderr : "sh : 1 : Syntax error : "(" unexpected")" error.

    


    I guess there must be a better way to do it.
I notice another problem is that on the ffmpeg command there is only one input "-i -". Now there are 2 inputs, there should be I guess "pipe:3" in addition, but so far my tests have not been conclusive.

    


    Full code :

    


    <?php
header('Content-Description: File Transfer');
header('Cache-Control: must-revalidate');
header('Pragma: public');
header("Content-Disposition: attachment; filename=\"ok.mp4\"");
header("Content-Type: application/octet-stream");

$cmd = "cat <(youtube-dl -f bestvideo[ext=mp4] --no-part --no-cache-dir --no-warnings --no-progress -o - https://www.youtube.com/watch?v=6Dh-RL__uN4) <(youtube-dl -f bestaudio[ext=m4a] --no-part --no-cache-dir --no-warnings --no-progress -o - https://www.youtube.com/watch?v=6Dh-RL__uN4) > ffmpeg -i - -movflags frag_keyframe+empty_moov+faststart -frag_duration 3600 -c:v copy -c:a copy -f mp4 -";
$cmd = passthru($cmd, $status);


    


  • How to remove silent audio clip from a video through FFMPEG or any other method(moviepy) ? No answers have the exact answer

    16 janvier 2018, par Shantanu Kumar

    How to remove silent audio clip from a video through FFMPEG or any other method (moviepy) ? The silent audio part includes ... buffer part and repeated frames...Just want video to be more interactive

  • Anomalie #4660 (Nouveau) : #INTRODUCTION et introduction explicite

    11 février 2021, par Maïeul Rouquette

    Spoiler : ca attendra la 3.4 , mais j’expose maintenant le problème

    Sur un site, j’ai
    1. D’une part des gens qui mettent des <intro></intro> dans leurs articles, avec parfois plus de 600 caractères
    2. D’autre part des gens qui n’en mettent pas, et dans ce cas le découpage à 600 caractères devrait venir en fallback.

    Sauf qu’actuellement, même si on a une intro explicite, cela nous coupe à 600 caractères (ou constante/valeur).

    Mon contournement, qui est moche :

    []
    

    Idéalement il faudrait pouvoir avoir un comportement qui permette, si jamais #INTRODUCTION se base sur les intro explicites, de ne pas couper.

    Mais comme disait tcharlss, on est dans une double impasse :
    - d’une part on ne peut pas régler cela à coup d’une constante, car il y a des cas où il faut EFFECTIVEMENT couper automatiquement (genre les listes d’objets).
    - d’autre part, on ne peut pas rajouter un 3ème paramètre à #INTRODUCTION, car sinon on en fini pas au niveau des signatures.

    Une solution serait d’avoir des paramètres nommées, mais ca n’existe pas encore dans le compilo (bien qu’il y ait des pistes pour cela dans le plugin saisies)