Recherche avancée

Médias (0)

Mot : - Tags -/presse-papier

Aucun média correspondant à vos critères n’est disponible sur le site.

Autres articles (101)

  • Script d’installation automatique de MediaSPIP

    25 avril 2011, par

    Afin de palier aux difficultés d’installation dues principalement aux dépendances logicielles coté serveur, un script d’installation "tout en un" en bash a été créé afin de faciliter cette étape sur un serveur doté d’une distribution Linux compatible.
    Vous devez bénéficier d’un accès SSH à votre serveur et d’un compte "root" afin de l’utiliser, ce qui permettra d’installer les dépendances. Contactez votre hébergeur si vous ne disposez pas de cela.
    La documentation de l’utilisation du script d’installation (...)

  • Organiser par catégorie

    17 mai 2013, par

    Dans MédiaSPIP, une rubrique a 2 noms : catégorie et rubrique.
    Les différents documents stockés dans MédiaSPIP peuvent être rangés dans différentes catégories. On peut créer une catégorie en cliquant sur "publier une catégorie" dans le menu publier en haut à droite ( après authentification ). Une catégorie peut être rangée dans une autre catégorie aussi ce qui fait qu’on peut construire une arborescence de catégories.
    Lors de la publication prochaine d’un document, la nouvelle catégorie créée sera proposée (...)

  • Les thèmes de MediaSpip

    4 juin 2013

    3 thèmes sont proposés à l’origine par MédiaSPIP. L’utilisateur MédiaSPIP peut rajouter des thèmes selon ses besoins.
    Thèmes MediaSPIP
    3 thèmes ont été développés au départ pour MediaSPIP : * SPIPeo : thème par défaut de MédiaSPIP. Il met en avant la présentation du site et les documents média les plus récents ( le type de tri peut être modifié - titre, popularité, date) . * Arscenic : il s’agit du thème utilisé sur le site officiel du projet, constitué notamment d’un bandeau rouge en début de page. La structure (...)

Sur d’autres sites (6332)

  • How do I preserve side data when concatenating files in ffmpeg ?

    28 mai 2020, par Mark Kahn

    I have multiple 360 videos that I'm trying to concatenate in ffmpeg. The command it self is pretty straightforward :

    



    ffmpeg -f concat -i 0036_concat.txt -c copy -strict unofficial 36.mp4


    



    where 0036_concat.txt is just a list of the individual files. The issue I'm having is that I can't get ffmpeg to preserve side data. Very simply put, ffprobe on any of the source files includes this :

    



    Side data:
  spherical: equirectangular (0.000000/0.000000/0.000000)


    



    And I can't, for the life of me, get that to propagate to the output file.

    



    this question has a solution that works for single files, but it doesn't work when concatenating multiple files.

    



    I'd be perfectly fine injecting that entire string if anyone knows how.

    


  • rtmpproto : Validate the embedded flv packet size before copying

    3 octobre 2013, par Martin Storsjö
    rtmpproto : Validate the embedded flv packet size before copying
    

    This wasn’t an issue prior to 58404738, when the whole RTMP packet
    was copied at once and the length of the individual embedded flv
    packets only were validated by the flv demuxer.

    Prior to this patch, this could lead to reads and writes out of bound.

    Signed-off-by : Martin Storsjö <martin@martin.st>

    • [DH] libavformat/rtmpproto.c
  • 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;