Recherche avancée

Médias (91)

Autres articles (69)

  • List of compatible distributions

    26 avril 2011, par

    The table below is the list of Linux distributions compatible with the automated installation script of MediaSPIP. Distribution nameVersion nameVersion number Debian Squeeze 6.x.x Debian Weezy 7.x.x Debian Jessie 8.x.x Ubuntu The Precise Pangolin 12.04 LTS Ubuntu The Trusty Tahr 14.04
    If you want to help us improve this list, you can provide us access to a machine whose distribution is not mentioned above or send the necessary fixes to add (...)

  • MediaSPIP Core : La Configuration

    9 novembre 2010, par

    MediaSPIP Core fournit par défaut trois pages différentes de configuration (ces pages utilisent le plugin de configuration CFG pour fonctionner) : une page spécifique à la configuration générale du squelettes ; une page spécifique à la configuration de la page d’accueil du site ; une page spécifique à la configuration des secteurs ;
    Il fournit également une page supplémentaire qui n’apparait que lorsque certains plugins sont activés permettant de contrôler l’affichage et les fonctionnalités spécifiques (...)

  • Le profil des utilisateurs

    12 avril 2011, par

    Chaque utilisateur dispose d’une page de profil lui permettant de modifier ses informations personnelle. Dans le menu de haut de page par défaut, un élément de menu est automatiquement créé à l’initialisation de MediaSPIP, visible uniquement si le visiteur est identifié sur le site.
    L’utilisateur a accès à la modification de profil depuis sa page auteur, un lien dans la navigation "Modifier votre profil" est (...)

Sur d’autres sites (5348)

  • Create 1 RTSP stream from 3 RTSP streams on Raspberry Pi 3

    29 mai 2020, par user3260912

    So this is interesting question and was wondering if anyone may have any insights to how I could do this. I currently have 6 IP cameras and run a Java process that opens ffmpeg to rip the RTSP streams from those 6 IP cameras, save a image to RAM, and then use ImageMagick to convert those files to a collage JPG image so I have all IP cameras in one image. That file then updates as rapidly as possible using space in /dev/shm - in reality, about 6 FPS. But, it uses 45-50% CPU on 6 cores.

    



    I'm looking for a way to reduce some CPU load off my main computer, though. I have 2 Raspberry Pi model 3Bs and am thinking I could maybe put them to good use. Not sure how the performance would be, but willing to test this.

    



    What I'm wanting to do is this :

    



      

    1. Use ffmpeg to pull down images from 3 of the IP camera RTSP streams on each Raspberry Pi into /dev/shm
    2. 


    3. Using ImageMagick, montage the temp images pulled, into /dev/shm
    4. 


    5. Create a RTSP stream on each Raspberry Pi of that montaged image in /dev/shm
    6. 


    7. Use my desktop to pull down the RTSP of the collaged images and collage those to the same format I do today (only using 2 RTSP stream threads, instead of 6 to do this.)
    8. 


    



    Is there a way to set ImageMagick to set image output format as mjpeg2 or have ffmpeg create a rtsp stream off the rapidly updating JPEG image file ?

    


  • Pre- and postrecording using ffmpeg

    29 juillet 2020, par Sander

    I want to to be able to add a 1-2 second "prerecording" to an output file, like usually is the case on a cctv camera. (a few seconds video from before the alarm is triggered)

    



    I have an idea on how to have it work in a hacky way, but I'm sure there's already a better solution for it.
1 ffmpeg instance records on a 5 second loop outputting a video every 5 seconds
every 5 seconds the oldest file is removed to keep some space available via cron/script/loop/...
When the event is triggered a second ffmpeg instance starts recording for 5 seconds and prepends the last 5-second video from the other process to it's own video and outputs the final video to be prerecording+recording.mp4

    



    This script will run on a sd-powered device, so the less writes the better (but this could be done in a ramdisk)

    



    Is there a better way to do this ?

    


  • 【carrierwave+ffmpeg】can't upload the video with sound

    10 avril 2020, par ken akita

    I want to make "Fake Instagram" Rails application.
then I made the uploader and I can upload the video(mp4), but no sound.
I can listen to the sound on my desktop but can't on my application, like this image, speakers not working.
enter image description here

    



    Code is here. I guess something wrong with image_uploader.rb or show.html.erb.
Note that first I made the ImageUploader to upload image, then I want to add video posting system to upload video. Both uploading done, but video without sound.
Really thank you for your advise !

    



    *image_uploader.rb
require 'streamio-ffmpeg'

class ImageUploader < CarrierWave::Uploader::Base
  include CarrierWave::MiniMagick
  process resize_to_fit: [230, 183]

  storage :file

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

  version :thumb do
    process resize_to_fit: [230, 183]
  end
  version :screenshot do
    process :screenshot
    def full_filename (for_file = model.logo.file)
      "screenshot.jpg"
    end
  end

  def screenshot
    tmpfile = File.join(File.dirname(current_path), "tmpfile")

    File.rename(current_path, tmpfile)

    movie = FFMPEG::Movie.new(tmpfile)
    movie.screenshot(current_path + ".jpg", {resolution: '230x183' }, preserve_aspect_ratio: :width)
    File.rename(current_path + ".jpg", current_path)

    File.delete(tmpfile)
  end

  def extension_whitelist
    %w(jpg jpeg gif png mp4)
  end
end


    



    *show.html.erb&#xA;<h1>Stroll</h1>&#xA;<p>&lt;%= notice %></p>&#xA;<p></p>&#xA;&lt;% if @stroll[:image] == nil %>&#xA;  &lt;%= image_tag"03summer_ver8-l.jpg", width:"230", height:"183" %>&#xA;&lt;% elsif @stroll.image.file.content_type.include?(&#x27;video/&#x27;) %>&#xA;  &lt;%= link_to @stroll.image_url.to_s do %>&#xA;  &lt;%= image_tag(@stroll.image_url(:screenshot).to_s, id: "image", :alt => "screenshot") %>&#xA;  &lt;% end %>&#xA;&lt;% else %>&#xA;  &lt;%= image_tag(@stroll.image.url) if @stroll.image &amp;&amp; @stroll.image.url %>&#xA;&lt;% end %>&#xA;<p>user &lt;%= @stroll.user.name %></p>&#xA;<p>『&lt;%= @stroll.title %>』</p>&#xA;<p>content: &lt;%= @stroll.content %></p>&#xA;<p>tag: &lt;%= @stroll.tag %></p>&#xA;<p>comment: </p>&#xA;<div>&#xA;  &lt;%= render partial: &#x27;comments/index&#x27;, locals: { comments: @comments, stroll: @stroll } %>&#xA;</div>&#xA;&lt;% if user_signed_in? &amp;&amp; @stroll.user_id != current_user.id %>&#xA;  &lt;%= render partial: &#x27;comments/form&#x27;, locals: { comment: @comment, stroll: @stroll } %>&#xA;&lt;% end %>&#xA;&lt;% if current_user %>&#xA;  &lt;% unless @stroll.user_id == current_user.id %>&#xA;    &lt;% if @favorite.present? %>&#xA;      &lt;%= link_to &#x27;cancel&#x27;, favorite_path(id: @favorite.id), method: :delete, class: &#x27;btn btn-info&#x27; %>&#xA;      &lt;% else %>&#xA;      &lt;%= link_to &#x27;Like!&#x27;, favorites_path(stroll_id: @stroll.id), method: :post, class: &#x27;btn btn-warning&#x27; %>&#xA;    &lt;% end %>&#xA;  &lt;% end %>&#xA;&lt;% end %>&#xA;&amp;emsp;&#xA;&lt;%= link_to "Index", strolls_path %>&#xA;

    &#xA;