Recherche avancée

Médias (91)

Autres articles (61)

  • Gestion des droits de création et d’édition des objets

    8 février 2011, par

    Par défaut, beaucoup de fonctionnalités sont limitées aux administrateurs mais restent configurables indépendamment pour modifier leur statut minimal d’utilisation notamment : la rédaction de contenus sur le site modifiables dans la gestion des templates de formulaires ; l’ajout de notes aux articles ; l’ajout de légendes et d’annotations sur les images ;

  • Supporting all media types

    13 avril 2011, par

    Unlike most software and media-sharing platforms, MediaSPIP aims to manage as many different media types as possible. The following are just a few examples from an ever-expanding list of supported formats : images : png, gif, jpg, bmp and more audio : MP3, Ogg, Wav and more video : AVI, MP4, OGV, mpg, mov, wmv and more text, code and other data : OpenOffice, Microsoft Office (Word, PowerPoint, Excel), web (html, CSS), LaTeX, Google Earth and (...)

  • Dépôt de média et thèmes par FTP

    31 mai 2013, par

    L’outil MédiaSPIP traite aussi les média transférés par la voie FTP. Si vous préférez déposer par cette voie, récupérez les identifiants d’accès vers votre site MédiaSPIP et utilisez votre client FTP favori.
    Vous trouverez dès le départ les dossiers suivants dans votre espace FTP : config/ : dossier de configuration du site IMG/ : dossier des média déjà traités et en ligne sur le site local/ : répertoire cache du site web themes/ : les thèmes ou les feuilles de style personnalisées tmp/ : dossier de travail (...)

Sur d’autres sites (9826)

  • Playing a video with JavaCV and FFmpeg

    11 mars 2021, par Wamasa

    So, I'm developing a custom video player for Android but I need to play more than the android supported video files (mp4, 3gp...), like wmv, avi, flv.

    



    At this time I do already convert any video type to .mp4 and I'm able to play them after recoding, but I have no idea how can I play those wmv, avi files without recoding them to mp4 video formats.

    



    Is there any way I can play any video on Android without recoding them ?
JavaCV + FFmpeg library already working, just don't know how to do that.

    



    By the way, heres the code that I'm using to recode videos :

    



    public static void convert(File file) {

    FFmpegFrameGrabber frameGrabber =
            new FFmpegFrameGrabber(file.getAbsolutePath());

    IplImage captured_frame = null;

    FrameRecorder recorder = null;
    recorder = new FFmpegFrameRecorder("/mnt/sdcard/external_sd/videosteste/primeiroteste.mp4", 300, 300);
    recorder.setVideoCodec(13);
    recorder.setFrameRate(30);
    recorder.setFormat("mp4");
    try {
        recorder.start();
        frameGrabber.start();
        while (true) {
            try {
                captured_frame = frameGrabber.grab();

                if (captured_frame == null) {
                    System.out.println("!!! Failed cvQueryFrame");
                    break;
                }
                recorder.record(captured_frame);
            } catch (Exception e) {
            }
        }
        recorder.stop();
        recorder.release();
    } catch (Exception e) {
        e.printStackTrace();
    }
}


    


  • MEDIA_ERR_SRC_NOT_SUPPORTED while playing mp4 only in Safari

    18 novembre 2020, par sabotage

    I'm trying to play an mp4 file which plays fine in Chrome/Firefox but results in error (MEDIA_ERR_SRC_NOT_SUPPORTED) in Desktop/Mobile Safari.

    


    I've attached response of the request from charles.

    


    Ive created the video file using ffmpeg : ffmpeg -loop 1 -i audioOnlyModeMsg.jpg -c:v libx264 -t 3 -pix_fmt yuv420p -vf scale=320:240 out.mp4

    


    the jpg is just a black picture with a message in the center. Overall it's a still 3 second video.

    


    I tried other answers, I changed response status to 206, it didn't work.

    


    I checked this link (https://developer.apple.com/library/archive/documentation/AppleApplications/Reference/SafariWebContent/CreatingVideoforSafarioniPhone/CreatingVideoforSafarioniPhone.html#//apple_ref/doc/uid/TP40006514-SW6) where there is a test for checking if byte range is supported by my server, it worked too.

    


    Please help me out, what is going on here ?

    


    you can run this here : https://jsfiddle.net/dcm97h41/1/
please try on chrome for expected result and safari for error

    


    charles response of video file request

    


  • Mp4 Video File not playing after downloading using Content Disposition php but it plays when it streams directly from the server

    1er juin 2021, par Razor Rassh

    I'm trying to combine a video and audio file using the FFMPEG and it worked successfully for me. The FFMPEG successfully created the MP4 file in the target destination folder. When I'm trying to download the Video file from the destination folder using Content-Disposition in Php. The server successfully downloads the Video file from the exact target folder.

    


    The problem is that when I'm trying to play the video using VLC or any other player, nothing happened. The VLC player just launched and do nothing. I checked the downloaded file size with the video file located on the server and found that they both are the same size.

    


    The code I used for creating Video file and content disposition is,

    


          
      $downloadFolderPath = "/var/www/html/temp/{$downloadFolderName}";
      $result = mkdir($downloadFolderPath, 0777);     
      $downloadFileName = "$downloadFolderPath/$filename";
      //echo $downloadFileName;
      $command = $ffmpeglocation." -i $audio_link -i $link -c:v copy -c:a aac -preset fast -crf 20 $downloadFileName 2>&1";
      shell_exec($command);

      $file=fopen($downloadFileName,'r');
      header("Content-Type:video/mp4");
    
      header("Content-Disposition: attachment; filename=$filename");
         
      header('Content-Description: File Transfer');
      header('Content-Type: application/octet-stream');
       
      header('Content-Disposition: attachment; filename="'.basename($downloadFileName).'"');
      header('Expires: 0');
      header('Cache-Control: must-revalidate');
      header('Pragma: public'); 
      header('Content-Length: ' . filesize($downloadFileName)); 
      flush(); // Flush system output buffer
      readfile($downloadFileName);    
      die();


    


    The above code did its purpose by properly downloading the video file hosted on the server. But after downloading, the video file is not playing. I tried to access the file directly through the URL of the file in the browser and it plays fluently in the browser.

    


    Help me out. Sorry for the bad english.