Recherche avancée

Médias (91)

Autres articles (72)

  • Supporting all media types

    13 avril 2011, par

    Unlike most software and media-sharing platforms, MediaSPIP aims to manage as many different media types as possible. The following are just a few examples from an ever-expanding list of supported formats : images : png, gif, jpg, bmp and more audio : MP3, Ogg, Wav and more video : AVI, MP4, OGV, mpg, mov, wmv and more text, code and other data : OpenOffice, Microsoft Office (Word, PowerPoint, Excel), web (html, CSS), LaTeX, Google Earth and (...)

  • Pas question de marché, de cloud etc...

    10 avril 2011

    Le vocabulaire utilisé sur ce site essaie d’éviter toute référence à la mode qui fleurit allègrement
    sur le web 2.0 et dans les entreprises qui en vivent.
    Vous êtes donc invité à bannir l’utilisation des termes "Brand", "Cloud", "Marché" etc...
    Notre motivation est avant tout de créer un outil simple, accessible à pour tout le monde, favorisant
    le partage de créations sur Internet et permettant aux auteurs de garder une autonomie optimale.
    Aucun "contrat Gold ou Premium" n’est donc prévu, aucun (...)

  • Dépôt de média et thèmes par FTP

    31 mai 2013, par

    L’outil MédiaSPIP traite aussi les média transférés par la voie FTP. Si vous préférez déposer par cette voie, récupérez les identifiants d’accès vers votre site MédiaSPIP et utilisez votre client FTP favori.
    Vous trouverez dès le départ les dossiers suivants dans votre espace FTP : config/ : dossier de configuration du site IMG/ : dossier des média déjà traités et en ligne sur le site local/ : répertoire cache du site web themes/ : les thèmes ou les feuilles de style personnalisées tmp/ : dossier de travail (...)

Sur d’autres sites (10323)

  • What ffmpeg filters can I use to achieve shrinking a video and keeping original aspect ratio ?

    3 août 2020, par sivano

    I am trying to do some specific video editing with ffmpeg and am lacking the correct terminology to describe it (and thus read online how to achieve it). Can someone help describe this using standard (ffmpeg/video editing) terminology ?

    


    The below describes it verbosely, and you can see it visually at the end (this was done manually for one image).

    


    I have a video with aspect ratio 1280x720. At some point in the video, I want to shrink the video diagonally (i.e. maintaining aspect ratio) so that it only takes up half the original width (i.e. 640) and then pad what is left with black. The purpose of this is to then overlay some other image on the left hand of the modified video.

    


    Before
Before

    


    After
after

    


    Thank you

    


  • aarch64 : vp9mc : Simplify the extmla macro parameters

    16 décembre 2016, par Martin Storsjö
    aarch64 : vp9mc : Simplify the extmla macro parameters
    

    Fold the field lengths into the macro.

    This makes the macro invocations much more readable, when the
    lines are shorter.

    This also makes it easier to use only half the registers within
    the macro.

    Signed-off-by : Martin Storsjö <martin@martin.st>

    • [DBH] libavcodec/aarch64/vp9mc_neon.S
  • Accented characters are not recognized in python [closed]

    10 avril 2023, par CorAnna

    I have a problem in the python script, my script should put subtitles in a video given a srt file, this srt file is written by another script but in its script it replaces the accents and all the particular characters with a black square symbol with a question mark inside it... the problem I think lies in the writing of this file, what follows and that in overwriting the subtitles I do with ffmpeg the sentences that contain an accented word are not written

    &#xA;

    def video_audio_file_writer(video_file):&#xA;&#xA;    videos_folder = "Video"&#xA;    audios_folder = "Audio"&#xA;&#xA;    video_path = f"{videos_folder}\\{video_file}"&#xA;&#xA;    video_name = Path(video_path).stem&#xA;    audio_name = f"{video_name}Audio"&#xA;&#xA;    audio_path = f"{audios_folder}\\{audio_name}.wav"&#xA;&#xA;    video = mp.VideoFileClip(video_path)&#xA;    audio = video.audio.write_audiofile(audio_path)&#xA;&#xA;    return video_path, audio_path, video_name&#xA;&#xA;    def audio_file_transcription(audio_path, lang):&#xA;&#xA;    model = whisper.load_model("base")&#xA;    tran = gt.Translator()&#xA;&#xA;    audio_file = str(audio_path)&#xA;&#xA;    options = dict(beam_size=5, best_of=5)&#xA;    translate = dict(task="translate", **options)&#xA;    result = model.transcribe(audio_file, **translate)   &#xA;&#xA;    return result&#xA;&#xA;def audio_subtitles_transcription(result, video_name):&#xA;&#xA;    subtitle_folder = "Content"&#xA;    subtitle_name = f"{video_name}Subtitle"&#xA;    subtitle_path_form = "srt"&#xA;&#xA;    subtitle_path = f"{subtitle_folder}\\{subtitle_name}.{subtitle_path_form}"&#xA;&#xA;    with open(os.path.join(subtitle_path), "w") as srt:&#xA;        # write_vtt(result["segments"], file=vtt)&#xA;        write_srt(result["segments"], file=srt)&#xA;            &#xA;    return subtitle_path&#xA;&#xA;def video_subtitles(video_path, subtitle_path, video_name):&#xA;&#xA;    video_subtitled_folder = "VideoSubtitles"&#xA;    video_subtitled_name = f"{video_name}Subtitles"&#xA;    video_subtitled_path = f"{video_subtitled_folder}\\{video_subtitled_name}.mp4"&#xA;&#xA;    video_path_b = bytes(video_path, &#x27;utf-8&#x27;)&#xA;    subtitle_path_b = bytes(subtitle_path, &#x27;utf-8&#x27;)&#xA;    video_subtitled_path_b = bytes(video_subtitled_path, &#x27;utf-8&#x27;)&#xA;&#xA;    path_abs_b = os.getcwdb() &#x2B; b"\\"&#xA;&#xA;    path_abs_bd = path_abs_b.decode(&#x27;utf-8&#x27;)&#xA;    video_path_bd= video_path_b.decode(&#x27;utf-8&#x27;)&#xA;    subtitle_path_bd = subtitle_path_b.decode(&#x27;utf-8&#x27;)&#xA;    video_subtitled_path_bd = video_subtitled_path_b.decode(&#x27;utf-8&#x27;)&#xA;&#xA;    video_path_abs = str(path_abs_bd &#x2B; video_path_bd)&#xA;    subtitle_path_abs = str(path_abs_bd &#x2B; subtitle_path_bd).replace("\\", "\\\\").replace(":", "\\:")&#xA;    video_subtitled_path_abs = str(path_abs_bd &#x2B; video_subtitled_path_bd)&#xA;&#xA;    time.sleep(3)&#xA;&#xA;    os.system(f"ffmpeg -i {video_path_abs} -vf subtitles=&#x27;{subtitle_path_abs}&#x27; -y {video_subtitled_path_abs}")&#xA;&#xA;    return video_subtitled_path_abs, video_path_abs, subtitle_path_abs&#xA;&#xA;if __name__ == "__main__":&#xA;&#xA;    video_path, audio_path, video_name = video_audio_file_writer(video_file="ChiIng.mp4")&#xA;    result = audio_file_transcription(audio_path=audio_path, lang="it")&#xA;    subtitle_path = audio_subtitles_transcription(result=result, video_name=video_name)&#xA;    video_subtitled_path_abs, video_path_abs, subtitle_path_abs = video_subtitles(video_path=video_path, subtitle_path=subtitle_path, video_name=video_name)&#xA;    &#xA;    print("Video Subtitled")&#xA;

    &#xA;

    Windows 11&#xA;Python 3.10

    &#xA;