Recherche avancée

Médias (29)

Mot : - Tags -/Musique

Autres articles (96)

  • MediaSPIP 0.1 Beta version

    25 avril 2011, par

    MediaSPIP 0.1 beta is the first version of MediaSPIP proclaimed as "usable".
    The zip file provided here only contains the sources of MediaSPIP in its standalone version.
    To get a working installation, you must manually install all-software dependencies on the server.
    If you want to use this archive for an installation in "farm mode", you will also need to proceed to other manual (...)

  • Multilang : améliorer l’interface pour les blocs multilingues

    18 février 2011, par

    Multilang est un plugin supplémentaire qui n’est pas activé par défaut lors de l’initialisation de MediaSPIP.
    Après son activation, une préconfiguration est mise en place automatiquement par MediaSPIP init permettant à la nouvelle fonctionnalité d’être automatiquement opérationnelle. Il n’est donc pas obligatoire de passer par une étape de configuration pour cela.

  • Des sites réalisés avec MediaSPIP

    2 mai 2011, par

    Cette page présente quelques-uns des sites fonctionnant sous MediaSPIP.
    Vous pouvez bien entendu ajouter le votre grâce au formulaire en bas de page.

Sur d’autres sites (11336)

  • lavc/vaapi_encode : Separate reference frame into previous/future list

    11 septembre 2023, par Fei Wang
    lavc/vaapi_encode : Separate reference frame into previous/future list
    

    To support more reference frames from different directions.

    Signed-off-by : Fei Wang <fei.w.wang@intel.com>
    Reviewed-by : Neal Gompa <ngompa13@gmail.com>

    • [DH] libavcodec/vaapi_encode.c
    • [DH] libavcodec/vaapi_encode.h
    • [DH] libavcodec/vaapi_encode_h264.c
    • [DH] libavcodec/vaapi_encode_h265.c
    • [DH] libavcodec/vaapi_encode_mpeg2.c
    • [DH] libavcodec/vaapi_encode_vp8.c
    • [DH] libavcodec/vaapi_encode_vp9.c
  • FFMPEG SCREEN RECORDING : How to get H265 (libx265) recording using ffmpeg with xorg ?

    19 novembre 2020, par Ryan

    I really would appreciate all the help I can get here.

    &#xA;

    I'm trying to use the libx265 codec for recording an xorg dummy screen. The command that currently works for H264 (libx264 codec) is :

    &#xA;

    &#xA;

    ffmpeg -y -v info -f x11grab -draw_mouse 0 -r 30 -s 1280x720&#xA;-thread_queue_size 4096 -i :0.0+0,0 -f alsa -acodec aac -strict -2 -ar 44100 -b:a 128k -af aresample=async=1 -c:v libx264 -preset fast&#xA;-profile:v main -level 3.1 -pix_fmt yuv420p -r 30 -crf 21 -g 60 -tune zerolatency -f mp4 capture.mp4

    &#xA;

    &#xA;

    In trying to get H265 instead, I first changed the codec to libx265 like below :

    &#xA;

    &#xA;

    ffmpeg -y -v info -f x11grab -draw_mouse 0 -r 30 -s 1280x720&#xA;-thread_queue_size 4096 -i :0.0+0,0 -f alsa -acodec aac -strict -2 -ar 44100 -b:a 128k -af aresample=async=1 -c:v libx265 -preset fast&#xA;-profile:v main -level 3.1 -pix_fmt yuv420p -r 30 -crf 21 -g 60 -tune zerolatency -f mp4 capture.mp4

    &#xA;

    &#xA;

    But that didn't do it. Although it didn't error, it was producing a file that was playing at twice the recorded speed (i.e. twice the speed of the clip that was recorded).

    &#xA;

    Then I tried using -x265-params to specify the parameters like this :

    &#xA;

    &#xA;

    ffmpeg -y -v info -f x11grab -draw_mouse 0 -r 30 -s 1280x720&#xA;-thread_queue_size 4096 -i :0.0+0,0 -f alsa -acodec aac -strict -2 -ar 44100 -b:a 128k -af aresample=async=1 -c:v libx264 -preset fast&#xA;-x265-params profile=main:level=3.1:crf=21 -pix_fmt yuv420p -r 30 -g 60 -tune zerolatency -f mp4 capture.mp4

    &#xA;

    &#xA;

    And this gave me an error with the following message :

    &#xA;

    "output file #0 does not contain any stream ffmpeg"

    &#xA;

    I've tried all sorts of combinations, searched extensively online (for both how to set 265 parameters and on the output file error), but I'm not making a headway. I'm really new to all this. Can anyone please help (with the most simple terms and directions) ?

    &#xA;

  • Connection randomly closes wihtout data while running a FFMPEG PHP script

    23 octobre 2022, par Victor Marinov

    I'm building a simple back-end solution for a client that allows them to upload any video in mo4 or mov format of up to about 500MB in size to a PHP back-end, which then takes the material, downsizes and compresses the it using the PHP library FFMPEG available here https://github.com/PHP-FFMpeg/PHP-FFMpeg.

    &#xA;

    While the video is being processed the connection to the front-end stays open, awaiting the compression result.

    &#xA;

    This may normally take up to 3-5 minutes depending on the size and duration of the video.

    &#xA;

    Overall it functions as intended, but with some videos I get random resets of the connection while the video is being processed.

    &#xA;

    I've added numerous error_log() lines in my script which show that the script continues running even after the connection is reset and the actual processing and compression of the video completes correctly and the file is saved in the DB and in storage.

    &#xA;

    Below is a small excerpt from the code in question :

    &#xA;

                            //THEN COMPRESS VIDEO THUMBNAIL&#xA;                        $format = new FFMpeg\Format\Video\X264();&#xA;                        $format->setKiloBitrate(3200);&#xA;                        error_log("BEFORE COMPRESS! ", 0);&#xA;&#xA;                        //PREVENT ANY ECHO&#x27;s&#xA;                        ob_start();&#xA;                        error_log("DURING COMPRESS... ", 0);&#xA;                        $video->save($format, $export_path);&#xA;                        error_log("JUST AFTER... ", 0);&#xA;                        $compress_output = ob_get_clean();&#xA;&#xA;                        $resp[&#x27;video_compression_result&#x27;] = &#x27;success&#x27;;&#xA;                        error_log("COMPRESS SUCCESS! ", 0);&#xA;

    &#xA;

    I would just like to know if any of you would have an idea why the connection might be reset on some files and not on others ? I've even tried wrapping the the $video->save() function in an output buffer to prevent any possible output which might trigger an premature output.

    &#xA;

    I have increased the PHP settings for max_memory to 2G and upload_max_filze and post_max size to 500M.

    &#xA;

    max_execution_time and max_input_time are both set to 1200 sec. The random reset usually comes at 1.7 or 5.4 minutes into the request and seem to depend on the file selected.

    &#xA;

    I've successfully processed smaller files from the same source without issues. The only variable here appears to be the duration and size of the video. What is most puzzling to me is that the remaining code continues to run fine even after the connection is reset.

    &#xA;

    If you have any clues, please let me know as this is driving me crazy for a second day in a row now and spoiling an otherwise perfectly functional solution for the client !

    &#xA;