Recherche avancée

Médias (91)

Autres articles (8)

  • Other interesting software

    13 avril 2011, par

    We don’t claim to be the only ones doing what we do ... and especially not to assert claims to be the best either ... What we do, we just try to do it well and getting better ...
    The following list represents softwares that tend to be more or less as MediaSPIP or that MediaSPIP tries more or less to do the same, whatever ...
    We don’t know them, we didn’t try them, but you can take a peek.
    Videopress
    Website : http://videopress.com/
    License : GNU/GPL v2
    Source code : (...)

  • D’autres logiciels intéressants

    12 avril 2011, par

    On ne revendique pas d’être les seuls à faire ce que l’on fait ... et on ne revendique surtout pas d’être les meilleurs non plus ... Ce que l’on fait, on essaie juste de le faire bien, et de mieux en mieux...
    La liste suivante correspond à des logiciels qui tendent peu ou prou à faire comme MediaSPIP ou que MediaSPIP tente peu ou prou à faire pareil, peu importe ...
    On ne les connais pas, on ne les a pas essayé, mais vous pouvez peut être y jeter un coup d’oeil.
    Videopress
    Site Internet : (...)

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

Sur d’autres sites (3139)

  • ffmpeg crashing server working with fpm-php

    1er janvier 2023, par John

    I'm running a wordpress bitnami stack consisting of apache, mariadb and fpm-php.
I have cron jobs fulfilling encoding of one video at a time using ffmpeg, so while fpm-php is serving http requests ffmpeg works in parallel encoding videos.
When encoding starts everything seems to work fine, as shown here : ffmpeg working alongside fpm-php

    


    But eventually after around an hour the server crashes due to lack of memory space. I've read that when CPU can't handle ffmpeg, ffmpeg will start consuming RAM until it exhausts it so that might be what causes the sudden spike in memory usage.

    


    The image bellow illustrates what happens when the server crashes, kswapd0 creates virtual memory out of disk space to cope with lack of memory :
enter image description here

    


    The server has 4vCPU and 8GB RAM. Website traffic is just me and a colleague, so it should be able to handle ffmpeg taking up around 1vCPU to encode videos.

    


    I use the following configuration for fpm-php :

    


    pm=ondemand
pm.max_children=5
pm.start_servers=2
pm.min_spare_servers=1
pm.max_spare_servers=3
pm.max_requests = 500


    


    Has anyone had this issue before ?

    


    Thank you.

    


    I've tried changing around the configuration of fpm-php, but the issue still happens. I don't see how ffpmeg can crash the server when it's taking up about 25% of the CPU only, when there's no traffic to the server.

    


  • Can't write .mp4 files - Could not open codec 'libx264' : Unspecified error

    17 février 2015, par margaridagomes

    Days ago I installed the latest 2.4 branch withou ffmpeg. I’m using Ubuntu 14.04 and I don’t have at all ffmpeg in my Virtual Machine.

    I want to write .mp4 video files and the input files are also .mp4. The input codec is avc1.

    I can’t obtain any results, the errors can be seen below.

    Error

    [libx264 @ 0x9357bc0] broken ffmpeg default settings detected
    [libx264 @ 0x9357bc0] use an encoding preset (e.g. -vpre medium)
    [libx264 @ 0x9357bc0] preset usage: -vpre <speed> -vpre <profile>
    [libx264 @ 0x9357bc0] speed presets are listed in x264 --help
    [libx264 @ 0x9357bc0] profile is optional; x264 defaults to high
    Could not open codec 'libx264': Unspecified error
    Could not open the output video for write: /home/margarida/exams_2014/Output.mp4
    </profile></speed>

    Simplified Code

    int main(int argc, char *argv[]) {
               VideoWriter outputVideo;

               // Get Codec Type
               int ex = static_cast<int>(cap.get(CV_CAP_PROP_FOURCC));

               // Transform from int to char via Bitwise operators
               char EXT[] = { (char) (ex &amp; 0XFF), (char) ((ex &amp; 0XFF00) >> 8),
                               (char) ((ex &amp; 0XFF0000) >> 16), (char) ((ex &amp; 0XFF000000)
                                       >> 24), 0 };

               // Acquire input size
               Size S = Size((int) cap.get(CV_CAP_PROP_FRAME_WIDTH),
                               (int) cap.get(CV_CAP_PROP_FRAME_HEIGHT));

               cout &lt;&lt; "Input codec type: " &lt;&lt; EXT &lt;&lt; endl;

               // Open the output
               outputVideo.open(newname, ex, cap.get(CV_CAP_PROP_FPS), S, true);

               if (!outputVideo.isOpened()) {
                   cout &lt;&lt; "Could not open the output video for write " &lt;&lt; endl;
                           return -1;
                       }

                       while (true) {
                           cap >> frame;
                           if (frame.empty()) {
                               cerr &lt;&lt; "nao apanhou frame" &lt;&lt; endl;
                               break;
                           }

                           cinzento = acinzentar(frame);
                           imshow("Cinzento", cinzento);

                           outputVideo.write(cinzento);

                           switch(waitKey(10)){

                           case 27:
                               //'esc' has been pressed (ASCII value for 'esc' is 27)
                               //exit program.
                               return 0;

                           }
                       }
                      return 0;
                   }
    </int>

    My cmake was this :

    cmake -D WITH_TBB=ON -D CMAKE_INSTALL_PREFIX=/usr/local -D BUILD_NEW_PYTHON_SUPPORT=ON -D WITH_V4L=ON -D INSTALL_C_EXAMPLES=ON -D INSTALL_PYTHON_EXAMPLES=ON -D BUILD_EXAMPLES=ON -D WITH_QT=ON -D WITH_OPENGL=ON -D WITH_VTK=ON -D WITH_FFMPEG=OFF -D WITH_IPP=OFF ..

    Can anyone help solving my problem ?

    Thanks in advance.

  • How can I crop and encode a video using flutter natively, now that flutter_ffmpeg is discontinued with no alternatives ? [closed]

    13 mars, par Rageh Azzazy

    As of January 6, 2025, FFmpegKit is officially retired (Taner's article).

    &#xA;

    This also affects the flutter_ffmpeg and ffmpeg_kit_flutter packages.

    &#xA;

    Most packages for executing video editing commands were built depending on them and so won't work after April 1, 2025 as mentioned in the package documentation and Taner's article. Some packages that depend on flutter_ffmpeg or ffmpeg_kit_flutter are :

    &#xA;

      &#xA;
    • video_trimmer
    • &#xA;

    • zero_video_trimmer
    • &#xA;

    • flutter_video_trimmer
    • &#xA;

    • video_trim
    • &#xA;

    • bemeli_compress
    • &#xA;

    • video_trimmer_pro
    • &#xA;

    • ... others
    • &#xA;

    &#xA;

    Editing video using video_editor or video_editor_2 or video_editor_pits has become a problem.

    &#xA;

    I believe downloading the binaries and doing the whole thing locally is not just tedious but illegal as well.

    &#xA;

    I broke down exactly what I need to edit videos in my flutter app and I found those package but have not yet tested them.

    &#xA;

      &#xA;
    • Trimming : flutter_native_video_trimmer

      &#xA;

    • &#xA;

    • Compression : video_compress or video_compress_plus

      &#xA;

    • &#xA;

    • Muting : video_compress handles this

      &#xA;

    • &#xA;

    • Encoding : Not sure, I just need a simple MP4 video files

      &#xA;

    • &#xA;

    • Cropping : I can't find a solution for video cropping

      &#xA;

    • &#xA;

    &#xA;

    I don't need to rotate, reverse or do any fancy stuff to the videos, just those five functions.

    &#xA;

    Now the only way forward is to find a simple video cropping function and an encoder that work on flutter IOS & Android

    &#xA;

    My question is not looking for external library recommendations but :

    &#xA;

    Do you have any ideas how to crop a video in flutter natively ?

    &#xA;