Recherche avancée

Médias (1)

Mot : - Tags -/lev manovitch

Autres articles (78)

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

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

  • Sélection de projets utilisant MediaSPIP

    29 avril 2011, par

    Les exemples cités ci-dessous sont des éléments représentatifs d’usages spécifiques de MediaSPIP pour certains projets.
    Vous pensez avoir un site "remarquable" réalisé avec MediaSPIP ? Faites le nous savoir ici.
    Ferme MediaSPIP @ Infini
    L’Association Infini développe des activités d’accueil, de point d’accès internet, de formation, de conduite de projets innovants dans le domaine des Technologies de l’Information et de la Communication, et l’hébergement de sites. Elle joue en la matière un rôle unique (...)

Sur d’autres sites (6798)

  • avformat/internal : Hide BSF stuff only used by the core APIs

    10 mai 2022, par Andreas Rheinhardt
    avformat/internal : Hide BSF stuff only used by the core APIs
    

    The general demuxing API uses bitstream filters to extract extradata
    and the muxing API uses them in order to transform packets into
    the format desired by the target format. Therefore FFStream contains
    pointers to AVBSFContexts and lavf/internal.h includes lavc/bsf.h.

    Yet actually, only a few files files are supposed to use these,
    namely avformat.c, demux.c and mux.c. For all the other files,
    it should be an opaque type that they should not touch and that
    they need not know anything about. This can be achieved by not
    including these headers and using the structs instead of the
    corresponding typedefs.
    This also forces translation units that really use the BSF API
    themselves to include lavc/bsf.h directly instead of relying on
    indirect inclusions (a few other files also use the BSF API ;
    they already abided by this).
    Of course, it also avoids unnecessary rebuilds when bsf.h changes.

    Signed-off-by : Andreas Rheinhardt <andreas.rheinhardt@outlook.com>

    • [DH] libavformat/internal.h
  • Laravel MySQL DB not updating after long process

    11 mai 2022, par slanginbits

    I'm doing some video encoding using Laravel and FFMpeg using https://github.com/protonemedia/laravel-ffmpeg

    &#xA;

    During the video conversion, I can perform some db updates to update the percentage complete in hls_percent field :

    &#xA;

            $ffmpeg_cmd = FFMpeg::fromDisk(&#x27;local_videos&#x27;)&#xA;            ->open($video->filename)&#xA;            ->exportForHLS()&#xA;            ->toDisk(&#x27;local_videos&#x27;)&#xA;            ->setSegmentLength(3) // optional&#xA;            ->setKeyFrameInterval($key_interval) // optional&#xA;            ->onProgress(function ($percentage, $remaining = 0, $rate = 0) use ($id) {&#xA;                ItemVideo::where(&#x27;id&#x27;, $id)->update([&#x27;hls_percent&#x27; => $percentage]);                &#xA;            });&#xA;

    &#xA;

    This process works fine and the hls_percent value gets updated to 100 and the encoded video files are generated.

    &#xA;

    After some files are moved, (takes several seconds) a final db update is not done.

    &#xA;

    ItemVideo::where(&#x27;id&#x27;, $id)->update([&#x27;hls_complete&#x27; => 1]);&#xA;

    &#xA;

    The timeout only happens while encoding a large 150MB (10 min duration) mp4 file. Smaller/shorter videos complete the process without any issues.

    &#xA;

    I have increased the following in php.ini

    &#xA;

    memory_limit = 512M &#xA;post_max_size =  1024M&#xA;upload_max_filesize = 1024M&#xA;max_execution_time = 2400&#xA;max_input_time = 2400&#xA;default_socket_timeout = 2400&#xA;

    &#xA;

    I modified the global variables in the MySQL database server to higher timeouts&#xA;as instructed here https://sebhastian.com/lost-connection-mysql-server-during-query/

    &#xA;

    connect_timeout 2400&#xA;delayed_insert_timeout 300&#xA;have_statement_timeout YES&#xA;innodb_flush_log_at_timeout 1&#xA;innodb_lock_wait_timeout 50&#xA;innodb_rollback_on_timeout OFF&#xA;interactive_timeout 28800&#xA;lock_wait_timeout 31536000&#xA;mysqlx_connect_timeout 30&#xA;mysqlx_idle_worker_thread_timeout 60&#xA;mysqlx_interactive_timeout 28800&#xA;mysqlx_port_open_timeout 0&#xA;mysqlx_read_timeout 30&#xA;mysqlx_wait_timeout 28800&#xA;mysqlx_write_timeout 60&#xA;net_read_timeout 2400&#xA;net_write_timeout 2400&#xA;replica_net_timeout 2400&#xA;rpl_stop_replica_timeout 31536000&#xA;rpl_stop_slave_timeout 31536000&#xA;slave_net_timeout 2400&#xA;ssl_session_cache_timeout 2400&#xA;wait_timeout 28800&#xA;

    &#xA;

    apache2handler :

    &#xA;

    Max Requests Per Child : 0 - Keep Alive : on - Max Per Connection : 100&#xA;Timeouts Connection : 300 - Keep-Alive : 5

    &#xA;

    I'm not getting an error messages in laravel or /var/log/apache2/error.log

    &#xA;

    What else am I missing ? How can I keep the MySQL connection alive to make the final update ?

    &#xA;

  • Rendering the result in Videos using Pytorch3d

    6 avril 2022, par Sahasradal

    from lib.colab_util import generate_video_from_obj, set_renderer, video

    &#xA;

    renderer = set_renderer()&#xA;generate_video_from_obj(obj_path, out_img_path, video_path, renderer)

    &#xA;

    we cannot play a mp4 video generated by cv2

    &#xA;

     !ffmpeg -i $video_path -vcodec libx264 $video_display_path -y -loglevel quiet&#xA;video(video_display_path)

    &#xA;

    ImportError Traceback (most recent call last)&#xA; in ()&#xA;----> 1 from lib.colab_util import generate_video_from_obj, set_renderer, video&#xA;2&#xA;3 renderer = set_renderer()&#xA;4 generate_video_from_obj(obj_path, out_img_path, video_path, renderer)&#xA;5

    &#xA;

    4 frames&#xA;/usr/local/lib/python3.7/dist-packages/pytorch3d/renderer/blending.py in ()&#xA;7&#xA;8 # pyre-fixme[21] : Could not find name _C in pytorch3d.&#xA;----> 9 from pytorch3d import _C&#xA;10&#xA;11

    &#xA;

    ImportError : /usr/local/lib/python3.7/dist-packages/pytorch3d/_C.cpython-37m-x86_64-linux-gnu.so : undefined symbol : _ZNK2at6Tensor7is_cudaEv

    &#xA;


    &#xA;