Recherche avancée

Médias (1)

Mot : - Tags -/MediaSPIP

Autres articles (43)

  • 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

  • Déploiements possibles

    31 janvier 2010, par

    Deux types de déploiements sont envisageable dépendant de deux aspects : La méthode d’installation envisagée (en standalone ou en ferme) ; Le nombre d’encodages journaliers et la fréquentation envisagés ;
    L’encodage de vidéos est un processus lourd consommant énormément de ressources système (CPU et RAM), il est nécessaire de prendre tout cela en considération. Ce système n’est donc possible que sur un ou plusieurs serveurs dédiés.
    Version mono serveur
    La version mono serveur consiste à n’utiliser qu’une (...)

  • Creating farms of unique websites

    13 avril 2011, par

    MediaSPIP platforms can be installed as a farm, with a single "core" hosted on a dedicated server and used by multiple websites.
    This allows (among other things) : implementation costs to be shared between several different projects / individuals rapid deployment of multiple unique sites creation of groups of like-minded sites, making it possible to browse media in a more controlled and selective environment than the major "open" (...)

Sur d’autres sites (5997)

  • Trouble downloading files in Dropbox Python API v2

    16 août 2019, par jack

    I’m trying to download .mov files from Dropbox, manipulate them with ffmpeg, and upload back to Dropbox, but I’m getting an error when I use the files_download method.

    I’m able to read files from Dropbox without any problem using dbx.files_list_folder

    When trying to download files, I’ve used the following :

    import dropbox
    access_token = 'MY TOKEN'
    dbx = dropbox.Dropbox(access_token)
    metadata,file=dbx.files_download('path to .mov file')

    and I get the error

    SSLError: HTTPSConnectionPool(host='content.dropboxapi.com', port=443): Max retries exceeded with url: /2/files/download (Caused by SSLError(SSLError("bad handshake: Error([('SSL routines', 'tls_process_server_certificate', 'certificate verify failed')])")))

    I don’t know if this is a cause, but I didn’t use the Dropbox app key or app secret in setting things up. In going through the API v2 setup, it looked like all you need is the API Access token, but I’m wondering if there’s a permissions error.

    I’ll only be using this app for myself—it’s not meant for production.

  • I am experiencing unsync between audio and video in my Janus stream originating from ffmpeg

    10 septembre 2019, par Alexander Novikov

    I am using Janus Gateway to stream a video taken from the video file and encoded by ffmpeg. The goal of the project is much more complicated but i tried to reduce it to the minimum possible to help troubleshooting.

    encoding is done this way :

    ffmpeg -re -thread_queue_size 4 -stream_loop -1 -i \
    /root/syncTest.mkv -c:v libvpx -vf scale="-1:360" -minrate 400k \
    -maxrate 600k -b:v 500k -an -deadline realtime -f rtp \
    rtp://127.0.0.1:5004?pkt_size=1200 -vn -ar 48000 -ac 2 -c:a libopus \
    -f rtp rtp://127.0.0.1:5002?pkt_size=1200

    I am using Streaming plugin and stream appears to be configured with no tricks :

    stream-1 :
    {
     type = "rtp";
     id = "1";
     description = "stream-1";
     audio = "yes";
     audioport = "5002";
     audiopt = "111";
     audiortpmap = "opus/48000/2";
     video = "yes";
     videoport = "5004";
     videopt = "100";
     videortpmap = "VP8/90000";
     data = "no";
     secret = "adminpwd";
    };

    Here are the links to my streaming plugin and Janus configs - i tried to play a bit with nack queue length and dtls timeout parameters but to no avail, they don’t change anything.

    https://codeda.com/data/janus.jcfg.txt
    https://codeda.com/data/janus.plugin.streaming.jcfg.txt

    Resulting video (screen capture of a WebRTC player page) is here : https://codeda.com/data/janusSyncIssue.mp4 - as you can see, there is a considerable unsync between video and audio.

    As i see it, the problem is that the video stream and audio stream are sent separately and either do not contain timecodes, or they are for some reason ignored. Obviously encoding video and encoding audio takes different time, more for video, so that results in a delayed video.

    Am i right suspecting this ? If so, how can i fix this ? I imagine there is some ffmpeg setting or Janus streaming plugin setting for that.

    Ah yes, processor is almost free, 80-85% free, on that server. Not a processor issue for sure.

  • PHP - Upload video convert mp4 and upload to Amazon S3

    31 octobre 2019, par Kadir Geçit

    I’m using amazon s3 as video storage for my website. I’m having problems for some videos. black screen or sound problems etc.

    I want to convert the video to mp4 format after uploading the video to my server and then upload it to amazon. Is it possible with FFMPEG ?

    I’m using this code for uploading files now :

    $file1 = $_FILES['file']['name'];
    $videoFileType = strtolower(pathinfo($file1,PATHINFO_EXTENSION));
    $file_name = sprintf('%s_%s', uniqid(),uniqid().".".$videoFileType);
    $temp_file_location = $_FILES["file"]["tmp_name"];

    require 'application/libraries/Amazon/aws-autoloader.php';
           $s3 = new Aws\S3\S3Client([
               'region'  => $amazon_region,
               'version' => 'latest',
               'credentials' => [
               'key'    => $amazon_key,
               'secret' => $amazon_secret,
               ]
           ]);    

           $result = $s3->putObject([
               'Bucket' => $amazon_bucket,
               'Key'    => $file_name,
               'SourceFile' => $temp_file_location,
               'ACL'    => 'public-read',
               'CacheControl' => 'max-age=3153600',
           ]);
               $filepath = $result['ObjectURL'] . PHP_EOL;

               echo json_encode([
                   'status' => 'ok',
                   'path' => $filepath

               ]);