Recherche avancée

Médias (1)

Mot : - Tags -/portrait

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 ;

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

  • Keeping control of your media in your hands

    13 avril 2011, par

    The vocabulary used on this site and around MediaSPIP in general, aims to avoid reference to Web 2.0 and the companies that profit from media-sharing.
    While using MediaSPIP, you are invited to avoid using words like "Brand", "Cloud" and "Market".
    MediaSPIP is designed to facilitate the sharing of creative media online, while allowing authors to retain complete control of their work.
    MediaSPIP aims to be accessible to as many people as possible and development is based on expanding the (...)

Sur d’autres sites (10679)

  • Access files in a directory and write the file paths to a text file in ascending order using PHP

    26 mars 2014, par SCC

    I have a list of video files in my server. I would like to list out all the video files in this directory and write it to a text file. These video files are all having the same name output-x.mp4, and x is the number from 0 to an unknown figure. The total number of video files is dynamic and therefore I don't get to know the number of the last video. I have the below code to access all the video files in this directory. It works fine with only one problem : The video files written to the text file are not sorted in ascending order.

    $directory = "video/myvideo";
    $fp = fopen($_SERVER['DOCUMENT_ROOT']."Path/to/text/file", "wb");
    $split_video_files = scandir($directory);
    foreach($split_video_files as $file)
    {
       $content = "file ".$directory.$file."\r\n";
       fwrite($fp, $content);
    }
    fclose($fp);

    What the text file gave me is this :

    video/myvideo/output-0.mp4
    video/myvideo/output-1.mp4
    video/myvideo/output-10.mp4
    video/myvideo/output-11.mp4
    video/myvideo/output-12.mp4
    video/myvideo/output-13.mp4
    video/myvideo/output-14.mp4
    video/myvideo/output-2.mp4
    video/myvideo/output-3.mp4
    video/myvideo/output-4.mp4
    video/myvideo/output-5.mp4
    video/myvideo/output-6.mp4
    video/myvideo/output-7.mp4
    video/myvideo/output-8.mp4
    video/myvideo/output-9.mp4

    It lists out all the filename that start with "1" first before proceed to "2" and so on. Any ways for me to sort it in ascending order so that it starts from 0, 1, 2,… ?

  • Revision 5182befa49 : ads2armasm_ms : Add an ALIGN 4 after ENDP This makes sure that labels for data s

    19 mars 2014, par Martin Storsjo

    Changed Paths :
     Modify /build/make/ads2armasm_ms.pl



    ads2armasm_ms : Add an ALIGN 4 after ENDP

    This makes sure that labels for data symbols directly after
    functions get properly 4-byte-aligned (when the source is assembled
    in thumb mode).

    Previously, if declaring a data symbol directly after a function, the
    symbol could end up pointing to the unaligned address (if the total
    size of the thumb function didn't end up being a multiple of 4). The
    data in the symbol itself ended up aligned, but the symbol pointed to
    the preceding unaligned position.

    That is, a source file looking like this :
    — -
    ...
    ENDP

    symbol
    DCD 0x12345678
    — -

    could end up being assembled into
    symbol :
    xxxxx2 : 0000
    xxxxx4 : 5678
    xxxxx6 : 1234

    (This doesn't happen if the symbol label is on the same line as the
    DCD directive.)

    By adding an ALIGN 4 directly after the ENDP we make sure the symbol
    itself gets aligned properly.

    This isn't an issue with the original, untranslated arm source,
    since it only is built in arm mode where all instructions are 4 byte,
    and since the gnu assembler automatically adds the padding before the
    symbol even in thumb mode.

    Change-Id : Iadbeebd656b0197e423e79a12a7d3ef8859cf445

  • How to determine the best way to split video and merge it back ?

    6 novembre 2018, par Rami Alzebak

    Let’s say that I want to convert a Video to different resolution.

    The workflow is as follows :
    1- Splitting the video into n blocks
    2- Convert the resolution of the block
    3- Merge the blocks

    The reason why I am doing is to achieve the conversion process on parallel workers (not necessarily threads )

    The issue is I can’t determine what is the best number of blocks to split the video.

    E.g : When splitting a large video into 10 blocks it will reduce the total time .
    but when splitting a small one it may increase the total time .

    any hints or keys on the topic ?