Recherche avancée

Médias (91)

Autres articles (86)

  • Encoding and processing into web-friendly formats

    13 avril 2011, par

    MediaSPIP automatically converts uploaded files to internet-compatible formats.
    Video files are encoded in MP4, Ogv and WebM (supported by HTML5) and MP4 (supported by Flash).
    Audio files are encoded in MP3 and Ogg (supported by HTML5) and MP3 (supported by Flash).
    Where possible, text is analyzed in order to retrieve the data needed for search engine detection, and then exported as a series of image files.
    All uploaded files are stored online in their original format, so you can (...)

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

Sur d’autres sites (11113)

  • ffplay / ffmpeg with audio and video filters

    20 juillet 2018, par user10104150

    i tried to modify a already existing code for ffplay for hours, but I could not get it.
    I could not find a manual for vertical and horizontal stacking parameters. I’m always getting invalid argument errors when I try to adopt it to my needs.
    So I’m asking here for help.

    My idea is based on that : ffplay / ffmpeg setup table with audio and video filters

    The working code that I modified a little but want to modify further without luck is :

    ffplay -f lavfi \
            "amovie=in.mp4,asplit=3[sv][eb][av]; \
             [sv]showvolume=b=4:f=0:ds=log:c=VOLUME:w=720:h=68[sv-v]; \
             [eb]ebur128=video=1:size=720x540:meter=18[eb-v][out1]; \
             [av]avectorscope=s=720x540:zoom=1.3:rc=2:gc=200:bc=10:rf=1:gf=8:bf=7[av-v]; \
             [sv-v][eb-v][av-v]vstack=3[1c]; \
             movie=in.mp4,split=4[v][wf][wfc][vs]; \
             [wf]waveform=m=1:d=0:r=0:c=7[wf-vus]; \
             [wf-vus][v]scale2ref=iw:1220-ih[wf-va][sig]; \
             [wf-va]setsar=1[wf-v]; \
             [wfc]waveform=m=0:d=0:r=0:c=7,scale=610x610,setsar=1[wfc-v]; \
             [vs]vectorscope=m=color3:g=color,scale=610x610,setsar=1[vs-v]; \
             [sig][wf-v]vstack[2c]; \
             [wfc-v][vs-v]vstack[3c]; \
             [1c][2c][3c]hstack=3,scale=1920:-1[out0]"

    I’d like to change it to that style - I’m not yet allowed to post images directly in this question, so I need to link it :

    Link to image how I’d like the layout to be

    I’d like to have the video shown in 1920x1080 (keeping aspect ratio, downscale if necessary).

  • how to put php variable to convert to mp3

    23 mai 2019, par NAVJOT SINGH

    I am trying to convert mp4 to mp3 using ffmpeg.

    I want to upload the mp4 file from user then convert the same to mp3

    if(isset($_POST['uploadimage'])){
     $file_name = $_FILES['image']['name'];
     $file_size = $_FILES['image']['size'];
     $file_tmp = $_FILES['image']['tmp_name'];
     $file_type = $_FILES['image']['type'];
     $file_ext=strtolower(@end(explode('.',$_FILES['image']['name'])));

     $extensions= array("mp4");

     if(in_array($file_ext,$extensions)=== false){
        $errors[]="extension not allowed, please choose a JPEG file.";
      }
     else if($file_size > 2097100) {
        $errors[]="larger size";
        }
    else if(empty($errors)==true) {
        move_uploaded_file($file_tmp,"input/".$file_name);
        echo"moved";
        $a= "input/".$file_name;
        echo $input_file;
        $b= "output/audio2.mp3";
        exec("ffmpeg.exe");
         exec("ffmpeg -i $a -vn $b", $output, $return);
         if (!$return) {
         echo " Success";
         }
        else {
        echo " <br />failed";
        }
        }
        }
        <form method="post" enctype="multipart/form-data">
        <input type="file" />
        <input type="submit" value="Submit" />
        </form>

    session not created
    Above is an error I’m getting.

  • avfilter/scale_eval : Reduce rounding error.

    26 septembre 2022, par Tristan Schmelcher
    avfilter/scale_eval : Reduce rounding error.
    

    When force_original_aspect_ratio and force_divisible_by are both
    used, dimensions are now rounded to the nearest allowed multiple of
    force_divisible_by rather than first rounding to the nearest integer and
    then rounding in a static direction. This results in less distortion of
    the aspect ratio.

    Reviewed-by : Thierry Foucu <tfoucu@google.com>
    Signed-off-by : Tristan Schmelcher <tschmelcher@google.com>
    Signed-off-by : Michael Niedermayer <michael@niedermayer.cc>

    • [DH] libavfilter/scale_eval.c
    • [DH] libavfilter/scale_eval.h