Recherche avancée

Médias (91)

Autres articles (96)

  • Mise à disposition des fichiers

    14 avril 2011, par

    Par défaut, lors de son initialisation, MediaSPIP ne permet pas aux visiteurs de télécharger les fichiers qu’ils soient originaux ou le résultat de leur transformation ou encodage. Il permet uniquement de les visualiser.
    Cependant, il est possible et facile d’autoriser les visiteurs à avoir accès à ces documents et ce sous différentes formes.
    Tout cela se passe dans la page de configuration du squelette. Il vous faut aller dans l’espace d’administration du canal, et choisir dans la navigation (...)

  • Amélioration de la version de base

    13 septembre 2013

    Jolie sélection multiple
    Le plugin Chosen permet d’améliorer l’ergonomie des champs de sélection multiple. Voir les deux images suivantes pour comparer.
    Il suffit pour cela d’activer le plugin Chosen (Configuration générale du site > Gestion des plugins), puis de configurer le plugin (Les squelettes > Chosen) en activant l’utilisation de Chosen dans le site public et en spécifiant les éléments de formulaires à améliorer, par exemple select[multiple] pour les listes à sélection multiple (...)

  • Formulaire personnalisable

    21 juin 2013, par

    Cette page présente les champs disponibles dans le formulaire de publication d’un média et il indique les différents champs qu’on peut ajouter. Formulaire de création d’un Media
    Dans le cas d’un document de type média, les champs proposés par défaut sont : Texte Activer/Désactiver le forum ( on peut désactiver l’invite au commentaire pour chaque article ) Licence Ajout/suppression d’auteurs Tags
    On peut modifier ce formulaire dans la partie :
    Administration > Configuration des masques de formulaire. (...)

Sur d’autres sites (4996)

  • During transcoding, does output quality of a video improve when i give output bitrate more than input video's bitrate ?

    19 septembre 2013, par Jobin Jose

    I use ffmpeg for converting videos.
    As i understand, the bitrate of a video stream is the number of bits which constitute the video over 1 second of time.
    What happens when i specify the output video bitrate to be more than the input video's bitrate ?
    For example :
    If bitrate of "Input.mp4" is 2000KBps and i want to convert it to "Output.mp4" with output bitrate set to 3000KBps.
    How will the converter create the extra 1000 bits(3000-2000) for every second of video ?

  • ffmpeg : create interlaced output from progrssive input

    6 février 2012, par user1190908

    I have a 720p60 (54.94 to be exact) clip that I would like to scale down and output in 540i30 (27.97 to be exact).

    Here is my command line :

    ffmpeg.exe -i clip720p60.m2t -ss 90 -t 30 -vcodec libxvid -s 960x540 -b 1000k -r 29.97 -acodec libmp3lame -ar 22050 -ab 64k -f avi clip540i30.avi
    ...
    Input #0, mpegts, from 'clip720p60.m2t':
     Duration: 01:53:55.76, start: 0.196678, bitrate: 17250 kb/s
     Program 1
       Stream #0.0[0x1011]: Video: h264, yuv420p, 1280x720 [PAR 1:1 DAR 16:9], 59.94 tb(r)
       Stream #0.1[0x1100]: Audio: ac3, 48000 Hz, stereo, s16, 384 kb/s
    Output #0, avi, to 'clip540i30.avi':
       Stream #0.0: Video: libxvid, yuv420p, 960x540 [PAR 1:1 DAR 16:9], q=2-31, 1000 kb/s, 29.97 tb(c)
       Stream #0.1: Audio: libmp3lame, 22050 Hz, stereo, s16, 64 kb/s
    ...

    The first options indicates to encode 30s at 90s past the start.

    Whatever options I tried up to now always end up with a video stream of 60s and an audio stream of 30s in the output clip.

    Can any one help me ?

  • PHP FFMPEG not working when I upload mp4 file

    9 août 2013, par Chris

    To convert video to formats compatible with HTML5 video I wrote the following script :

       $srcFile = "name/of/the/video.mp4";
       $destFile = "/media/video/newfilename";
       $ffmpegPath = "/usr/local/bin/ffmpeg";
       $flvtool2Path = "/usr/local/bin/flvtool2";

       // Create our FFMPEG-PHP class
       $ffmpegObj = new ffmpeg_movie($srcFile);
       // Save our needed variables
       $srcWidth = makeMultipleTwo($ffmpegObj->getFrameWidth());
       $srcHeight = makeMultipleTwo($ffmpegObj->getFrameHeight());
       $srcFPS = $ffmpegObj->getFrameRate();
       $srcAB = intval($ffmpegObj->getAudioBitRate()/1000);
       $srcAR = $ffmpegObj->getAudioSampleRate();
       $srcVB = floor($ffmpegObj->getVideoBitRate()/1000);


       // Call our convert using exec() to convert to the three file types needed by HTML5
       exec($ffmpegPath . " -i ". $srcFile ." -vcodec libx264 -vpre hq -vpre ipod640 -b ".$srcVB."k -bt 100k -acodec libfaac -ab " . $srcAB . "k -ac 2 -s " . $srcWidth . "x" . $srcHeight . " ".$destFile.".mp4");

       exec($ffmpegPath . " -i ". $srcFile ." -vcodec libvpx -r ".$srcFPS." -b ".$srcVB."k -acodec libvorbis -ab " . $srcAB . " -ac 2 -f webm -g 30 -s " . $srcWidth . "x" . $srcHeight . " ".$destFile.".webm");

       exec($ffmpegPath . " -i ". $srcFile ." -vcodec libtheora -r ".$srcFPS." -b ".$srcVB."k -acodec libvorbis -ab " . $srcAB . "k -ac 2 -s " . $srcWidth . "x" . $srcHeight . " ".$destFile.".ogv");

    It is supposed to take any input video type and convert it to mp4, ogv and webm. When I run the script on a .mov file it returns a mp4 and ogv file, but not webm. When I run it on a .mp4 file it returns no converted files at all. Is there something wrong with the way I am converting the files ? Any help ?