
Recherche avancée
Médias (91)
-
999,999
26 septembre 2011, par
Mis à jour : Septembre 2011
Langue : English
Type : Audio
-
The Slip - Artworks
26 septembre 2011, par
Mis à jour : Septembre 2011
Langue : English
Type : Texte
-
Demon seed (wav version)
26 septembre 2011, par
Mis à jour : Avril 2013
Langue : English
Type : Audio
-
The four of us are dying (wav version)
26 septembre 2011, par
Mis à jour : Avril 2013
Langue : English
Type : Audio
-
Corona radiata (wav version)
26 septembre 2011, par
Mis à jour : Avril 2013
Langue : English
Type : Audio
-
Lights in the sky (wav version)
26 septembre 2011, par
Mis à jour : Avril 2013
Langue : English
Type : Audio
Autres articles (54)
-
Menus personnalisés
14 novembre 2010, parMediaSPIP utilise le plugin Menus pour gérer plusieurs menus configurables pour la navigation.
Cela permet de laisser aux administrateurs de canaux la possibilité de configurer finement ces menus.
Menus créés à l’initialisation du site
Par défaut trois menus sont créés automatiquement à l’initialisation du site : Le menu principal ; Identifiant : barrenav ; Ce menu s’insère en général en haut de la page après le bloc d’entête, son identifiant le rend compatible avec les squelettes basés sur Zpip ; (...) -
Les vidéos
21 avril 2011, parComme les documents de type "audio", Mediaspip affiche dans la mesure du possible les vidéos grâce à la balise html5 .
Un des inconvénients de cette balise est qu’elle n’est pas reconnue correctement par certains navigateurs (Internet Explorer pour ne pas le nommer) et que chaque navigateur ne gère en natif que certains formats de vidéos.
Son avantage principal quant à lui est de bénéficier de la prise en charge native de vidéos dans les navigateur et donc de se passer de l’utilisation de Flash et (...) -
(Dés)Activation de fonctionnalités (plugins)
18 février 2011, parPour gérer l’ajout et la suppression de fonctionnalités supplémentaires (ou plugins), MediaSPIP utilise à partir de la version 0.2 SVP.
SVP permet l’activation facile de plugins depuis l’espace de configuration de MediaSPIP.
Pour y accéder, il suffit de se rendre dans l’espace de configuration puis de se rendre sur la page "Gestion des plugins".
MediaSPIP est fourni par défaut avec l’ensemble des plugins dits "compatibles", ils ont été testés et intégrés afin de fonctionner parfaitement avec chaque (...)
Sur d’autres sites (9208)
-
acces to data stream (KLV) with windows media-foundation
20 février 2023, par haceneshIs there any way to acces data stream with Windows Media Foundation ?


I have a video stream that contains tree streams : Audio, video and Data stream
When I opend the file with ffmpeg I can access the three stream :


- 

- AVMEDIA_TYPE_AUDIO
- AVMEDIA_TYPE_VIDEO
- AVMEDIA_TYPE_DATA








This image show more details about the data stream I wanted to retrieve.



With windows media-foundation I can only see audio and video streams.


IMFMediaSource* pVideoSource = NULL;
IMFSourceReader* pVideoReader = NULL; 
....
....
while (pVideoReader->GetStreamSelection(stmIndex, &isSelected) == S_OK) {
 printf("Stream %d is selected %d.\n", stmIndex, isSelected);

 CHECK_HR(pVideoReader->GetCurrentMediaType(stmIndex, &pStmMediaType), "Failed to get media type for selected stream.");

 std::cout << "Media type: " << GetMediaTypeDescription(pStmMediaType) << std::endl;

 GUID majorMediaType;
 pStmMediaType->GetGUID(MF_MT_MAJOR_TYPE, &majorMediaType);
 if (majorMediaType == MFMediaType_Audio) {
 std::cout << "Source audio stream index is " << stmIndex << "." << std::endl;
 }
 else if (majorMediaType == MFMediaType_Video) {
 std::cout << "Video stream index is " << stmIndex << "." << std::endl;
 }
 stmIndex++;
 SAFE_RELEASE(pStmMediaType);
 }




**Output **




Stream 0 is selected 1.
Media type : MFMediaType_Audio : MF_MT_AUDIO_AVG_BYTES_PER_SECOND=16031, MF_MT_AUDIO_BLOCK_ALIGNMENT=1, 33026EE0-E387-4582-AE0A-34A2AD3BAA18=1, MF_MT_AUDIO_NUM_CHANNELS=2, MF_MT_MAJOR_TYPE=MFMediaType_Audio, MF_MT_AUDIO_SAMPLES_PER_SECOND=48000, MF_MT_AAC_AUDIO_PROFILE_LEVEL_INDICATION=254, MF_MT_AUDIO_PREFER_WAVEFORMATEX=1, MF_MT_USER_DATA=, MF_MT_FIXED_SIZE_SAMPLES=1, MF_MT_AAC_PAYLOAD_TYPE=1, MF_MT_ALL_SAMPLES_INDEPENDENT=1, MF_MT_SAMPLE_SIZE=1, MF_MT_SUBTYPE=MFAudioFormat_AAC,
Source audio stream index is 0.
Stream 1 is selected 1.
Media type : MFMediaType_Video : MF_MT_FRAME_SIZE=W:1920 H : 1080, MF_MT_MPEG_SEQUENCE_HEADER=, MF_MT_MAJOR_TYPE=MFMediaType_Video, MF_MT_AM_FORMAT_TYPE=E06D80E3-DB46-11CF-B4D1-00805F6CBBEA, MF_MT_MPEG2_LEVEL=41, MF_MT_MPEG2_PROFILE=66, MF_MT_FIXED_SIZE_SAMPLES=1, MF_MT_FRAME_RATE=25/1, MF_MT_PIXEL_ASPECT_RATIO=1:1, MF_MT_SAMPLE_SIZE=1, MF_MT_INTERLACE_MODE=2, MF_MT_SUBTYPE=3F40F4F0-5622-4FF8-B6D8-A17A584BEE5E,
Video stream index is 1.
Source media type count : 1, is first stream selected 1.
Default output media type for source reader :
MFMediaType_Video : MF_MT_FRAME_SIZE=W:1920 H : 1080, MF_MT_MPEG_SEQUENCE_HEADER=, MF_MT_MAJOR_TYPE=MFMediaType_Video, MF_MT_AM_FORMAT_TYPE=E06D80E3-DB46-11CF-B4D1-00805F6CBBEA, MF_MT_MPEG2_LEVEL=41, MF_MT_MPEG2_PROFILE=66, MF_MT_FIXED_SIZE_SAMPLES=1, MF_MT_FRAME_RATE=25/1, MF_MT_PIXEL_ASPECT_RATIO=1:1, MF_MT_SAMPLE_SIZE=1, MF_MT_INTERLACE_MODE=2, MF_MT_SUBTYPE=3F40F4F0-5622-4FF8-B6D8-A17A584BEE5E,




I also looked on the sample metadata. I didn't find anything.
MFSampleExtension_CaptureMetadata


HRESULT hr = videoSample->GetUnknown(MFSampleExtension_CaptureMetadata, IID_IMFAttributes, (void**)&pAttributes);



Result




hr = 0xc00d36e6 : The requested attribute was not found.
access to data stream with media-foundation




-
How do I fix this error in Python : RuntimeWarning : Couldn't find ffmpeg or avconv - defaulting to ffmpeg, but may not work
11 mars 2023, par Mason GriffithI have been trying to mess around with some of Eleven Labs API and make a simple program that takes in a string and can use the API to retrun a voice provided by Eleven Labs speaking the string. I've seen people using similar code to this but I always get the same error telling me it couldnt find ffmpeg or avconv. Any help would be grealty appreciated. Here is the code below.


from elevenlabslib import *
import pydub
import pydub.playback
import io


def play(bytesData):
 sound = pydub.AudioSegment.from_file_using_temporary_files(io.BytesIO(bytesData))
 pydub.playback.play(sound)
 return


user = ElevenLabsUser("API_KEY") # fill in your api key as a string
voice = user.get_voices_by_name("Rachel")[0] # fill in the name of the voice you want to use. ex: "Rachel"
play(voice.generate_audio_bytes("Test")) # fill in what you want the ai to say as a string



Ive downloaded all the suggested packages and downloaded ffmpeg for windows but nothing has worked yet. I can see that the request is going through to the Eleven Labs website as my requested string pops up in my history on Eleven Labs but because of the error no audio is returned.


-
A C language ffmpeg project organized with CMakeLists, encounters errors in the Windows MinGW64 environment
20 juin 2023, par flywenProject Structure


ffmpeg-tutorial


- 

- include

- 

- libavcodec
- libavdevice
- libavfilter
- libavformat
- libavutil
- libswresample
- libswscale
















- lib

- 

- pkgconfig
- libavcodec.a
- libavdevice.a
- libavfilter.a
- libformat.a
- libavutil.a
- libswresample.a
- libswscale.a


















- CMakeLists.txt
- main.c










CMakeLists.txt


cmake_minimum_required(VERSION 3.20)
project(ffmpeg_tutorial)

set(CMAKE_C_STANDARD 11)

include_directories(include)
link_directories(lib)
add_executable(ffmpeg_tutorial main.cpp)
target_link_libraries(ffmpeg_tutorial
 avformat
 avcodec
 avutil
 swscale
 swresample
 z
 bz2
 iconv
 ws2_32
 schannel
 kernel32
 advapi32
 kernel32
 user32
 gdi32
 winspool
 shell32
 ole32
 oleaut32
 uuid
 comdlg32
 advapi32
 )



main.c


#include 
#include "libavcodec/avcodec.h"
#include "libavformat/avformat.h"
#include "libswresample/swresample.h"
int main() {
 std::cout << "Hello, World!" << std::endl;
 std::cout << av_version_info() << std::endl;
 printf("ffmpeg version is %s\n", av_version_info());
 // Open input file
 AVFormatContext *inputContext = nullptr;
 if (avformat_open_input(&inputContext, "input.mp3", nullptr, nullptr) != 0) {
 printf("Couldn't open input file\n");
 return -1;
 }

 // Read input stream
 if (avformat_find_stream_info(inputContext, nullptr) < 0) {
 printf("Couldn't find stream information\n");
 return -1;
 }

 // Get audio stream index
 int audioStream = -1;
 for (int i = 0; i < inputContext->nb_streams; i++) {
 if (inputContext->streams[i]->codecpar->codec_type == AVMEDIA_TYPE_AUDIO) {
 audioStream = i;
 break;
 }
 }

 if (audioStream == -1) {
 printf("Couldn't find audio stream\n");
 return -1;
 }
}




IDE


clion


ERRORS


[ 50%] Building CXX object CMakeFiles/ffmpeg_tutorial.dir/main.cpp.obj
[100%] Linking CXX executable ffmpeg_tutorial.exe
D:/Msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/10.3.0/../../../../x86_64-w64-mingw32/bin/ld.exe: G:/cywen_private/cpp_projects/ffmpeg-tutorial/lib/libavformat.a(tls_schannel.o): in function `tls_write':
D:\Msys64\usr\src\ffmpeg/libavformat/tls_schannel.c:563: undefined reference to `EncryptMessage'
D:/Msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/10.3.0/../../../../x86_64-w64-mingw32/bin/ld.exe: G:/cywen_private/cpp_projects/ffmpeg-tutorial/lib/libavformat.a(tls_schannel.o): in function `tls_read':
D:\Msys64\usr\src\ffmpeg/libavformat/tls_schannel.c:441: undefined reference to `DecryptMessage'
D:/Msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/10.3.0/../../../../x86_64-w64-mingw32/bin/ld.exe: G:/cywen_private/cpp_projects/ffmpeg-tutorial/lib/libavcodec.a(mfenc.o):mfenc.c:(.rdata$.refptr.IID_ICodecAPI[.refptr.IID_ICodecAPI]+0x0): undefined reference to `IID_ICodecAPI'
D:/Msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/10.3.0/../../../../x86_64-w64-mingw32/bin/ld.exe: G:/cywen_private/cpp_projects/ffmpeg-tutorial/lib/libavcodec.a(tiff.o): in function `tiff_uncompress_lzma':
D:\Msys64\usr\src\ffmpeg/libavcodec/tiff.c:577: undefined reference to `lzma_stream_decoder'
D:/Msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/10.3.0/../../../../x86_64-w64-mingw32/bin/ld.exe: D:\Msys64\usr\src\ffmpeg/libavcodec/tiff.c:582: undefined reference to `lzma_code'
D:/Msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/10.3.0/../../../../x86_64-w64-mingw32/bin/ld.exe: D:\Msys64\usr\src\ffmpeg/libavcodec/tiff.c:583: undefined reference to `lzma_end'
D:/Msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/10.3.0/../../../../x86_64-w64-mingw32/bin/ld.exe: G:/cywen_private/cpp_projects/ffmpeg-tutorial/lib/libavutil.a(random_seed.o): in function `av_get_random_seed':
D:\Msys64\usr\src\ffmpeg/libavutil/random_seed.c:127: undefined reference to `BCryptOpenAlgorithmProvider'
D:/Msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/10.3.0/../../../../x86_64-w64-mingw32/bin/ld.exe: D:\Msys64\usr\src\ffmpeg/libavutil/random_seed.c:130: undefined reference to `BCryptGenRandom'
D:/Msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/10.3.0/../../../../x86_64-w64-mingw32/bin/ld.exe: D:\Msys64\usr\src\ffmpeg/libavutil/random_seed.c:131: undefined reference to `BCryptCloseAlgorithmProvider'
collect2.exe: error: ld returned 1 exit status
mingw32-make[3]: *** [CMakeFiles\ffmpeg_tutorial.dir\build.make:95: ffmpeg_tutorial.exe] Error 1
mingw32-make[2]: *** [CMakeFiles\Makefile2:82: CMakeFiles/ffmpeg_tutorial.dir/all] Error 2
mingw32-make[1]: *** [CMakeFiles\Makefile2:89: CMakeFiles/ffmpeg_tutorial.dir/rule] Error 2
mingw32-make: *** [Makefile:123: ffmpeg_tutorial] Error 2



What is the way I compile ffmpeg


- 

-
downlaod msys2


-
install mingw64








pacman -S mingw-w64-x86_64-toolchain



- 

-
install make,diffutils,nasm,yasm,pkg-config






pacman -S base-devl yasm nasm pkg-config



- 

-
download ffmpeg 5.1


-
compile








cd ffmpeg
./configure --disable-shared --enable-static --arch=x86_64 --target-os=mingw32 --cross-prefix=x86_64-w64-mingw32- --pkg-config-flags=--static --prefix=../ffmpeg-build

make -j $(nproc)

make install




Project Repoistory


https://github.com/joinwen/learn_ffmpeg.git


Expectation


- 

- How to solve errors
- In CMakeLists target_link_libraries's parameters is too much, Can I make it short
- some advices on the project








- include