Recherche avancée

Médias (0)

Mot : - Tags -/page unique

Aucun média correspondant à vos critères n’est disponible sur le site.

Autres articles (74)

  • MediaSPIP v0.2

    21 juin 2013, par

    MediaSPIP 0.2 est la première version de MediaSPIP stable.
    Sa date de sortie officielle est le 21 juin 2013 et est annoncée ici.
    Le fichier zip ici présent contient uniquement les sources de MediaSPIP en version standalone.
    Comme pour la version précédente, il est nécessaire d’installer manuellement l’ensemble des dépendances logicielles sur le serveur.
    Si vous souhaitez utiliser cette archive pour une installation en mode ferme, il vous faudra également procéder à d’autres modifications (...)

  • Mise à disposition des fichiers

    14 avril 2011, par

    Par défaut, lors de son initialisation, MediaSPIP ne permet pas aux visiteurs de télécharger les fichiers qu’ils soient originaux ou le résultat de leur transformation ou encodage. Il permet uniquement de les visualiser.
    Cependant, il est possible et facile d’autoriser les visiteurs à avoir accès à ces documents et ce sous différentes formes.
    Tout cela se passe dans la page de configuration du squelette. Il vous faut aller dans l’espace d’administration du canal, et choisir dans la navigation (...)

  • MediaSPIP version 0.1 Beta

    16 avril 2011, par

    MediaSPIP 0.1 beta est la première version de MediaSPIP décrétée comme "utilisable".
    Le fichier zip ici présent contient uniquement les sources de MediaSPIP en version standalone.
    Pour avoir une installation fonctionnelle, il est nécessaire d’installer manuellement l’ensemble des dépendances logicielles sur le serveur.
    Si vous souhaitez utiliser cette archive pour une installation en mode ferme, il vous faudra également procéder à d’autres modifications (...)

Sur d’autres sites (13738)

  • "Missing reference picture" error when saving rtsp stream with ffmpeg

    4 mars 2020, par Cédric Kamermans

    I want to record 10 seconds of video with an IP camera via ffmpeg. The output video looks fine but i get a bunch of "Missing reference picture" errors in the log. This only happens in the beginning of the process. I also get the warning "circular_buffer_size is not supported on this build".

    I started of with the following code :

    -y -i rtsp://username:password@IP:88/videoMain -t 10 ffmpeg_capture.mp4

    But this resulted in the output being corrupted in the beginning.
    I found the following code on a forum and this seems to fix that problem. The errors still remain though.

    -y -i rtsp://username:password@IP:88/videoMain -b 900k -vcodec copy -r 60 -t 10 ffmpeg_capture.mp4

    One thing to note is that currently we’re using a C2 V3 IP camera. This model is just for testing, we will upgrade to a better model when we get this working.

    I want to clarify that i’m just beginning to use ffmpeg, so I don’t quite understand it yet. It would be greatly appreciated if someone could provide an example code of how I can fix this problem.

    Thanks in advance !

  • Convert file without saving it using fluent-ffmpeg in nodejs

    17 avril 2020, par Scherer

    What I am trying to do is create a node application that receives a mkv file, converts it to mp4, hardburning the subtitles, and sends it back so the user can download it. In the command line this works perfectly

    



    ffmpeg -i input.mkv -threads 1 -vf subtitles=input.mkv -acodec copy output.mp4

    



    Then, I tried to translate this into a node route using fluent-ffmpeg

    



    var ffmpeg = require('fluent-ffmpeg');

routes.post('/process', (req, res) => {
    //file sent
    const file = req.files.file
    const path = __dirname + '/public/data/'

    //saves file in server
    file.mv(path + file.name, err => {
        if (err) return res.sendStatus(500).send(err)
        console.log('upload successful')
    })

    //convert the file to mp4 with the hardburned subtitle
    ffmpeg(path + file.name).toFormat('mp4')
    .addOutputOption(["-threads 1"])
    .addOutputOption(["-acodec copy"])
    .addOutputOption(['-vf subtitles=' + path + file.name])
    .on('end', () => {
        console.log('done')
        res.sendStatus(200)
    })
    .on('error', console.log)
    .saveToFile(path + 'output.mp4') //saves file in server
})


    



    Unfortunately, this didn't work and the code returned the following error message

    



    Error: ffmpeg exited with code 1: Error reinitializing filters!&#xA;Failed to inject frame into filter network: Invalid argument&#xA;Error while processing the decoded data for stream #0:0&#xA;Conversion failed!&#xA;&#xA;    at ChildProcess.<anonymous> (C:\Users\fsvic\Desktop\ffmpeg_teste_node\node_modules\fluent-ffmpeg\lib\processor.js:182:22)&#xA;    at ChildProcess.emit (events.js:182:13)&#xA;    at Process.ChildProcess._handle.onexit (internal/child_process.js:240:12) &#x27;&#x27; &#x27;ffmpeg version 4.2.1 Copyright (c) 2000-2019 the FFmpeg developers\n  built with gcc 9.1.1 (GCC) 20190807\n  configuration: --enable-gpl --enable-version3 --enable-sdl2 --enable-fontconfig --enable-gnutls --enable-iconv --enable-libass --enable-libdav1d --enable-libbluray --enable-libfreetype --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-libopus --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libtheora --enable-libtwolame --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxml2 --enable-libzimg --enable-lzma --enable-zlib --enable-gmp --enable-libvidstab --enable-libvorbis --enable-libvo-amrwbenc --enable-libmysofa --enable-libspeex --enable-libxvid --enable-libaom --enable-libmfx --enable-amf --enable-ffnvcodec --enable-cuvid --enable-d3d11va --enable-nvenc --enable-nvdec --enable-dxva2 --enable-avisynth --enable-libopenmpt\n  libavutil      56. 31.100 / 56. 31.100\n  libavcodec     58. 54.100 / 58. 54.100\n  libavformat    58. 29.100 / 58. 29.100\n  libavdevice    58.  8.100 / 58.  8.100\n  libavfilter     7. 57.100 /  7. 57.100\n  libswscale      5.  5.100 /  5.  5.100\n  libswresample   3.  5.100 /  3.  5.100\n  libpostproc    55.  5.100 / 55.  5.100\nInput #0, matroska,webm, from \&#x27;C:\\Users\\fsvic\\Desktop\\ffmpeg_teste_node/public/data/star_trails.mkv\&#x27;:\n  Metadata:\n    COMPATIBLE_BRANDS: mp42mp41\n    MAJOR_BRAND     : mp42\n    MINOR_VERSION   : 0\n    ENCODER         : Lavf57.66.105\n  Duration: 00:00:21.25, start: 0.000000, bitrate: 1893 kb/s\n    Stream #0:0(eng): Video: h264 (High), yuv420p(progressive), 1280x720 [SAR 1:1 DAR 16:9], 25 fps, 25 tbr, 1k tbn, 50 tbc (default)\n    Metadata:\n      HANDLER_NAME    : ?Mainconcept Video Media Handler\n      ENCODER         : Lavc57.83.101 libx264\n      DURATION        : 00:00:21.163000000\n    Stream #0:1(eng): Audio: vorbis, 48000 Hz, stereo, fltp (default)\n    Metadata:\n      HANDLER_NAME    : #Mainconcept MP4 Sound Media Handler\n      ENCODER         : Lavc57.83.101 libvorbis\n      DURATION        : 00:00:21.251000000\nStream mapping:\n  Stream #0:0 -> #0:0 (h264 (native) -> h264 (libx264))\n  Stream #0:1 -> #0:1 (copy)\nPress [q] to stop, [?] for help\n[subtitles @ 000001cc091dbb80] Unable to parse option value "UsersfsvicDesktopffmpeg_teste_node/public/data/star_trails.mkv" as image size\n    Last message repeated 1 times\n[subtitles @ 000001cc091dbb80] Error setting option original_size to value UsersfsvicDesktopffmpeg_teste_node/public/data/star_trails.mkv.\n[Parsed_subtitles_0 @ 000001cc0910a8c0] Error applying options to the filter.\n[AVFilterGraph @ 000001cc0912ba80] Error initializing filter \&#x27;subtitles\&#x27; with args \&#x27;C:UsersfsvicDesktopffmpeg_teste_node/public/data/star_trails.mkv\&#x27;\nError reinitializing filters!\nFailed to inject frame into filter network: Invalid argument\nError while processing the decoded data for stream #0:0\nConversion failed!\n&#x27;&#xA;</anonymous>

    &#xA;&#xA;

    Besides that, I cannot save anything in the server side due to memory limitations, so I need a way to use the FFmpeg commands without an actual file in the folder. I discovered that the pipe feature might do the job, but I have no idea on how I could implement it in the current code.

    &#xA;

  • Pausing video streaming at EOF with FFMPEG ( Streaming and saving simultaneously)

    6 novembre 2019, par Padfoot

    I am writing a video to a local file using videowriter in OpenCV and at the same time, I am streaming it using ffmpeg+RTSP.
    But my video writing is slower than streaming. So RTSP is reaching the EOF and streaming is stopped.

    Is there any way or option in FFMPEG to pause the stream if it reached EOF and resumes again from the same time point.

    EDIT

    System - Ubuntu 16, 32 GB RAM.

    For video writing (frame by frame) -

        int i = 0;

       VideoWriter video("output.mp4",CV_FOURCC('a','v','c','1'),25, Size(frame_width,frame_height));
           while(1)
           {
               Mat frame;

               cap >> frame;

               if (frame.empty())
               break;

               video.write(frame);

       if (i == 25)
       printf("Start streaming");

        i++;


           }

    After writing 25 frames, I am streaming through -

    ffmpeg -re -i output.mp4 -codec copy -f flv rtmp://192.168.0.1:1935/live