Recherche avancée

Médias (1)

Mot : - Tags -/censure

Autres articles (101)

  • MediaSPIP 0.1 Beta version

    25 avril 2011, par

    MediaSPIP 0.1 beta is the first version of MediaSPIP proclaimed as "usable".
    The zip file provided here only contains the sources of MediaSPIP in its standalone version.
    To get a working installation, you must manually install all-software dependencies on the server.
    If you want to use this archive for an installation in "farm mode", you will also need to proceed to other manual (...)

  • 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 ;

  • Le profil des utilisateurs

    12 avril 2011, par

    Chaque utilisateur dispose d’une page de profil lui permettant de modifier ses informations personnelle. Dans le menu de haut de page par défaut, un élément de menu est automatiquement créé à l’initialisation de MediaSPIP, visible uniquement si le visiteur est identifié sur le site.
    L’utilisateur a accès à la modification de profil depuis sa page auteur, un lien dans la navigation "Modifier votre profil" est (...)

Sur d’autres sites (10124)

  • aac : Add support for Enhanced AAC Low Delay (ER AAC ELD).

    14 octobre 2013, par Alex Converse
    aac : Add support for Enhanced AAC Low Delay (ER AAC ELD).
    

    This does not include support for LD SBR, epTool, data resilience, nor
    the 960 transform family.

    • [DBH] Changelog
    • [DBH] libavcodec/aac.h
    • [DBH] libavcodec/aacdec.c
    • [DBH] libavcodec/aactab.c
    • [DBH] libavcodec/aactab.h
    • [DBH] libavcodec/version.h
  • lavc/encode : add an encoder-specific get_buffer() variant

    23 mars 2022, par Anton Khirnov
    lavc/encode : add an encoder-specific get_buffer() variant
    

    Several encoders (roqvideo, svq1, snow, and the mpegvideo family)
    currently call ff_get_buffer(). However this function is written
    assuming it is called by a decoder. Though nothing has been obviously
    broken by this until now, that may change in the future.

    To avoid potential future issues, introduce a simple encode-specific
    wrapper around avcodec_default_get_buffer2() and enforce its use in
    encoders.

    • [DH] libavcodec/decode.c
    • [DH] libavcodec/encode.c
    • [DH] libavcodec/encode.h
    • [DH] libavcodec/mpegpicture.c
    • [DH] libavcodec/roqvideoenc.c
    • [DH] libavcodec/snow.c
    • [DH] libavcodec/svq1enc.c
  • Read a text file line-by-line (each line as an array), run bash command with array elements, then loop to the next line in the text file

    10 janvier, par xiaohouzi

    I'm using immich to manage my media library with photos and videos but appropriate video thumbnails are black or do not have an appropriate thumbnails for my family to view. As a test, I decided to manually recreate the thumbnails and then update appropriate thumbs files in the exact directory ; replacing the auto-generated ones by Immich using ffmpeg. The following script works fine but one by one will take forever.

    


    #!/bin/bash
file=(formula1 "aust_gp_00'23'41_2022_1858658849.mp4" f2dfse3-34gd-23ff-6hdd-p3h4kk/a3/10/a399-dj88-ah29 00:00:30.000)

# create jpeg + webp and replace existing
sudo ffmpeg -i /mnt/f1/"${file[0]}"/"${file[1]}" -ss "${file[3]}" -frames:v 1 /immich/app/thumbs/"${file[2]}"-preview.jpeg -y \
&& \
sudo ffmpeg -i /mnt/f1/"${file[0]}"/"${file[1]}" -ss "${file[3]}" -frames:v 1 /immich/app/thumbs/"${file[2]}"-thumbnail.webp -y


    


    My goal is to put all the needed files in a text file use "readarry" to read each line as an array, use the appropriate index and then repeat for the next line. This is where I am stuck. How could I loop through each line where each line is a new file, keep the same indexes, and repeat ? Anyone familiar with how to accomplish this or if there is a better way using bash ? I was hoping to only use bash instead of python.

    


    For example...

    


    #files.txt
file=(formula1 "aust_gp_00'23'41_2022.mp4" f2dfse3-34gd-23ff-6hdd-p3h4kk/a3/10/a399-dj88-ah29 00:00:30.000)
file=(formula1 "belg_gp_00'13'31_2022.mp4" f2dfse3-34gd-23ff-6hdd-p3h4kk/q4/6/mhf-846d-zpyf 00:00:30.000)
file=(formula1 "melb_gp_00'05'11_2022.mp4" f2dfse3-34gd-23ff-6hdd-p3h4kk/b9/2/q3dd-0988-vr2t 00:00:30.000)



    


    # genthumb.sh
#!/bin/bash
readarray -t lines < files.txt &&
  for line in "${!lines[@]}"; do
    sudo ffmpeg -i /mnt/f1/"${lines[0]}"/"${lines[1]}" -ss "${lines[3]}" -frames:v 1 /immich/app/thumbs/"${lines[2]}"-preview.jpeg -y \
    && \
    sudo ffmpeg -i /mnt/f1/"${file[0]}"/"${file[1]}" -ss "${file[3]}" -frames:v 1 /immich/app/thumbs/"${file[2]}"-thumbnail.webp -y
  done