Recherche avancée

Médias (91)

Autres articles (63)

  • Participer à sa traduction

    10 avril 2011

    Vous pouvez nous aider à améliorer les locutions utilisées dans le logiciel ou à traduire celui-ci dans n’importe qu’elle nouvelle langue permettant sa diffusion à de nouvelles communautés linguistiques.
    Pour ce faire, on utilise l’interface de traduction de SPIP où l’ensemble des modules de langue de MediaSPIP sont à disposition. ll vous suffit de vous inscrire sur la liste de discussion des traducteurs pour demander plus d’informations.
    Actuellement MediaSPIP n’est disponible qu’en français et (...)

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

  • Mise à disposition des fichiers

    14 avril 2011, par

    Par défaut, lors de son initialisation, MediaSPIP ne permet pas aux visiteurs de télécharger les fichiers qu’ils soient originaux ou le résultat de leur transformation ou encodage. Il permet uniquement de les visualiser.
    Cependant, il est possible et facile d’autoriser les visiteurs à avoir accès à ces documents et ce sous différentes formes.
    Tout cela se passe dans la page de configuration du squelette. Il vous faut aller dans l’espace d’administration du canal, et choisir dans la navigation (...)

Sur d’autres sites (7596)

  • fftools/ffmpeg : use a bsf list instead of individual bsfs

    17 avril 2020, par Marton Balint
    fftools/ffmpeg : use a bsf list instead of individual bsfs
    

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

    • [DH] fftools/ffmpeg.c
    • [DH] fftools/ffmpeg.h
    • [DH] fftools/ffmpeg_opt.c
  • Shows improper/corrupted TS segments from Opencv webcam and FFmpeg

    30 juin 2020, par playmaker420

    Im experimenting with opencv and ffmpeg to create a live hls stream from the webcam using some scripts

    &#xA;

    The ffmpeg version i use is 3.4

    &#xA;

    frame-detection.py

    &#xA;

    import numpy as np&#xA;import cv2&#xA;import sys&#xA;&#xA;&#xA;cap = cv2.VideoCapture(0)&#xA;&#xA;while(True):&#xA;    # Capture frame-by-frame&#xA;    ret, frame = cap.read()&#xA;    framestring = frame.tostring()&#xA;    sys.stdout.write(str(framestring))&#xA;&#xA;    # Display the resulting frame&#xA;    cv2.imshow(&#x27;frame&#x27;, frame)&#xA;    if cv2.waitKey(1) &amp; 0xFF == ord(&#x27;q&#x27;):&#xA;        break&#xA;&#xA;# When everything done, release the capture&#xA;cap.release()&#xA;cv2.destroyAllWindows()&#xA;

    &#xA;

    hlslive_generator.sh

    &#xA;

    #!/bin/bash&#xA;&#xA;# Create folder from args&#xA;mkdir -p $1&#xA;&#xA;# Get into the folder&#xA;cd $1&#xA;&#xA;# Start running FFmpeg HLS Live streaming&#xA;python frame-detection.py | ffmpeg  \&#xA;  -f rawvideo \&#xA;  -framerate 10 \&#xA;  -video_size 640x480 \&#xA;  -i - foo.mp4  \&#xA;  -vcodec libx264 \&#xA;  -acodec copy \&#xA;  -pix_fmt yuv420p \&#xA;  -color_range 2 \&#xA;  -hls_time 1 \&#xA;  -hls_list_size 5 \&#xA;  -hls_flags delete_segments \&#xA;  -use_localtime 1 \&#xA;  -hls_segment_filename &#x27;%Y%m%d-%s.ts&#x27; \&#xA;  ./playlist.m3u8&#xA;

    &#xA;

    I used the following commands to run the scripts and it creates a folder and generate ts segments in it

    &#xA;

    ./hlslive_generator.sh hlssegments&#xA;

    &#xA;

    The issue i face here is with the created ts files, on playing these segments with the video player it shows improper/corrupted segments.enter image description here

    &#xA;

    Can someone help me to identify the issue ? Thanks in advance

    &#xA;

  • How do I toggle individual codec options in libavcodec (specifically h264_options)

    2 juillet 2020, par John Allard

    I'm trying to figure out how to enable enable_er option as is defined in h264dec.c in libavcodec. This is defined as an AVOption as part of the AVCodec.priv_class.option field. I can't figure out if this is some sort of compile-time option or if it's an option that I can enable via the av_dict_set method when initializing an AVCodec via avcodec_open2.

    &#xA;

    I'm talking about these options in h264dec.c

    &#xA;

    #define OFFSET(x) offsetof(H264Context, x)&#xA;#define VD AV_OPT_FLAG_VIDEO_PARAM | AV_OPT_FLAG_DECODING_PARAM&#xA;static const AVOption h264_options[] = {&#xA;    { "is_avc", "is avc", OFFSET(is_avc), AV_OPT_TYPE_BOOL, {.i64 = 0}, 0, 1, 0 },&#xA;    { "nal_length_size", "nal_length_size", OFFSET(nal_length_size), AV_OPT_TYPE_INT, {.i64 = 0}, 0, 4, 0 },&#xA;    { "enable_er", "Enable error resilience on damaged frames (unsafe)", OFFSET(enable_er), AV_OPT_TYPE_BOOL, { .i64 = -1 }, -1, 1, VD },&#xA;    { NULL },&#xA;};&#xA;&#xA;static const AVClass h264_class = {&#xA;    .class_name = "H264 Decoder",&#xA;    .item_name  = av_default_item_name,&#xA;    .option     = h264_options,&#xA;    .version    = LIBAVUTIL_VERSION_INT,&#xA;};&#xA;&#xA;AVCodec ff_h264_decoder = {&#xA;    .name                  = "h264",&#xA;    .long_name             = NULL_IF_CONFIG_SMALL("H.264 / AVC / MPEG-4 AVC / MPEG-4 part 10"),&#xA;    .type                  = AVMEDIA_TYPE_VIDEO,&#xA;    .id                    = AV_CODEC_ID_H264,&#xA;    .priv_data_size        = sizeof(H264Context),&#xA;    .init                  = h264_decode_init,&#xA;    .close                 = h264_decode_end,&#xA;    .decode                = h264_decode_frame,&#xA;    .capabilities          = /*AV_CODEC_CAP_DRAW_HORIZ_BAND |*/ AV_CODEC_CAP_DR1 |&#xA;                             AV_CODEC_CAP_DELAY | AV_CODEC_CAP_SLICE_THREADS |&#xA;                             AV_CODEC_CAP_FRAME_THREADS,&#xA;    .caps_internal         = FF_CODEC_CAP_INIT_THREADSAFE | FF_CODEC_CAP_EXPORTS_CROPPING,&#xA;    .flush                 = flush_dpb,&#xA;    .init_thread_copy      = ONLY_IF_THREADS_ENABLED(decode_init_thread_copy),&#xA;    .update_thread_context = ONLY_IF_THREADS_ENABLED(ff_h264_update_thread_context),&#xA;    .profiles              = NULL_IF_CONFIG_SMALL(ff_h264_profiles),&#xA;    .priv_class            = &amp;h264_class,&#xA;};&#xA;

    &#xA;