Recherche avancée

Médias (91)

Autres articles (83)

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

  • Organiser par catégorie

    17 mai 2013, par

    Dans MédiaSPIP, une rubrique a 2 noms : catégorie et rubrique.
    Les différents documents stockés dans MédiaSPIP peuvent être rangés dans différentes catégories. On peut créer une catégorie en cliquant sur "publier une catégorie" dans le menu publier en haut à droite ( après authentification ). Une catégorie peut être rangée dans une autre catégorie aussi ce qui fait qu’on peut construire une arborescence de catégories.
    Lors de la publication prochaine d’un document, la nouvelle catégorie créée sera proposée (...)

  • Récupération d’informations sur le site maître à l’installation d’une instance

    26 novembre 2010, par

    Utilité
    Sur le site principal, une instance de mutualisation est définie par plusieurs choses : Les données dans la table spip_mutus ; Son logo ; Son auteur principal (id_admin dans la table spip_mutus correspondant à un id_auteur de la table spip_auteurs)qui sera le seul à pouvoir créer définitivement l’instance de mutualisation ;
    Il peut donc être tout à fait judicieux de vouloir récupérer certaines de ces informations afin de compléter l’installation d’une instance pour, par exemple : récupérer le (...)

Sur d’autres sites (5084)

  • Assign output to a variable instead to a Output file

    25 juin 2013, par rash

    Here is the Python code :

    import subprocess

    cmnd = ["ffmpeg", "-i", "/home/xincoz/test/connect.flv", "-acodec", "copy", "-ss", "00:00:00", "-t", "00:00:30", "/home/xincoz/test/output.flv"]

    subprocess.call(cmnd)

    Here I get the 30sec long video output file output.flv from connect.flv video. But i want to store that 30sec long binary data in a variable instead of copying that into an output file.
    How can I able to do that ?

    Please help me. Thanks a lot in advance.

  • How to display progress on user side in FFMPEG transcoding in rails ?

    21 décembre 2015, par Jiggs

    I am using Streamio-ffmpeg to process files. The gem shows the progress of the transcoding in the console. I want to display this progress to the user. Is there anyway of doing this ?

    This is my lib : (Where the transcoding is done)

    file = ::FFMPEG::Movie.new(tmpfile)

    encoded_file = File.join(directory, new_name)

    file.transcode(encoded_file) { |progress| progressing = (progress * 100).round(2); puts "#{progressing} %"; }

    The |progress| progressing = (progress * 100).round(2) ; puts "#progressing %" ; is responsible for printing the progress to the console. Can I display this in my views instead ?

    Output on console is :-

    I, [2015-12-21T12:48:55.322814 #19642]  INFO -- : Running transcoding...
    ffmpeg -y -i /home/tps/sites/demo_projects/blog/public/uploads/tmp/1450682335-19642-6992/tmpfile  /home/tps/sites/demo_projects/blog/public/uploads/tmp/1450682335-19642-6992/mp4_SampleVideo_1080x720_5mb.mp4

    0.0 %

    6.63 %

    9.57 %

    11.4 %

    13.46 %

    15.86 %

    18.3 %

    21.64 %

    25.03 %

    28.61 %

    32.09 %

    36.62 %

    43.29 %

    48.6 %

    53.23 %

    57.69 %

    61.68 %

    66.49 %

    70.1 %

    72.91 %

    75.75 %

    79.07 %

    83.73 %

    88.81 %

    93.07 %

    96.72 %

    99.05 %

    99.97 %

    100.0 %

    I, [2015-12-21T12:49:10.058592 #19642]  INFO -- : Transcoding of /home/tps/sites/demo_projects/blog/public/uploads/tmp/1450682335-19642-6992/tmpfile to /home/tps/sites/demo_projects/blog/public/uploads/tmp/1450682335-19642-6992/mp4_SampleVideo_1080x720_5mb.mp4 succeeded

    I tried out "using include ActionController::Live" but i don’t get any proper result. I don’t know to how to use "include ActionController::Live" in this situation.

  • declaration of referenced constant is not found in built-in library and project files

    2 août 2016, par Auguste Larrivé

    Hello on the server I’m working on a directory named home.
    In an other directory there’s the library ffmpeg.

    Now I’m trying to use ffmpeg in my "home" directory with php.

    This is my code line :

    <?php ffmpeg -f image2 -i image%d.jpg  video.mpg ?>

    I know "<" is missing. It is on my PHPstorm codeline.

    Unfortunately I can read an error which said declaration of referenced constant is not found in built-in library and project files about ffmpeg.
    Does anyone now anything about this ?