Recherche avancée

Médias (91)

Autres articles (37)

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

  • Les thèmes de MediaSpip

    4 juin 2013

    3 thèmes sont proposés à l’origine par MédiaSPIP. L’utilisateur MédiaSPIP peut rajouter des thèmes selon ses besoins.
    Thèmes MediaSPIP
    3 thèmes ont été développés au départ pour MediaSPIP : * SPIPeo : thème par défaut de MédiaSPIP. Il met en avant la présentation du site et les documents média les plus récents ( le type de tri peut être modifié - titre, popularité, date) . * Arscenic : il s’agit du thème utilisé sur le site officiel du projet, constitué notamment d’un bandeau rouge en début de page. La structure (...)

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

  • How to add cover art to MP4 ?

    27 décembre 2018, par Ceetch

    I’m trying to find an effective way to update the metadata for my MP4 files that I plan to put on a DLNA server. First thing, I want to have the video files have a cover art.

    I’m specifically using 640x360 JPG files to be the cover art.
    I might also want to add some other tags, like media type or update the Title. Please let me know what can be done.

    If code suggestions are available, please know I have the file name details in a variable %file% to handle things. The JPG has the same name as the source MP4 file, so it’s easy enough to get the file type and remove the extension, which is what I’ve done so far.

    My goal is to be able to simply drop the MP4 file on the following batch file and know its filename and full path, the JPG file, and attach it to the orgininal MP4 file. Apparently ffmpeg.exe won’t write to the file it pulled from, so I have it go to a temp file and then use MOVE to replace the old file with the fixed file.

    @ECHO OFF
    set arg=%1
    set file=%arg:~1,-5%
    ffmpeg -i "%file%.mp4" -i "%file%.jpg" -acodec copy -vcodec copy -map 0 -map 1:0 "%file%WIP.mp4"
    move /Y "%file%WIP.mp4" "%file".mp4"

    This code did not seem to work. It doesn’t show up in Windows as the cover art, so I’d say it failed.

  • Evolution #4256 (Nouveau) : Faire un signalement des mise à jour de sécu

    24 décembre 2018, par Franck D

    Hello :-)
    Quand un plug reçoit une mise à jour de sécu, l’utilisateur ne le sait pas, car, il n’y a pas de différence "d’affichage" entre une mise à jour de secu et une mise à jour "classique" !
    Résultat, les gens ne font pas forcément la mise à jour, car, il n’y a rien de "percutant" comme info !
    Cela va un peu avec https://core.spip.net/issues/3509 et https://core.spip.net/issues/3017, mais pas complètement non plus, car il ne faudrait même pas y avoir de besoin de lire les logs pour savoir qu’il y a une correction de secu.

    Il faudrait que quand SVP détecte une mise à jour de secu, l’arrière-plan du plug en question sur cette page /ecrire/ ?exec=admin_plugin devienne "rouge" par exemple, voir que le webmestre et les admi reçoivent l’info d’une façon ou d’une autre sans devoir aller sur cette page (mail, popup à la page d’accueil, autre ???)

    Je me demande s’il ne nous manque pas un fichier du type archivelist_secu.txt sur la zone ou SVP regarderait les plugins qui sont dedans avec leur version, nous aurions un affichage du type :
    Nom_du_prefix_du_plugin/Version_du_X_qui_contient_le_problème/Version_du_plugin_sans_problème

    Ce qui donnerait par exemple :
    saisie / version 1.x.x / 1.42.11
    saisie / version 2.x.x / 2.28.0
    saisie / version 3.x.x / 3.11.1
    Franck

  • website performance issues when using ffmpeg on separate server

    10 décembre 2018, par Rich

    I am currently working on a site that uses wordpress and ffmpeg. I have it setup so that I have 3 servers - main, database, ffmpeg. So far I have it all working, however I am still running into issues when I am trying to encode a video.

    Whenever I start encoding a video, if I try opening any other links in a new tab, it gets stuck on loading until ffmpeg is done. I dont understand why, since im using multiple servers.

    My specs for my servers —

    Main (web server) - 4 vCPUs / 8GB RAM / 160GB Disk

    Database server - 2 vCPUs / 4GB RAM / 80GB Disk

    Ffmpeg server - 8 vCPUs / 32GB / 640GB Disk

    They are all in the same region as well, and I have private IPs as public for them. Public IPs uses IPv4.

    On my template page I have a form that the users fills out and uploads images, then using ajax it sends the info to my ffmpeg functions in my functions.php file.

    Images are uploaded to the main server and then on that server in my functions.php file I use ssh2 to login to the ffmpeg server and run different commands, for example —

    $server   = "FFMPEG SERVER IP"; // server IP/hostname of the SSH server
    $username = "user"; // username for the user you are connecting as on the SSH server
    $password = "pass"; // password for the user you are connecting as on the SSH server
    // Establish a connection to the SSH Server. Port is the second param.
    $connection = ssh2_connect($server, 22);
    // Authenticate with the SSH server
    ssh2_auth_password($connection, $username, $password);
    $sftp = ssh2_sftp($connection);
    ssh2_sftp_mkdir($sftp, $thepathw);

    $command = '/usr/local/bin/ffmpeg -threads 1 -i '.$thepath .'/audio.mp3 -safe 0 -f concat -i '.$thepath.'/paths.txt -vf "scale=1280:720,setsar=1" -pix_fmt yuv420p -c:a aac -af "volume=-5dB" -c:v libx264 -movflags +faststart '.$fixedtime.' -y '.$output.' 2>&1';

    // Execute a command on the connected server and capture the response
    $stream = ssh2_exec($connection, $command);
    // Sets blocking mode on the stream
    stream_set_blocking($stream, true);
    // Get the response of the executed command in a human readable form
    $output1 = stream_get_contents($stream);
    // echo output
    echo $output1;

    The video file that is created is then saved to the ffmpeg server.

    This all works as should and Im able to create videos, but the rest of the site doesnt seem to respond/load until ffmpeg is done. This is a big problem since I plan on having multiple users at once on the site.

    So how can I improve this setup so that the ffmpeg server doesnt slow down the main server, and multiple users can safely use the site ?

    Im also open to the idea of getting another server to upload my images to, instead of on the main. Im not sure if that would help though cause it seems like a lot of pulling/sending data between multiple sources/IPs may slow down the response time.

    Any suggestions is appreciated, thanks.