
Recherche avancée
Autres articles (74)
-
Websites made with MediaSPIP
2 mai 2011, parThis page lists some websites based on MediaSPIP.
-
Gestion des droits de création et d’édition des objets
8 février 2011, parPar défaut, beaucoup de fonctionnalités sont limitées aux administrateurs mais restent configurables indépendamment pour modifier leur statut minimal d’utilisation notamment : la rédaction de contenus sur le site modifiables dans la gestion des templates de formulaires ; l’ajout de notes aux articles ; l’ajout de légendes et d’annotations sur les images ;
-
Dépôt de média et thèmes par FTP
31 mai 2013, parL’outil MédiaSPIP traite aussi les média transférés par la voie FTP. Si vous préférez déposer par cette voie, récupérez les identifiants d’accès vers votre site MédiaSPIP et utilisez votre client FTP favori.
Vous trouverez dès le départ les dossiers suivants dans votre espace FTP : config/ : dossier de configuration du site IMG/ : dossier des média déjà traités et en ligne sur le site local/ : répertoire cache du site web themes/ : les thèmes ou les feuilles de style personnalisées tmp/ : dossier de travail (...)
Sur d’autres sites (10101)
-
Application using FFMPEG Library does not compile with CMAKE error avformat_alloc_context but I have imported the header files and libray
23 mai 2022, par ClockmanI compiled the FFMPEG source file myself and got the header and library files in an include and bin folder respectively, the target platform is Windows 10. I also setup my cmakelist.txt to find and include both the library and header files. The application finds the path or so it seems because during compilation I get a "LNK2019 error unresolved external symbol avformat_alloc_context referenced in function main". Below is an extract from my cmake list ; I will like to note that I got the .lib and .dll versions of the library hence the approach below based on the book "professional cmake" and other stackflow examples.


ProjectDir/AudMan/cmakelist.txt


list(APPEND CMAKE_PREFIX_PATH ${CMAKE_PREFIX_PATH};PATH-TO-INCLUDES;PATH-TO-LIBRARY)
find_path(AVFORMAT_INCLUDE_DIR libavformat/avformat.h)
find_library(AVFORMAT_LIBRARY avformat)
add_library(ffmpegHeaders INTERFACE)
target_include_directories(ffmpegHeaders INTERFACE ${AVFORMAT_INCLUDE_DIR})



ProjectDir/cmakelist.txt


set(Rapid_Prefix PATH-TO-LIBRARY)
 add_library(AVformat SHARED IMPORTED)
 set_target_properties(AVformat PROPERTIES IMPORTED_LOCATION ${Rapid_Prefix}/avformat-59.dll IMPORTED_IMPLIB ${AVFORMAT_LIBRARY})
target_link_libraries(App_target PRIVATE AVformat)



A sample of the codes is this


extern "C" {
#include <libavcodec></libavcodec>avcodec.h>
#include <libavformat></libavformat>avformat.h>
}

int main()
{
 AVFormatContext* format = avformat_alloc_context();
 if (avformat_open_input(&format, R"(\test.m4a)", NULL, NULL) != 0) {
 fprintf(stderr, "Could not open file '%s'\n", R"(\test.m4a)");
 return -1;
 }
 if (avformat_find_stream_info(format, NULL) < 0) {
 fprintf(stderr, "Could not retrieve stream info from file '%s'\n", R"(test.m4a)");
 return -1;
 }
 return 0;
}



I have been at it for about five days and will appreciate any help I can get.


-
Unable to link QtFFmpegWrapper sample on Win7 with VS 2012
20 juillet 2014, par mschwarzI am trying to incorporate QtFFmpegWrapper in my program, but both my program and the provided sample won’t link with ffmpeg :
QVideoEncoder.obj:-1: Error: LNK2019: unresolved external symbol _avcodec_init referenced in function "protected: bool __thiscall QVideoEncoder::initCodec(void)" (?initCodec@QVideoEncoder@@IAE_NXZ)
QVideoDecoder.obj:-1: Error: LNK2001: unresolved external symbol _avcodec_init
QVideoEncoder.obj:-1: Error: LNK2019: unresolved external symbol _avcodec_thread_init referenced in function "public: bool __thiscall QVideoEncoder::createFile(class QString,unsigned int,unsigned int,unsigned int,unsigned int,unsigned int)" (?createFile@QVideoEncoder@@QAE_NVQString@@IIIII@Z)
QVideoEncoder.obj:-1: Error: LNK2019: unresolved external symbol _avcodec_open referenced in function "public: bool __thiscall QVideoEncoder::createFile(class QString,unsigned int,unsigned int,unsigned int,unsigned int,unsigned int)" (?createFile@QVideoEncoder@@QAE_NVQString@@IIIII@Z)and 10 or so more like these ...
Why do these pop up when linking ? The libs are all there and found, it just seems like the linker has issues with them ...
I use the following setup for my project :
- Latest QtFFmpegWrapper from https://code.google.com/p/qtffmpegwrapper/
- qt-opensource-windows-x86-msvc2012_opengl-5.3.0
- Visual Studio 2012 Professional
- Qt Creator 3.1.2
- ffmpeg builds from http://ffmpeg.zeranoe.com/builds/ :
- ffmpeg-20140717-git-fa6716c-win32-dev
- ffmpeg-20140717-git-fa6716c-win32-shared
Everything is 32Bit.
-
FFMPEG Failure - Extracting frames on large file
25 avril 2018, par Marian MontagninoCalling the
ffmpeg
command :ffmpeg -y -ss "00:00:02" -i 5ccaea226acfc1b4b75ccd1a9f09512c.mxf -frames 30 -f image2 -vf "fps=1/1.25,scale='min(420,iw)':-1" video%04d.jpg
Causes a failure :
ffmpeg failed: ffmpeg version N-85692-g78a5fc4 Copyright (c) 2000-2017 the FFmpeg developers
built with gcc 4.8.5 (GCC) 20150623 (Red Hat 4.8.5-11)
configuration: --prefix=/tmp/gm-ffmpeg-1.0.4/BUILD/ffmpeg_build --pkg-config-flags=--static --extra-cflags=-I/tmp/gm-ffmpeg-1.0.4/BUILD/ffmpeg_build/include --extra-ldflags=-L/tmp/gm-ffmpeg-1.0.4/BUILD/ffmpeg_build/lib --bindir=/tmp/gm-ffmpeg-1.0.4/BUILDROOT/gm-ffmpeg-1.0.4-1.el7.centos.x86_64/opt/graymeta/bin --enable-gpl --enable-libass --enable-libfdk-aac --enable-libfreetype --enable-libmp3lame --enable-libopus --enable-libtheora --enable-libvorbis --enable-libvpx --enable-libx264 --enable-libx265 --enable-nonfree
libavutil 55. 61.100 / 55. 61.100
libavcodec 57. 93.100 / 57. 93.100
libavformat 57. 72.101 / 57. 72.101
libavdevice 57. 7.100 / 57. 7.100
libavfilter 6. 87.100 / 6. 87.100
libswscale 4. 7.101 / 4. 7.101
libswresample 2. 8.100 / 2. 8.100
libpostproc 54. 6.100 / 54. 6.100
[mxf @ 0x2c6da60] broken or empty index
Input #0, mxf, from '/alloc/5ccaea226acfc1b4b75ccd1a9f09512c.mxf':
Metadata:
uid : 27b07007-2dc8-4305-a78a-81a612d78b94
generation_uid : ef5ae870-4075-4513-ea1f-39c0ed197267
company_name : Colorfront
product_name : Transkoder
product_uid : 3a4fe380-0d01-11e4-869f-3cd92b5c1dfc
product_version : 2.7.3.20150121
application_platform: Microsoft Windows 7 Professional Service Pack 1 (Build 7601)
modification_date: 2016-09-09T11:29:39.000000Z
material_package_umid: 0x060A2B340101010501010F20130000008991E1DCEA584837149E72E7F9F0E09D
timecode : 00:00:17;12
Duration: 00:11:58.92, start: 0.000000, bitrate: 150802 kb/s
Stream #0:0: Video: jpeg2000, yuv422p10le(progressive), 3840x2160, SAR 1:1 DAR 16:9, 59.94 fps, 59.94 tbr, 59.94 tbn, 59.94 tbc
Metadata:
file_package_umid: 0x060A2B340101010501010F2013000000F8B3B48BE8044408DDD6303A6D43F566
track_name : Picture
Stream mapping:
Stream #0:0 -> #0:0 (jpeg2000 (native) -> mjpeg (native))
Press [q] to stop, [?] for help
: signal: killedI’m not sure how to interpret this error message and why it actually failed. This file is about 90GB large and shot in 4K resolution but 11 seconds long.