Recherche avancée

Médias (1)

Mot : - Tags -/intégration

Autres articles (66)

  • 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 ;

  • MediaSPIP Core : La Configuration

    9 novembre 2010, par

    MediaSPIP Core fournit par défaut trois pages différentes de configuration (ces pages utilisent le plugin de configuration CFG pour fonctionner) : une page spécifique à la configuration générale du squelettes ; une page spécifique à la configuration de la page d’accueil du site ; une page spécifique à la configuration des secteurs ;
    Il fournit également une page supplémentaire qui n’apparait que lorsque certains plugins sont activés permettant de contrôler l’affichage et les fonctionnalités spécifiques (...)

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

Sur d’autres sites (13467)

  • running ffmpeg via nodejs error

    11 mars 2021, par Greyhammer

    I'm trying to run ffmpeg from node, and I'm getting an error. Here is the code

    



    var exec = require('child_process').exec;

var cmd = '/home/ubuntu/bin/ffmpeg -i /home/ubuntu/input.flv -s 640x480 -y -codec:a aac -b:a 44.1k -r 15 -b:v 1000k -codec:v h264 -f mp4 /home/ubuntu/output.mp4';

exec(cmd, function(err, stdout, stderr) {
    if (err) console.log('err:\n' + err);
    if (stderr) console.log('stderr:\n' + stderr);
    console.log('stdout:\n' + stdout);
});


    



    When I run this node script, I get the following errors :

    



    err:
Error: Command failed: /home/ubuntu/bin/ffmpeg -i /home/ubuntu/input.flv -s 640x480 -y -codec:a aac -b:a 44.1k -r 15 -b:v 1000k -codec:v h264 -f mp4 /home/ubuntu/output.mp4
ffmpeg version N-83323-g126e965 Copyright (c) 2000-2017 the FFmpeg developers
  built with gcc 4.8 (Ubuntu 4.8.4-2ubuntu1~14.04.3)
  configuration: --prefix=/home/ubuntu/ffmpeg_build --pkg-config-flags=--static --extra-cflags=-I/home/ubuntu/ffmpeg_build/include --extra-ldflags=-L/home/ubuntu/ffmpeg_build/lib --bindir=/home/ubuntu/bin --enable-gpl --enable-libopus --enable-libvpx --enable-libvorbis --enable-libmp3lame --enable-libfdk-aac --enable-libx264 --enable-nonfree
  libavutil      55. 45.100 / 55. 45.100
  libavcodec     57. 75.100 / 57. 75.100
  libavformat    57. 66.101 / 57. 66.101
  libavdevice    57.  2.100 / 57.  2.100
  libavfilter     6. 72.100 /  6. 72.100
  libswscale      4.  3.101 /  4.  3.101
  libswresample   2.  4.100 /  2.  4.100
  libpostproc    54.  2.100 / 54.  2.100
/home/ubuntu/input.flv: Invalid data found when processing input

stderr:
ffmpeg version N-83323-g126e965 Copyright (c) 2000-2017 the FFmpeg developers
  built with gcc 4.8 (Ubuntu 4.8.4-2ubuntu1~14.04.3)
  configuration: --prefix=/home/ubuntu/ffmpeg_build --pkg-config-flags=--static --extra-cflags=-I/home/ubuntu/ffmpeg_build/include --extra-ldflags=-L/home/ubuntu/ffmpeg_build/lib --bindir=/home/ubuntu/bin --enable-gpl --enable-libopus --enable-libvpx --enable-libvorbis --enable-libmp3lame --enable-libfdk-aac --enable-libx264 --enable-nonfree
  libavutil      55. 45.100 / 55. 45.100
  libavcodec     57. 75.100 / 57. 75.100
  libavformat    57. 66.101 / 57. 66.101
  libavdevice    57.  2.100 / 57.  2.100
  libavfilter     6. 72.100 /  6. 72.100
  libswscale      4.  3.101 /  4.  3.101
  libswresample   2.  4.100 /  2.  4.100
  libpostproc    54.  2.100 / 54.  2.100
/home/ubuntu/input.flv: Invalid data found when processing input

stdout:


    



    But when I run

    



    /home/ubuntu/bin/ffmpeg -i /home/ubuntu/input.flv -s 640x480 -y -codec:a aac -b:a 44.1k -r 15 -b:v 1000k -codec:v h264 -f mp4 /home/ubuntu/output.mp4


    



    straight in the terminal, It works flawlessly. I think it has to do with how node runs the command but all my google searching has returned zero useful results. Any help is greatly appreciated.

    


  • running ffmpeg via nodejs error

    4 février 2017, par Greyhammer

    I’m trying to run ffmpeg from node, and I’m getting an error. Here is the code

    var exec = require('child_process').exec;

    var cmd = '/home/ubuntu/bin/ffmpeg -i /home/ubuntu/input.flv -s 640x480 -y -codec:a aac -b:a 44.1k -r 15 -b:v 1000k -codec:v h264 -f mp4 /home/ubuntu/output.mp4';

    exec(cmd, function(err, stdout, stderr) {
       if (err) console.log('err:\n' + err);
       if (stderr) console.log('stderr:\n' + stderr);
       console.log('stdout:\n' + stdout);
    });

    When I run this node script, I get the following errors :

    err:
    Error: Command failed: /home/ubuntu/bin/ffmpeg -i /home/ubuntu/input.flv -s 640x480 -y -codec:a aac -b:a 44.1k -r 15 -b:v 1000k -codec:v h264 -f mp4 /home/ubuntu/output.mp4
    ffmpeg version N-83323-g126e965 Copyright (c) 2000-2017 the FFmpeg developers
     built with gcc 4.8 (Ubuntu 4.8.4-2ubuntu1~14.04.3)
     configuration: --prefix=/home/ubuntu/ffmpeg_build --pkg-config-flags=--static --extra-cflags=-I/home/ubuntu/ffmpeg_build/include --extra-ldflags=-L/home/ubuntu/ffmpeg_build/lib --bindir=/home/ubuntu/bin --enable-gpl --enable-libopus --enable-libvpx --enable-libvorbis --enable-libmp3lame --enable-libfdk-aac --enable-libx264 --enable-nonfree
     libavutil      55. 45.100 / 55. 45.100
     libavcodec     57. 75.100 / 57. 75.100
     libavformat    57. 66.101 / 57. 66.101
     libavdevice    57.  2.100 / 57.  2.100
     libavfilter     6. 72.100 /  6. 72.100
     libswscale      4.  3.101 /  4.  3.101
     libswresample   2.  4.100 /  2.  4.100
     libpostproc    54.  2.100 / 54.  2.100
    /home/ubuntu/input.flv: Invalid data found when processing input

    stderr:
    ffmpeg version N-83323-g126e965 Copyright (c) 2000-2017 the FFmpeg developers
     built with gcc 4.8 (Ubuntu 4.8.4-2ubuntu1~14.04.3)
     configuration: --prefix=/home/ubuntu/ffmpeg_build --pkg-config-flags=--static --extra-cflags=-I/home/ubuntu/ffmpeg_build/include --extra-ldflags=-L/home/ubuntu/ffmpeg_build/lib --bindir=/home/ubuntu/bin --enable-gpl --enable-libopus --enable-libvpx --enable-libvorbis --enable-libmp3lame --enable-libfdk-aac --enable-libx264 --enable-nonfree
     libavutil      55. 45.100 / 55. 45.100
     libavcodec     57. 75.100 / 57. 75.100
     libavformat    57. 66.101 / 57. 66.101
     libavdevice    57.  2.100 / 57.  2.100
     libavfilter     6. 72.100 /  6. 72.100
     libswscale      4.  3.101 /  4.  3.101
     libswresample   2.  4.100 /  2.  4.100
     libpostproc    54.  2.100 / 54.  2.100
    /home/ubuntu/input.flv: Invalid data found when processing input

    stdout:

    But when I run

    /home/ubuntu/bin/ffmpeg -i /home/ubuntu/input.flv -s 640x480 -y -codec:a aac -b:a 44.1k -r 15 -b:v 1000k -codec:v h264 -f mp4 /home/ubuntu/output.mp4

    straight in the terminal, It works flawlessly. I think it has to do with how node runs the command but all my google searching has returned zero useful results. Any help is greatly appreciated.

  • linux ffmpeg Live streaming cannot connect to another PC

    9 juin 2019, par Tae-Yeong

    I’m set ffserver and ffmpeg streaming code in the linux console terminal.

    ffserver => ffserver -f ./ffserver.conf (terminal 1)

    ffmpeg => ffmpeg -r 15 -s 640x480 -f video4linux2 -i /dev/video0 http://mylocalhostip:8090/feed1.ffm (terminal 2)

    It was working success in the localhost.
    But It could not connect other PC or Mobile.
    Firewall set disable.

    My desktop and mobile have a normal Internet connection.

    I want to Live-Streaming connect other PC or Mobile.
    How can I do ?

    Hardware = LattePanda
    OS = Ubuntu 16.04

    < ffserver.conf >

    HTTPPort 8090

    bind to all IPs aliased or not

    HTTPBindAddress 0.0.0.0

    max number of simultaneous clients

    MaxClients 1000

    max bandwidth per-client (kb/s)

    MaxBandwidth 10000

    Suppress that if you want to launch ffserver as a daemon.

    NoDaemon

       <feed>
       File /tmp/feed1.ffm
       FileMaxSize 100M
       </feed>
       <stream>
       Feed feed1.ffm
       Format swf
       VideoCodec flv
       VideoFrameRate 15
       VideoBufferSize 80000
       VideoBitRate 100
       VideoQMin 1
       VideoQMax 5
       VideoSize 640x480
       PreRoll 0
       Noaudio
       </stream>
       <stream>
       Format status
       ACL allow localhost
       ACL allow 121.172.0.0 121.172.0.255 (my desktop Ip range)
       </stream>

    I expect to output of My WebCam Screen, but the actual output timeout.

    My desktop OS is Window10. And Mobile OS is Android.