Recherche avancée

Médias (91)

Autres articles (49)

  • Emballe Médias : Mettre en ligne simplement des documents

    29 octobre 2010, par

    Le plugin emballe médias a été développé principalement pour la distribution mediaSPIP mais est également utilisé dans d’autres projets proches comme géodiversité par exemple. Plugins nécessaires et compatibles
    Pour fonctionner ce plugin nécessite que d’autres plugins soient installés : CFG Saisies SPIP Bonux Diogène swfupload jqueryui
    D’autres plugins peuvent être utilisés en complément afin d’améliorer ses capacités : Ancres douces Légendes photo_infos spipmotion (...)

  • 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

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

Sur d’autres sites (5588)

  • How to convert a first 5 sec of a video to gif using ffmpeg

    2 octobre 2019, par chithra
     String livestream = "/home/Downloads/123.MP4";

       String folderpth = "/home/chithra/Downloads/aagiten.gif";

       Runtime.getRuntime().exec(
               new String[] {
                       "ffmpeg",
                       "-i",
                       "-t 5",
                        livestream,
                       folderpth

               }
       );

    I tried to add the parameter -t in this code but it is not converting the first 5 seconds of a video.

  • how to convert video file via ffmpeg in php ?

    4 janvier 2015, par ali raha

    In SSH centos terminal, I run it via this command :

    $HOME/bin/ffmpeg -i test.mp4 test.webm

    I tried this

    $ffmpegPath = "/home/bin/ffmpeg";
     //or $ffmpegPath = "/bin/ffmpeg";




     $outPath=$outPath."/".$newname.$format;
     shell_exec("$ffmpegPath  -i $inputPath $outPath");
  • Crontab starts again befor the process of conversion in ffmpeg ends(depending on time supose /2 minutes) How to Control that ?

    18 décembre 2016, par A Sahra

    I am running a bash .sh file every two minutes with crontab. the problem is that when crontab runs bash file the process of ffmpeg video conversion starts,the conversion time varies depending on length of videos, i have set the crontab to run every two minutes. crontab runs again after two minutes before end of ffmpeg conversion.

    How to Figure out :

    control of crontab and conversion process so the crontab doesn’t starts again until process of conversion is not completed.

    #!/bin/bash
    # set PATH to check existance of video file in this directory
    checkfiles=/home/webuser/public_html/shareportal/convert_Up_videos/*
    checkforfiles=/home/webuser/public_html/shareportal/convert_Up_videos
    movetodire=/home/webuser/public_html/shareportal/uploaded_videos/
    conversionprocessdir=/home/webuser/public_html/shareportal/conversion_process/
    movetoArchive=/home/webuser/public_html/shareportal/Video_Archive/
    blockpath=/home/webuser/public_html/shareportal/block.txt
    processid=/home/webuser/public_html/shareportal/processid.txt
    #format of output video file
    webm='webm'
    if [ "$(ls -A $checkforfiles)" ]
    then
    #check directory for files to convert
    for f in $checkfiles
       do  
           fullfilename="$f"
           filename=$(basename "$f")
           filewithoutextforimage="${filename%.*}"
           nametofile=$filewithoutextforimage | cut -c1-10;
           echo $filewithoutextforimage | cut -c1-10 1> $blockpath 2>&1
       filewithoutext="${f%.*}"
       fileextention="${f##*.}"
       image_path='/home/webuser/public_html/shareportal/video_images/'$filewithoutextforimage'.png'
       outputfilename=$conversionprocessdir"$filewithoutextforimage.webm"
       #ffmpeg conversion process starts here
       if (ffmpeg -i "$f" "$outputfilename" 1>> $blockpath 2>&1)
       then
           #Extract Image of video file on provided time stamp
           if (ffmpeg -ss 00:00:06 -i "$f" -vframes:v 1 "$image_path")
           then
               echo "Image Extracted"
           else
               echo "Could not Extract Image"
           fi
           echo "Video Converted";
       else
           echo "Could Not Convert Video"
       fi
       #conversion Ends!!
       mv "$outputfilename" $movetodire
       mv "$fullfilename" $movetoArchive
    done
    else
    echo "File Not Found Directory is empty!!!-----"
    fi