Recherche avancée

Médias (91)

Autres articles (22)

  • Création définitive du canal

    12 mars 2010, par

    Lorsque votre demande est validée, vous pouvez alors procéder à la création proprement dite du canal. Chaque canal est un site à part entière placé sous votre responsabilité. Les administrateurs de la plateforme n’y ont aucun accès.
    A la validation, vous recevez un email vous invitant donc à créer votre canal.
    Pour ce faire il vous suffit de vous rendre à son adresse, dans notre exemple "http://votre_sous_domaine.mediaspip.net".
    A ce moment là un mot de passe vous est demandé, il vous suffit d’y (...)

  • Les tâches Cron régulières de la ferme

    1er décembre 2010, par

    La gestion de la ferme passe par l’exécution à intervalle régulier de plusieurs tâches répétitives dites Cron.
    Le super Cron (gestion_mutu_super_cron)
    Cette tâche, planifiée chaque minute, a pour simple effet d’appeler le Cron de l’ensemble des instances de la mutualisation régulièrement. Couplée avec un Cron système sur le site central de la mutualisation, cela permet de simplement générer des visites régulières sur les différents sites et éviter que les tâches des sites peu visités soient trop (...)

  • Taille des images et des logos définissables

    9 février 2011, par

    Dans beaucoup d’endroits du site, logos et images sont redimensionnées pour correspondre aux emplacements définis par les thèmes. L’ensemble des ces tailles pouvant changer d’un thème à un autre peuvent être définies directement dans le thème et éviter ainsi à l’utilisateur de devoir les configurer manuellement après avoir changé l’apparence de son site.
    Ces tailles d’images sont également disponibles dans la configuration spécifique de MediaSPIP Core. La taille maximale du logo du site en pixels, on permet (...)

Sur d’autres sites (3788)

  • avcodec/aacdec : fix parsing of dual mono files

    5 juillet 2022, par James Almer
    avcodec/aacdec : fix parsing of dual mono files
    

    Dual mono files report a channel count of 2 with each individual channel in its
    own SCE, instead of both in a single CPE as is the case with standard stereo.
    This commit handles this non default channel configuration scenario.

    Fixes ticket #1614

    Signed-off-by : James Almer <jamrial@gmail.com>

    • [DH] libavcodec/aacdec_template.c
  • How to find Video Codec for file ffmpeg

    10 janvier 2023, par iggy12345

    I'm working with HLS streams of MPEGTS that contains H264.

    &#xA;

    When I look at the HLS Playlist given by the server, it specifies that the codec is avc1.77.30,mp4a.40.2

    &#xA;

    Here's a snippet from the file

    &#xA;

    #EXTM3U&#xA;#EXT-X-VERSION:3&#xA;#EXT-X-STREAM-INF:PROGRAM-ID=1,BANDWIDTH=1787760,CODECS="avc1.77.30,mp4a.40.2",RESOLUTION=640x360&#xA;

    &#xA;

    Is there a way I can retrieve this information from ffmpeg ?

    &#xA;

    I found a question that was asked before How to determine video codec of a file with FFmpeg

    &#xA;

    But the closest I can seem to get to any of their outputs is h264 and not avc1.77.30

    &#xA;

    The playlist contains 7 MPEG-TS files, I've tried using ffprobe on both the playlist file, as well as the individual video files, but they both seem to report the parser, not the encoding of the actual video.

    &#xA;

  • FFMpeg fails to detect input stream when outputting to pipe's stdout

    27 septembre 2020, par La bla bla

    We have h264 frames as individual files, we read them to a python wrapper and piping them to ffmpeg.

    &#xA;

    ffmpeg subprocess is launched using

    &#xA;

        command = ["ffmpeg",&#xA;               "-hide_banner",&#xA;               "-vcodec", "h264",&#xA;               "-i", "pipe:0",&#xA;               "-video_size", "5120x3072",&#xA;               &#x27;-an&#x27;, &#x27;-sn&#x27;,  # we want to disable audio processing (there is no audio)&#xA;               &#x27;-pix_fmt&#x27;, &#x27;bgr24&#x27;,&#xA;               "-vcodec", "rawvideo",&#xA;               &#x27;-f&#x27;, &#x27;image2pipe&#x27;, &#x27;-&#x27;]&#xA;    pipe = sp.Popen(command, stdin=sp.PIPE, stdout=sp.PIPE, bufsize=10 ** 8)&#xA;

    &#xA;

    Our goal is to use ffmpeg to convert the individual h264 frames into raw BGR data that we can manipulate using OpenCV.

    &#xA;

    the files are read in a background thread and piped using

    &#xA;

        ...&#xA;    for path in files:&#xA;        with open(path, "rb") as f:&#xA;            data = f.read()&#xA;            pipe.stdin.write(data)&#xA;

    &#xA;

    When we try to read the ffmpeg's output pipe using

    &#xA;

        while True:&#xA;        # Capture frame-by-frame&#xA;        raw_image = pipe.stdout.read(width * height * 3)&#xA;

    &#xA;

    we get

    &#xA;

    [h264 @ 0x1c31000] Could not find codec parameters for stream 0 (Video: h264, none): unspecified size&#xA;Consider increasing the value for the &#x27;analyzeduration&#x27; and &#x27;probesize&#x27; options&#xA;pipe:0: could not find codec parameters&#xA;Input #0, h264, from &#x27;pipe:0&#x27;:&#xA;  Duration: N/A, bitrate: N/A&#xA;    Stream #0:0: Video: h264, none, 25 tbr, 1200k tbn, 50 tbc&#xA;Output #0, image2pipe, to &#x27;pipe:&#x27;:&#xA;Output file #0 does not contain any stream&#xA;

    &#xA;

    However, when I change the sp.Popen command to be

    &#xA;

    &#xA;    f = open(&#x27;ffmpeg_output.log&#x27;, &#x27;wt&#x27;)&#xA;    pipe = sp.Popen(command, stdin=sp.PIPE, stdout=f, bufsize=10 ** 8) # Note: the stdout is not f&#xA;

    &#xA;

    we get the gibberish (i.e, binary data) in the ffmpeg_output.log file, and the console reads

    &#xA;

    [h264 @ 0xf20000] Stream #0: not enough frames to estimate rate; consider increasing probesize&#xA;[h264 @ 0xf20000] decoding for stream 0 failed&#xA;Input #0, h264, from &#x27;pipe:0&#x27;:&#xA;  Duration: N/A, bitrate: N/A&#xA;    Stream #0:0: Video: h264 (Baseline), yuv420p, 5120x3072, 25 fps, 25 tbr, 1200k tbn, 50 tbc&#xA;Output #0, image2pipe, to &#x27;pipe:&#x27;:&#xA;  Metadata:&#xA;    encoder         : Lavf56.40.101&#xA;    Stream #0:0: Video: rawvideo (BGR[24] / 0x18524742), bgr24, 5120x3072, q=2-31, 200 kb/s, 25 fps, 25 tbn, 25 tbc&#xA;    Metadata:&#xA;      encoder         : Lavc56.60.100 rawvideo&#xA;Stream mapping:&#xA;  Stream #0:0 -> #0:0 (h264 (native) -> rawvideo (native))&#xA;Invalid UE golomb code&#xA;    Last message repeated 89 times&#xA;Invalid UE golomb code&#xA;    Last message repeated 29 times&#xA;Invalid UE golomb code&#xA;    Last message repeated 29 times&#xA;Invalid UE golomb code&#xA;    Last message repeated 29 times&#xA;Invalid UE golomb code&#xA;    Last message repeated 29 times&#xA;Invalid UE golomb code&#xA;    Last message repeated 29 times&#xA;Invalid UE golomb code&#xA;    Last message repeated 29 times&#xA;Invalid UE golomb code&#xA;    Last message repeated 29 times&#xA;Invalid UE golomb code&#xA;

    &#xA;

    Why does ffmpeg cares if its stdout is a file or a pipe ?

    &#xA;