Recherche avancée

Médias (1)

Mot : - Tags -/sintel

Autres articles (32)

  • La file d’attente de SPIPmotion

    28 novembre 2010, par

    Une file d’attente stockée dans la base de donnée
    Lors de son installation, SPIPmotion crée une nouvelle table dans la base de donnée intitulée spip_spipmotion_attentes.
    Cette nouvelle table est constituée des champs suivants : id_spipmotion_attente, l’identifiant numérique unique de la tâche à traiter ; id_document, l’identifiant numérique du document original à encoder ; id_objet l’identifiant unique de l’objet auquel le document encodé devra être attaché automatiquement ; objet, le type d’objet auquel (...)

  • Personnaliser les catégories

    21 juin 2013, par

    Formulaire de création d’une catégorie
    Pour ceux qui connaissent bien SPIP, une catégorie peut être assimilée à une rubrique.
    Dans le cas d’un document de type catégorie, les champs proposés par défaut sont : Texte
    On peut modifier ce formulaire dans la partie :
    Administration > Configuration des masques de formulaire.
    Dans le cas d’un document de type média, les champs non affichés par défaut sont : Descriptif rapide
    Par ailleurs, c’est dans cette partie configuration qu’on peut indiquer le (...)

  • Contribute to documentation

    13 avril 2011

    Documentation is vital to the development of improved technical capabilities.
    MediaSPIP welcomes documentation by users as well as developers - including : critique of existing features and functions articles contributed by developers, administrators, content producers and editors screenshots to illustrate the above translations of existing documentation into other languages
    To contribute, register to the project users’ mailing (...)

Sur d’autres sites (5428)

  • avcodec/dvbsubdec : DVB subtitles decoder : support of 5 bytes extradata format

    3 février 2014, par mrlika
    avcodec/dvbsubdec : DVB subtitles decoder : support of 5 bytes extradata format
    

    Reviewed-by : Marton Balint <cus@passwd.hu>
    Signed-off-by : Michael Niedermayer <michaelni@gmx.at>

    • [DH] libavcodec/dvbsubdec.c
  • how to add watermark and subtitles to multi video in the same time with ffmpeg

    19 novembre 2020, par Fady Sawairas

    hello i am using ffmpeg to add watermark to multi video with this code

    &#xA;

    for %i in ("C :\Users\fady\Downloads\Fady\new2*.mp4") do ffmpeg -i "%i" -i C :\Users\fady\Downloads\convert\cima2u.png -preset ultrafast -filter_complex "[0]scale=1280:720 :-2[bg] ;[bg][1]overlay=main_w-overlay_w-10:10" -b:v 1000k "C :\Users\fady\Downloads\Fady\new\new2% ni.mp4"

    &#xA;

    now i want to add subtitles to multi video at the same time&#xA;like video1.mp4 with subtitle video1.srt&#xA;video2.mp4 with subtitle video2.srt&#xA;video3.mp4 with subtitle video3.srt

    &#xA;

    i am wondering is there any code to make it with ffmpeg one time with all video in one folder or i must make each video alone ?

    &#xA;

  • Python script to copy subtitles in their respective mp4 with FFMPEG

    4 mars 2016, par Shywel

    I have many video files (mp4), with their respective subtitles (each video and subtitle have the same name).

    The idea is to create a Python script to invoke ffmpeg to copy each subtitle in a video without re-encoding again. To do the first video, I tried this command on Terminal and it worked OK :

    $ffmpeg -i 01-01-Introduction.mp4 -fix_sub_duration -i 01-01-Introduction.srt -c:s mov_text -c:v copy -c:a copy -map 0:v -map 0:a -map 1 -metadata:s:s:0 language=eng 01-01-Introduction-sub.mp4

    I tried this code in Python 3.5.1 :

    #!/usr/bin/env python3.5

    import os
    import subprocess
    import fnmatch

    current_dir = os.getcwd()
    video_ext = "*.mp4"
    subtitle_ext = '*.srt'
    def copy_subtitle(current_dir, video_ext):

    for files in os.listdir("."):
       if fnmatch.fnmatch(files, video_ext):
           mp4 = files
       elif fnmatch.fnmatch(files, subtitle_ext):
           subtitles = files
           print(subprocess.run(["ffmpeg", "-i", "{mp4}".format(**locals()),
           "-fix_sub_duration", "-i", "{subtitles}".format(**locals()),
           "-c:s mov_text", "-c:v copy", "-map 0:v", "-map 0:a", "-map 1",
           "copy_{mp4}".format(**locals())]))

    print(copy_subtitle(current_dir, video_ext))

    ffmpeg threw an error :

    Unrecognized option 'map 0:v'.
    Error splitting the argument list: Option not found
    CompletedProcess(args=['ffmpeg', '-i', '01-01-Introduction.mp4',
    '-fix_sub_duration', '-i', '01-01-Introduction.srt', '-c:s mov_text',
    '-c:v copy', '-map 0:v', '-map 0:a', '-map 1',
    'copy_01-01-Introduction.mp4'], returncode=1)

    I also tried with this :

    print(subprocess.run(["ffmpeg", "-i", "{mp4}".format(**locals()),
    "-fix_sub_duration", "-i", "{subtitles}".format(**locals()),
    "-c:s mov_text -c:v copy -c:a copy -map 0:v -map 0:a -map 1 -metadata:s:s:0 language=eng",
    "copy_{mp4}".format(**locals())]), sep=' ')

    and the error is :

    Trailing options were found on the command line.
    Input #0, mov,mp4,m4a,3gp,3g2,mj2, from '01-01-Introduction.mp4':
     Metadata:
        major_brand     : isom
        minor_version   : 1
        compatible_brands: isomavc1mp42
        creation_time   : 2014-09-15 18:49:34
     Duration: 00:01:01.16, start: 0.000000, bitrate: 1099 kb/s
       Stream #0:0(und): Video: h264 (Main) (avc1 / 0x31637661), yuv420p, 852x480 [SAR 1:1 DAR 71:40], 1002 kb/s, 29.97 fps, 29.97 tbr, 30k tbn, 59.94 tbc (default)
       Metadata:
         creation_time   : 2014-09-15 18:49:21
         handler_name    : GPAC ISO Video Handler
       Stream #0:1(und): Audio: aac (LC) (mp4a / 0x6134706D), 44100 Hz, stereo, fltp, 95 kb/s (default)
       Metadata:
         creation_time   : 2014-09-15 18:49:34
         handler_name    : GPAC ISO Audio Handler
    Input #1, srt, from '01-01-Introduction.srt':
     Duration: N/A, bitrate: N/A
       Stream #1:0: Subtitle: sub rip
    At least one output file must be specified
    CompletedProcess(args=['ffmpeg', '-i', '01-01-Introduction.mp4',
    '-fix_sub_duration', '-i', '01-01-Introduction.srt', '-c:s mov_text
    -c:v copy -c:a copy -map 0:v -map 0:a -map 1 -metadata:s:s:0
    language=eng', 'copy_01-01-Introduction.mp4'], returncode=1)

    Any suggestions ?