Recherche avancée

Médias (91)

Autres articles (63)

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

  • Multilang : améliorer l’interface pour les blocs multilingues

    18 février 2011, par

    Multilang est un plugin supplémentaire qui n’est pas activé par défaut lors de l’initialisation de MediaSPIP.
    Après son activation, une préconfiguration est mise en place automatiquement par MediaSPIP init permettant à la nouvelle fonctionnalité d’être automatiquement opérationnelle. Il n’est donc pas obligatoire de passer par une étape de configuration pour cela.

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

Sur d’autres sites (9030)

  • FFmpeg batch convert multiple files

    11 mars 2019, par John

    This command works great :

    ffmpeg \
    -i /mnt/share/Movies2/"nameofmovie.mkv" \
    -map 0:0 \
    -map 0:1 \
    -map 0:2 \
    -c:v libx264 \
    -preset veryfast \
    -tune film \
    -crf 18 \
    -c:a:0 copy \
    -c:a:1 copy \
    /mnt/share/Converted/"nameofmovie".mkv

    But i want to either be able to read the input file from a text file or to run this command one after another for each file i want to convert. Is there a script i can set up to do this ? Not all the files are in the same folder or the same format so something where i could just change the file name and format would be great. I used to have a bash script that could do this for an entire folder but that’s not what i am trying to do here. I am using Ubuntu server 18.04
    Also i’m pretty new to this i’ve found this for a whole folder :

    for i in *.avi;
    do name=`echo $i | cut -d'.' -f1`;
    echo $name;
    ffmpeg -i "$i" "${name}.mov";
    done

    But i dont know how to adapt this for individual files

  • Playing With File

    8 septembre 2011, par Multimedia Mike — General

    I played with the ‘file’ utility a long time ago because I wanted to make it recognize a large number of multimedia formats. I had trouble getting my changes to take. But I’m prepared to try again after many years.

    Aiming at the Corpus
    In my local mirror of the MPlayerHQ samples archive, I find 9853 unique files. So I run all of them through the ‘file’ command :

      ’find /path/to/samples -type f -print0 | xargs -0 file —no-pad’
    

    My Ubuntu installation has file v5.04. I also tested against 5.07 and the latest, 5.08. Here is the number of files each version was unable to identify (generically marking as ‘data’) :

    5.04  1521
    5.07  1405
    5.08  1501
    

    That seems like a regression for v5.08 until I dug into the details and saw quite a few items like this, indicating that the MPEG detection could use some work :


    - mov/mov-demux-infinite-loop.mpg : DOS-executable ( +mov/mg-‹demux-infinite-loop.mpg : data
    - image-samples/UNeedQT4.pntg : DOS-executable ( +imY- samples/UNeedQT4.pntg : data

    Workflow
    These are just notes to myself and perhaps anyone else who wants to add new file formats to be identified by the ‘file’ command.

    First, download either the latest release from the FTP or clone from Github. Do the usual unpack, ‘./configure’, ‘make’ routine. To use this newly-built version and its associated magic file :

      ./src/file —magic-file magic/magic.mgc <file>
    

    To add a new format for ID, first, run the foregoing command to ensure that it’s not already identified. Then, check over the files in magic/Magdir and see which one might pertain to what you’re doing (it’s unlikely that your format will merit a new file in this directory). For example, for this round, I modified animation, audio, iff, and riff. Add or modify existing specs based on the copious examples in the directory and by consulting the appropriate man page (‘man 5 magic’).

    Finally, run ‘make’ again which will regenerate the magic file. Invoke the above command again to use the modified magic file.

    Before and After
    On a selection of formats taken from the samples archive (renamed and cut down to a kilobyte because detection typically only relies on the first few bytes), here is the “before” :

    amv :            RIFF (little-endian) data
    armovie :        data
    bbc-dirac :      data
    interplay-mve :  data
    mtv :            data
    nintendo-thp :   data
    nullsoft-video : data
    redcode :        data
    sega-film :      data
    smacker :        data
    trueaudio :      data
    vqa :            IFF data
    wavpack :        data
    wc3-mve :        IFF data
    wtv :            data
    

    And the “after” :

    amv :            RIFF (little-endian) data, AMV
    armovie :        ARMovie
    bbc-dirac :      BBC Dirac Video
    interplay-mve :  Interplay MVE Movie
    mtv :            MTV Multimedia File
    nintendo-thp :   Nintendo THP Multimedia
    nullsoft-video : Nullsoft Video
    redcode :        REDCode Video
    sega-film :      Sega FILM/CPK Multimedia, 320 x 224
    smacker :        RAD Game Tools Smacker Multimedia version 2, 320 x 200, 100 frames
    trueaudio :      True Audio Lossless Audio
    vqa :            IFF data, Westwood Studios VQA Multimedia, 418 video frames, 320 x 200
    wavpack :        WavPack Lossless Audio
    wc3-mve :        IFF data, Wing Commander III Video, PC version
    wtv :            Windows Television DVR Media
    

    After rerunning ‘file’ on the mphq corpus using the modified magic file, only 1329 files remain unidentified (down from 1501).

    Going Forward
    As mentioned, MPEG detection could probably be strengthened. However, a major weakness is QuickTime/MP4. Many files are not detected, probably owing to the many ways that QuickTime files can begin.

  • Pick 2 lang stream and one video ffmpeg

    7 juin 2023, par Gwildor

    Please help me. I have try alot of diffrent code to get this to work, but i can't fix it. So now im going to try to get pro help from you :)

    &#xA;

    I use this code, it works perfect, but it select all audio stream from eng and swe. How can i get only ony stream of eng and swe audio and one video ?

    &#xA;

    for f in /mnt/re-encode/*/*.mkv_; do /usr/local/bin/ffmpeg -fflags &#x2B;igndts -analyzeduration 2147483647 -probesize 2147483647 \ -hide_banner -sn -err_detect ignore_err -init_hw_device vaapi=foo:/dev/dri/renderD128 -hwaccel vaapi -hwaccel_output_format vaapi -hwaccel_device foo -i "$f" \ -b:v 6M -minrate 6M -maxrate 6M -bufsize 6M \ -profile:v 100 -level 41 -bf 0 -r film -sn -movflags &#x2B;faststart&#x2B;write_colr&#x2B;prefer_icc \ -map 0:v:0 -map 0:a:m:language:eng? -map 0:a:m:language:swe? -filter_hw_device foo -vf "deinterlace_vaapi,scale_vaapi=w=-2:h=720,hwdownload,format=nv12|vaapi,subtitles=&#x27;${f%.*}.srt&#x27;,hwupload" -c:v h264_vaapi \ -c:a:0 aac -ac 2 -af "volume=2" -b:a 256k \ -f mp4 -y -hide_banner "${f%.*}_b.mp4_"

    &#xA;

    I have tryc pipe : and /dev/null

    &#xA;