Recherche avancée

Médias (3)

Mot : - Tags -/image

Autres articles (39)

  • Personnaliser en ajoutant son logo, sa bannière ou son image de fond

    5 septembre 2013, par

    Certains thèmes prennent en compte trois éléments de personnalisation : l’ajout d’un logo ; l’ajout d’une bannière l’ajout d’une image de fond ;

  • Ecrire une actualité

    21 juin 2013, par

    Présentez les changements dans votre MédiaSPIP ou les actualités de vos projets sur votre MédiaSPIP grâce à la rubrique actualités.
    Dans le thème par défaut spipeo de MédiaSPIP, les actualités sont affichées en bas de la page principale sous les éditoriaux.
    Vous pouvez personnaliser le formulaire de création d’une actualité.
    Formulaire de création d’une actualité Dans le cas d’un document de type actualité, les champs proposés par défaut sont : Date de publication ( personnaliser la date de publication ) (...)

  • 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

Sur d’autres sites (3929)

  • checkasm/riscv : preserve T1 whilst calling...

    29 juillet 2024, par Rémi Denis-Courmont
    checkasm/riscv : preserve T1 whilst calling...
    

    This preserves T1 whilst calling the instrumented function. In a Sci-Fi
    setting where type-based Control Flow Integrity (CFI) is supported, the
    calling code (i.e., the `checkasm` test case) will set T1 to the expected
    value of the landing pad label (LPL) of the instrumented function.

    The call wrapper will always use LPL zero which is a wild card. We should
    preserve the value of T1 at least until the indirect call to the
    instrumented function. Of course this is Sci-Fi, because :
    1) there is no hardware (or even QEMU) support yet,
    2) all our assembler functions currently use LPL zero anyway.

    This uses T3 rather than T2 because indirect branches with T2 is reserved
    for notionally direct calls made with an indirect call instruction (e.g.
    due to GOT indirection), and are exempted from forward-edge CFI checks.

    • [DH] tests/checkasm/riscv/checkasm.S
  • Converted mp4 from gif didn't shows in web browser

    16 décembre 2017, par Stojan Kukrika

    I am trying to convert animated GIFs to MP4 files using ffmpeg. Only this convert GIF to MP4 :

     exec('ffmpeg -i ' . $destinationPath . $filename . ' -movflags faststart -pix_fmt yuv420p -vf "scale=trunc(iw/2)*2:trunc(ih/2)*2" ' . $destinationPath . $newFilename);

    And I can play it in my pc when download it from server, but it’s didn’t want to pay in browser. Browser returns me this error :
    enter image description here

    After that GIF to MP4 converor I get one image for thumbnail image and that is works fine :

    exec("ffmpeg -i " . $destinationPath . $video . ".mp4 -ss  00:00:01.000 -vframes 1 ".storage_path().$folderNameThumb."/media.png");

    and it’s shows me a valid frame of GIF. Can anybody help me how to fix this problem with video ?

    ffprobe output
    ffprobe version 2.8.13 Copyright (c) 2007-2017 the FFmpeg developers built with gcc 4.8.5 (GCC) 20150623 (Red Hat 4.8.5-16)
    configuration:
     libavutil      54. 31.100 / 54. 31.100
     libavcodec     56. 60.100 / 56. 60.100
     libavformat    56. 40.101 / 56. 40.101
     libavdevice    56.  4.100 / 56.  4.100
     libavfilter     5. 40.101 /  5. 40.101
     libswscale      3.  1.101 /  3.  1.101
     libswresample   1.  2.101 /  1.  2.101

    Here is what I get from one MP4 file (run ffprobe filename.mp4) :

    Metadata:
    major_brand     : isom
    minor_version   : 512
    compatible_brands: isomiso2mp41
    encoder         : Lavf56.40.101
    Duration: 00:00:02.16, start: 0.000000, bitrate: 593 kb/s
    Stream #0:0(und): Video: mpeg4 (Simple Profile) (mp4v / 0x7634706D), yuv420p, 500x312 [SAR 1:1 DAR 125:78], 589 kb/s, 8.33 fps, 8.33 tbr, 12800 tbn, 25 tbc (default)
    Metadata:
    handler_name    : VideoHandler

    Because I use Laravel this is method for return media :

    public function getGifImage(Media $media)
    {
       $path = storage_path() . '/uploads/gif/' . $media->content;
       if (file_exists($path)) {
           return response()->download($path, null, [], null);
       }
    }
  • How to upload 7MB GIF to Twitter's API

    22 février 2021, par randombits

    I have a bunch of JPEG frames that I use ImageMagick to stitch together into a GIF. The final product has the following type :

    


    GIF image data, version 89a, 1280 x 720

    


    This gives the effect of an animated GIF. My file sizes range anywhere between 6-8MB.

    


    If I upload this media manually to Twitter, it works great. Using TwitterOAuth PHP library found here when I attempt the following :

    


    $media = $twitterConnection->upload('media/upload', ['media' => 'my_file.gif');

    


    I get the following error :

    


    Image file size must be <= 5242880 bytes

    


    I have also tried uploading the file using Twitter's recommended Python large video library and that failed with the following :

    


    INIT
Media ID: 1362940800456351744
APPEND
4194304 of 7685061 bytes uploaded
APPEND
7685061 of 7685061 bytes uploaded
Upload chunks complete.
FINALIZE
{'media_id': 1362940800456351744, 'media_id_string': '1362940800456351744', 'media_key': '7_1362940800456351744', 'size': 7685061, 'expires_after_secs': 86400, 'processing_info': {'state': 'pending', 'check_after_secs': 1}}
Media processing status is pending
Checking after 1 seconds
STATUS
Media processing status is failed


    


    I am willing to use any platform/utility to get my video files uploaded to Twitter. What is my best bet to either :

    


    1 : Fix my file type to adhere to Twitter's requirements. Should it not be a GIF ? Should I be converting my still shot JPEG files to another format ?

    


    2 : Is there an API that Twitter has available that will allow the GIFs of these sizes to be uploaded ? Again, I can upload these files via the regular Twitter web UI client, but I cannot automate it via their API.

    


    How do I upload my GIF to Twitter using their API ?