Recherche avancée

Médias (0)

Mot : - Tags -/presse-papier

Aucun média correspondant à vos critères n’est disponible sur le site.

Autres articles (54)

  • Les autorisations surchargées par les plugins

    27 avril 2010, par

    Mediaspip core
    autoriser_auteur_modifier() afin que les visiteurs soient capables de modifier leurs informations sur la page d’auteurs

  • L’utiliser, en parler, le critiquer

    10 avril 2011

    La première attitude à adopter est d’en parler, soit directement avec les personnes impliquées dans son développement, soit autour de vous pour convaincre de nouvelles personnes à l’utiliser.
    Plus la communauté sera nombreuse et plus les évolutions seront rapides ...
    Une liste de discussion est disponible pour tout échange entre utilisateurs.

  • Contribute to translation

    13 avril 2011

    You can help us to improve the language used in the software interface to make MediaSPIP more accessible and user-friendly. You can also translate the interface into any language that allows it to spread to new linguistic communities.
    To do this, we use the translation interface of SPIP where the all the language modules of MediaSPIP are available. Just subscribe to the mailing list and request further informantion on translation.
    MediaSPIP is currently available in French and English (...)

Sur d’autres sites (9041)

  • How to insert bullet screen comments into a video by using ffmpeg ?

    7 septembre 2019, par Saeron Meng

    I would like to add some real-time comments in my video but I do not know how to use ffmpeg to realize this. The comments are like screen bullets through the screen, scrolling from right to left.

    My thought is to count the length of the comments and define speeds for them to move. Don’t worry about the source of the comments, I have already gotten them saved as an xml file. Also, I can transfer it into srt. For instance :

    <chat timestamp="671.195">
       <ems utctime="1562584080" sender="Bill">
           <richtext></richtext>
       </ems>
    </chat>
    <chat timestamp="677.798">
       <ems utctime="1562584086" sender="Jack">
           <richtext></richtext>
       </ems>
    </chat>

    The final result is like this (I did not find an example displayed in English), these fancy characters can move horizontally :

    example

    I have searched some solutions on the Internet, most of which talk about how to write ass/srt files and add motionless subtitles. Like this :

    3
    00:00:39,770 --> 00:00:41,880
    When I was lying there in the VA hospital ...

    4
    00:00:42,550 --> 00:00:44,690
    ... with a big hole blown through the middle of my life,

    5
    00:00:45,590 --> 00:00:48,120
    ... I started having these dreams of flying.

    ffmpeg -i infile.mp4 -i infile.srt -c copy -c:s mov_text outfile.mp4

    But I need another kind of "subtitles" which can move.

    So my question is, how to modify the ffmpeg command and the template of srt file so as to arrange the subtitles from the top to the bottom and let them move from right to left ?

  • VLC/ffplay can't read some audiotracks created by ffmpeg

    19 juin 2021, par skanarr

    I have two different .mkv files of the same movie. One contains the English, German, Italian, Spanish and French audio and subtitle tracks, the other contains Japanese Audio and Subtitle tracks. Since I want to have all tracks in one file I tried to 'merge' them using :

    &#xA;

    $ ffmpeg -i "Assassin&#x27;s Creed (2016).mkv" -i "./Other/Assassin&#x27;s Creed_t13.mkv" -map 0:v -map 0:a -map 1:a:2 -map 0:s -map 1:s:1 -map 1:s:2 -map 1:s:3 -c:v copy -c:s copy -c:a copy tmp2.mkv&#xA;

    &#xA;

    Full Command Output from ffmpeg

    &#xA;

    However playing it in VLC none of the Tracks from ./Other/Assassin&#x27;s Creed_t13.mkv are working properly.&#xA;There are short periods where there is audio and then it is gone again for some minutes.&#xA;Also tmp2.mkv freezes at 4:44 and freezes VLC for some time, before only audio continues top play.&#xA;Looking under Messages this is what I got : All Message from VLC&#xA;(Messages were set to display warnings and errors)

    &#xA;

    I don't know what I did wrong. The Japanese tracks are working in ./Other/Assassin&#x27;s Creed_t13.mkv.&#xA;The all non-japanese Tracks are still working in tmp2.mkv.&#xA;Also there are working Tracks with the same codecs on tmp2.mkv (dts) as well as subtitles (pgs).

    &#xA;

    I then tried playing it with ffplay and got the same result.&#xA;Whenever i switched the audiotrack to stream 7 (the japanese audio)&#xA;It said non A-V: non in the little progress bar instead of the usual numbers.

    &#xA;

  • How can I automate the subtitle adding process in FFMPEG ?

    23 septembre 2022, par Phoeniqz

    The situation is, that I have 10 MP4 videos and a folder for each of them that has the same name as its video. In each of folders there are around 30 SRT files I need to add. I would like to automate this. I mean a script that would add each SRT file to the video and add the correct handler for the subtitles, so that the subtitle would appear as "English" instead of "Subtitle #12" in a movie player. I made a python script ; it's far from perfect and it does not add the handlers correctly.

    &#xA;

    The name of each SRT file is something like "20_Hebrew.srt"

    &#xA;

    &#xA;&#xA;import os&#xA;file_dir = r"Path/to/my/files"&#xA;sub_dir = file_dir &#x2B; "/Subs"&#xA;&#xA;&#xA;def add_sub(file, file_name):&#xA;    cmd = f"ffmpeg -i &#x27;{file}&#x27; "&#xA;    sub_list = []&#xA;&#xA;    no_extension = file_name.replace(".mp4", "")&#xA;&#xA;    for sub_name in os.listdir(sub_dir &#x2B; f"/{no_extension}"):&#xA;        s = os.path.join(sub_dir &#x2B; f"/{no_extension}", sub_name)&#xA;&#xA;        if os.path.isfile(s):&#xA;            cmd &#x2B;= f"-i &#x27;{s}&#x27; "&#xA;            sub_list.append(s)&#xA;    &#xA;    cmd &#x2B;= "-map 0:v -map 0:a "&#xA;&#xA;    for i, v in enumerate(sub_list):&#xA;        cmd &#x2B;= f"-map {i&#x2B;1} "&#xA;    &#xA;    cmd &#x2B;= "-c:v copy -c:a copy "&#xA;&#xA;    for i, v in enumerate(sub_list):&#xA;        sub_lang = v.replace(".srt", "")&#xA;        index = sub_lang.index(f"/Subs/")&#xA;        sub_lang = sub_lang[index:]&#xA;        index = sub_lang.index("_")&#xA;        sub_lang = sub_lang[index&#x2B;1:]&#xA;&#xA;        cmd &#x2B;= f"-c:s:{i} mov_text -metadata:s:s:{i} language=&#x27;{sub_lang}&#x27; -metadata:s:s:{i} handler=&#x27;{sub_lang}&#x27; "&#xA;&#xA;    cmd &#x2B;= f"&#x27;{file}_OUTP.mp4&#x27;"&#xA;&#xA;    os.system(cmd)&#xA;&#xA;for file_name in os.listdir(file_dir):&#xA;    f = os.path.join(file_dir, file_name)&#xA;&#xA;    if os.path.isfile(f):&#xA;        add_sub(f, file_name) 

    &#xA;