Recherche avancée

Médias (1)

Mot : - Tags -/geti3

Autres articles (106)

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

  • Websites made ​​with MediaSPIP

    2 mai 2011, par

    This page lists some websites based on MediaSPIP.

  • Pas question de marché, de cloud etc...

    10 avril 2011

    Le vocabulaire utilisé sur ce site essaie d’éviter toute référence à la mode qui fleurit allègrement
    sur le web 2.0 et dans les entreprises qui en vivent.
    Vous êtes donc invité à bannir l’utilisation des termes "Brand", "Cloud", "Marché" etc...
    Notre motivation est avant tout de créer un outil simple, accessible à pour tout le monde, favorisant
    le partage de créations sur Internet et permettant aux auteurs de garder une autonomie optimale.
    Aucun "contrat Gold ou Premium" n’est donc prévu, aucun (...)

Sur d’autres sites (12864)

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

  • Can't convert .ts files that downloaded with from .m3u8 file to mp4

    28 juillet 2022, par smartnima

    I Have This Files :

    &#xA;

    001.ts  014.ts  027.ts  040.ts  053.ts  066.ts  079.ts  092.ts  105.ts  118.ts  131.ts  144.ts  157.ts  170.ts  183.ts  196.ts  209.ts  222.ts  235.ts  248.ts  261.ts  274.ts  287.ts  300.ts  313.ts  326.ts&#xA;002.ts  015.ts  028.ts  041.ts  054.ts  067.ts  080.ts  093.ts  106.ts  119.ts  132.ts  145.ts  158.ts  171.ts  184.ts  197.ts  210.ts  223.ts  236.ts  249.ts  262.ts  275.ts  288.ts  301.ts  314.ts  327.ts&#xA;003.ts  016.ts  029.ts  042.ts  055.ts  068.ts  081.ts  094.ts  107.ts  120.ts  133.ts  146.ts  159.ts  172.ts  185.ts  198.ts  211.ts  224.ts  237.ts  250.ts  263.ts  276.ts  289.ts  302.ts  315.ts  328.ts&#xA;004.ts  017.ts  030.ts  043.ts  056.ts  069.ts  082.ts  095.ts  108.ts  121.ts  134.ts  147.ts  160.ts  173.ts  186.ts  199.ts  212.ts  225.ts  238.ts  251.ts  264.ts  277.ts  290.ts  303.ts  316.ts  329.ts&#xA;005.ts  018.ts  031.ts  044.ts  057.ts  070.ts  083.ts  096.ts  109.ts  122.ts  135.ts  148.ts  161.ts  174.ts  187.ts  200.ts  213.ts  226.ts  239.ts  252.ts  265.ts  278.ts  291.ts  304.ts  317.ts  330.ts&#xA;006.ts  019.ts  032.ts  045.ts  058.ts  071.ts  084.ts  097.ts  110.ts  123.ts  136.ts  149.ts  162.ts  175.ts  188.ts  201.ts  214.ts  227.ts  240.ts  253.ts  266.ts  279.ts  292.ts  305.ts  318.ts  331.ts&#xA;007.ts  020.ts  033.ts  046.ts  059.ts  072.ts  085.ts  098.ts  111.ts  124.ts  137.ts  150.ts  163.ts  176.ts  189.ts  202.ts  215.ts  228.ts  241.ts  254.ts  267.ts  280.ts  293.ts  306.ts  319.ts  332.ts&#xA;008.ts  021.ts  034.ts  047.ts  060.ts  073.ts  086.ts  099.ts  112.ts  125.ts  138.ts  151.ts  164.ts  177.ts  190.ts  203.ts  216.ts  229.ts  242.ts  255.ts  268.ts  281.ts  294.ts  307.ts  320.ts  333.ts&#xA;009.ts  022.ts  035.ts  048.ts  061.ts  074.ts  087.ts  100.ts  113.ts  126.ts  139.ts  152.ts  165.ts  178.ts  191.ts  204.ts  217.ts  230.ts  243.ts  256.ts  269.ts  282.ts  295.ts  308.ts  321.ts  334.ts&#xA;010.ts  023.ts  036.ts  049.ts  062.ts  075.ts  088.ts  101.ts  114.ts  127.ts  140.ts  153.ts  166.ts  179.ts  192.ts  205.ts  218.ts  231.ts  244.ts  257.ts  270.ts  283.ts  296.ts  309.ts  322.ts&#xA;011.ts  024.ts  037.ts  050.ts  063.ts  076.ts  089.ts  102.ts  115.ts  128.ts  141.ts  154.ts  167.ts  180.ts  193.ts  206.ts  219.ts  232.ts  245.ts  258.ts  271.ts  284.ts  297.ts  310.ts  323.ts&#xA;012.ts  025.ts  038.ts  051.ts  064.ts  077.ts  090.ts  103.ts  116.ts  129.ts  142.ts  155.ts  168.ts  181.ts  194.ts  207.ts  220.ts  233.ts  246.ts  259.ts  272.ts  285.ts  298.ts  311.ts  324.ts&#xA;013.ts  026.ts  039.ts  052.ts  065.ts  078.ts  091.ts  104.ts  117.ts  130.ts  143.ts  156.ts  169.ts  182.ts  195.ts  208.ts  221.ts  234.ts  247.ts  260.ts  273.ts  286.ts  299.ts  312.ts  325.ts&#xA;

    &#xA;

    That I Downloaded With This Python Program (m3u8 File Does Not Work !) :

    &#xA;

    import requests&#xA;import shutil&#xA;import os&#xA;import subprocess&#xA;&#xA;&#xA;def strip_end(text, suffix):&#xA;    if not text.endswith(suffix):&#xA;        return text&#xA;    return text[:len(text)-len(suffix)]&#xA;&#xA;&#xA;def download_file(url):&#xA;    cwd = os.getcwd()&#xA;    command = f"wget -O {cwd}/ts_files/{url.split(&#x27;/&#x27;)[-1]} {url}"&#xA;    subprocess.call(command, shell=True)&#xA;&#xA;&#xA;base_url = "https://stream.example.com/video/2021/example/720p_{}.ts"&#xA;&#xA;if not os.path.exists(&#x27;ts_files&#x27;):&#xA;    print(&#x27;ts_file folder is not found, creating the folder.&#x27;)&#xA;    os.makedirs(&#x27;ts_files&#x27;)&#xA;&#xA;i = 1&#xA;while True:&#xA;    if len(str(i)) == 1:&#xA;        num = f"00{i}"&#xA;    elif len(str(i)) == 2:&#xA;        num = f"0{i}"&#xA;    else:&#xA;        num = str(i)&#xA;    url = base_url.replace("{}", num)&#xA;    r = requests.get(url, stream=True)&#xA;    print(f&#x27;downloading {i}&#x27;)&#xA;    if r.status_code != 404:&#xA;        download_file(url)  # comment out this line to download ts files.&#xA;    else:&#xA;        print("404")&#xA;        break&#xA;    i = i&#x2B;1&#xA;&#xA;cwd = os.getcwd()  # Get the current working directory (cwd)&#xA;TS_DIR = &#x27;ts_files&#x27;&#xA;with open(&#x27;merged.ts&#x27;, &#x27;wb&#x27;) as merged:&#xA;    for ts_file in os.listdir(f&#x27;{cwd}/{TS_DIR}&#x27;):&#xA;        with open(f&#x27;{cwd}/{TS_DIR}/{ts_file}&#x27;, &#x27;rb&#x27;) as mergefile:&#xA;            shutil.copyfileobj(mergefile, merged)&#xA;&#xA;

    &#xA;

    My Problem Is When I Want To Convert All This Files To One .ts File And Then An MP4 File With ffmpeg, I Get An Error :

    &#xA;

    nima@funlife:~/ts_files$ cat ./*.ts > all.ts&#xA;nima@funlife:~/ts_files$ ffmpeg -i all.ts -acodec copy -vcodec copy all.mp4&#xA;ffmpeg version 5.0.1-3&#x2B;b1 Copyright (c) 2000-2022 the FFmpeg developers&#xA;  built with gcc 11 (Debian 11.3.0-4)&#xA;  configuration: --prefix=/usr --extra-version=3&#x2B;b1 --toolchain=hardened --libdir=/usr/lib/x86_64-linux-gnu --incdir=/usr/include/x86_64-linux-gnu --arch=amd64 --enable-gpl --disable-stripping --enable-gnutls --enable-ladspa --enable-libaom --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libcdio --enable-libcodec2 --enable-libdav1d --enable-libflite --enable-libfontconfig --enable-libfreetype --enable-libfribidi --enable-libglslang --enable-libgme --enable-libgsm --enable-libjack --enable-libmp3lame --enable-libmysofa --enable-libopenjpeg --enable-libopenmpt --enable-libopus --enable-libpulse --enable-librabbitmq --enable-librist --enable-librubberband --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libsrt --enable-libssh --enable-libsvtav1 --enable-libtheora --enable-libtwolame --enable-libvidstab --enable-libvorbis --enable-libvpx --enable-libwebp --enable-libx265 --enable-libxml2 --enable-libxvid --enable-libzimg --enable-libzmq --enable-libzvbi --enable-lv2 --enable-omx --enable-openal --enable-opencl --enable-opengl --enable-sdl2 --disable-sndio --enable-pocketsphinx --enable-librsvg --enable-libmfx --enable-libdc1394 --enable-libdrm --enable-libiec61883 --enable-chromaprint --enable-frei0r --enable-libplacebo --enable-libx264 --enable-shared&#xA;  libavutil      57. 17.100 / 57. 17.100&#xA;  libavcodec     59. 18.100 / 59. 18.100&#xA;  libavformat    59. 16.100 / 59. 16.100&#xA;  libavdevice    59.  4.100 / 59.  4.100&#xA;  libavfilter     8. 24.100 /  8. 24.100&#xA;  libswscale      6.  4.100 /  6.  4.100&#xA;  libswresample   4.  3.100 /  4.  3.100&#xA;  libpostproc    56.  3.100 / 56.  3.100&#xA;all.ts: Invalid data found when processing input&#xA;

    &#xA;

    .ts Files Content Is Like This :

    &#xA;

     }��,.g���}��&#xA;             �����c����Ww�c���c���eo��m�����ŧ�  䱉&#xA;�b(&#x2B;��D�FG�zPe��7�&amp;#bz�1ɶ���                      C&#xA;�`,��>Ϲc4J��̀��T�I}�"��ކ�R�1��w͋�   "� &lt;�#B`ƪ�̸�co&#xA;                                             �9���&#x2B;��W�&#xA;P���N���w��T\5g��&#xA;\�E�N�E�v��͑4f��U�@]�ΩX�U�x�E��bwm=ְ�iA�����p���M�����\=�_�I3C�hL�h����0)�ο��*��`���eZ� �ؗ4To�0V��S,�&#x2B;�>�8_]�W�lNJD�|7e�2s�1X)̃5�0h�������~8ߩg���?e��EK�>۷�L&#xA;             ��:6|������>\  �N�WW��,�w&#xA;bk��1?*��/��/�5��k����~��                 Lޕ}�a���2�{��l��$�d=����g�{a2��L�����&#xA;                         jҫַ��ʿ�"1`ZZ.he)�=�x��E_4:Vg�����H=���x1�����}��W::y�&#xA;

    &#xA;

    Are They Encrypted Or Something ?&#xA;I'm Trying To Do This Works With Debian 11.3.0-4, Python 3.10.5

    &#xA;