Recherche avancée

Médias (0)

Mot : - Tags -/publication

Aucun média correspondant à vos critères n’est disponible sur le site.

Autres articles (50)

  • La file d’attente de SPIPmotion

    28 novembre 2010, par

    Une file d’attente stockée dans la base de donnée
    Lors de son installation, SPIPmotion crée une nouvelle table dans la base de donnée intitulée spip_spipmotion_attentes.
    Cette nouvelle table est constituée des champs suivants : id_spipmotion_attente, l’identifiant numérique unique de la tâche à traiter ; id_document, l’identifiant numérique du document original à encoder ; id_objet l’identifiant unique de l’objet auquel le document encodé devra être attaché automatiquement ; objet, le type d’objet auquel (...)

  • Contribute to documentation

    13 avril 2011

    Documentation is vital to the development of improved technical capabilities.
    MediaSPIP welcomes documentation by users as well as developers - including : critique of existing features and functions articles contributed by developers, administrators, content producers and editors screenshots to illustrate the above translations of existing documentation into other languages
    To contribute, register to the project users’ mailing (...)

  • Selection of projects using MediaSPIP

    2 mai 2011, par

    The examples below are representative elements of MediaSPIP specific uses for specific projects.
    MediaSPIP farm @ Infini
    The non profit organizationInfini develops hospitality activities, internet access point, training, realizing innovative projects in the field of information and communication technologies and Communication, and hosting of websites. It plays a unique and prominent role in the Brest (France) area, at the national level, among the half-dozen such association. Its members (...)

Sur d’autres sites (6303)

  • Transcodeit Add metadata to audio files

    22 avril 2016, par Gismmo

    I have found how to encode audio tracks to multiple formats, I am just struggling to try and find a way to attach specific metadata to the tracks when they are encoded. I would like to add, album artwork, artists name, track name, and genre etc.

    I can see in the audio encoding parameters there are additional FFmpeg parameters you can set, however i am unsure what to use in order to set the metadata ?

    {
     "steps": {
     "imported": {
     "robot": "/s3/import",
     "result": true,
     "key": "AWS_KEY",
     "secret": "AWS_SECRET",
     "bucket": "BUCKET",
     "path": "CUSTOM-PATH"
    },
    "mp3": {
     "use": "imported",
     "robot": "/audio/encode",
     "result": true,
     "preset": "mp3",
     "ffmpeg": [],
     "ffmpeg_stack": "v2.2.3"
    },
    "wav": {
     "use": "imported",
     "robot": "/audio/encode",
     "result": true,
     "preset": "wav",
     "ffmpeg_stack": "v2.2.3"
    },
    "export": {
     "robot": "/s3/store",
     "use": [
       "mp3",
       "wav"
     ],
     "key": "AWS_KEY",
     "secret": "AWS_SECRET",
     "bucket": "BUCKET"
    }
  • Load processed video instead of original video - Rails, Dragonfly

    1er février 2016, par Michael B

    In my Rails 4-Project, I am using Dragonfly to upload images and videos.
    For image-processing I use imagemagick, for videoprocessing I use ffmpeg.

    Videos are uploaded and stored in the folder uploads/videos. After processing, they are stored in public/ffmpeg_videos/

    My question is : How can I use the processed-video instead of the uploaded video ?

    e.g. I use this code in the view, to display a video :

    <video src="&lt;%=@video.video.url%>"></video>

    This successfully loads the original video from the upload-path. But what do I have to change, to load the video from the ffmpeg-path ?

    initializers/dragonfly.rb

    require 'dragonfly'

    # Configure
    Dragonfly.app(:images).configure do
     plugin :imagemagick
     protect_from_dos_attacks false
     secret 'd045734b043b4383a246c5c8daf2d3e31217dc8b030f21861e4fd16c4b72d382'
     url_format '/media/:job/:name'

     datastore :file,
               root_path: Rails.root.join('uploads/images/'),
               server_root: Rails.root.join('uploads')
    end

    Dragonfly.app(:videos).configure do
     secret 'd045734b043b4383a246c5c8daf2d3e31217dc8b030f21861e4fd16c4b72d382'
     url_format "/video/:job/:name"

     datastore :file,
               root_path: Rails.root.join('uploads/videos/'),
               server_root: Rails.root.join('uploads')
    end

    # Logger
    Dragonfly.logger = Rails.logger

    # Mount as middleware
    Rails.application.middleware.use Dragonfly::Middleware, :images
    Rails.application.middleware.use Dragonfly::Middleware, :videos

    # Add model functionality
    if defined?(ActiveRecord::Base)
     ActiveRecord::Base.extend Dragonfly::Model
     ActiveRecord::Base.extend Dragonfly::Model::Validations
    end
  • use ffmpeg in php on localhost

    27 novembre 2015, par Al-Kaiser

    hi guys i want to use ffmpeg in php
    i make it when i upload a new video make a new pic.jpg and he don’t do it
    this is my code

    &lt;?php
    if(isset($_POST['submit'])){
       if ($_FILES['episode']['error']==0){
           $allowed =  array('mp4','avi' ,'mkv');
           $cat = $_POST['cat'];
           $name = $_POST['name'];
           $desc = $_POST['desc'];
           $tags = $_POST['tags'];
           $episodes = $_FILES['episode']['name'];
           $extension = explode('.', $episodes);
           $extension = end($extension);
           $random_name = rand();
           $temp = $_FILES["episode"]["tmp_name"];
           $ext = pathinfo($episodes, PATHINFO_EXTENSION);
               if(!in_array($ext,$allowed) ) {
                       echo"<code class="echappe-js">&lt;script&gt;$.jGrowl('sorry, check file its video', {sticky: false, theme: 'growl-warning', header: 'Warning!' });&lt;/script&gt;

    " ;
    else
    $file = $random_name.".".$extension ;
    move_uploaded_file($temp,"../files/rawmedia/".$file) ;
    $ffmpeg = "D :\xampp\FFMPEG\bin\ffmpeg" ;
    $ge = 5 ;
    //$siz = "120x90" ;
    exec(’ffmpeg -i $temp -an -ss $ge ../files/rawmedia/image1.jpg’) ;
    //$add = $episode->add($cat,$name,$desc,$tags,$file) ;


    else
    echo"&lt;script&gt;$.jGrowl('please add video', {sticky: false, theme: 'growl-warning', header: 'Warning!' });&lt;/script&gt;" ;
     ?>

    my code its work but he don’t make iamge1.jpg