Recherche avancée

Médias (1)

Mot : - Tags -/university

Autres articles (100)

  • MediaSPIP 0.1 Beta version

    25 avril 2011, par

    MediaSPIP 0.1 beta is the first version of MediaSPIP proclaimed as "usable".
    The zip file provided here only contains the sources of MediaSPIP in its standalone version.
    To get a working installation, you must manually install all-software dependencies on the server.
    If you want to use this archive for an installation in "farm mode", you will also need to proceed to other manual (...)

  • Multilang : améliorer l’interface pour les blocs multilingues

    18 février 2011, par

    Multilang est un plugin supplémentaire qui n’est pas activé par défaut lors de l’initialisation de MediaSPIP.
    Après son activation, une préconfiguration est mise en place automatiquement par MediaSPIP init permettant à la nouvelle fonctionnalité d’être automatiquement opérationnelle. Il n’est donc pas obligatoire de passer par une étape de configuration pour cela.

  • Le profil des utilisateurs

    12 avril 2011, par

    Chaque utilisateur dispose d’une page de profil lui permettant de modifier ses informations personnelle. Dans le menu de haut de page par défaut, un élément de menu est automatiquement créé à l’initialisation de MediaSPIP, visible uniquement si le visiteur est identifié sur le site.
    L’utilisateur a accès à la modification de profil depuis sa page auteur, un lien dans la navigation "Modifier votre profil" est (...)

Sur d’autres sites (9080)

  • Set a subtitle language using ffmpeg

    22 avril 2022, par Sam

    I tried googling a way to set the language of a subtitle stream with ffmpeg and found the -slang option. So I tried the following command but immediately receive an error :

    



    ffmpeg -i input.avi -i subs.srt -c:a copy -c:s mov_text -slang eng -c:v libx264 -profile:v high -level:v 4.0 output.mp4
ffmpeg version 1.1 Copyright (c) 2000-2013 the FFmpeg developers
built on Jul 18 2013 23:00:53 with Apple clang version 4.0 (tags/Apple/clang-421.0.60) (based on LLVM 3.1svn)


    



    


    libavutil 52. 13.100 / 52. 13.100

    
 


    libavcodec 54. 86.100 / 54. 86.100

    
 


    libavformat 54. 59.106 / 54. 59.106

    
 


    libavdevice 54. 3.102 / 54. 3.102

    
 


    libavfilter 3. 32.100 / 3. 32.100

    
 


    libswscale 2. 1.103 / 2. 1.103

    
 


    libswresample 0. 17.102 / 0. 17.102

    
 


    libpostproc 52. 2.100 / 52. 2.100

    
 


    Unrecognized option 'slang'.

    
 


    Error splitting the argument list : Option not found

    


    



    After more googling I found another way to do it using the -metadata command :

    



    ffmpeg -i input.mp4 -i subs.srt -c:a copy -c:v copy -c:s mov_text -metadata:s:s:0 language=eng output.mp4


    



    And that works absolutely fine. But this isn't mentioned in the ffmpeg man page, whereas -slang is, which makes me think the -metadata command is maybe outdated or in some other way not as good as -slang.

    



      

    1. What is the difference between using the two above methods (-slang vs -metadata) ?
    2. 


    3. Why did my -slang command give an error ? Have I used it incorrectly ?
    4. 


    


  • Set a subtitle language using ffmpeg

    19 mars 2017, par Sam

    I tried googling a way to set the language of a subtitle stream with ffmpeg and found the -slang option. So I tried the following command but immediately receive an error :

    ffmpeg -i input.avi -i subs.srt -c:a copy -c:s mov_text -slang eng -c:v libx264 -profile:v high -level:v 4.0 output.mp4
    ffmpeg version 1.1 Copyright (c) 2000-2013 the FFmpeg developers
    built on Jul 18 2013 23:00:53 with Apple clang version 4.0 (tags/Apple/clang-421.0.60) (based on LLVM 3.1svn)

    libavutil 52. 13.100 / 52. 13.100

    libavcodec 54. 86.100 / 54. 86.100

    libavformat 54. 59.106 / 54. 59.106

    libavdevice 54. 3.102 / 54. 3.102

    libavfilter 3. 32.100 / 3. 32.100

    libswscale 2. 1.103 / 2. 1.103

    libswresample 0. 17.102 / 0. 17.102

    libpostproc 52. 2.100 / 52. 2.100

    Unrecognized option ’slang’.

    Error splitting the argument list : Option not found

    After more googling I found another way to do it using the -metadata command :

    ffmpeg -i input.mp4 -i subs.srt -c:a copy -c:v copy -c:s mov_text -metadata:s:s:0 language=eng output.mp4

    And that works absolutely fine. But this isn’t mentioned in the ffmpeg man page, whereas -slang is, which makes me think the -metadata command is maybe outdated or in some other way not as good as -slang.

    1. What is the difference between using the two above methods (-slang vs -metadata) ?
    2. Why did my -slang command give an error ? Have I used it incorrectly ?
  • Pipe and regex bash ouput

    13 mars 2013, par Wes

    I'm trying to get the dimensions of a video with ffmpeg. I use the command ffprobe video.mov to get the following data :

    ffprobe version 1.0 Copyright (c) 2007-2012 the FFmpeg developers
     built on Jan 14 2013 10:18:07 with Apple clang version 4.1 (tags/Apple/clang-421.11.66) (based on LLVM 3.1svn)
     configuration: --prefix=/usr/local/Cellar/ffmpeg/1.0 --enable-shared --enable-gpl --enable-version3 --enable-nonfree --enable-hardcoded-tables --cc=cc --host-cflags= --host-ldflags= --enable-libx264 --enable-libfaac --enable-libmp3lame --enable-libxvid
     libavutil      51. 73.101 / 51. 73.101
     libavcodec     54. 59.100 / 54. 59.100
     libavformat    54. 29.104 / 54. 29.104
     libavdevice    54.  2.101 / 54.  2.101
     libavfilter     3. 17.100 /  3. 17.100
     libswscale      2.  1.101 /  2.  1.101
     libswresample   0. 15.100 /  0. 15.100
     libpostproc    52.  0.100 / 52.  0.100
    Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'linebubble.mov':
     Metadata:
       major_brand     : qt
       minor_version   : 0
       compatible_brands: qt
       creation_time   : 2013-03-12 02:59:34
     Duration: 00:00:14.05, start: 0.050000, bitrate: 135 kb/s
       Stream #0:0(und): Video: h264 (Main) (avc1 / 0x31637661), yuv420p, 502x288 [SAR 1:1 DAR 251:144], 137 kb/s, 7.84 fps, 60 tbr, 6k tbn, 12k tbc
       Metadata:
         creation_time   : 2013-03-12 02:59:34
         handler_name    : Core Media Data Handler

    Now I want to pipe that into a regex to just get 502x288 on the fourth last line.

    I've seen some solutions with python and perl, but I want this to be in plain bash. How would I go about this ?