Recherche avancée

Médias (1)

Mot : - Tags -/musée

Autres articles (113)

  • Personnaliser en ajoutant son logo, sa bannière ou son image de fond

    5 septembre 2013, par

    Certains thèmes prennent en compte trois éléments de personnalisation : l’ajout d’un logo ; l’ajout d’une bannière l’ajout d’une image de fond ;

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

  • 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

Sur d’autres sites (9165)

  • How to get language for embedded subtitles in video file using FFMPEG libraries

    18 septembre 2024, par helgovic

    I have seen lots of examples on how to get the language codes using the command line interface, but how do you get them using the libraries ?

    


  • What's the most elegant way to get the language codes from an MKV file with multiple audio tracks ?

    30 janvier 2017, par WackGet

    I need a way to get the language codes from MKV files which have multiple audio tracks.

    ffmpeg produces output which I could then filter using regular expressions but it doesn’t seem very elegant :

    $ ffmpeg -i file.mkv 2>&1 | grep Audio
    Stream #0:1(eng): Audio: mp2, 48000 Hz, stereo, s16, 192 kb/s (default)
    Stream #0:2(nar): Audio: mp2, 48000 Hz, mono, s16, 64 kb/s (default)

    mediainfo has the ability to extract language information but in files with multiple tracks, it concatenates the codes into a single string :

    $ mediainfo file.mkv --inform="Audio;%Language%"  
    ennar

    Is there a tool or command which will return language codes for multiple tracks in a nicer way, or a tool which would let me specify a track number and return the language code for that track only ?

  • Extract subtitle by language code via ffmpeg

    7 mai 2023, par TrustFound

    I have a simple task - extract subtitle for exact language from tvshows.
For example, I want to extract English subtitles from Netflix's show.
As you know there're a few different types of subtitles : forced, full and SDH.
So I want to extract all of them if it has eng language code.

    


    To extract 1 subtitle from file I used this code for windows :

    


    FOR %%i IN (*.mkv) DO (ffmpeg.exe -i "%%i" -map 0:s:m:language:eng -c copy "%%~ni".eng.srt)


    


    It worked fine with 1 english subtitle per file. But if it contains 2, ffmpeg shows error

    


    


    SRT supports only a single subtitles stream

    


    



    


    MI is...

    


      

    • Stream #0:2(eng) : Subtitle : subrip
    • 


    • Stream #0:3(eng) : Subtitle : subrip
    • 


    • Stream #0:4(ara) : Subtitle : subrip
    • 


    • ...
    • 


    



    


    So I should set 2 or more output files. I tried to figure out how to do this and found similar threads on reddit and stacksoverflow. They said there's no way to do this without ffprobe.
So I used ffprobe to parse all subtitle tracks and their language code.

    


    FOR %%i IN (*.mkv) DO (ffprobe -loglevel error -select_streams s -show_entries stream=index:stream_tags=language -of csv=p=0 -i %%i > subs.txt)


    


    File contains this info :

    


      

    • 2,eng
    • 


    • 3,eng
    • 


    • 4,ara
    • 


    • ...
    • 


    



    


    As I understand I should use integers and set them values 2 and 3. I want to get output like this

    


    

      

    • MovieName.2.eng.srt
    • 


    • MovieName.3.eng.srt
    • 


    


    


    If it easier to extract all subs, let it be. I tried to do this too but I dont know how to set integers and use them :(
So what I should do ?
Thanks in advance