Recherche avancée

Médias (29)

Mot : - Tags -/Musique

Autres articles (22)

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

  • Installation en mode ferme

    4 février 2011, par

    Le mode ferme permet d’héberger plusieurs sites de type MediaSPIP en n’installant qu’une seule fois son noyau fonctionnel.
    C’est la méthode que nous utilisons sur cette même plateforme.
    L’utilisation en mode ferme nécessite de connaïtre un peu le mécanisme de SPIP contrairement à la version standalone qui ne nécessite pas réellement de connaissances spécifique puisque l’espace privé habituel de SPIP n’est plus utilisé.
    Dans un premier temps, vous devez avoir installé les mêmes fichiers que l’installation (...)

  • Emballe médias : à quoi cela sert ?

    4 février 2011, par

    Ce plugin vise à gérer des sites de mise en ligne de documents de tous types.
    Il crée des "médias", à savoir : un "média" est un article au sens SPIP créé automatiquement lors du téléversement d’un document qu’il soit audio, vidéo, image ou textuel ; un seul document ne peut être lié à un article dit "média" ;

Sur d’autres sites (4834)

  • Writing an image to linux framebuffer distorts the image C++

    8 avril 2021, par max

    Im trying to set up rtsp video stream from teledyne Dalsa Genie Nano camera. For grab images I'm using a framework provided by this company.
For rtsp stream I will use ffmpeg tool that can stream video directly from linux frame buffer.
    
So i tried to write this image via memcpy function and at this moment the image is not recorded correctly. because when i try to take a screenshot from Facebook with ffmpeg in output i have corrupted image.
    
Here's some information :
image from camera
In the framework I have an image object that contains :

    


      

    1. void *address (address of one frame)
    2. 


    3. int width (1280)
    4. 


    5. int height (1024)
    6. 


    7. int depth (1)
    8. 


    


    So I wrote a function :
my function

    


    It's working fine without any errors but when I print image from frame buffer (fb) I have

    


    this

    


    I think it happens because fb device depth is 32 but frame depth is 1.

    


    Am I right ?

    


    I tried to change fb device depth with fbset tool but it returns an error -
console error output

    


    Command I use for taking an image from fb : sudo ffmpeg -f fbdev -framerate 1 -i /dev/fb0 -frames:v 1 screenAA3.jpeg

    


    Can someone tell me what I'm doing wrong ?

    


  • Permission denied when trying to call ffmpeg on heroku

    1er décembre 2013, par chuck w

    I have a rails 3.1 web app on Heroku (cedar) that that allows users to post stories with photo and video attachments using the paperclip gem (3.5.1). Uploads are stored on s3. This has been working 100% for many months.

    I have recently added video transcoding and thumbnailing to my dev machine with the paperclip-ffmpeg gem (1.0.1) and ffmpeg running locally. This is also working.

    I've followed these instructions to build and install ffmpeg on heroku, and I've altered my Heroku app's path so that it reads as follows :

    PATH:   bin:vendor/ffmpeg/bin:vendor/bundle/ruby/1.9.1/bin:/usr/local/bin:/usr/bin:/bin

    and my app's LD_LIBRARY_PATH so that it reads as follows :

    LD_LIBRARY_PATH:             vendor/ffmpeg/lib:/usr/local/lib

    Finally, I've vendored ffmpeg into my app with the following structure :

    vendoring ffmpeg

    When I commit and push these changes to Heroku and POST a story that has a video I get the following output on Heroku logs :

    2013-11-30T22:51:46.711010+00:00 app[web.1]: Started POST "/stories" for 71.80.218.93 at        
    2013-11-30 22:51:46 +0000
    2013-11-30T22:51:47.023119+00:00 app[web.1]: Cocaine::ExitStatusError (Command 'ffprobe
    "/tmp/sideways video20131130-2-14w1q4j.mp4" 2>&1' returned 126. Expected 0
    2013-11-30T22:51:47.023119+00:00 app[web.1]: Here is the command output:
    2013-11-30T22:51:47.023119+00:00 app[web.1]:
    2013-11-30T22:51:47.023119+00:00 app[web.1]:   app/controllers/stories_controller.rb:11:in    
    `create'
    2013-11-30T22:51:47.023119+00:00 app[web.1]:
    2013-11-30T22:51:47.023119+00:00 app[web.1]:
    2013-11-30T22:51:47.019228+00:00 heroku[router]: at=info method=POST path=/stories    
    host=myapp.herokuapp.com fwd="71.80.218.93" dyno=web.1 connect=1ms    
    service=3130ms status=500 bytes=754
    2013-11-30T22:51:47.023119+00:00 app[web.1]:
    2013-11-30T22:51:47.023600+00:00 app[web.1]: cache: [POST /stories] invalidate, pass
    2013-11-30T22:51:47.023119+00:00 app[web.1]: sh: ffprobe: Permission denied
    2013-11-30T22:51:47.023119+00:00 app[web.1]: ):

    Also, running the console command : heroku run "ffmpeg -version" -a myapp
    returns :

    Running ffmpeg -version attached to terminal... up, run.6591
    bash: vendor/ffmpeg/bin/ffmpeg: Permission denied

    Here is my Post model paperclip set-up :

    class Post < ActiveRecord::Base

     attr_accessible :contents, :photo, :video

     belongs_to    :story, :touch => true
     belongs_to    :user, :touch => true

     has_attached_file :photo,
                       :styles => {
                         :thumb => ["100x140>", :jpg],
                         :medium => ["400x400>", :jpg],
                         :large => ["800x800>", :jpg]
                       },
                       :processors => [:thumbnail],
                       :storage => :s3,
                       :s3_credentials => "#{Rails.root.to_s}/config/s3.yml",
                       :path => "/:style/:id/:filename"

     has_attached_file :video,
                       :storage => :s3,
                       :s3_credentials => "#{Rails.root.to_s}/config/s3.yml",
                       :path => "/video/:id/:filename",
                       :styles => {
                         :thumb => { :geometry => "140x100#", :format => 'jpg', :time => 10 },
                         :medium => { :geometry => "480x360", :format => 'mp4' },
                       }, :processors => [:ffmpeg]

    Why am I getting these "permission denieds" ? Any help would be greatly appreciated !!!

  • Fix SWF position and size calculations in IE 9.

    12 juillet 2013, par DelvarWorld
    Fix SWF position and size calculations in IE<9.
    

    Fixes #190.
    Closes #191.

    In oldIE, using the `typeof` operator on native DOM methods like `getBoundingClientRect` actually returns "object" instead of "function".
    Also, `getBoundingClientRect` did not add the "height" and "width" properties to TextRectangles until IE9, so calculate those manually if need be.

    Bumped version to v1.2.0-beta.3.