Recherche avancée

Médias (91)

Autres articles (35)

  • Changer son thème graphique

    22 février 2011, par

    Le thème graphique ne touche pas à la disposition à proprement dite des éléments dans la page. Il ne fait que modifier l’apparence des éléments.
    Le placement peut être modifié effectivement, mais cette modification n’est que visuelle et non pas au niveau de la représentation sémantique de la page.
    Modifier le thème graphique utilisé
    Pour modifier le thème graphique utilisé, il est nécessaire que le plugin zen-garden soit activé sur le site.
    Il suffit ensuite de se rendre dans l’espace de configuration du (...)

  • Encoding and processing into web-friendly formats

    13 avril 2011, par

    MediaSPIP automatically converts uploaded files to internet-compatible formats.
    Video files are encoded in MP4, Ogv and WebM (supported by HTML5) and MP4 (supported by Flash).
    Audio files are encoded in MP3 and Ogg (supported by HTML5) and MP3 (supported by Flash).
    Where possible, text is analyzed in order to retrieve the data needed for search engine detection, and then exported as a series of image files.
    All uploaded files are stored online in their original format, so you can (...)

  • Librairies et logiciels spécifiques aux médias

    10 décembre 2010, par

    Pour un fonctionnement correct et optimal, plusieurs choses sont à prendre en considération.
    Il est important, après avoir installé apache2, mysql et php5, d’installer d’autres logiciels nécessaires dont les installations sont décrites dans les liens afférants. Un ensemble de librairies multimedias (x264, libtheora, libvpx) utilisées pour l’encodage et le décodage des vidéos et sons afin de supporter le plus grand nombre de fichiers possibles. Cf. : ce tutoriel ; FFMpeg avec le maximum de décodeurs et (...)

Sur d’autres sites (5855)

  • How Can I Copy Encoder and Metadata from Another Video

    27 juillet 2022, par Alper Can

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

    


    My video :
    
ffmpeg output :

    


    


    Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'output/fixed.mp4' :
    
Metadata :
    
compatible_brands : isommp42
    
major_brand : mp42
    
minor_version : 0
    
creation_time : 2022-03-03T19:12:13.000000Z
    
com.android.version : 11
    
encoder : Lavf59.16.100
    
Duration : 00:00:06.00, start : 0.000000, bitrate : 6683 kb/s
    
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)
    
Metadata :
    
creation_time : 2022-03-03T19:12:13.000000Z
    
handler_name : VideoHandler
    
vendor_id : [0][0][0][0]
    
Side data :
    
displaymatrix : rotation of 90.00 degrees

    


    


    Media Info output :

    


    


    General
    
Complete name : fixed.mp4
    
Format : MPEG-4
    
Format profile : Base Media
    
Codec ID : isom (isom/iso2/avc1/mp41)
    
File size : 4.78 MiB
    
Duration : 5 s 995 ms
    
Overall bit rate : 6 683 kb/s
    
Encoded date : UTC 2022-03-03 19:12:13
    
Tagged date : UTC 2022-03-03 19:12:13
    

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

    


    


    I want change it like this :
    
ffmpeg output :

    


    


    Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'output/source_encoder/video.mp4' :
    
Metadata :
    
major_brand : mp42
    
minor_version : 0
    
compatible_brands : isommp42
    
creation_time : 2022-03-03T19:12:13.000000Z
    
com.android.version : 11
    
Duration : 00:00:04.83, start : 0.000000, bitrate : 1020 kb/s
    
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)
    
Metadata :
    
creation_time : 2022-03-03T19:12:13.000000Z
    
handler_name : VideoHandle
    
vendor_id : [0][0][0][0]
    
Side data :
    
displaymatrix : rotation of 90.00 degrees

    


    


    Media Info Output :

    


    


    General
    
Complete name : source_encoder/video.mp4
    
Format : MPEG-4
    
Format profile : Base Media / Version 2
    
Codec ID : mp42 (isom/mp42)
    
File size : 601 KiB
    
Duration : 4 s 828 ms
    
Overall bit rate : 1 020 kb/s
    
Encoded date : UTC 2022-03-03 19:12:13
    
Tagged date : UTC 2022-03-03 19:12:13
    
com.android.version : 11
    

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

    


    


  • 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;

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

    &#xA;

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

    &#xA;

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

    &#xA;

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

    &#xA;

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

    &#xA;

    ffmpeg output also something like this

    &#xA;

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

    &#xA;

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

    &#xA;

    is there a solution to get this timestamp ?&#xA;Thanks

    &#xA;