
Recherche avancée
Médias (1)
-
Video d’abeille en portrait
14 mai 2011, par
Mis à jour : Février 2012
Langue : français
Type : Video
Autres articles (85)
-
Keeping control of your media in your hands
13 avril 2011, parThe vocabulary used on this site and around MediaSPIP in general, aims to avoid reference to Web 2.0 and the companies that profit from media-sharing.
While using MediaSPIP, you are invited to avoid using words like "Brand", "Cloud" and "Market".
MediaSPIP is designed to facilitate the sharing of creative media online, while allowing authors to retain complete control of their work.
MediaSPIP aims to be accessible to as many people as possible and development is based on expanding the (...) -
Encoding and processing into web-friendly formats
13 avril 2011, parMediaSPIP 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 (...) -
Submit bugs and patches
13 avril 2011Unfortunately a software is never perfect.
If you think you have found a bug, report it using our ticket system. Please to help us to fix it by providing the following information : the browser you are using, including the exact version as precise an explanation as possible of the problem if possible, the steps taken resulting in the problem a link to the site / page in question
If you think you have solved the bug, fill in a ticket and attach to it a corrective patch.
You may also (...)
Sur d’autres sites (10684)
-
avcodec/bit_depth_template : Remove empty macro INIT_CLIP
16 décembre 2024, par Zhao Zhili -
Empty audio backends for torchaudio list audio backends, with ffmpeg installed on system libraries [closed]
28 mars, par Alberto Agudo DominguezI installed torchaudio 2.5.1 and a system install of ffmpeg on Windows and get :


PS C:\Users\> ffmpeg -version
ffmpeg version 2025-01-05-git-19c95ecbff-essentials_build-www.gyan.dev Copyright (c) 2000-2025 the FFmpeg developers
built with gcc 14.2.0 (Rev1, Built by MSYS2 project)
configuration: --enable-gpl --enable-version3 --enable-static --disable-w32threads --disable-autodetect --enable-fontconfig --enable-iconv --enable-gnutls --enable-libxml2 --enable-gmp --enable-bzlib --enable-lzma --enable-zlib --enable-libsrt --enable-libssh --enable-libzmq --enable-avisynth --enable-sdl2 --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxvid --enable-libaom --enable-libopenjpeg --enable-libvpx --enable-mediafoundation --enable-libass --enable-libfreetype --enable-libfribidi --enable-libharfbuzz --enable-libvidstab --enable-libvmaf --enable-libzimg --enable-amf --enable-cuda-llvm --enable-cuvid --enable-dxva2 --enable-d3d11va --enable-d3d12va --enable-ffnvcodec --enable-libvpl --enable-nvdec --enable-nvenc --enable-vaapi --enable-libgme --enable-libopenmpt --enable-libopencore-amrwb --enable-libmp3lame --enable-libtheora --enable-libvo-amrwbenc --enable-libgsm --enable-libopencore-amrnb --enable-libopus --enable-libspeex --enable-libvorbis --enable-librubberband
libavutil 59. 54.101 / 59. 54.101
libavcodec 61. 31.100 / 61. 31.100
libavfilter 10. 6.101 / 10. 6.101
libswresample 5. 4.100 / 5. 4.100
libpostproc 58. 4.100 / 58. 4.100

PS C:\Users\> python
Python 3.12.5 (tags/v3.12.5:ff3bc82, Aug 6 2024, 20:45:27) [MSC v.1940 64 bit (AMD64)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> import torchaudio
>>> torchaudio.list_audio_backends()
[]



Hence ffmpeg is added to the path and recognized by the console, but not by torchaudio.


-
Trying to get pixels from a transparent AVI file to use them in a Raylib image but AVFrame comes out empty
27 novembre 2024, par Kolt PennyI was trying to open a video file with FFmpeg's API using C++. So far all the steps up until calling
av_read_frame
has no errors :

- 

avformat_open_input
,avformat_find_stream_info
,avcodec_find_decoder
,avcodec_alloc_context3
,avcodec_parameters_to_context
andavcodec_open2
pass the error checking.AVFrame* av_frame
andAVPacket* av_packet
are correctly allocated.






This following code is where I do the rest of the checks, to get the pixel data :


int bufferSize = av_frame->width * av_frame->height * 4;
 unsigned char* data = new unsigned char[bufferSize];
 
 while (av_read_frame(av_format_ctx, av_packet) >= 0) {
 if (av_packet->stream_index == video_stream_idx) {
 if (avcodec_send_packet(av_codec_ctx, av_packet) == 0) {
 if (avcodec_receive_frame(av_codec_ctx, av_frame) == 0) {

 memcpy(data, av_frame->data[0], bufferSize);

 break; // We only need the first frame
 }
 }
 }
 }



The issue is, up until
... if (avcodec_receive_frame(av_codec_ctx, av_frame) == 0) { ...
and while inspecting the data, packet shows like this :
packet showing no data, but has size

None of the function calls return any error so it should be working, yet the packet has no data, and consequently the frame comes out empty.


Why could this be ? Should I keep looping on
avcodec_send_packet(av_codec_ctx, av_packet)
until it comes out not empty ?