Recherche avancée

Médias (2)

Mot : - Tags -/plugins

Autres articles (54)

  • 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

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

  • Support audio et vidéo HTML5

    10 avril 2011

    MediaSPIP utilise les balises HTML5 video et audio pour la lecture de documents multimedia en profitant des dernières innovations du W3C supportées par les navigateurs modernes.
    Pour les navigateurs plus anciens, le lecteur flash Flowplayer est utilisé.
    Le lecteur HTML5 utilisé a été spécifiquement créé pour MediaSPIP : il est complètement modifiable graphiquement pour correspondre à un thème choisi.
    Ces technologies permettent de distribuer vidéo et son à la fois sur des ordinateurs conventionnels (...)

Sur d’autres sites (8639)

  • How to fix "Non-monotonous DTS in output stream 0:1" when trying to convert a m3u8 file into a mp4 using ffmpeg

    23 mars 2019, par Alessandro Autiero

    I’m currently coding a desktop util that downloads Twich Clips if they meet some requirements. As the twitch api gives as a response a m3u8 file, I have to convert it into a mp4. To do with I’m executing a cmd command through my Java application using the ProcessBuilder API built into Java. The command works fine, but sometimes I get a buggy video that has broken frames and audio. Here’s my code :

    public static void convertFile(File input, File output) {
       String command = "ffmpeg -protocol_whitelist file,http,https,tcp,tls,crypto -vsync 2 -i \"" + input.getAbsolutePath() + "\" -c copy " + "\"" + output.getAbsolutePath() + "\"";
       System.out.println("______________________________________________________");
       System.out.println("Converting file...");
       System.out.println("Using as input " + input.getAbsolutePath());
       System.out.println("Using as output " + output.getAbsolutePath());
       System.out.println("Using as command: " + command);
       System.out.println("______________________________________________________");
       setHasDone(false);

       ProcessBuilder pb = new ProcessBuilder();
       pb.command(command.split(" "));

       pb.redirectOutput(ProcessBuilder.Redirect.INHERIT);
       pb.redirectError(ProcessBuilder.Redirect.INHERIT);

       Process process;
       try {
           process = pb.start();
       }catch (IOException e){
           e.printStackTrace();
           return;
       }

       while (process.isAlive()){
           setHasDone(false);
       }

       setHasDone(true);
    }

    Example of broken video :
    https://youtu.be/FfFvStNl-9o

    When uploaded to youtube lot’s of the video bugs are not present, not really know why, but at the end you can clearly see what I’m talking about. Am I using ffmepg wrong ?

    I posted this as none of the 1000 answers on similar posts helped me.

  • Why can't I connect OBS to my transcoding server ?

    3 février 2019, par toastedDeli

    I’m trying to write a server that will take incoming RTMP video and transcode to HLS for live streaming. I’m using ffmpeg on my server for the transcoding. Here is the ffmpeg command I am running :

    ffmpeg -i rtmp://127.0.0.1:1935/test -c:v libx264 -x264opts keyint=120:no-scenecut -s 1280x720 -r 60 -b:v 5M -profile:v main -preset veryfast -c:a libfdk_aac -sws_flags bilinear -hls_list_size 6 output.m3u8

    I’m confident that this is the correct usage of ffmpeg for transcoding because I read about it here.

    When I run my server and try to connect to it using OBS (Open Broadcaster Software) I get an error from OBS saying failed to connect to server. I get this error from ffmpeg :

    RTMP_Connect0, failed to connect socket. 111 (Connection refused)
    rtmp ://127.0.0.1:1935/test : Unknown error occurred

    Here is a capture of the packets sent between the applications.

    wireshark capture of OBS connecting to my server

    Here are the OBS setting I’m using to stream to my server :
    OBS Streaming Settings

    Edit : When I remove /test from the url in my ffmpeg command and in the OBS settings window I get this :
    ffmpeg error 2

  • Opencv VideoCapture always returns false on Heroku

    27 juin 2022, par Dacian Mujdar

    I'm using the following code to open a video stream :

    


    import cv2
video = cv2.VideoCapture()
video.open("some_m3u8_link")
success, image = video.read()


    


    However, even if the code works as intended locally, on Heroku success is always false.

    


    I'm using cedar-14 stack with the following buildpacks :

    


    


    heroku/python

    


    https://github.com/jonathanong/heroku-buildpack-ffmpeg-latest.git

    


    


    (I tried several buildpack options for ffmpeg)

    


    Running ffmpeg --version on heroku instance will return ffmpeg version 4.0-static https://johnvansickle.com/ffmpeg/

    


    Is there any setting/configuration I missed in order to make it work on deployment ? Thank you !

    


    Later edit : I tried several links for "some_m3u8_link" including from twitch and other streaming services (including traffic streaming li
An example for reproducing :

    


    python -c "import cv2; video=cv2.VideoCapture(); video.open('https://hddn01.skylinewebcams.com/live.m3u8?a=5tm6kfqrhqbpblan9j5d4bmua4'); success, image = video.read(); print(success)"


    


    Returns True on local machine and False on Heroku.

    


    (the link is taken from here)