Recherche avancée

Médias (1)

Mot : - Tags -/intégration

Autres articles (57)

  • Mise à jour de la version 0.1 vers 0.2

    24 juin 2013, par

    Explications des différents changements notables lors du passage de la version 0.1 de MediaSPIP à la version 0.3. Quelles sont les nouveautés
    Au niveau des dépendances logicielles Utilisation des dernières versions de FFMpeg (>= v1.2.1) ; Installation des dépendances pour Smush ; Installation de MediaInfo et FFprobe pour la récupération des métadonnées ; On n’utilise plus ffmpeg2theora ; On n’installe plus flvtool2 au profit de flvtool++ ; On n’installe plus ffmpeg-php qui n’est plus maintenu au (...)

  • Personnaliser en ajoutant son logo, sa bannière ou son image de fond

    5 septembre 2013, par

    Certains thèmes prennent en compte trois éléments de personnalisation : l’ajout d’un logo ; l’ajout d’une bannière l’ajout d’une image de fond ;

  • Ecrire une actualité

    21 juin 2013, par

    Présentez les changements dans votre MédiaSPIP ou les actualités de vos projets sur votre MédiaSPIP grâce à la rubrique actualités.
    Dans le thème par défaut spipeo de MédiaSPIP, les actualités sont affichées en bas de la page principale sous les éditoriaux.
    Vous pouvez personnaliser le formulaire de création d’une actualité.
    Formulaire de création d’une actualité Dans le cas d’un document de type actualité, les champs proposés par défaut sont : Date de publication ( personnaliser la date de publication ) (...)

Sur d’autres sites (8886)

  • avformat/http: increase BUFFER_SIZE to MAX_URL_SIZE + HTTP_HEADERS_SIZE

    11 mai 2020, par Joey Smith
    avformat/http: increase BUFFER_SIZE to MAX_URL_SIZE + HTTP_HEADERS_SIZE
    

    Some real-world sites use an authorization header with a bearer token ; when
    combined with lengthy request parameters to identify the video segment,
    it's rather trivial these days to have a request body of more than 4k bytes.

    MAX_URL_SIZE is hard-coded to 4k bytes in libavformat/internal.h, and
    HTTP_HEADERS_SIZE is 4k as well in libavformat/http.h, so this patch increases
    the buffer size to 8k, as that is the default request body limit in Apache, and
    most other httpds seem to support at least as much, if not more.

    Signed-off-by : Marton Balint <cus@passwd.hu>

    • [DH] libavformat/http.c
  • How do I access the files from a ffmpeg_streaming PUT request in Django ?

    8 juin 2020, par Sage

    I'm trying to stream video from my webcam using a python package called ffmpeg_streaming and Django2.0. I can see the request being received on the server side but I can't access the actual files in views.

    &#xA;&#xA;

    This is my views.py

    &#xA;&#xA;

    @csrf_exempt&#xA;def stream_video(request):&#xA;    stream = QueryDict(request.body)&#xA;    print("Stream: ", stream)&#xA;    data = {&#x27;stream&#x27;: &#x27;streaming...&#x27;}&#xA;"""&#xA;    if hasattr(request, &#x27;_post&#x27;):&#xA;        del request._post&#xA;        del request._files&#xA;    try:&#xA;        request.method = &#x27;POST&#x27;&#xA;        request._lost_post_and_files()&#xA;        request.method = &#x27;PUT&#x27;&#xA;    except(AttributeError):&#xA;        request.META[&#x27;REQUEST_METHOD&#x27;] = &#x27;POST&#x27;&#xA;        request._load_post_and_files()&#xA;        request.META[&#x27;REQUEST_METHOD&#x27;] = &#x27;PUT&#x27;&#xA;    request.PUT = request.POST&#xA;"""&#xA;    file_ob = request.POST&#xA;    print(&#x27;Files: &#x27;, file_ob)&#xA;    files = request.FILES&#xA;    print(&#x27;Files:&#x27; , files)&#xA;    return JsonResponse(data)&#xA;

    &#xA;&#xA;

    stream_video.py

    &#xA;&#xA;

    import ffmpeg_streaming&#xA;&#xA;video = ffmpeg_streaming.input(&#x27;/dev/video0&#x27;, capture=True)&#xA;_480p  = Representation(Size(854, 480), Bitrate(750 * 1024, 192 * 1024))&#xA;hls = video.hls(Formats.h264(), hls_list_size=10, hls_time=5, method=&#x27;POST&#x27;, post_data=&#x27;File&#x27;)&#xA;hls.flags(&#x27;delete_segments&#x27;)&#xA;hls.representations(_480p)&#xA;hls.output(&#x27;http://127.0.0.1:8000/stream_video/out.m3u8&#x27;)&#xA;

    &#xA;&#xA;

    How would I go about accessing the files and treating them as uploads ?

    &#xA;

  • FFMPEG is not executing

    14 juin 2020, par user2397316

    I have installed FFMPEG in my Centos7 dedicated Server, now I want to run the FFMPEG, but it is not executing, can anyone help what could be the reason.

    &#xA;&#xA;

    Note : I have Cpanel installed also.&#xA;My code is below :

    &#xA;&#xA;

        &#xA;&#xA;    &#xA;        &#xA;    &#xA;    &#xA;        <form action="" method="post" enctype="multipart/form-data">&#xA;            <input type="file" />&#xA;            <input type="submit" />&#xA;        </form>&#xA;    &#xA;&#xA;&lt;?php&#xA;if (isset($_POST[&#x27;submit&#x27;])){&#xA;    $currentPath=$_FILES[&#x27;video&#x27;][&#x27;tmp_name&#x27;];&#xA;   $ffmpeg = "/usr/bin/ffmpeg";&#xA;    exec("$ffmpeg -i ".$currentPath." -an output/video.mp4");&#xA;    echo "OK";&#xA;}&#xA;?>&#xA;

    &#xA;