Recherche avancée

Médias (91)

Autres articles (37)

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

  • Dépôt de média et thèmes par FTP

    31 mai 2013, par

    L’outil MédiaSPIP traite aussi les média transférés par la voie FTP. Si vous préférez déposer par cette voie, récupérez les identifiants d’accès vers votre site MédiaSPIP et utilisez votre client FTP favori.
    Vous trouverez dès le départ les dossiers suivants dans votre espace FTP : config/ : dossier de configuration du site IMG/ : dossier des média déjà traités et en ligne sur le site local/ : répertoire cache du site web themes/ : les thèmes ou les feuilles de style personnalisées tmp/ : dossier de travail (...)

Sur d’autres sites (4359)

  • FFMPEG - Get timestamp from hls stream while downloading

    31 juillet 2022, par Oytoch

    I need to download a stream, take 1 frames per seconds for image analyse.

    


    I use FFmpeg to take the frames with a pipe to my script.

    


    ffmpeg -i XX.m3u8 -vcodec mjpeg -f image2pipe -r 1 -s 1280*720 pipe:1


    


    For my analyse, I need the timestamp and in the HLS we have this data in the m3u8 file :

    


    #EXT-X-PROGRAM-DATE-TIME:2022-07-31T19:10:12.745Z
#EXTINF:2.000,live
XXXXX.ts
#EXT-X-PROGRAM-DATE-TIME:2022-07-31T19:10:14.745Z


    


    ffmpeg output also something like this

    


    frame=    1 fps=0.0 q=7.5 size=      59kB time=00:00:01.00 bitrate= 480.3kbits/s speed=  36x


    


    the problem is that we don't know which second we are downloading

    


    is there a solution to get this timestamp ?
Thanks

    


  • FFmpeg avutil.lib unresolved external symbol

    2 août 2022, par Sere

    i'm trying to use FFmpeg with visual sudio 2022 .NET 6 through an MSVC project.
I followed this tutorial : https://www.youtube.com/watch?v=qMNr1Su-nR8&ab_channel=HakanSoyalp.
I mean I have configureg Include (.h) file, library (.lib) files and dynamic (.dll) file copied into bin folder.
If I call for example the avformat_alloc_context() method inside the avformat.lib all work rightly, if I call for example av_file_map(...) inside the avutil.lib the compiler give me an error :
LNK2019 unresolved external symbol "int __cdecl av_file_map ...
But the avutil.lib is linked !!!
The same happen if I call other methods inside avutil.lib module.

    


    Thanks for help...

    


    Code :

    


    extern "C"&#xA;{&#xA;    #include <libavformat></libavformat>avformat.h>&#xA;    #include <libavutil></libavutil>file.h> // av_file_map&#xA;}&#xA;&#xA;int ConvertJPEGtoNALs(int argc, char* argv[])&#xA;{&#xA;    AVFormatContext* fmt_ctx = NULL;&#xA;    AVIOContext* avio_ctx = NULL;&#xA;    uint8_t* buffer = NULL, * avio_ctx_buffer = NULL;&#xA;    size_t buffer_size, avio_ctx_buffer_size = 4096;&#xA;    char* input_filename = NULL;&#xA;    int ret = 0;&#xA;    struct buffer_data bd = { 0 };&#xA;    if (argc != 2) {&#xA;        fprintf(stderr, "usage: %s input_file\n"&#xA;            "API example program to show how to read from a custom buffer "&#xA;            "accessed through AVIOContext.\n", argv[0]);&#xA;        return 1;&#xA;    }&#xA;    input_filename = argv[1];&#xA;    /* register codecs and formats and other lavf/lavc components*/&#xA;    //av_register_all();    //!deprecated&#xA;    /* slurp file content into buffer */&#xA;    ret = av_file_map(input_filename, &amp;buffer, &amp;buffer_size, 0, NULL);&#xA;    /* fill opaque structure used by the AVIOContext read callback */&#xA;    bd.ptr = buffer;&#xA;    bd.size = buffer_size; ???&#xA;    if (!(fmt_ctx = avformat_alloc_context())) {&#xA;        ret = AVERROR(ENOMEM);&#xA;        goto end;&#xA;    }&#xA;    //... to be continue ...&#xA;}&#xA;

    &#xA;

  • How Can I Copy Encoder and Metadata from Another Video

    27 juillet 2022, par Alper Can

    I have a video, generated with Opencv.&#xA;I want make video metadata and encoder settings like another video. How can I make it ?

    &#xA;

    My video :
    &#xA;ffmpeg output :

    &#xA;

    &#xA;

    Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'output/fixed.mp4' :
    &#xA;Metadata :
    &#xA;compatible_brands : isommp42
    &#xA;major_brand : mp42
    &#xA;minor_version : 0
    &#xA;creation_time : 2022-03-03T19:12:13.000000Z
    &#xA;com.android.version : 11
    &#xA;encoder : Lavf59.16.100
    &#xA;Duration : 00:00:06.00, start : 0.000000, bitrate : 6683 kb/s
    &#xA;Stream #0:00x1 : Video : h264 (Constrained Baseline) (avc1 / 0x31637661), yuv420p(progressive), 640x480 [SAR 1:1 DAR 4:3], 6681 kb/s, 30.03 fps, 30.03 tbr, 30030 tbn (default)
    &#xA;Metadata :
    &#xA;creation_time : 2022-03-03T19:12:13.000000Z
    &#xA;handler_name : VideoHandler
    &#xA;vendor_id : [0][0][0][0]
    &#xA;Side data :
    &#xA;displaymatrix : rotation of 90.00 degrees

    &#xA;

    &#xA;

    Media Info output :

    &#xA;

    &#xA;

    General
    &#xA;Complete name : fixed.mp4
    &#xA;Format : MPEG-4
    &#xA;Format profile : Base Media
    &#xA;Codec ID : isom (isom/iso2/avc1/mp41)
    &#xA;File size : 4.78 MiB
    &#xA;Duration : 5 s 995 ms
    &#xA;Overall bit rate : 6 683 kb/s
    &#xA;Encoded date : UTC 2022-03-03 19:12:13
    &#xA;Tagged date : UTC 2022-03-03 19:12:13
    &#xA;
    &#xA;Video
    &#xA;ID : 1
    &#xA;Format : AVC
    &#xA;Format/Info : Advanced Video Codec
    &#xA;Format profile : Baseline@L3
    &#xA;Format settings : 1 Ref Frames
    &#xA;Format settings, CABAC : No
    &#xA;Format settings, Reference frames : 1 frame
    &#xA;Codec ID : avc1
    &#xA;Codec ID/Info : Advanced Video Coding
    &#xA;Duration : 5 s 995 ms
    &#xA;Bit rate : 6 682 kb/s
    &#xA;Width : 640 pixels
    &#xA;Height : 480 pixels
    &#xA;Display aspect ratio : 4:3
    &#xA;Rotation : 270°
    &#xA;Frame rate mode : Constant
    &#xA;Frame rate : 30.000 FPS
    &#xA;Color space : YUV
    &#xA;Chroma subsampling : 4:2:0
    &#xA;Bit depth : 8 bits
    &#xA;Scan type : Progressive
    &#xA;Bits/(Pixel*Frame) : 0.725
    &#xA;Stream size : 4.77 MiB (100%)
    &#xA;Encoded date : UTC 2022-03-03 19:12:13
    &#xA;Tagged date : UTC 2022-03-03 19:12:13
    &#xA;Codec configuration box : avcC

    &#xA;

    &#xA;

    I want change it like this :
    &#xA;ffmpeg output :

    &#xA;

    &#xA;

    Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'output/source_encoder/video.mp4' :
    &#xA;Metadata :
    &#xA;major_brand : mp42
    &#xA;minor_version : 0
    &#xA;compatible_brands : isommp42
    &#xA;creation_time : 2022-03-03T19:12:13.000000Z
    &#xA;com.android.version : 11
    &#xA;Duration : 00:00:04.83, start : 0.000000, bitrate : 1020 kb/s
    &#xA;Stream #0:00x1 : Video : h264 (High) (avc1 / 0x31637661), yuv420p(tv, bt709, progressive), 640x480, 1016 kb/s, SAR 1:1 DAR 4:3, 30.03 fps, 30 tbr, 90k tbn (default)
    &#xA;Metadata :
    &#xA;creation_time : 2022-03-03T19:12:13.000000Z
    &#xA;handler_name : VideoHandle
    &#xA;vendor_id : [0][0][0][0]
    &#xA;Side data :
    &#xA;displaymatrix : rotation of 90.00 degrees

    &#xA;

    &#xA;

    Media Info Output :

    &#xA;

    &#xA;

    General
    &#xA;Complete name : source_encoder/video.mp4
    &#xA;Format : MPEG-4
    &#xA;Format profile : Base Media / Version 2
    &#xA;Codec ID : mp42 (isom/mp42)
    &#xA;File size : 601 KiB
    &#xA;Duration : 4 s 828 ms
    &#xA;Overall bit rate : 1 020 kb/s
    &#xA;Encoded date : UTC 2022-03-03 19:12:13
    &#xA;Tagged date : UTC 2022-03-03 19:12:13
    &#xA;com.android.version : 11
    &#xA;
    &#xA;Video
    &#xA;ID : 1
    &#xA;Format : AVC
    &#xA;Format/Info : Advanced Video Codec
    &#xA;Format profile : High@L3
    &#xA;Format settings : CABAC / 1 Ref Frames
    &#xA;Format settings, CABAC : Yes
    &#xA;Format settings, Reference frames : 1 frame
    &#xA;Format settings, GOP : M=1, N=30
    &#xA;Codec ID : avc1
    &#xA;Codec ID/Info : Advanced Video Coding
    &#xA;Duration : 4 s 828 ms
    &#xA;Bit rate : 1 016 kb/s
    &#xA;Width : 640 pixels
    &#xA;Height : 480 pixels
    &#xA;Display aspect ratio : 4:3
    &#xA;Rotation : 270°
    &#xA;Frame rate mode : Variable
    &#xA;Frame rate : 30.000 FPS
    &#xA;Minimum frame rate : 30.000 FPS
    &#xA;Maximum frame rate : 30.060 FPS
    &#xA;Color space : YUV
    &#xA;Chroma subsampling : 4:2:0
    &#xA;Bit depth : 8 bits
    &#xA;Scan type : Progressive
    &#xA;Bits/(Pixel*Frame) : 0.110
    &#xA;Stream size : 599 KiB (100%)
    &#xA;Title : VideoHandle
    &#xA;Language : English
    &#xA;Encoded date : UTC 2022-03-03 19:12:13
    &#xA;Tagged date : UTC 2022-03-03 19:12:13
    &#xA;Color range : Limited
    &#xA;Color primaries : BT.709
    &#xA;Transfer characteristics : BT.709
    &#xA;Matrix coefficients : BT.709
    &#xA;mdhd_Duration : 4828
    &#xA;Codec configuration box : avcC

    &#xA;

    &#xA;