Recherche avancée

Médias (91)

Autres articles (9)

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

  • Contribute to a better visual interface

    13 avril 2011

    MediaSPIP is based on a system of themes and templates. Templates define the placement of information on the page, and can be adapted to a wide range of uses. Themes define the overall graphic appearance of the site.
    Anyone can submit a new graphic theme or template and make it available to the MediaSPIP community.

  • Les formats acceptés

    28 janvier 2010, par

    Les commandes suivantes permettent d’avoir des informations sur les formats et codecs gérés par l’installation local de ffmpeg :
    ffmpeg -codecs ffmpeg -formats
    Les format videos acceptés en entrée
    Cette liste est non exhaustive, elle met en exergue les principaux formats utilisés : h264 : H.264 / AVC / MPEG-4 AVC / MPEG-4 part 10 m4v : raw MPEG-4 video format flv : Flash Video (FLV) / Sorenson Spark / Sorenson H.263 Theora wmv :
    Les formats vidéos de sortie possibles
    Dans un premier temps on (...)

Sur d’autres sites (3048)

  • Cannot include FFmpegMediaPlayer lib in my android project

    20 août 2015, par Lucabro

    I’ve to include in my Android studio project a lib for managing audio streams from urls. I’m tying to use this, but when I try to run the app and it reach the point where have to instantiate a FFmpegMediaPlayer object, it crush with the error

    31444-31444/? E/AndroidRuntime﹕ FATAL EXCEPTION: main
       java.lang.ExceptionInInitializerError

    These the steps I’ve done to integrate the lib in my project :

    • I’ve copied all .so, gdb.setup and gdbserver files from demo project and put them into my jniLibs replicating the exact folder structure
    • I’ve copied fmp.jar from demo my libs forlder
    • I’ve changed all paths in gdb.setup files accordingly with my project folder structure
    • synch with gradle

    I’m not an expert of Android specially for tasks like this, am I missing something important ? If you need it I can give a test app

    Thankyou

    Edit 1

    This is the complete error

    08-19 10:20:42.066  31444-31444/? E/AndroidRuntime﹕ FATAL EXCEPTION: main
       java.lang.ExceptionInInitializerError
               at com.example.lucabrognara.radiostreamprova.RadioActivity.onCreate(RadioActivity.java:126)
               at android.app.Activity.performCreate(Activity.java:5206)
               at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1094)
               at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2074)
               at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2135)
               at android.app.ActivityThread.access$700(ActivityThread.java:140)
               at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1237)
               at android.os.Handler.dispatchMessage(Handler.java:99)
               at android.os.Looper.loop(Looper.java:137)
               at android.app.ActivityThread.main(ActivityThread.java:4921)
               at java.lang.reflect.Method.invokeNative(Native Method)
               at java.lang.reflect.Method.invoke(Method.java:511)
               at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1027)
               at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:794)
               at dalvik.system.NativeStart.main(Native Method)
        Caused by: java.lang.UnsatisfiedLinkError: Cannot load library: link_image[1892]:  1836 could not load needed library 'libswresample.so' for 'libavcodec.so' (load_library[1094]: Library 'libswresample.so' not found)
               at java.lang.Runtime.load(Runtime.java:340)
               at java.lang.System.load(System.java:521)
               at wseemann.media.FFmpegMediaPlayer.<clinit>(FFmpegMediaPlayer.java:604)
                at com.example.lucabrognara.radiostreamprova.RadioActivity.onCreate(RadioActivity.java:126)
                at android.app.Activity.performCreate(Activity.java:5206)
                at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1094)
                at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2074)
                at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2135)
                at android.app.ActivityThread.access$700(ActivityThread.java:140)
                at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1237)
                at android.os.Handler.dispatchMessage(Handler.java:99)
                at android.os.Looper.loop(Looper.java:137)
                at android.app.ActivityThread.main(ActivityThread.java:4921)
                at java.lang.reflect.Method.invokeNative(Native Method)
                at java.lang.reflect.Method.invoke(Method.java:511)
                at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1027)
                at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:794)
                at dalvik.system.NativeStart.main(Native Method)
    </clinit>
  • Extracting image frames from mjpeg given 'frame byte offset' and 'frame size' [on hold]

    2 septembre 2015, par Sonia

    I’m looking for code or pointers to funtions or library that I can use to extract image frames from motion jpeg file. In my case, for each image frame, I know the starting byte offset and the size of the frame (size is not always equal for each frame). Given these data, how can I extract each image frames from mjpeg file.

    I have checked the OpenCV library, I can’t find the detail about giving these two inputs to extract frames. Also, I can’t find it in FFmpeg as well. But, I’m not an expert in these two. I hope anyone could give me pointers to this. It can be just a tool or sourcecode (I use C/C++ and MATLAB but I’m open to other language - just to learn how to do it)

    Thank you very much.

  • ruby on rails carrierwave-video ffmpeg AWS

    11 mars 2015, par Joseph Han Nim Jang

    I am trying to create an academic site where users can upload lecture videos and other users can view them - similar to a site like Udemy.

    I am using Carrierwave, Carrierwave-video (for encoding videos), AWS to make this happen. AWS configuration has been done, and it’s working.

    However, I am getting this error. (By the way, I am testing this video feature in a Yelpdemo site, so I am trying to have users upload videos to restaurants for now.)

    rails points the error to @restaurant = Restaurant.new(restaurant_params)

    Errno::ENOENT in RestaurantsController#create

    No such file or directory - ffmpeg

    # POST /restaurants.json
    def create
    @restaurant = Restaurant.new(restaurant_params)

    respond_to do |format|
     if @restaurant.save

    This is my video_uploader.rb

    # encoding: utf-8

    class VideoUploader &lt; CarrierWave::Uploader::Base

     include CarrierWave::Video
     include CarrierWave::Video::Thumbnailer

     process encode_video: [:mp4]

     include CarrierWave::MiniMagick

     storage :fog

     def store_dir
       "uploads/#{model.class.to_s.underscore}/#{mounted_as}/#{model.id}"
     end

      version :thumb do
         process thumbnail: [{format: 'png', quality: 10, size: 192, strip: true, logger: Rails.logger}]
         def full_filename for_file
           png_name for_file, version_name
         end
     end

       def png_name for_file, version_name
         %Q{#{version_name}_#{for_file.chomp(File.extname(for_file))}.png}
       end
    end

    I have manually (added a file to the model) created video.rb in the model - not sure if this is the right way to do it..

    class Video &lt; ActiveRecord::Base

     attr_accessor :user_id, :video,, :type, :filename, :path, :filesize, :width, :height, :duration, :bit_rate

     belongs_to :restaurant
     belongs_to :user

     mount_uploader :video, VideoUploader
    end

    in app/views/restaurants/show.html.erb for showing the video. Right now, without the encoding done, I can see like an image of the video. When I right lick and copy the code - it gives me the AWS URL which means AWS configuration is in place

           <p>
               <strong>Video:</strong>
               &lt;%= video_tag @restaurant.video_url %>
           </p>

    I am trying to show videos like this.

    I have downloaded FFMPEG (both ffmpeg-2.6 and SnowLeopard_Lion_Mountain_Yosemite_17) - not sure which one’s the right one.. And I have read somewhere that you need to place FFMPEG in your usr/local/bin -> So do you have to physically place ffmpeg exec file in your respective folder ?

    Need your expert help please.

    Thank you in advance !