
Recherche avancée
Médias (91)
-
Les Miserables
9 décembre 2019, par
Mis à jour : Décembre 2019
Langue : français
Type : Textuel
-
VideoHandle
8 novembre 2019, par
Mis à jour : Novembre 2019
Langue : français
Type : Video
-
Somos millones 1
21 juillet 2014, par
Mis à jour : Juin 2015
Langue : français
Type : Video
-
Un test - mauritanie
3 avril 2014, par
Mis à jour : Avril 2014
Langue : français
Type : Textuel
-
Pourquoi Obama lit il mes mails ?
4 février 2014, par
Mis à jour : Février 2014
Langue : français
-
IMG 0222
6 octobre 2013, par
Mis à jour : Octobre 2013
Langue : français
Type : Image
Autres articles (55)
-
Publier sur MédiaSpip
13 juin 2013Puis-je poster des contenus à partir d’une tablette Ipad ?
Oui, si votre Médiaspip installé est à la version 0.2 ou supérieure. Contacter au besoin l’administrateur de votre MédiaSpip pour le savoir -
Ajouter notes et légendes aux images
7 février 2011, parPour pouvoir ajouter notes et légendes aux images, la première étape est d’installer le plugin "Légendes".
Une fois le plugin activé, vous pouvez le configurer dans l’espace de configuration afin de modifier les droits de création / modification et de suppression des notes. Par défaut seuls les administrateurs du site peuvent ajouter des notes aux images.
Modification lors de l’ajout d’un média
Lors de l’ajout d’un média de type "image" un nouveau bouton apparait au dessus de la prévisualisation (...) -
Le plugin : Podcasts.
14 juillet 2010, parLe problème du podcasting est à nouveau un problème révélateur de la normalisation des transports de données sur Internet.
Deux formats intéressants existent : Celui développé par Apple, très axé sur l’utilisation d’iTunes dont la SPEC est ici ; Le format "Media RSS Module" qui est plus "libre" notamment soutenu par Yahoo et le logiciel Miro ;
Types de fichiers supportés dans les flux
Le format d’Apple n’autorise que les formats suivants dans ses flux : .mp3 audio/mpeg .m4a audio/x-m4a .mp4 (...)
Sur d’autres sites (9105)
-
avutil : remove deprecated FF_API_FRAME_PKT
19 février, par James Almeravutil : 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 SeanI 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.


Technical Details



The frame is :


- 

- From a H265 video generated by the drone
- has size : height 1080 , width 1440
- FPS : 30
- Size : 45235










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


Goal



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


Attempt(s) to solve



I have tried :


ffmpeg -f rawvideo -s 720x480 -i images/fileName1715180324575.dat output.jpg



as well as


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



and various other combinations


Error



I get :


ffmpeg version n6.1.1 Copyright (c) 2000-2023 the FFmpeg developers


built with gcc 13.2.1 (GCC) 20230801
 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
 libavutil 58. 29.100 / 58. 29.100
 libavcodec 60. 31.102 / 60. 31.102
 libavformat 60. 16.100 / 60. 16.100
 libavdevice 60. 3.100 / 60. 3.100
 libavfilter 9. 12.100 / 9. 12.100
 libswscale 7. 5.100 / 7. 5.100
 libswresample 4. 12.100 / 4. 12.100
 libpostproc 57. 3.100 / 57. 3.100
[rawvideo @ 0x5d0fc4e5f600] Packet corrupt (stream = 0, dts = 0).
[rawvideo @ 0x5d0fc4e5f600] Estimating duration from bitrate, this may be inaccurate
Input #0, rawvideo, from 'images/fileName1715180324575.dat':
 Duration: N/A, start: 0.000000, bitrate: 933120 kb/s
 Stream #0:0: Video: rawvideo (RGB[24] / 0x18424752), rgb24, 1080x1440, 933120 kb/s, 25 tbr, 25 tbn
Stream mapping:
 Stream #0:0 -> #0:0 (rawvideo (native) -> mjpeg (native))
Press [q] to stop, [?] for help
[in#0/rawvideo @ 0x5d0fc4e5f500] corrupt input packet in stream 0
[rawvideo @ 0x5d0fc4e697c0] Invalid buffer size, packet size 45235 < expected frame_size 4665600
[vist#0:0/rawvideo @ 0x5d0fc4e69640] Error submitting packet to decoder: Invalid argument
[swscaler @ 0x5d0fc4e86580] deprecated pixel format used, make sure you did set range correctly
[vost#0:0/mjpeg @ 0x5d0fc4e6c6c0] No filtered frames for output stream, trying to initialize anyway.
Output #0, image2, to 'output.jpg':
 Metadata:
 encoder : Lavf60.16.100
 Stream #0:0: Video: mjpeg, yuvj444p(pc, progressive), 1080x1440, q=2-31, 200 kb/s, 25 fps, 25 tbn
 Metadata:
 encoder : Lavc60.31.102 mjpeg
 Side data:
 cpb: bitrate max/min/avg: 0/0/200000 buffer size: 0 vbv_delay: N/A
[vist#0:0/rawvideo @ 0x5d0fc4e69640] Decode error rate 1 exceeds maximum 0.666667
[out#0/image2 @ 0x5d0fc4e69380] video:0kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: unknown
[out#0/image2 @ 0x5d0fc4e69380] Output file is empty, nothing was encoded(check -ss / -t / -frames parameters if used)
frame= 0 fps=0.0 q=0.0 Lsize=N/A time=N/A bitrate=N/A speed=N/A 
Conversion failed!



or


ffmpeg version n6.1.1 Copyright (c) 2000-2023 the FFmpeg developers
 built with gcc 13.2.1 (GCC) 20230801
 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
 libavutil 58. 29.100 / 58. 29.100
 libavcodec 60. 31.102 / 60. 31.102
 libavformat 60. 16.100 / 60. 16.100
 libavdevice 60. 3.100 / 60. 3.100
 libavfilter 9. 12.100 / 9. 12.100
 libswscale 7. 5.100 / 7. 5.100
 libswresample 4. 12.100 / 4. 12.100
 libpostproc 57. 3.100 / 57. 3.100
[rawvideo @ 0x5a4c0b8685c0] Packet corrupt (stream = 0, dts = 0).
[rawvideo @ 0x5a4c0b8685c0] Estimating duration from bitrate, this may be inaccurate
Input #0, rawvideo, from 'images/fileName1715180324575.dat':
 Duration: N/A, start: 0.000000, bitrate: 103680 kb/s
 Stream #0:0: Video: rawvideo (I420 / 0x30323449), yuv420p, 720x480, 103680 kb/s, 25 tbr, 25 tbn
Stream mapping:
 Stream #0:0 -> #0:0 (rawvideo (native) -> mjpeg (native))
Press [q] to stop, [?] for help
[in#0/rawvideo @ 0x5a4c0b8684c0] corrupt input packet in stream 0
[rawvideo @ 0x5a4c0b872700] Invalid buffer size, packet size 45235 < expected frame_size 518400
[vist#0:0/rawvideo @ 0x5a4c0b872580] Error submitting packet to decoder: Invalid argument
[swscaler @ 0x5a4c0b88f480] deprecated pixel format used, make sure you did set range correctly
[vost#0:0/mjpeg @ 0x5a4c0b875600] No filtered frames for output stream, trying to initialize anyway.
Output #0, image2, to 'output.jpg':
 Metadata:
 encoder : Lavf60.16.100
 Stream #0:0: Video: mjpeg, yuvj420p(pc, progressive), 720x480, q=2-31, 200 kb/s, 25 fps, 25 tbn
 Metadata:
 encoder : Lavc60.31.102 mjpeg
 Side data:
 cpb: bitrate max/min/avg: 0/0/200000 buffer size: 0 vbv_delay: N/A
[vist#0:0/rawvideo @ 0x5a4c0b872580] Decode error rate 1 exceeds maximum 0.666667
[out#0/image2 @ 0x5a4c0b8722c0] video:0kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: unknown
[out#0/image2 @ 0x5a4c0b8722c0] Output file is empty, nothing was encoded(check -ss / -t / -frames parameters if used)
frame= 0 fps=0.0 q=0.0 Lsize=N/A time=N/A bitrate=N/A speed=N/A 
Conversion failed!



or similar errors.


Question



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


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


-
checkasm : add vvc_sao
14 décembre 2024, par Shaun Loocheckasm : 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>