Recherche avancée

Médias (91)

Autres articles (98)

  • 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

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

  • Formulaire personnalisable

    21 juin 2013, par

    Cette page présente les champs disponibles dans le formulaire de publication d’un média et il indique les différents champs qu’on peut ajouter. Formulaire de création d’un Media
    Dans le cas d’un document de type média, les champs proposés par défaut sont : Texte Activer/Désactiver le forum ( on peut désactiver l’invite au commentaire pour chaque article ) Licence Ajout/suppression d’auteurs Tags
    On peut modifier ce formulaire dans la partie :
    Administration > Configuration des masques de formulaire. (...)

Sur d’autres sites (7509)

  • Handle long delay between video frames in multi-thread decoder(issue 312)

    15 avril 2011, par Yunqing Wang

    Handle long delay between video frames in multi-thread decoder(issue 312)

  • dxva2_h264 : set the correct ref frame index in the long slice struct

    22 avril 2014, par Hendrik Leppkes
    dxva2_h264 : set the correct ref frame index in the long slice struct
    

    The latest H.264 DXVA specification states that the index in this
    structure should refer to a valid entry in the RefFrameList of the picture
    parameter structure, and not to the actual surface index.

    Fixes H.264 DXVA2 decoding on recent Intel GPUs (tested on Sandy and Ivy)

    Signed-off-by : Anton Khirnov <anton@khirnov.net>

    • [DH] libavcodec/dxva2_h264.c
  • Using ffmpeg to chunk a long audio file

    3 novembre 2020, par Boris Adaev

    I have the following code here to split a long audio file (15 hours long) into shorter chunks (each a little over an hour long, except the last 16th one, which is whatever remains).

    &#xA;

    import subprocess&#xA;import os, math&#xA;&#xA;def get_length(input_video):&#xA;    result = subprocess.run([&#x27;ffprobe&#x27;, &#x27;-v&#x27;, &#x27;error&#x27;, &#x27;-show_entries&#x27;, &#x27;format=duration&#x27;,&#xA;                             &#x27;-of&#x27;, &#x27;default=noprint_wrappers=1:nokey=1&#x27;, input_video],&#xA;                             stdout=subprocess.PIPE, stderr=subprocess.STDOUT)&#xA;    return float(result.stdout)&#xA;&#xA;def chunk(fname, title, split_by=3600):&#xA;    head_dir = title &#x2B; &#x27; (split)&#x27;&#xA;    if head_dir not in os.listdir():&#xA;        os.mkdir(head_dir)&#xA;&#xA;    dur_seconds = get_length(fname)&#xA;    iters = math.ceil(dur_seconds / split_by)&#xA;&#xA;    left_off = 0&#xA;&#xA;    print(dur_seconds)&#xA;&#xA;    for i in range(1, iters&#x2B;1):&#xA;        last_iter = i == iters&#xA;        if not last_iter:&#xA;            go_till = left_off &#x2B; 3630&#xA;        else:&#xA;            go_till = int(dur_seconds)&#xA;&#xA;        print(f&#x27;from {left_off} to {go_till} for {i:02d}.mp3&#x27;)&#xA;        subprocess.call([&#x27;ffmpeg&#x27;, &#x27;-i&#x27;, fname, &#x27;-ss&#x27;, str(left_off), &#x27;-to&#x27;, str(go_till),&#xA;                         &#x27;-c&#x27;, &#x27;copy&#x27;, f&#x27;{head_dir}/{i:02d}.mp3&#x27;])&#xA;        left_off &#x2B;= 3600&#xA;&#xA;fname = &#x27;Brian C. Muraresku - The Immortality Key The Secret History of the Religion with No Name.mp3&#x27;&#xA;title = &#x27;The Immortality Key&#x27;&#xA;&#xA;chunk(fname, title)&#xA;

    &#xA;

    The code makes perfect sense, and when I run it with the subprocess.call line commented out, what it prints also makes sense.

    &#xA;

    54681.353625&#xA;from 0 to 3630 for 01.mp3&#xA;from 3600 to 7230 for 02.mp3&#xA;from 7200 to 10830 for 03.mp3&#xA;from 10800 to 14430 for 04.mp3&#xA;from 14400 to 18030 for 05.mp3&#xA;from 18000 to 21630 for 06.mp3&#xA;from 21600 to 25230 for 07.mp3&#xA;from 25200 to 28830 for 08.mp3&#xA;from 28800 to 32430 for 09.mp3&#xA;from 32400 to 36030 for 10.mp3&#xA;from 36000 to 39630 for 11.mp3&#xA;from 39600 to 43230 for 12.mp3&#xA;from 43200 to 46830 for 13.mp3&#xA;from 46800 to 50430 for 14.mp3&#xA;from 50400 to 54030 for 15.mp3&#xA;from 54000 to 54681 for 16.mp3&#xA;

    &#xA;

    But with the subprocess.call line, it creates these audios (01.mp3, 02.mp3, 03.mp3, etc.), but the timestamps are wrong. When the code is done running, they all start from the same place for some odd reason.

    &#xA;

    UPDATE : I also tried placing the -i part after the -ss part, as well as the following

    &#xA;

    subprocess.call([&#x27;ffmpeg&#x27;, &#x27;-ss&#x27;, str(left_off), &#x27;-i&#x27;, fname, &#x27;-t&#x27;, &#x27;3630&#x27;,&#xA;                 &#x27;-c&#x27;, &#x27;copy&#x27;,  f&#x27;{head_dir}/{i:02d}.mp3&#x27;])&#xA;

    &#xA;

    But still the same problem. 15 identical audios, of which only the 15th is the way it's supposed to be, and then the last 16th ten minute remainder. When I run them separately, it goes as follows :

    &#xA;

    01.mp3 is right,

    &#xA;

    02.mp3 is right but 01.mp3 is now wrong, because it's identical to 02.mp3

    &#xA;

    03.mp3 is right, but the previous two are identical to it

    &#xA;

    04.mp3 is right, but the previous three are identical to it

    &#xA;

    ... and so on

    &#xA;