Recherche avancée

Médias (1)

Mot : - Tags -/framasoft

Autres articles (49)

  • Problèmes fréquents

    10 mars 2010, par

    PHP et safe_mode activé
    Une des principales sources de problèmes relève de la configuration de PHP et notamment de l’activation du safe_mode
    La solution consiterait à soit désactiver le safe_mode soit placer le script dans un répertoire accessible par apache pour le site

  • De l’upload à la vidéo finale [version standalone]

    31 janvier 2010, par

    Le chemin d’un document audio ou vidéo dans SPIPMotion est divisé en trois étapes distinctes.
    Upload et récupération d’informations de la vidéo source
    Dans un premier temps, il est nécessaire de créer un article SPIP et de lui joindre le document vidéo "source".
    Au moment où ce document est joint à l’article, deux actions supplémentaires au comportement normal sont exécutées : La récupération des informations techniques des flux audio et video du fichier ; La génération d’une vignette : extraction d’une (...)

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

  • avutil : remove deprecated FF_API_FRAME_PKT

    19 février, par James Almer
    avutil : remove deprecated FF_API_FRAME_PKT
    

    Deprecated since 2023-03-20.

    Signed-off-by : James Almer <jamrial@gmail.com>

    • [DH] libavcodec/av1dec.c
    • [DH] libavcodec/cuviddec.c
    • [DH] libavcodec/decode.c
    • [DH] libavcodec/libuavs3d.c
    • [DH] libavdevice/lavfi.c
    • [DH] libavfilter/af_volume.c
    • [DH] libavfilter/af_volume.h
    • [DH] libavfilter/avfilter.c
    • [DH] libavfilter/f_select.c
    • [DH] libavfilter/f_sendcmd.c
    • [DH] libavfilter/setpts.c
    • [DH] libavfilter/vf_crop.c
    • [DH] libavfilter/vf_drawtext.c
    • [DH] libavfilter/vf_eq.c
    • [DH] libavfilter/vf_eq.h
    • [DH] libavfilter/vf_overlay.c
    • [DH] libavfilter/vf_overlay.h
    • [DH] libavfilter/vf_overlay_cuda.c
    • [DH] libavfilter/vf_scale.c
    • [DH] libavfilter/vf_scale_npp.c
    • [DH] libavfilter/vf_swaprect.c
    • [DH] libavutil/frame.c
    • [DH] libavutil/frame.h
    • [DH] libavutil/version.h
  • How can I convert a video raw frame to image using ffmpeg [closed]

    8 mai 2024, par Sean

    I have a video stream (from a DJI Drone) coming to a websocket server.The websocket server saves the data using the technique described in this answer.

    &#xA;

    Technical Details

    &#xA;


    &#xA;

    The frame is :

    &#xA;

      &#xA;
    • From a H265 video generated by the drone
    • &#xA;

    • has size : height 1080 , width 1440
    • &#xA;

    • FPS : 30
    • &#xA;

    • Size : 45235
    • &#xA;

    &#xA;

    This is the raw video data as we receive from the getData() function of the video frame returned by the addStreamDataListener method

    &#xA;

    Goal

    &#xA;


    &#xA;

    I want that the saved frame (I have noted the peculiar size) to be converted to ffpmeg.

    &#xA;

    Attempt(s) to solve

    &#xA;


    &#xA;

    I have tried :

    &#xA;

    ffmpeg -f rawvideo -s 720x480 -i images/fileName1715180324575.dat output.jpg&#xA;

    &#xA;

    as well as

    &#xA;

    ffmpeg -f rawvideo -pix_fmt rgb24 -s 1080x1440 -i images/fileName1715180324575.dat output.jpg&#xA;

    &#xA;

    and various other combinations

    &#xA;

    Error

    &#xA;


    &#xA;

    I get :

    &#xA;

    ffmpeg version n6.1.1 Copyright (c) 2000-2023 the FFmpeg developers&#xA;&#xA;&#xA;built with gcc 13.2.1 (GCC) 20230801&#xA;  configuration: --prefix=/usr --disable-debug --disable-static --disable-stripping --enable-amf --enable-avisynth --enable-cuda-llvm --enable-lto --enable-fontconfig --enable-frei0r --enable-gmp --enable-gnutls --enable-gpl --enable-ladspa --enable-libaom --enable-libass --enable-libbluray --enable-libbs2b --enable-libdav1d --enable-libdrm --enable-libfreetype --enable-libfribidi --enable-libgsm --enable-libharfbuzz --enable-libiec61883 --enable-libjack --enable-libjxl --enable-libmodplug --enable-libmp3lame --enable-libopencore_amrnb --enable-libopencore_amrwb --enable-libopenjpeg --enable-libopenmpt --enable-libopus --enable-libplacebo --enable-libpulse --enable-librav1e --enable-librsvg --enable-librubberband --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libsrt --enable-libssh --enable-libsvtav1 --enable-libtheora --enable-libv4l2 --enable-libvidstab --enable-libvmaf --enable-libvorbis --enable-libvpl --enable-libvpx --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxcb --enable-libxml2 --enable-libxvid --enable-libzimg --enable-nvdec --enable-nvenc --enable-opencl --enable-opengl --enable-shared --enable-vapoursynth --enable-version3 --enable-vulkan&#xA;  libavutil      58. 29.100 / 58. 29.100&#xA;  libavcodec     60. 31.102 / 60. 31.102&#xA;  libavformat    60. 16.100 / 60. 16.100&#xA;  libavdevice    60.  3.100 / 60.  3.100&#xA;  libavfilter     9. 12.100 /  9. 12.100&#xA;  libswscale      7.  5.100 /  7.  5.100&#xA;  libswresample   4. 12.100 /  4. 12.100&#xA;  libpostproc    57.  3.100 / 57.  3.100&#xA;[rawvideo @ 0x5d0fc4e5f600] Packet corrupt (stream = 0, dts = 0).&#xA;[rawvideo @ 0x5d0fc4e5f600] Estimating duration from bitrate, this may be inaccurate&#xA;Input #0, rawvideo, from &#x27;images/fileName1715180324575.dat&#x27;:&#xA;  Duration: N/A, start: 0.000000, bitrate: 933120 kb/s&#xA;  Stream #0:0: Video: rawvideo (RGB[24] / 0x18424752), rgb24, 1080x1440, 933120 kb/s, 25 tbr, 25 tbn&#xA;Stream mapping:&#xA;  Stream #0:0 -> #0:0 (rawvideo (native) -> mjpeg (native))&#xA;Press [q] to stop, [?] for help&#xA;[in#0/rawvideo @ 0x5d0fc4e5f500] corrupt input packet in stream 0&#xA;[rawvideo @ 0x5d0fc4e697c0] Invalid buffer size, packet size 45235 &lt; expected frame_size 4665600&#xA;[vist#0:0/rawvideo @ 0x5d0fc4e69640] Error submitting packet to decoder: Invalid argument&#xA;[swscaler @ 0x5d0fc4e86580] deprecated pixel format used, make sure you did set range correctly&#xA;[vost#0:0/mjpeg @ 0x5d0fc4e6c6c0] No filtered frames for output stream, trying to initialize anyway.&#xA;Output #0, image2, to &#x27;output.jpg&#x27;:&#xA;  Metadata:&#xA;    encoder         : Lavf60.16.100&#xA;  Stream #0:0: Video: mjpeg, yuvj444p(pc, progressive), 1080x1440, q=2-31, 200 kb/s, 25 fps, 25 tbn&#xA;    Metadata:&#xA;      encoder         : Lavc60.31.102 mjpeg&#xA;    Side data:&#xA;      cpb: bitrate max/min/avg: 0/0/200000 buffer size: 0 vbv_delay: N/A&#xA;[vist#0:0/rawvideo @ 0x5d0fc4e69640] Decode error rate 1 exceeds maximum 0.666667&#xA;[out#0/image2 @ 0x5d0fc4e69380] video:0kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: unknown&#xA;[out#0/image2 @ 0x5d0fc4e69380] Output file is empty, nothing was encoded(check -ss / -t / -frames parameters if used)&#xA;frame=    0 fps=0.0 q=0.0 Lsize=N/A time=N/A bitrate=N/A speed=N/A    &#xA;Conversion failed!&#xA;

    &#xA;

    or

    &#xA;

    ffmpeg version n6.1.1 Copyright (c) 2000-2023 the FFmpeg developers&#xA;  built with gcc 13.2.1 (GCC) 20230801&#xA;  configuration: --prefix=/usr --disable-debug --disable-static --disable-stripping --enable-amf --enable-avisynth --enable-cuda-llvm --enable-lto --enable-fontconfig --enable-frei0r --enable-gmp --enable-gnutls --enable-gpl --enable-ladspa --enable-libaom --enable-libass --enable-libbluray --enable-libbs2b --enable-libdav1d --enable-libdrm --enable-libfreetype --enable-libfribidi --enable-libgsm --enable-libharfbuzz --enable-libiec61883 --enable-libjack --enable-libjxl --enable-libmodplug --enable-libmp3lame --enable-libopencore_amrnb --enable-libopencore_amrwb --enable-libopenjpeg --enable-libopenmpt --enable-libopus --enable-libplacebo --enable-libpulse --enable-librav1e --enable-librsvg --enable-librubberband --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libsrt --enable-libssh --enable-libsvtav1 --enable-libtheora --enable-libv4l2 --enable-libvidstab --enable-libvmaf --enable-libvorbis --enable-libvpl --enable-libvpx --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxcb --enable-libxml2 --enable-libxvid --enable-libzimg --enable-nvdec --enable-nvenc --enable-opencl --enable-opengl --enable-shared --enable-vapoursynth --enable-version3 --enable-vulkan&#xA;  libavutil      58. 29.100 / 58. 29.100&#xA;  libavcodec     60. 31.102 / 60. 31.102&#xA;  libavformat    60. 16.100 / 60. 16.100&#xA;  libavdevice    60.  3.100 / 60.  3.100&#xA;  libavfilter     9. 12.100 /  9. 12.100&#xA;  libswscale      7.  5.100 /  7.  5.100&#xA;  libswresample   4. 12.100 /  4. 12.100&#xA;  libpostproc    57.  3.100 / 57.  3.100&#xA;[rawvideo @ 0x5a4c0b8685c0] Packet corrupt (stream = 0, dts = 0).&#xA;[rawvideo @ 0x5a4c0b8685c0] Estimating duration from bitrate, this may be inaccurate&#xA;Input #0, rawvideo, from &#x27;images/fileName1715180324575.dat&#x27;:&#xA;  Duration: N/A, start: 0.000000, bitrate: 103680 kb/s&#xA;  Stream #0:0: Video: rawvideo (I420 / 0x30323449), yuv420p, 720x480, 103680 kb/s, 25 tbr, 25 tbn&#xA;Stream mapping:&#xA;  Stream #0:0 -> #0:0 (rawvideo (native) -> mjpeg (native))&#xA;Press [q] to stop, [?] for help&#xA;[in#0/rawvideo @ 0x5a4c0b8684c0] corrupt input packet in stream 0&#xA;[rawvideo @ 0x5a4c0b872700] Invalid buffer size, packet size 45235 &lt; expected frame_size 518400&#xA;[vist#0:0/rawvideo @ 0x5a4c0b872580] Error submitting packet to decoder: Invalid argument&#xA;[swscaler @ 0x5a4c0b88f480] deprecated pixel format used, make sure you did set range correctly&#xA;[vost#0:0/mjpeg @ 0x5a4c0b875600] No filtered frames for output stream, trying to initialize anyway.&#xA;Output #0, image2, to &#x27;output.jpg&#x27;:&#xA;  Metadata:&#xA;    encoder         : Lavf60.16.100&#xA;  Stream #0:0: Video: mjpeg, yuvj420p(pc, progressive), 720x480, q=2-31, 200 kb/s, 25 fps, 25 tbn&#xA;    Metadata:&#xA;      encoder         : Lavc60.31.102 mjpeg&#xA;    Side data:&#xA;      cpb: bitrate max/min/avg: 0/0/200000 buffer size: 0 vbv_delay: N/A&#xA;[vist#0:0/rawvideo @ 0x5a4c0b872580] Decode error rate 1 exceeds maximum 0.666667&#xA;[out#0/image2 @ 0x5a4c0b8722c0] video:0kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: unknown&#xA;[out#0/image2 @ 0x5a4c0b8722c0] Output file is empty, nothing was encoded(check -ss / -t / -frames parameters if used)&#xA;frame=    0 fps=0.0 q=0.0 Lsize=N/A time=N/A bitrate=N/A speed=N/A    &#xA;Conversion failed!&#xA;

    &#xA;

    or similar errors.

    &#xA;

    Question

    &#xA;


    &#xA;

    How can I extract the image from a video frame using ffmpeg ? Thank you

    &#xA;

    A sample of the image file may be found here : github

    &#xA;

  • checkasm : add vvc_sao

    14 décembre 2024, par Shaun Loo
    checkasm : add vvc_sao
    

    This is a part of Google Summer of Code 2023

    AVX2 :
    - vvc_sao.sao_band [OK]
    - vvc_sao.sao_edge [OK]
    checkasm : all 54 tests passed
    vvc_sao_band_8_8_c : 157.4 ( 1.00x)
    vvc_sao_band_8_8_avx2 : 30.7 ( 5.12x)
    vvc_sao_band_8_10_c : 119.4 ( 1.00x)
    vvc_sao_band_8_10_avx2 : 29.2 ( 4.09x)
    vvc_sao_band_8_12_c : 144.6 ( 1.00x)
    vvc_sao_band_8_12_avx2 : 30.0 ( 4.82x)
    vvc_sao_band_16_8_c : 446.5 ( 1.00x)
    vvc_sao_band_16_8_avx2 : 103.3 ( 4.32x)
    vvc_sao_band_16_10_c : 399.2 ( 1.00x)
    vvc_sao_band_16_10_avx2 : 64.3 ( 6.21x)
    vvc_sao_band_16_12_c : 472.9 ( 1.00x)
    vvc_sao_band_16_12_avx2 : 56.5 ( 8.37x)
    vvc_sao_band_32_8_c : 2430.9 ( 1.00x)
    vvc_sao_band_32_8_avx2 : 203.3 (11.96x)
    vvc_sao_band_32_10_c : 1405.7 ( 1.00x)
    vvc_sao_band_32_10_avx2 : 208.5 ( 6.74x)
    vvc_sao_band_32_12_c : 2054.3 ( 1.00x)
    vvc_sao_band_32_12_avx2 : 213.0 ( 9.64x)
    vvc_sao_band_48_8_c : 3835.4 ( 1.00x)
    vvc_sao_band_48_8_avx2 : 604.2 ( 6.35x)
    vvc_sao_band_48_10_c : 3624.6 ( 1.00x)
    vvc_sao_band_48_10_avx2 : 468.8 ( 7.73x)
    vvc_sao_band_48_12_c : 3752.4 ( 1.00x)
    vvc_sao_band_48_12_avx2 : 477.5 ( 7.86x)
    vvc_sao_band_64_8_c : 6061.1 ( 1.00x)
    vvc_sao_band_64_8_avx2 : 803.9 ( 7.54x)
    vvc_sao_band_64_10_c : 6142.5 ( 1.00x)
    vvc_sao_band_64_10_avx2 : 827.3 ( 7.43x)
    vvc_sao_band_64_12_c : 6106.6 ( 1.00x)
    vvc_sao_band_64_12_avx2 : 839.9 ( 7.27x)
    vvc_sao_band_80_8_c : 9478.0 ( 1.00x)
    vvc_sao_band_80_8_avx2 : 1516.7 ( 6.25x)
    vvc_sao_band_80_10_c : 10300.5 ( 1.00x)
    vvc_sao_band_80_10_avx2 : 1298.7 ( 7.93x)
    vvc_sao_band_80_12_c : 8941.1 ( 1.00x)
    vvc_sao_band_80_12_avx2 : 1315.3 ( 6.80x)
    vvc_sao_band_96_8_c : 13351.5 ( 1.00x)
    vvc_sao_band_96_8_avx2 : 1815.4 ( 7.35x)
    vvc_sao_band_96_10_c : 13197.5 ( 1.00x)
    vvc_sao_band_96_10_avx2 : 1872.4 ( 7.05x)
    vvc_sao_band_96_12_c : 11969.0 ( 1.00x)
    vvc_sao_band_96_12_avx2 : 1895.8 ( 6.31x)
    vvc_sao_band_112_8_c : 19936.9 ( 1.00x)
    vvc_sao_band_112_8_avx2 : 2802.3 ( 7.11x)
    vvc_sao_band_112_10_c : 19534.9 ( 1.00x)
    vvc_sao_band_112_10_avx2 : 2635.0 ( 7.41x)
    vvc_sao_band_112_12_c : 16520.6 ( 1.00x)
    vvc_sao_band_112_12_avx2 : 2591.8 ( 6.37x)
    vvc_sao_band_128_8_c : 25967.5 ( 1.00x)
    vvc_sao_band_128_8_avx2 : 3155.3 ( 8.23x)
    vvc_sao_band_128_10_c : 24002.6 ( 1.00x)
    vvc_sao_band_128_10_avx2 : 3374.6 ( 7.11x)
    vvc_sao_band_128_12_c : 20829.4 ( 1.00x)
    vvc_sao_band_128_12_avx2 : 3377.0 ( 6.17x)
    vvc_sao_edge_8_8_c : 174.6 ( 1.00x)
    vvc_sao_edge_8_8_avx2 : 37.0 ( 4.72x)
    vvc_sao_edge_8_10_c : 174.4 ( 1.00x)
    vvc_sao_edge_8_10_avx2 : 58.5 ( 2.98x)
    vvc_sao_edge_8_12_c : 171.1 ( 1.00x)
    vvc_sao_edge_8_12_avx2 : 58.5 ( 2.93x)
    vvc_sao_edge_16_8_c : 677.7 ( 1.00x)
    vvc_sao_edge_16_8_avx2 : 72.2 ( 9.39x)
    vvc_sao_edge_16_10_c : 724.8 ( 1.00x)
    vvc_sao_edge_16_10_avx2 : 106.4 ( 6.81x)
    vvc_sao_edge_16_12_c : 647.0 ( 1.00x)
    vvc_sao_edge_16_12_avx2 : 106.6 ( 6.07x)
    vvc_sao_edge_32_8_c : 3001.8 ( 1.00x)
    vvc_sao_edge_32_8_avx2 : 157.6 (19.04x)
    vvc_sao_edge_32_10_c : 3071.1 ( 1.00x)
    vvc_sao_edge_32_10_avx2 : 404.2 ( 7.60x)
    vvc_sao_edge_32_12_c : 2698.6 ( 1.00x)
    vvc_sao_edge_32_12_avx2 : 398.8 ( 6.77x)
    vvc_sao_edge_48_8_c : 6557.7 ( 1.00x)
    vvc_sao_edge_48_8_avx2 : 380.1 (17.25x)
    vvc_sao_edge_48_10_c : 6319.9 ( 1.00x)
    vvc_sao_edge_48_10_avx2 : 896.3 ( 7.05x)
    vvc_sao_edge_48_12_c : 6306.4 ( 1.00x)
    vvc_sao_edge_48_12_avx2 : 885.5 ( 7.12x)
    vvc_sao_edge_64_8_c : 11510.7 ( 1.00x)
    vvc_sao_edge_64_8_avx2 : 504.1 (22.84x)
    vvc_sao_edge_64_10_c : 10917.4 ( 1.00x)
    vvc_sao_edge_64_10_avx2 : 1608.3 ( 6.79x)
    vvc_sao_edge_64_12_c : 11499.8 ( 1.00x)
    vvc_sao_edge_64_12_avx2 : 1586.4 ( 7.25x)
    vvc_sao_edge_80_8_c : 18193.2 ( 1.00x)
    vvc_sao_edge_80_8_avx2 : 930.2 (19.56x)
    vvc_sao_edge_80_10_c : 17984.3 ( 1.00x)
    vvc_sao_edge_80_10_avx2 : 2420.9 ( 7.43x)
    vvc_sao_edge_80_12_c : 18289.4 ( 1.00x)
    vvc_sao_edge_80_12_avx2 : 2412.1 ( 7.58x)
    vvc_sao_edge_96_8_c : 26361.8 ( 1.00x)
    vvc_sao_edge_96_8_avx2 : 1118.4 (23.57x)
    vvc_sao_edge_96_10_c : 26162.2 ( 1.00x)
    vvc_sao_edge_96_10_avx2 : 3666.9 ( 7.13x)
    vvc_sao_edge_96_12_c : 25926.6 ( 1.00x)
    vvc_sao_edge_96_12_avx2 : 3433.9 ( 7.55x)
    vvc_sao_edge_112_8_c : 36562.9 ( 1.00x)
    vvc_sao_edge_112_8_avx2 : 1741.0 (21.00x)
    vvc_sao_edge_112_10_c : 38126.4 ( 1.00x)
    vvc_sao_edge_112_10_avx2 : 5153.3 ( 7.40x)
    vvc_sao_edge_112_12_c : 36345.7 ( 1.00x)
    vvc_sao_edge_112_12_avx2 : 4684.9 ( 7.76x)
    vvc_sao_edge_128_8_c : 46379.8 ( 1.00x)
    vvc_sao_edge_128_8_avx2 : 2012.4 (23.05x)
    vvc_sao_edge_128_10_c : 47029.5 ( 1.00x)
    vvc_sao_edge_128_10_avx2 : 6162.2 ( 7.63x)
    vvc_sao_edge_128_12_c : 49647.3 ( 1.00x)
    vvc_sao_edge_128_12_avx2 : 6127.1 ( 8.10x)

    Co-authored-by : Nuo Mi <nuomi2021@gmail.com>

    • [DH] tests/checkasm/Makefile
    • [DH] tests/checkasm/checkasm.c
    • [DH] tests/checkasm/checkasm.h
    • [DH] tests/checkasm/vvc_sao.c