Recherche avancée

Médias (0)

Mot : - Tags -/flash

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

Autres articles (39)

  • 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

  • Submit bugs and patches

    13 avril 2011

    Unfortunately a software is never perfect.
    If you think you have found a bug, report it using our ticket system. Please to help us to fix it by providing the following information : the browser you are using, including the exact version as precise an explanation as possible of the problem if possible, the steps taken resulting in the problem a link to the site / page in question
    If you think you have solved the bug, fill in a ticket and attach to it a corrective patch.
    You may also (...)

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

  • Using dragonfly and ffmpeg to process a video in Rails

    26 novembre 2015, par Maikell

    I am writing a Ruby on Rails 4 Web application, that gives the user an image-upload functionality. For this I followed this tutorial, which is using the gems

    dragonfly
    jquery-fileupload-rails
    remotipart

    This is working fine.
    Now I want to extend the image-upload functionality, to upload videos as well. But unfortunately I’m stuck with it. Here is what I have tried so far :

    config/initializers/dragonfly.rb

    require 'dragonfly'

    # Configure
    Dragonfly.app.configure do
     plugin :imagemagick

     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 "/media/: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

    # Add model functionality
    if defined?(ActiveRecord::Base)
     ActiveRecord::Base.extend Dragonfly::Model
     ActiveRecord::Base.extend Dragonfly::Model::Validations
    end

    models/video.rb

    class Video < ActiveRecord::Base
     dragonfly_accessor :video, app_name: :videos do
       storage_options do |video|
         { path: "videos/#{Video.gen_uuid}-#{video.name}.webm" }
       end
     end
    end

    I upload the video with ajax. It is succesfully saved in the systems /tmp-directory. Than in the video-controller I call

    @video = Video.new[video_params]
    @video.save

    Now the video-params are correctly saved in the database, but the video is not saved in the given directory /uploads/videos Also my goal is, to process the video with ffmpeg, to convert it to a webm. ffmpeg is installed in the system and converting a video on the command line works fine.

    • But how do I get dragonfly to start the conversion process and save the video in the rails project ? Where do I have to put the ffmpeg-commands to dragonfly ?
    • Why does dragonfly not save the video in the directory uploads/videos ?

    Everything works fine with images and imagemagick. Only videos are causing problems.

  • Swift Process Fails to Properly Send Metadata Args to FFMPEG

    30 avril 2019, par Ryan Stone

    I’m writing a Swift Process that concatenates a series of audio files using FFMPEG and libfdk_aac. The concatenation works, but when I pass metadata information through the process I get a Unrecognized option 'metadata artist="ff"' ... Option not found error.

    When debugging, if I use a breakpoint and print using e print(args.joined(separator: " ")) I’m able to take the exact output and paste it in the console, FFMPEG runs and doesn’t throw an error.

    I’m assuming there’s an oddity with how Swift process works, but even there I’ve tested and I’m stumped. I created a ruby script that took the args and looped over them and printed them and there is nothing given to the script that is unexpected. (Output below)

    Swift Process

    private func export() {
           guard let ffmpegPath = Bundle.main.path(forResource: "ffmpeg", ofType: "") else { return }


           var task = Process()
           task.launchPath = ffmpegPath

           let args: [String] = [
               "-i",
               #"concat:"\#(fileContents)""#,
               title(),
               artist(),
               narrator(),
               "-c:a",
               "libfdk_aac",
               "-vn",
               #"\#(exportPath)\#(exportFilename)"#
           ].compactMap { $0 }

           task.arguments = args

           var pipe = Pipe()
           setStdErrPipe(pipe: &pipe, task: &task)
           setTerminationNotification(task: task)

           task.launch()
       }

       func title() -> String? {
           guard metadata.titleText != "" else {
               return nil
           }
           return #"-metadata title="\#(metadata.titleText)""#
       }

       func artist() -> String? {
           guard metadata.authorText != "" else { return nil }
           return #"-metadata artist="\#(metadata.authorText)""#
       }

       func narrator() -> String? {
           guard metadata.narratorText != "" else { return nil }
           return #"-metadata album_artist="\#(metadata.narratorText)""#
       }

    Arg tester Output

    -i
    concat:"/Users/sharkmaul/Downloads/Bringing Up BÈbÈ/Bringing Up BÈbÈ-Part01.mp3|/Users/sharkmaul/Downloads/Bringing Up BÈbÈ/Bringing Up BÈbÈ-Part02.mp3"
    -metadata title="title"
    -metadata artist="author"
    -metadata album_artist="narrator"
    -c:a
    libfdk_aac
    -vn
    /Users/sharkmaul/Desktop/068F4F43-89EE-47F6-838D-7AD3E02E7F8A.m4a
  • I can't install ffmpegs (dependencies) - error with doxygen [mac 10.12.6 Sierra]

    12 septembre 2022, par Lo-Fi Junky

    It installed about 70% of the dependencies it needed to get ffmpegs going, but it got stuck at installing 'doxygen'.

    


    This is the error I got :

    


    ==> Installing dependencies for ffmpeg: doxygen, little-cms2, openjpeg, opus, rust, libgit2, cargo-c, rav1e, flac, libsndfile, libsamplerate, rubberband, sdl2, swig, llvm, snappy, speex, srt, leptonica, libb2, lz4, libarchive, tesseract, theora, x264, x265, xvid, docbook, boost, source-highlight, asciidoc, docbook-xsl, libyaml, ruby, asciidoctor, gnu-getopt, xmlto, libsodium, zeromq and zimg&#xA;==> Installing ffmpeg dependency: doxygen&#xA;==> cmake ..&#xA;==> make&#xA;Last 15 lines from /Users/macbook/Library/Logs/Homebrew/doxygen/02.make:&#xA;In file included from /tmp/doxygen-20220723-61533-5m5mdv/doxygen-1.9.4/src/outputlist.h:25:&#xA;/tmp/doxygen-20220723-61533-5m5mdv/doxygen-1.9.4/src/searchindex.h:29:10: fatal error: &#x27;variant&#x27; file not found&#xA;#include <variant>&#xA;         ^~~~~~~~~&#xA;1 error generated.&#xA;make[2]: *** [src/CMakeFiles/doxymain.dir/__/generated_src/code.cpp.o] Error 1&#xA;make[1]: *** [src/CMakeFiles/doxymain.dir/all] Error 2&#xA;make[1]: *** Waiting for unfinished jobs....&#xA;[ 46%] Linking CXX static library ../lib/libvhdlparser.a&#xA;cd /tmp/doxygen-20220723-61533-5m5mdv/doxygen-1.9.4/build/vhdlparser &amp;&amp; /usr/local/Cellar/cmake/3.23.2/bin/cmake -P CMakeFiles/vhdlparser.dir/cmake_clean_target.cmake&#xA;cd /tmp/doxygen-20220723-61533-5m5mdv/doxygen-1.9.4/build/vhdlparser &amp;&amp; /usr/local/Cellar/cmake/3.23.2/bin/cmake -E cmake_link_script CMakeFiles/vhdlparser.dir/link.txt --verbose=1&#xA;/usr/bin/ar qc ../lib/libvhdlparser.a CMakeFiles/vhdlparser.dir/CharStream.cc.o CMakeFiles/vhdlparser.dir/ParseException.cc.o CMakeFiles/vhdlparser.dir/Token.cc.o CMakeFiles/vhdlparser.dir/TokenMgrError.cc.o CMakeFiles/vhdlparser.dir/__/generated_src/VhdlParser_adj.cc.o CMakeFiles/vhdlparser.dir/VhdlParserTokenManager.cc.o&#xA;/usr/bin/ranlib ../lib/libvhdlparser.a&#xA;[ 46%] Built target vhdlparser&#xA;make: *** [all] Error 2&#xA;&#xA;Do not report this issue to Homebrew/brew or Homebrew/core!&#xA;&#xA;&#xA;Error: You are using macOS 10.12.&#xA;We (and Apple) do not provide support for this old version.&#xA;You will encounter build failures with some formulae.&#xA;Please create pull requests instead of asking for help on Homebrew&#x27;s GitHub,&#xA;Twitter or any other official channels. You are responsible for resolving&#xA;any issues you experience while you are running this&#xA;old version.&#xA;</variant>

    &#xA;

    Can someone please help me am not sure what it is, that I am supposed to do.

    &#xA;