Recherche avancée

Médias (91)

Autres articles (37)

  • Les vidéos

    21 avril 2011, par

    Comme les documents de type "audio", Mediaspip affiche dans la mesure du possible les vidéos grâce à la balise html5 .
    Un des inconvénients de cette balise est qu’elle n’est pas reconnue correctement par certains navigateurs (Internet Explorer pour ne pas le nommer) et que chaque navigateur ne gère en natif que certains formats de vidéos.
    Son avantage principal quant à lui est de bénéficier de la prise en charge native de vidéos dans les navigateur et donc de se passer de l’utilisation de Flash et (...)

  • HTML5 audio and video support

    13 avril 2011, par

    MediaSPIP uses HTML5 video and audio tags to play multimedia files, taking advantage of the latest W3C innovations supported by modern browsers.
    The MediaSPIP player used has been created specifically for MediaSPIP and can be easily adapted to fit in with a specific theme.
    For older browsers the Flowplayer flash fallback is used.
    MediaSPIP allows for media playback on major mobile platforms with the above (...)

  • Les autorisations surchargées par les plugins

    27 avril 2010, par

    Mediaspip core
    autoriser_auteur_modifier() afin que les visiteurs soient capables de modifier leurs informations sur la page d’auteurs

Sur d’autres sites (7768)

  • python ffmpeg subprocess not working on heroku

    21 septembre 2018, par Liam

    I’ve made a bot that deals with gif files and I tried uploading it on heroku.

    So I’ve installed this buildpack https://elements.heroku.com/buildpacks/jonathanong/heroku-buildpack-ffmpeg-latest

    And I run this code as a subprocess :

    id_name = "je4d" (is actually randomized bc it downloads different gifs)
    path = "./media/%s.gif" % (id_name)
    subprocess.run('ffmpeg -y -ignore_loop 0 -i %s -movflags faststart -pix_fmt yuv420p -vf "scale=trunc(iw/2)*2:trunc(ih/2)*2" -t 15 %s' % (path, path.replace(".gif", ".mp4")), shell=True)

    So if I run this on my computer, it will transform je4d.gif into an .mp4 and it works fine

    If I try to test ffmpeg on heroku by doing heroku run bash
    and then inputing the command ffmpeg -y -ignore_loop 0 -i ./media/je4d.gif -movflags faststart -pix_fmt yuv420p -vf "scale=trunc(iw/2)*2:trunc(ih/2)*2" -t 15 ./media/je4d.mp4
    It also works fine and makes a .mp4

    However if I run the code on heroku from python it does this :
    [Errno 2] No such file or directory: 'ffmpeg -y -i ./media/3s1m8cw09sl11.gif -movflags faststart -pix_fmt yuv420p -vf "scale=trunc(iw/2)*2:trunc(ih/2)*2" ./media/3s1m8cw09sl11.mp4': 'ffmpeg -y -i ./media/3s1m8cw09sl11.gif -movflags faststart -pix_fmt yuv420p -vf "scale=trunc(iw/2)*2:trunc(ih/2)*2" ./media/3s1m8cw09sl11.mp4'

    So I thought maybe there’s an error with the download, so I change path to a static file on the server, and it still gives me the same error.
    Any tips ?

  • GStreamer : cannot link elements

    9 septembre 2018, par Han Jingyu

    when rosruning my own project, I got an unexpected error as below
    I was guessing it was caused by some problems encountered in the process of installing OpenCV.So I reinstalled and recompiled the opencv, but this error still exists.
    then I noticed the message, GStreamer : cannot link elements. I was thinking it probably related to GStreamer. Unfortunately, I don’t know how to fix this problem. little clues would be appreciated.

    ** (ros_exploration:14898): CRITICAL **: gst_missing_encoder_message_new: assertion 'gst_caps_is_fixed (encode_caps)' failed        
     (ros_exploration:14898): GStreamer-CRITICAL **: gst_element_post_message: assertion 'message != NULL' failed
       OpenCV Error: Unspecified error (GStreamer: cannot link elements        
           ) in CvVideoWriter_GStreamer::open, file /home/htf/Downloads/opencv-2.4.13.6/modules/highgui/src/cap_gstreamer.cpp, line 1464
       Qt has caught an exception thrown from an event handler. Throwing
       exceptions from an event handler is not supported in Qt. You must
       reimplement QApplication::notify() and catch all exceptions there.
       terminate called after throwing an instance of 'cv::Exception'
         what():  /home/htf/Downloads/opencv-2.4.13.6/modules/highgui/src/cap_gstreamer.cpp:1464: error: (-2) GStreamer: cannot link elements
        in function CvVideoWriter_GStreamer::open

      Aborted (core dumped)
  • How to split multiple mp4 videos using ffmpeg ? current solution is too slow [duplicate]

    16 août 2018, par MUHAMMAD Saad Zaheer

    This question already has an answer here :

    I want to split multiple mp4 videos into smaller chunks of size 30-40 secs after many days I have found an answer which used ffmpeg i.e

    ffmpeg -i /home/msz/Downloads/CartoonVideos/1.mp4 -ss 180 -t 30 /home/msz/Downloads/NewCartoonVideos/1-7.mp4

    but this is single line command and it’s taking too much, I have to change it every time.Can anybody tell me other methods or change this code in script/loop ?