Recherche avancée

Médias (91)

Autres articles (105)

  • Configurer la prise en compte des langues

    15 novembre 2010, par

    Accéder à la configuration et ajouter des langues prises en compte
    Afin de configurer la prise en compte de nouvelles langues, il est nécessaire de se rendre dans la partie "Administrer" du site.
    De là, dans le menu de navigation, vous pouvez accéder à une partie "Gestion des langues" permettant d’activer la prise en compte de nouvelles langues.
    Chaque nouvelle langue ajoutée reste désactivable tant qu’aucun objet n’est créé dans cette langue. Dans ce cas, elle devient grisée dans la configuration et (...)

  • Taille des images et des logos définissables

    9 février 2011, par

    Dans beaucoup d’endroits du site, logos et images sont redimensionnées pour correspondre aux emplacements définis par les thèmes. L’ensemble des ces tailles pouvant changer d’un thème à un autre peuvent être définies directement dans le thème et éviter ainsi à l’utilisateur de devoir les configurer manuellement après avoir changé l’apparence de son site.
    Ces tailles d’images sont également disponibles dans la configuration spécifique de MediaSPIP Core. La taille maximale du logo du site en pixels, on permet (...)

  • Emballe médias : à quoi cela sert ?

    4 février 2011, par

    Ce plugin vise à gérer des sites de mise en ligne de documents de tous types.
    Il crée des "médias", à savoir : un "média" est un article au sens SPIP créé automatiquement lors du téléversement d’un document qu’il soit audio, vidéo, image ou textuel ; un seul document ne peut être lié à un article dit "média" ;

Sur d’autres sites (5152)

  • compiling ffmpeg from source on debian with dependencies also from source, gives shared library error

    17 mars 2017, par devprashant

    here is a snippet from script(permalink) that is created for compiling and installing ffmpeg from source with compiling its dependencies also from source :

    local_install="$HOME/.localpacks"
    mkdir $local_install 2> /dev/null


    if [[ $PATH != *"$local_install"* ]]; then
     echo "Setting PATH to point to" $local_install
     echo PATH=$HOME/.localpacks/bin:$HOME/.localpacks/share:$HOME/.localpacks/include:$HOME/.localpacks/lib:$PATH >> ~/.bashrc
    # ======see here when pointed below=============================
    else
     echo "PATH already configured"
    fi

    ...................
     part of script which download and compile dependencies
    ...................

    wget http://ffmpeg.org/releases/ffmpeg-3.2.4.tar.bz2 && \
    tar xf ffmpeg-3.2.4.tar.bz2 && \
    cd ffmpeg-3.2.4 && \
    ./configure   \
      --prefix="$local_install" \
      --pkg-config-flags="--static"  \
      --extra-cflags="-I$HOME/.localpacks/include" \
      --extra-ldflags="-L$HOME/.localpacks/lib" \
      --bindir="$HOME/.localpacks/bin" \
      --enable-gpl \
      --enable-libass \
      --enable-libfreetype  \
      --enable-libmp3lame  \
      --enable-libx264  \
      --enable-nonfree && \
    make -j4 && make install && \
    cd .. && \
    rm ffmpeg-3.2.4* -rf

    source ~/.profile

    It install ffmpeg correctly. but when i run ffmpeg from terminal it gives :

    ffmpeg : error while loading shared libraries : libass.so.9 : cannot open
    shared object file : No such file or directory

    From upper code snippet , (where you can see now), PATH include $local_install/lib.

    On ls to /.localpacks/lib :

    abc@server:~/.localpacks/lib$ ls
    libass.a libass.so.9 libass.la libass.so.9.0.0 libass.so libavcodec.a

    So, libass.so.9 is in library path.

    To run it correctly , need to run like below :

    $ LD_LIBRARY_PATH=$HOME/.localpacks/lib/:$LD_LIBRARY_PATH
    $ LD_LIBRARY_PATH=$local_install/lib ffmpeg

    So, why i need to include it again in LD_LIBRARY_PATH to run ffmpeg.

    Here is the permalink to the script : install_ffmpeg_from_source.sh

  • Trying to convert an RTSP stream to a HSL file, but get a "Failed to Open Segment" error

    1er juin 2021, par Alvydas Juodikis

    These are the linux commands I ran on ubuntu 20.04 to convert an rtsp stream to a HLS file. I was trying to then display it onto my html webserver to run a live video but I'm stuck at an error.

    


    ffmpeg -fflags nobuffer \&#xA; -rtsp_transport tcp \&#xA; -i <my rtsp="rtsp" url="url"> \&#xA; -vsync 0 \&#xA; -copyts \&#xA; -vcodec copy \&#xA; -movflags frag_keyframe&#x2B;empty_moov \&#xA; -an \&#xA; -hls_flags delete_segments&#x2B;append_list \&#xA; -f segment \&#xA; -segment_list_flags live \&#xA; -segment_time 0.5 \&#xA; -segment_list_size 1 \&#xA; -segment_format mpegts \&#xA; -segment_list Home/Desktop/fmpegsolution/index.m3u8 \&#xA; -segment_list_type m3u8 \&#xA; -segment_list_entry_prefix Home/Desktop/fmpegsolution/ \&#xA; Home/Desktop/fmpegsolution/%3d.ts&#xA;</my>

    &#xA;

    I'm using an example from this link :&#xA;https://girishjoshi.io/post/ffmpeg-rtsp-to-hls/

    &#xA;

    I try to generate my file into a directory located in my desktop called fmpegsolution (hence the output path Home/Desktop/fmpegsolution)

    &#xA;

    The error :

    &#xA;

    When running this on terminal, the error comes out to :&#xA;[segment @ 0x558c82e11ec0] Opening &#x27;Home/Desktop/fmpegsolution/000.ts&#x27; for writing [segment @ 0x558c82e11ec0] Failed to open segment &#x27;Home/Desktop/fmpegsolution/000.ts&#x27; Could not write header for output file #0 (incorrect codec parameters ?): No such file or directory

    &#xA;

    My issue is related to the folder or directory but it definitely exists. I even tried creating a "%3d.ts" blank file (000.ts) but that had no effect. Could use some help. Thanks for your time.

    &#xA;

  • ffmpeg program doesn't running on shell script with java Application

    20 octobre 2017, par Hae-Yoon Jo

    I code java Application and running Linux shell-script when java App running on Linux server.
    The linux shell-script is running. But, i need runnning ffmpeg program by shell.

    1. the ffmpeg is running with shell-script command by ./shellName.sh

    2. ffmpeg is not running with java App run by .

      • only ffmpeg command in shell.
      • working mkdir command
      • working pwd command
    #!/bin/bash
    echo -n "ffmpeg cmd :"
       /home/popsline/ffmpeg -i /home/popsline/sub02_chocolat.mp4 -r 0.14 -ss 00:00:20 -t 10:00:00 -vframes 10 -f image2 -y /home/popsline/img/iamges%d.png
    mkdir /home/username/test
    pwd

    Java code.

    HomeController.java refer sh.java as Object.
    so codes is follows :

    HomeController.java

    /**
    * Simply selects the home view to render by returning its name.
    */
    @RequestMapping(value = "/", method = RequestMethod.GET)
    public String home(Locale locale, Model model) {
       logger.info("Welcome home! The client locale is {}.", locale);

       Sh sh = new Sh();
       sh.shRun();

       return "home";
    }

    sh.java

    private static final Logger logger = LoggerFactory.getLogger(HomeController.class);

    public void shRun(){

       Runtime rt = Runtime.getRuntime();
       Process proc = null;
       InputStream is = null;
       BufferedReader bf = null;

       try {
           String[] cmd = {
                   "/bin/sh"
                   , "-c"
                   , "/usr/local/bin/creaThum.sh"
           };

           proc = rt.exec(cmd);
           proc.getInputStream();
           is = proc.getInputStream();
           bf = new BufferedReader(new InputStreamReader(is));

           while (true) {
               String info = bf.readLine();
               if(info == null || info.equals("")){
                   break;
               }
               logger.info("info haeyoon:: " + info);
           }
       } catch (Exception e) {
           logger.info(e.getMessage());
       }
    }