Recherche avancée

Médias (0)

Mot : - Tags -/performance

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

Autres articles (43)

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

  • Emballe médias : à quoi cela sert ?

    4 février 2011, par

    Ce plugin vise à gérer des sites de mise en ligne de documents de tous types.
    Il crée des "médias", à savoir : un "média" est un article au sens SPIP créé automatiquement lors du téléversement d’un document qu’il soit audio, vidéo, image ou textuel ; un seul document ne peut être lié à un article dit "média" ;

  • Supporting all media types

    13 avril 2011, par

    Unlike most software and media-sharing platforms, MediaSPIP aims to manage as many different media types as possible. The following are just a few examples from an ever-expanding list of supported formats : images : png, gif, jpg, bmp and more audio : MP3, Ogg, Wav and more video : AVI, MP4, OGV, mpg, mov, wmv and more text, code and other data : OpenOffice, Microsoft Office (Word, PowerPoint, Excel), web (html, CSS), LaTeX, Google Earth and (...)

Sur d’autres sites (6874)

  • How to initialize the AV format context from NetworkStream rather than url ?

    23 juillet 2020, par Ahmad

    I'm using FFmpeg.AutoGen to encode catpured frames :
https://github.com/Ruslan-B/FFmpeg.AutoGen

    


    I send the encoded packets through NetworkStream to another program using TCP Client/Server application, using this code :

    


     //Send size and encoded packet
 _stream.Write(BitConverter.GetBytes(pPacket->size), 0, 4);
 using (var packetStream = new UnmanagedMemoryStream(pPacket->data, pPacket->size)) 
        packetStream.CopyTo(_stream);


    


    At the server-side, after UTF8 encoding, I receive content like this :

    


    


    gd ?r@ ?/ ?a 2&#xF;1 ?   h?C?,?  ????E???H??,? ?#??x264 - core 160 - H.264/MPEG-4 AVC codec - Copyleft 2003-2020 - http://www.videolan.org/x264.html - options: cabac=1 ref=16 deblock=1:0:0 analyse=0x3:0x133 me=umh subme=10 psy=1 psy_rd=1.00:0.00 mixed_ref=1 me_range=24 chroma_me=1 trellis=2 8x8dct=1 cqm=0 deadzone=21,11 fast_pskip=1 chroma_qp_offset=-2 threads=11 lookahead_threads=1 sliced_threads=0 nr=0 decimate=1 interlaced=0 bluray_compat=0 constrained_intra=0 bframes=8 b_pyramid=2 b_adapt=2 b_bias=0 direct=3 weightb=1 open_gop=0 weightp=2 keyint=250 keyint_min=25 scenecut=40 intra_refresh=0 rc_lookahead=60 rc=crf mbtree=1 crf=23.0 qcomp=0.60 qpmin=0 qpmax=69 qpstep=4 ip_ratio=1.40 aq=1:1.00 ?  e??   ??S?T????M?.O ??Ea???Q&#xF;?OI??X?????[?P???42=h??M?K? ??{?@c;?t?&#xB;??Ke?>???? ?2 ??&#xB; ?\qXEvg ???U A ?X ??q/&#xB;(?? ?L ?_c ?g ?X ?c(To ?k ?Y ?-F ???R ?] ??U ?&#xA; ;|=r ????\U ???2 ?g ??> ??½ ?7 ?A&#xE; ?1W9 ???A ??&#xF; ?_L ??P ?) ?&#xF;M ????q/ ?L ??) : ??< ??8d/* ?&#xF; ?^ ??} ?B ?H ?_8C[y ???CY ?QM(J ???1<3% ?K ?F ;Q3Q ????&#xA; ??jy&#xF;J" ???y]k ?m ?^} ???S ????h ?&#xF;3 ????EP ???pw ???q ?jKp ???h ?????

    &#xA;

    &#xA;

    My problem is, how to initialize the AV format context with this data, and decode the received packet to recover the original frame ?

    &#xA;

    _pFormatContext = ffmpeg.avformat_alloc_context();&#xA;ffmpeg.avformat_open_input(&amp;pFormatContext, url, null, null).ThrowExceptionIfError();&#xA;

    &#xA;

    As problem exactly is, ffmpeg.avformat_open_input takes URL as an input, not byte[]. If _pFormatContext can be initialized using the received data, things are resolved, but HOW ?

    &#xA;

  • Failed setup for format dxva2_vld : hwaccel initialisation returned error

    13 juin 2023, par james

    My program is a video player based on ffmpeg implementation, enabling d3d11va and dxva2 hardware acceleration to decode video frames, play most of the video is normal, only a small part of the video will report this error, ffmpeg printed log as follows :&#xA;I:2023-06-13 15:34:53 ms:887:No decoder device for codec found&#xA;I:2023-06-13 15:34:53 ms:887:Failed setup for format dxva2_vld : hwaccel initialisation returned error.&#xA;I:2023-06-13 15:34:53 ms:888:Format dxva2_vld not usable, retrying get_format() without it.&#xA;I:2023-06-13 15:34:53 ms:888:decode_slice_header error&#xA;I:2023-06-13 15:34:53 ms:888:no frame !

    &#xA;

    If ffplay is used and d3d11va and dxva2 hardware acceleration is not enabled, the video can be played normally, and the printed video information is as follows :&#xA;PS D :\msys64\home\wangj\ffmpeg-4.4.1\buildout\bin> .\ffplay.exe -i D :\Desktop\13132023061300012_1_C1_34.mp4&#xA;ffplay version 4.4.1 Copyright (c) 2003-2021 the FFmpeg developers&#xA;configuration : —prefix=./buildout —arch=x86 —toolchain=msvc —enable-shared —disable-debug —enable-sdl2 —enable-dxva2 —enable-d3d11va&#xA;libavutil 56. 70.100 / 56. 70.100&#xA;libavcodec 58.134.100 / 58.134.100&#xA;libavformat 58. 76.100 / 58. 76.100&#xA;libavdevice 58. 13.100 / 58. 13.100&#xA;libavfilter 7.110.100 / 7.110.100&#xA;libswscale 5. 9.100 / 5. 9.100&#xA;libswresample 3. 9.100 / 3. 9.100&#xA;Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'D :\Desktop\13132023061300012_1_C1_34.mp4' :&#xA;Metadata :&#xA;major_brand : isom&#xA;minor_version : 512&#xA;compatible_brands : isomiso2avc1mp41&#xA;encoder : Lavf56.38.102&#xA;Duration : 00:00:44.00, start : 0.000000, bitrate : 1706 kb/s&#xA;Stream #0:0(und) : Video : h264 (Baseline) (avc1 / 0x31637661), yuv420p, 1920x1080, 1705 kb/s, 25 fps, 25 tbr, 90k tbn, 50 tbc (default)&#xA;Metadata :&#xA;handler_name : VideoHandler&#xA;vendor_id : [0][0][0][0]

    &#xA;

    Is this pixel format not supported by d3d11va and dxva2 ? What can I do to get ffplay to play this video file with hardware acceleration ?

    &#xA;

    When d3d11va and dxva2 hardware acceleration is enabled, most of the videos that can be played also have yuv420p pixel format, why can't this video be played?

    &#xA;

  • FFMPEG convert from MP3 to M4A- Getting errors

    4 juin 2021, par JK81

    I'm working on Windows 10 x64, build ffmpeg-20180916-5109c38-win64-static.

    &#xA;&#xA;

    I have a folder of MP3 audio files that I want to convert to M4A.

    &#xA;&#xA;

    This is the command that I'm running :

    &#xA;&#xA;

    FOR /F "tokens=*" %G IN (&#x27;dir /b *.mp3&#x27;) DO ffmpeg -i "%G" -map_metadata 0 -c:a aac -b:a 192000 "%~nG.m4a"

    &#xA;&#xA;

    This scans my bin filder and converts all files. This works great for converting video files from MOV to MP4 (using a different code string) but I keep getting errors such as :&#xA;[ipod @ 0000025507991b40] Frame rate very high for a muxer not efficiently supporting it.&#xA;Please consider specifying a lower framerate, a different muxer or -vsync 2&#xA;[libx264 @ 0000025507e45180] using SAR=1/1&#xA;[libx264 @ 0000025507e45180] MB rate (129960000) > level limit (16711680)&#xA;[libx264 @ 0000025507e45180] using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 AVX&#xA;[libx264 @ 0000025507e45180] profile High 4:4:4 Predictive, level 6.2, 4:4:4, 8-bit&#xA;[libx264 @ 0000025507e45180] 264 - core 157 r2932 303c484 - H.264/MPEG-4 AVC codec - Copyleft 2003-2018 - http://www.videolan.org/x264.html - options: cabac=1 ref=3 deblock=1:0:0 analyse=0x1:0x111 me=hex subme=7 psy=1 psy_rd=1.00:0.00 mixed_ref=1 me_range=16 chroma_me=1 trellis=1 8x8dct=0 cqm=0 deadzone=21,11 fast_pskip=1 chroma_qp_offset=4 threads=6 lookahead_threads=1 sliced_threads=0 nr=0 decimate=1 interlaced=0 bluray_compat=0 constrained_intra=0 bframes=3 b_pyramid=2 b_adapt=1 b_bias=0 direct=1 weightb=1 open_gop=0 weightp=2 keyint=250 keyint_min=25 scenecut=40 intra_refresh=0 rc_lookahead=40 rc=crf mbtree=1 crf=23.0 qcomp=0.60 qpmin=0 qpmax=69 qpstep=4 ip_ratio=1.40 aq=1:1.00&#xA;[ipod @ 0000025507991b40] Could not find tag for codec h264 in stream #0, codec not currently supported in container&#xA;Could not write header for output file #0 (incorrect codec parameters ?): Invalid argument&#xA;Error initializing output stream 0:1 --&#xA;[aac @ 0000025507e60100] Qavg: nan&#xA;Conversion failed!

    &#xA;&#xA;

    What's the best way to convert to M4A ? I'm doing this to reduce disk space.

    &#xA;