Recherche avancée

Médias (91)

Autres articles (77)

  • Publier sur MédiaSpip

    13 juin 2013

    Puis-je poster des contenus à partir d’une tablette Ipad ?
    Oui, si votre Médiaspip installé est à la version 0.2 ou supérieure. Contacter au besoin l’administrateur de votre MédiaSpip pour le savoir

  • Récupération d’informations sur le site maître à l’installation d’une instance

    26 novembre 2010, par

    Utilité
    Sur le site principal, une instance de mutualisation est définie par plusieurs choses : Les données dans la table spip_mutus ; Son logo ; Son auteur principal (id_admin dans la table spip_mutus correspondant à un id_auteur de la table spip_auteurs)qui sera le seul à pouvoir créer définitivement l’instance de mutualisation ;
    Il peut donc être tout à fait judicieux de vouloir récupérer certaines de ces informations afin de compléter l’installation d’une instance pour, par exemple : récupérer le (...)

  • Pas question de marché, de cloud etc...

    10 avril 2011

    Le vocabulaire utilisé sur ce site essaie d’éviter toute référence à la mode qui fleurit allègrement
    sur le web 2.0 et dans les entreprises qui en vivent.
    Vous êtes donc invité à bannir l’utilisation des termes "Brand", "Cloud", "Marché" etc...
    Notre motivation est avant tout de créer un outil simple, accessible à pour tout le monde, favorisant
    le partage de créations sur Internet et permettant aux auteurs de garder une autonomie optimale.
    Aucun "contrat Gold ou Premium" n’est donc prévu, aucun (...)

Sur d’autres sites (6574)

  • php fread returns empty after one time of execution for popen

    20 avril 2021, par Hamed

    I'm trying to get real-time output from ffmpeg command with popen, but it returns empty after one time of execution in the loop.

    


    &lt;?php&#xA;&#xA;$a = popen(&#x27;ffpb -i mymovie.mp4 -vf subtitles=subtitles.srt mysubtitledmovie.mp4 2>&amp;1&#x27;, &#x27;r&#x27;);&#xA;&#xA;&#xA;while (true) {&#xA;    $b = fread($a, 2096);&#xA;&#xA;    var_dump($b) . "<br />\n";&#xA;&#xA;    ob_flush();&#xA;    flush();&#xA;&#xA;    sleep(1);&#xA;}&#xA;

    &#xA;

    The output : :

    &#xA;

    mymovie.mp4:   0%|          | 0/61080.0 [00:00&lt;?, ? frames/s]"&#xA;string(105) "Unexpected exception: &#x27;ascii&#x27; codec can&#x27;t encode characters in position 43-47: ordinal &#xA;not in range(128)&#xA;"&#xA;string(0) ""&#xA;string(0) ""&#xA;string(0) ""&#xA;

    &#xA;

  • FFmpeg av_hwdevice_ctx_create returns ENOMEM

    4 mars 2021, par lnogueir

    I am trying to perform h264 video encoding on a GPU using the ffmpeg's vaapi library.

    &#xA;

    I have been following this example from ffmpeg Github repo.

    &#xA;

    It fails for me here :

    &#xA;

    AVBufferRef* vaapi_encoder;&#xA;int err = av_hwdevice_ctx_create(&amp;vaapi_encoder, AV_HWDEVICE_TYPE_VAAPI,&#xA;                                 NULL, NULL, 0);&#xA;

    &#xA;

    This returns -12, which maps to ENOMEM (out of memory) error, but that doesn't make sense to me because I have plenty of memory.

    &#xA;

    For reference, this is my output after running 'vainfo' :

    &#xA;

    libva info: VA-API version 1.7.0&#xA;libva info: Trying to open /usr/lib/x86_64-linux-gnu/dri/iHD_drv_video.so&#xA;libva info: Found init function __vaDriverInit_1_7&#xA;libva info: va_openDriver() returns 0&#xA;vainfo: VA-API version: 1.7 (libva 2.6.0)&#xA;vainfo: Driver version: Intel iHD driver for Intel(R) Gen Graphics - 20.1.1 ()&#xA;vainfo: Supported profile and entrypoints&#xA;      VAProfileMPEG2Simple            : VAEntrypointVLD&#xA;      VAProfileMPEG2Main              : VAEntrypointVLD&#xA;      VAProfileH264Main               : VAEntrypointVLD&#xA;      VAProfileH264Main               : VAEntrypointEncSliceLP&#xA;      VAProfileH264High               : VAEntrypointVLD&#xA;      VAProfileH264High               : VAEntrypointEncSliceLP&#xA;      VAProfileJPEGBaseline           : VAEntrypointVLD&#xA;      VAProfileJPEGBaseline           : VAEntrypointEncPicture&#xA;      VAProfileH264ConstrainedBaseline: VAEntrypointVLD&#xA;      VAProfileH264ConstrainedBaseline: VAEntrypointEncSliceLP&#xA;      VAProfileVP8Version0_3          : VAEntrypointVLD&#xA;      VAProfileHEVCMain               : VAEntrypointVLD&#xA;      VAProfileHEVCMain10             : VAEntrypointVLD&#xA;      VAProfileVP9Profile0            : VAEntrypointVLD&#xA;      VAProfileVP9Profile2            : VAEntrypointVLD&#xA;

    &#xA;

    Thanks !

    &#xA;

  • libavfilter - reconfigure filter graph using avfilter_graph_parse_ptr returns -22

    16 juillet 2021, par Rahul

    I am using transcode.c sample from ffmpeg examples and it is working as expected. It uses avfilter_graph_parse_ptr to setup filter graph and it works fine.

    &#xA;

    However, I need change filter graph dynamically and there avfilter_graph_parse_ptr fails. It returns -22. I am not certain if it is a valid operation to do (reconfigure) ? If it is possible, does it require more than avfilter_graph_parse_ptr and avfilter_graph_parse_ptr ? libavfilter documentation doesn't say anything about reconfigure or reset existing graph.

    &#xA;

    I can create a new graph but I am avoiding it since it is affecting the existing buffers.

    &#xA;

    Thank you for your insight.

    &#xA;