Recherche avancée

Médias (3)

Mot : - Tags -/image

Autres articles (60)

  • Des sites réalisés avec MediaSPIP

    2 mai 2011, par

    Cette page présente quelques-uns des sites fonctionnant sous MediaSPIP.
    Vous pouvez bien entendu ajouter le votre grâce au formulaire en bas de page.

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

  • MediaSPIP 0.1 Beta version

    25 avril 2011, par

    MediaSPIP 0.1 beta is the first version of MediaSPIP proclaimed as "usable".
    The zip file provided here only contains the sources of MediaSPIP in its standalone version.
    To get a working installation, you must manually install all-software dependencies on the server.
    If you want to use this archive for an installation in "farm mode", you will also need to proceed to other manual (...)

Sur d’autres sites (6224)

  • avcodec/mpeg12dec : always submit the first field to hwaccel

    23 octobre 2017, par Zhong Li
    avcodec/mpeg12dec : always submit the first field to hwaccel
    

    Though this patch to fix ticket #6668, I belive it
    is unnecessary to set SLICE_FLAG_ALLOW_FIELD flag to other
    hwaccels(dxva, vdpau, etc). Please also refer the orginal comment
    of 9cb150c9ab520eba5636bbcf925db6a70e67f3e5

    Should also fix ticket #8442.

    Signed-off-by : Zhong Li <zhong.li@intel.com>
    Signed-off-by : Timo Rothenpieler <timo@rothenpieler.org>

    • [DH] libavcodec/mpeg12dec.c
  • How to set the PTS field with the time the frame was actual captured (using FFmpeg) ?

    28 novembre 2019, par J.M.

    Using FFmpeg, I want to update the PTS field with the time the frame was actual captured.&#xA;I'm doing it with the following FFmpeg command (the "copyts" flag does the job) :

    &#xA;&#xA;

    ffmpeg -re -f v4l2 -copyts -i /dev/video0 -c:v libx264 -intra -f mpegts -mpegts_copyts 1 udp ://192.168.10.199:1234

    &#xA;&#xA;

    However, it only works with a small help...&#xA;I had to edit the v4l2.c file :

    &#xA;&#xA;

    static int mmap_read_frame(AVFormatContext *ctx, AVPacket *pkt)&#xA;{&#xA;   ...&#xA;   ...&#xA;   ...&#xA;&#xA;   pkt->pts = buf_ts.tv_sec * INT64_C(1000000) &#x2B; buf_ts.tv_usec; &#xA;&#xA;   pkt->pts &amp;= 0x1ffffffff;  /*modified by me*/                                            &#xA;   pkt->dts = 0;             /*modified by me*/&#xA;&#xA;   av_log(ctx, AV_LOG_ERROR, "pts: %lld, dts: %lld\n", pkt->pts, pkt->dts);       &#xA;   convert_timestamp(ctx, &amp;pkt->pts);                                             &#xA;&#xA;   return pkt->size;                                                                                                                                               &#xA;}&#xA;

    &#xA;&#xA;

    Of course, I don't want to modify the function...

    &#xA;&#xA;

    Any idea of to use the "copyts" flag so it will work without editing the function mmap_read_frame() ?

    &#xA;&#xA;

    I'm using the latest FFmpeg source.&#xA;Without my modifications I get this :

    &#xA;&#xA;

    Output #0, mpegts, to &#x27;udp://192.168.10.55:1234&#x27;:&#xA;  Metadata:&#xA;    encoder         : Lavf58.35.100&#xA;    Stream #0:0: Video: h264 (cedrus264), nv12, 1280x720, q=2-31, 200 kb/s, 10 fps, 90k tbn, 10 tbc&#xA;    Metadata:&#xA;      encoder         : Lavc58.64.101 cedrus264&#xA;frame=    1 fps=0.2 q=-0.0 Lsize=      28kB time=59652:19:24.70 bitrate=   0.0kbits/s speed=4.82e&#x2B;07x    &#xA;video:27kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 4.599154%&#xA;

    &#xA;

  • How to set the PTS field with the time the frame was actual captured (using FFmpeg) ?

    28 novembre 2019, par Joseph Matan

    Using FFmpeg, I want to update the PTS field with the time the frame was actual captured.
    I’m doing it with the following FFmpeg command (the "copyts" flag does the job) :

    ffmpeg -re -f v4l2 -copyts -i /dev/video0 -c:v libx264 -intra -f mpegts -mpegts_copyts 1 udp ://192.168.10.199:1234

    However, it only works with a small help...
    I had to edit the v4l2.c file :

    static int mmap_read_frame(AVFormatContext *ctx, AVPacket *pkt)
    {
      ...
      ...
      ...

      pkt->pts = buf_ts.tv_sec * INT64_C(1000000) + buf_ts.tv_usec;

      pkt->pts &amp;= 0x1ffffffff;  /*modified by me*/                                            
      pkt->dts = 0;             /*modified by me*/

      av_log(ctx, AV_LOG_ERROR, "pts: %lld, dts: %lld\n", pkt->pts, pkt->dts);      
      convert_timestamp(ctx, &amp;pkt->pts);                                            

      return pkt->size;                                                                                                                                              
    }

    Of course, I don’t want to modify the function...

    Any idea of to use the "copyts" flag so it will work without editing the function mmap_read_frame() ?

    I’m using the latest FFmpeg source.
    Without my modifications I get this :

    Output #0, mpegts, to 'udp://192.168.10.55:1234':
     Metadata:
       encoder         : Lavf58.35.100
       Stream #0:0: Video: h264 (cedrus264), nv12, 1280x720, q=2-31, 200 kb/s, 10 fps, 90k tbn, 10 tbc
       Metadata:
         encoder         : Lavc58.64.101 cedrus264
    frame=    1 fps=0.2 q=-0.0 Lsize=      28kB time=59652:19:24.70 bitrate=   0.0kbits/s speed=4.82e+07x    
    video:27kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 4.599154%