Recherche avancée

Médias (91)

Autres articles (19)

  • Keeping control of your media in your hands

    13 avril 2011, par

    The vocabulary used on this site and around MediaSPIP in general, aims to avoid reference to Web 2.0 and the companies that profit from media-sharing.
    While using MediaSPIP, you are invited to avoid using words like "Brand", "Cloud" and "Market".
    MediaSPIP is designed to facilitate the sharing of creative media online, while allowing authors to retain complete control of their work.
    MediaSPIP aims to be accessible to as many people as possible and development is based on expanding the (...)

  • Configuration spécifique pour PHP5

    4 février 2011, par

    PHP5 est obligatoire, vous pouvez l’installer en suivant ce tutoriel spécifique.
    Il est recommandé dans un premier temps de désactiver le safe_mode, cependant, s’il est correctement configuré et que les binaires nécessaires sont accessibles, MediaSPIP devrait fonctionner correctement avec le safe_mode activé.
    Modules spécifiques
    Il est nécessaire d’installer certains modules PHP spécifiques, via le gestionnaire de paquet de votre distribution ou manuellement : php5-mysql pour la connectivité avec la (...)

  • La sauvegarde automatique de canaux SPIP

    1er avril 2010, par

    Dans le cadre de la mise en place d’une plateforme ouverte, il est important pour les hébergeurs de pouvoir disposer de sauvegardes assez régulières pour parer à tout problème éventuel.
    Pour réaliser cette tâche on se base sur deux plugins SPIP : Saveauto qui permet une sauvegarde régulière de la base de donnée sous la forme d’un dump mysql (utilisable dans phpmyadmin) mes_fichiers_2 qui permet de réaliser une archive au format zip des données importantes du site (les documents, les éléments (...)

Sur d’autres sites (3994)

  • ffmpeg take input and output as webm on port

    12 octobre 2019, par RussellHarrower

    I am wondering how I can take an audio input and output it as a webm

    This is what I thought would work to get it to rtp out but running into issue.

    ffmpeg -i http://stream.radiomedia.com.au:8003/stream -c copy  -f rtp rtp://127.0.0.1/streamID:54321  

    it returns

    ffmpeg -i http://stream.radiomedia.com.au:8003/stream -c copy  -f rtp rtp://127.0.0.1/streamID:54321                                 ffmpeg version 4.2.1-0york0~18.04 Copyright (c) 2000-2019 the FFmpeg developers
     built with gcc 7 (Ubuntu 7.4.0-1ubuntu1~18.04.1)
     configuration: --prefix=/usr --extra-version='0york0~18.04' --toolchain=hardened --libdir=/usr/lib/x86_64-linux-gnu --incdir=/usr/include/x86_64-linux-gnu --arch=amd64 --enable-gpl --disable-stripping --enable-avresample --disable-filter=resample --enable-avisynth --enable-gnutls --enable-ladspa --enable-libaom --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libcdio --enable-libcodec2 --enable-libflite --enable-libfontconfig --enable-libfreetype --enable-libfribidi --enable-libgme --enable-libgsm --enable-libjack --enable-libmp3lame --enable-libmysofa --enable-libopenjpeg --enable-libopenmpt --enable-libopus --enable-libpulse --enable-librsvg --enable-librubberband --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libssh --enable-libtheora --enable-libtwolame --enable-libvidstab --enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx265 --enable-libxml2 --enable-libxvid --enable-libzmq --enable-libzvbi --enable-lv2 --enable-omx --enable-openal --enable-opengl --enable-sdl2 --enable-nonfree --enable-libfdk-aac --enable-libdc1394 --enable-libdrm --enable-libiec61883 --enable-chromaprint --enable-frei0r --enable-libx264 --enable-shared
     libavutil      56. 31.100 / 56. 31.100
     libavcodec     58. 54.100 / 58. 54.100
     libavformat    58. 29.100 / 58. 29.100
     libavdevice    58.  8.100 / 58.  8.100
     libavfilter     7. 57.100 /  7. 57.100
     libavresample   4.  0.  0 /  4.  0.  0
     libswscale      5.  5.100 /  5.  5.100
     libswresample   3.  5.100 /  3.  5.100
     libpostproc    55.  5.100 / 55.  5.100
    [mp3 @ 0x564cf51de940] invalid concatenated file detected - using bitrate for duration
    Input #0, mp3, from 'http://stream.radiomedia.com.au:8003/stream':
     Metadata:
       track           : 1
       title           : DNR1 Signal 1
       comment         : www.dvdvideosoft.com
       date            : 2019
       icy-br          : 128
       icy-description : Radio Media PTY LTD
       icy-genre       : Indie
       icy-name        : DRN1
       icy-pub         : 0
       icy-url         : https://www.drn1.com.au
       StreamTitle     :
     Duration: N/A, start: 0.025057, bitrate: 320 kb/s
       Stream #0:0: Audio: mp3, 44100 Hz, stereo, fltp, 320 kb/s
       Metadata:
         encoder         : LAME3.99r
    Output #0, rtp, to 'rtp://127.0.0.1/streamID:54321':
     Metadata:
       track           : 1
       title           : DNR1 Signal 1
       comment         : www.dvdvideosoft.com
       date            : 2019
       icy-br          : 128
       icy-description : Radio Media PTY LTD
       icy-genre       : Indie
       icy-name        : DRN1
       icy-pub         : 0
       icy-url         : https://www.drn1.com.au
       StreamTitle     :
       encoder         : Lavf58.29.100
       Stream #0:0: Audio: mp3, 44100 Hz, stereo, fltp, 320 kb/s
       Metadata:
         encoder         : LAME3.99r
    SDP:
    v=0
    o=- 0 0 IN IP4 127.0.0.1
    s=DNR1 Signal 1
    c=IN IP4 127.0.0.1
    t=0 0
    a=tool:libavformat 58.29.100
    m=audio 0 RTP/AVP 14
    b=AS:320
    a=control:streamid=0

    Stream mapping:
     Stream #0:0 -> #0:0 (copy)
    Press [q] to stop, [?] for help
    av_interleaved_write_frame(): Invalid argument                                                                                                                                        Error writing trailer of rtp://127.0.0.1/streamID:54321: Invalid argument
    size=       0kB time=-00:00:00.02 bitrate=N/A speed=N/A                                                                                                                               video:0kB audio:1kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: unknown
    Conversion failed!
  • Join a lot of frames with some audio files

    30 octobre 2019, par Laurin Neff

    What I’m trying to do

    I have 3697 frames (frames/[0-3696].png) and 5 audio files, which are the same length in total as the resulting video should be (audio/[0-4].mp3). I’m trying to play the frames at 15 fps, with the audio files playing in sequence and putting this into out.mp4. How can I achieve this ?

    File tree

    frames
    |-0.png
    |-1.png
    |...
    |-3695.png
    \-3696.png
    audio
    |-0.mp3
    |-1.mp3
    |-2.mp3
    |-3.mp3
    \-4.mp3

    What I’ve tried

    ffmpeg -i frames/%d.png -i audio/%d.mp3 -vf fps=15 out.mp4

    What I expect

    I expect out.mp4 to contain all frames, with the 5 mp3 files playing in sequence

    What actually happens

    $ ffmpeg -i frames/%d.png -i audio/%d.mp3 -vf fps=15 out.mp4
    ffmpeg version n4.2.1 Copyright (c) 2000-2019 the FFmpeg developers
     built with gcc 9.1.0 (GCC)
     configuration: --prefix=/usr --disable-debug --disable-static --disable-stripping --enable-fontconfig --enable-gmp --enable-gnutls --enable-gpl --enable-ladspa --enable-libaom --enable-libass --enable-libbluray --enable-libdav1d --enable-libdrm --enable-libfreetype --enable-libfribidi --enable-libgsm --enable-libiec61883 --enable-libjack --enable-libmodplug --enable-libmp3lame --enable-libopencore_amrnb --enable-libopencore_amrwb --enable-libopenjpeg --enable-libopus --enable-libpulse --enable-libsoxr --enable-libspeex --enable-libssh --enable-libtheora --enable-libv4l2 --enable-libvidstab --enable-libvorbis --enable-libvpx --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxcb --enable-libxml2 --enable-libxvid --enable-nvdec --enable-nvenc --enable-omx --enable-shared --enable-version3
     libavutil      56. 31.100 / 56. 31.100
     libavcodec     58. 54.100 / 58. 54.100
     libavformat    58. 29.100 / 58. 29.100
     libavdevice    58.  8.100 / 58.  8.100
     libavfilter     7. 57.100 /  7. 57.100
     libswscale      5.  5.100 /  5.  5.100
     libswresample   3.  5.100 /  3.  5.100
     libpostproc    55.  5.100 / 55.  5.100
    Input #0, image2, from 'frames/%d.png':
     Duration: 00:02:27.88, start: 0.000000, bitrate: N/A
       Stream #0:0: Video: png, rgb24(pc), 1920x1080, 25 fps, 25 tbr, 25 tbn, 25 tbc
    audio/%d.mp3: No such file or directory
  • Laravel FFmpeg error ffprobe running command -show_streams -print_format json is not running How i can resolve it ?

    12 octobre 2019, par Shahzad Waris

    I’m using laravel FFmpeg Package v4 to change the Dimension of the video.
    This is my queue log.

    [2019-10-12 15:14:17] local.INFO : ffprobe running command
    "C :/FFmpeg/bin/ffprobe.exe"
    C :\wamp64\www\creamer\creamer\storage\app\public\videos1570870350.mp4
    -show_streams -print_format json [2019-10-12 15:14:17] local.ERROR : ffprobe failed to execute command "C :/FFmpeg/bin/ffprobe.exe"
    C :\wamp64\www\creamer\creamer\storage\app\public\videos1570870350.mp4
    -show_streams -print_format json [2019-10-12 15:14:17] local.ERROR : Unable to probe
    C :\wamp64\www\creamer\creamer\storage\app\public\videos1570870350.mp4
    "exception" :"[object] (FFMpeg\Exception\RuntimeException(code : 0) :
    Unable to probe
    C :\wamp64\www\creamer\creamer\storage\app\public\videos1570870350.mp4
    at
    C :\wamp64\www\creamer\creamer\vendor\php-ffmpeg\php-ffmpeg\src\FFMpeg\FFProbe.php:263,
    Alchemy\BinaryDriver\Exception\ExecutionFailureException(code : 0) :
    ffprobe failed to execute command \"C :/FFmpeg/bin/ffprobe.exe\"
    C :\wamp64\www\creamer\creamer\storage\app\public\videos1570870350.mp4
    -show_streams -print_format json at C :\wamp64\www\creamer\creamer\vendor\alchemy\binary-driver\src\Alchemy\BinaryDriver\ProcessRunner.php:100)
    [stacktrace]

    0 C :\wamp64\www\creamer\creamer\vendor\php-ffmpeg\php-ffmpeg\src\FFMpeg\FFProbe.php(206) :

    FFMpeg\FFProbe->probe(’C :\wamp64\www\c...’, ’-show_streams’,
    ’streams’)

    1 C :\wamp64\www\creamer\creamer\vendor\php-ffmpeg\php-ffmpeg\src\FFMpeg\FFMpeg.php(92) :

    FFMpeg\FFProbe->streams(’C :\wamp64\www\c...’) [internal
    function] : Illuminate\Queue\Console\WorkCommand->handle() 1 :
    https://github.com/pascalbaljetmedia/laravel-ffmpeg?ref=madewithlaravel.com

    This is Queue code :

    namespace App\Jobs;

    use App\Video;
    use FFMpeg;
    use FFMpeg\Coordinate\Dimension;
    use FFMpeg\Format\Video\X264;
    use Illuminate\Bus\Queueable;
    use Illuminate\Contracts\Queue\ShouldQueue;
    use Illuminate\Foundation\Bus\Dispatchable;
    use Illuminate\Queue\InteractsWithQueue;
    use Illuminate\Queue\SerializesModels;

    class ConvertVideoForDownloading implements ShouldQueue
    {
       use Dispatchable, InteractsWithQueue, Queueable, SerializesModels;
       public $video;
       /**
        * Create a new job instance.
        *
        * @return void
        */
       public function __construct(Video $v)
       {
           $this->video = $v;
       }

       /**
        * Execute the job.
        *
        * @return void
        */
       public function handle()
       {
           // create a video format...
           $lowBitrateFormat = (new X264)->setKiloBitrate(500);

           // open the uploaded video from the right disk...
           FFMpeg::fromDisk('local')
               ->open('public\videos' . $this->video->videoLink)

           // add the 'resize' filter...
               ->addFilter(function ($filters) {
                   $filters->resize(new Dimension(960, 540));
               })

           // call the 'export' method...
               ->export()

           // tell the MediaExporter to which disk and in which format we want to export...
               ->toDisk('local')
               ->inFormat($lowBitrateFormat)

           // call the 'save' method with a filename...
               ->save($this->video->id . '.mp4');

           // update the database so we know the convertion is done!
           // $this->video->update([
           //     'converted_for_downloading_at' => Carbon::now(),
           // ]);

       }
    }