Recherche avancée

Médias (91)

Autres articles (88)

  • Publier sur MédiaSpip

    13 juin 2013

    Puis-je poster des contenus à partir d’une tablette Ipad ?
    Oui, si votre Médiaspip installé est à la version 0.2 ou supérieure. Contacter au besoin l’administrateur de votre MédiaSpip pour le savoir

  • MediaSPIP Player : problèmes potentiels

    22 février 2011, par

    Le lecteur ne fonctionne pas sur Internet Explorer
    Sur Internet Explorer (8 et 7 au moins), le plugin utilise le lecteur Flash flowplayer pour lire vidéos et son. Si le lecteur ne semble pas fonctionner, cela peut venir de la configuration du mod_deflate d’Apache.
    Si dans la configuration de ce module Apache vous avez une ligne qui ressemble à la suivante, essayez de la supprimer ou de la commenter pour voir si le lecteur fonctionne correctement : /** * GeSHi (C) 2004 - 2007 Nigel McNie, (...)

  • Mise à jour de la version 0.1 vers 0.2

    24 juin 2013, par

    Explications des différents changements notables lors du passage de la version 0.1 de MediaSPIP à la version 0.3. Quelles sont les nouveautés
    Au niveau des dépendances logicielles Utilisation des dernières versions de FFMpeg (>= v1.2.1) ; Installation des dépendances pour Smush ; Installation de MediaInfo et FFprobe pour la récupération des métadonnées ; On n’utilise plus ffmpeg2theora ; On n’installe plus flvtool2 au profit de flvtool++ ; On n’installe plus ffmpeg-php qui n’est plus maintenu au (...)

Sur d’autres sites (11398)

  • What is the correct path video using Streamio FFMPEG on Rails

    5 avril 2013, par Khalid

    I follow this gem https://github.com/streamio/streamio-ffmpeg , then I do this :

    movie = FFMPEG::Movie.new("#{Rails.root}/public/aaa.mov")

    but the result is :

    Errno::ENOENT: No such file or directory - ffmpeg -i /home/user/projects/test/public/aaa.mov

    Does anyone know ?

    Thanks

  • Adding a watermark with FFMPEG via Rails

    16 juin 2016, par Felix

    in my Rails app I want to use ffmpeg to add a watermark to a movie while uploading.

    For that I’ve added the stremio-ffmpeg gem.

    My code looks like this :

    options = {watermark: Rails.root.join('public/images/logo_klein.png'), watermark_filter: {position: "RT", padding_x: 10, padding_y: 10}, custom: '-strict experimental'}

    tmp_path = File.join File.dirname(current_path), "tmp_file.mp4"
    file = FFMPEG::Movie.new(self.file.path)
    file.transcode(tmp_path, options)

    File.rename tmp_path, current_path

    But my Image is not added to the movie. wenn I call http://localhost/images/logo_klein.php it is shown in browser (image)

    What could be the problem for not added into the movie ? When I follow the console out transcoding is started properly. But nothing mentioned of watermarking only transcoding is mentiond

    console output :

    INFO -- : Running transcoding...
    ffmpeg -y -i /var/www/ji/public/uploads/tmp/1466030485-10470-0                                                              013-4987/2016-06-08_09.50.55.mp4   -strict experimental /var/www/ji/public/uploads/tmp/1466030485-10470-0013-4987/tmp_file.mp4

    What could be the problem ?

  • rails / streamio-ffmpeg - How to execute 2-pass encoding ?

    20 mars 2017, par R4ttlesnake

    I’m using streamio-ffmpeg to encode videos uploaded to my Rails application via ffmpeg. I want to encode the videos to .webm-format using the VP9 coding format and the VP9 Encoding Guide of the WebM Project recommends using 2-pass encoding. I managed to get the videos encoding via streamio-ffmpeg using 1-pass encoding, but I can’t figure out how to handle the 2-pass encoding.

    Here my setup so far :

    # create two tempfiles for the video and a still
    video = Tempfile.new(["video", ".webm"], binmode: true)
    still = Tempfile.new(["still", ".jpg"], binmode: true)

    # new FFMPEG
    movie = FFMPEG::Movie.new(original.path)

    # extract still from video
    movie.screenshot(still.path)

    # encode video
    options = %w(-c:v libvpx-vp9 -b:v 1000K -threads 8 -speed 4 -tile-columns 6 -frame-parallel 1 -auto-alt-ref 1 -lag-in-frames 25 -c:a libvorbis -b:a 64k -f webm)
    movie.transcode(video.path, options)

    The command to do a 2-pass encoding with ffmpeg would be :

    ffmpeg -i <source> -c:v libvpx-vp9 -pass 1 ... -f webm /dev/null
    ffmpeg -i <source> -c:v libvpx-vp9 -pass 2 ... -f output.webm
    </source></source>

    In particular, I don’t get how to pass the file of the first encoding step to the second step with streamio-ffmpeg. How would I apply these two steps to the syntax of movie.transcode(output, options) ?

    Thanks !