Recherche avancée

Médias (91)

Autres articles (78)

  • MediaSPIP v0.2

    21 juin 2013, par

    MediaSPIP 0.2 est la première version de MediaSPIP stable.
    Sa date de sortie officielle est le 21 juin 2013 et est annoncée ici.
    Le fichier zip ici présent contient uniquement les sources de MediaSPIP en version standalone.
    Comme pour la version précédente, il est nécessaire d’installer manuellement l’ensemble des dépendances logicielles sur le serveur.
    Si vous souhaitez utiliser cette archive pour une installation en mode ferme, il vous faudra également procéder à d’autres modifications (...)

  • Mise à disposition des fichiers

    14 avril 2011, par

    Par défaut, lors de son initialisation, MediaSPIP ne permet pas aux visiteurs de télécharger les fichiers qu’ils soient originaux ou le résultat de leur transformation ou encodage. Il permet uniquement de les visualiser.
    Cependant, il est possible et facile d’autoriser les visiteurs à avoir accès à ces documents et ce sous différentes formes.
    Tout cela se passe dans la page de configuration du squelette. Il vous faut aller dans l’espace d’administration du canal, et choisir dans la navigation (...)

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

  • avfilter/af_afade : improve accuracy and speed of gain computation

    25 novembre 2015, par Ganesh Ajjanagadde
    avfilter/af_afade : improve accuracy and speed of gain computation
    

    Gain computation for various curves was being done in a needlessly
    inaccurate fashion. Of course these are all subjective curves, but when
    a curve is advertised to the user, it should be matched as closely as
    possible within the limitations of libm. In particular, the constants
    kept here were pretty inaccurate for double precision.

    Speed improvements are mainly due to the avoidance of pow, the most
    notorious of the libm functions in terms of performance. To be fair, it
    is the GNU libm that is among the worst, but it is not really GNU libm’s fault
    since others simply yield a higher error as measured in ULP.

    "Magic" constants are also accordingly documented, since they take at
    least a minute of thought for a casual reader.

    Reviewed-by : Paul B Mahol <onemda@gmail.com>
    Signed-off-by : Ganesh Ajjanagadde <gajjanagadde@gmail.com>

    • [DH] libavfilter/af_afade.c
  • Bash Script For FFMPEG

    24 octobre 2016, par armight29

    trying to write simple script to encode files but keep getting this error msg :

    /usr/bin/cm : line 28 : syntax error near unexpected token

    else'
    /usr/bin/cm: line 28:

    else’

    and here is the script called cm :

    #!/bin/bash
    echo Filename?
    read Filename
    echo Enter Target Filesize In Megabytes..
    read TargetSize
    echo ffmpeg preset?
    read PRESET
    Duration='ffprobe -i $Filename -show_entries format=duration -v quiet -of csv="p=0"'
    Bitrate='($TargetSize*8192)/$Duration'
    exiftool -b $Filename -ImageSize
    echo WIDTH=?
    read WIDTH
    echo HEIGHT=?
    read HEIGHT
    echo Padding Required? Enter 'y' or 'n'
    read PADANSWR
    if [PADANSWR = 'y'] then
    echo X=?
    read X
    echo Y=?
    read Y
    ffprobe -show_entries stream=index,codec_type:stream_tags=language -of compact $Filename -v 0 | grep eng
    echo ENG AUDIO INDEX?
    read ENGAUDIOINDEX
    echo ENG SUBS INDEX?
    read ENGSUBSINDEX
    ffmpeg -i $Filename -strict -2 -c:v libx264 -preset $PRESET  -b:v $Bitrate -vf "padding=width=$WIDTH:height=$HEIGHT:x=$X:y=$Y:color=black" pass 1 -f matroska /dev/null -c:a ac3 -b:a 192k &amp;&amp; ffmpeg -i $Filename -strict -2 -c:v libx264 -preset $PRESET  -b:v $Bitrate -vf "padding=width=$WIDTH:height=$HEIGHT:x=$X:y=$Y:color=black" -pass 1 -f matroska ENCODE1.mkv -c:a ac3 -b:a 192k
    else
       ffmpeg -i $Filename -strict -2 -c:v libx264 -preset $PRESET -b:v $Bitrate -threads 12 -pass 1 -f matroska /dev/null -c:a ac3 -b:a 192k &amp;&amp; ffmpeg -i $Filename -strict -2 -c:v libx264 -preset $PRESET -b:v $Bitrate -threads 12 -pass 1 -f matroska ENCODE1.mkv -c:a ac3 -b:a 192k
    fi

    just started coding in bash—how long can the lines in a script be or do i need to use the ’\’ character—if i do use the ’\’ character does it need a space after it ? TIA

  • Reading subtitle metadata from mpeg files using ffprobe

    26 septembre 2022, par Kaydee Dunlop

    I'm using ffmpeg or to be more specific ffprobe which is part of the ffmpeg toolstack to read subtitle information from a mpeg file. Anyway, I'm facing an issue I currently don't fully understand. If I use the following command :

    &#xA;

    ffprobe -of json -show_streams -show_format&#xA;

    &#xA;

    I get back something like this :

    &#xA;

        {&#xA;        "index": 6,&#xA;        "codec_name": "mov_text",&#xA;        "codec_long_name": "MOV text",&#xA;        "codec_type": "subtitle",&#xA;        "codec_tag_string": "tx3g",&#xA;        "codec_tag": "0x67337874",&#xA;        "width": 3840,&#xA;        "height": 240,&#xA;        "id": "0x6",&#xA;        "r_frame_rate": "0/0",&#xA;        "avg_frame_rate": "0/0",&#xA;        "time_base": "1/1000",&#xA;        "start_pts": 0,&#xA;        "start_time": "0.000000",&#xA;        "duration_ts": 6706616,&#xA;        "duration": "6706.616000",&#xA;        "bit_rate": "95",&#xA;        "nb_frames": "4028",&#xA;        "extradata_size": 48,&#xA;        "disposition": {&#xA;            "default": 0,&#xA;            "dub": 0,&#xA;            "original": 0,&#xA;            "comment": 0,&#xA;            "lyrics": 0,&#xA;            "karaoke": 0,&#xA;            "forced": 0,&#xA;            "hearing_impaired": 0,&#xA;            "visual_impaired": 0,&#xA;            "clean_effects": 0,&#xA;            "attached_pic": 0,&#xA;            "timed_thumbnails": 0,&#xA;            "captions": 0,&#xA;            "descriptions": 0,&#xA;            "metadata": 0,&#xA;            "dependent": 0,&#xA;            "still_image": 0&#xA;        },&#xA;        "tags": {&#xA;            "creation_time": "2022-09-11T01:02:33.000000Z",&#xA;            "language": "eng"&#xA;        }&#xA;    },&#xA;

    &#xA;

    you can see, I have several options that can be set for the disposition section, I'm especially interested in "forced" and "hearing_impaired". To set the value for these options I'm trying to use a tool called "Subler" which is a tool to metarise mpeg files and their containing tracks. But for some reason, ffprobe does not seem to match with the fields Subler sets... So I'm kind stuck as I'm never really able to find out if a subtitle track is forced, hearing_impaired (SDH) etc. Is there any kind of workaround for this problem, maybe an extra option I have to set with ffprobe or so ? Is there maybe an alternative tool that can ?

    &#xA;

    If you are more interested into this issue I also uploaded a test scenario which has forced subtitles, normal subtitles and SDH subtitles properly set, it also contains screenshots and the raw SRT files, which are basically not needed as the subs are already embedded into the mp4 file, but just in case I also attached them.

    &#xA;

    https://drive.google.com/file/d/1ZZ32i17A33Lhpn4a5BDg033yV9PbZhtS/view?usp=sharing

    &#xA;