Recherche avancée

Médias (1)

Mot : - Tags -/framasoft

Autres articles (79)

  • Gestion générale des documents

    13 mai 2011, par

    MédiaSPIP ne modifie jamais le document original mis en ligne.
    Pour chaque document mis en ligne il effectue deux opérations successives : la création d’une version supplémentaire qui peut être facilement consultée en ligne tout en laissant l’original téléchargeable dans le cas où le document original ne peut être lu dans un navigateur Internet ; la récupération des métadonnées du document original pour illustrer textuellement le fichier ;
    Les tableaux ci-dessous expliquent ce que peut faire MédiaSPIP (...)

  • Gestion des droits de création et d’édition des objets

    8 février 2011, par

    Par 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 ;

  • Des sites réalisés avec MediaSPIP

    2 mai 2011, par

    Cette page présente quelques-uns des sites fonctionnant sous MediaSPIP.
    Vous pouvez bien entendu ajouter le votre grâce au formulaire en bas de page.

Sur d’autres sites (6044)

  • Compiling FFmpeg with Libass using MSVC

    2 avril 2019, par maxhap

    First a bit of background.

    I’m trying to compile ffmpeg on windows with the libass extensions/configuration option.

    Using the visual studio project libass-msvc I built libass using Visual Studio as a static lib.

    I then installed MinGW with MSYS and pkg-config. Following the instructions on the ffmpeg MSVC installation guide I configured the environment to build with the MSVC linker and to build in x64.

    When I try to configure libass for compilation using ./configure —enable-libass —toolchain=msvc I get the following error in the log file :

    File not found ass/ass.h

    pkg-config can not find libass

    I have tried the following to fix this.

    1. Create a .pc file for libass and add this to the PKG_CONFIG_PATH environment variable. See file content below. (After doing this pkg-config libass —version prints 0.81, not the right version number but at least something.)

    2. Copy libass .h files into a MinGW/include/ass folder and the .lib file into the MinGW/libs folder.

    3. Add libass include and bin folders to PATH environment variable

    4. Download libass and dependencies source then try to build it using MSYS with MSVC compiler. My aim here was to be able to use "make install" and let MinGW install libass to the correct locations. After hours of trying to fix linker errors, I abandoned this idea as some of the libass dependencies make files only work with the GCC GNU compiler.

    5. Compile libass with GCC GNU using MinGW make/make install then try and install libass using the GNU libs. Again this led to linker errors (I know this was a bad idea but was worth a try).

    6. Tried using extra lib and include build configuration options —extra-cflags="ffmpeg-dir/extra/include" \
      — extra-ldflags="ffmped-dir/extra/ffmpeg_build/lib" then adding the libs and .h files into those locations

    .pc file

    libass.pc:
    prefix=/MinGW
    includedir=libass-directory/include
    libdir=libass-director/x64/bin/

    Name: libass
    Description: Libass project
    Version: 0.13.7

    I am now completely stuck and out of ideas if anyone could give any insight or suggestions into what I’m doing wrong that would be fantastic.

    Update

    I created INCLUDE and LIBDIR environment path variable containing the libass paths. Which now correctly includes libass. However, I now get the following linker error for the function check_ass_library_init.

    check_func_headers ass/ass.h ass_library_init
    check_ld cc
    check_cc
    BEGIN ./ffconf.RZMYFWdc/test.c
    1 #include
    2 #include
    3 long check_ass_library_init(void) return (long)
    ass_library_init ;

    4 int main(void) int ret = 0 ;
    5 ret |= ((intptr_t)check_ass_library_init) & 0xFFFF ;
    6 return ret ;

    END ./ffconf.RZMYFWdc/test.c
    cl -D_ISOC99_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -
    D_USE_MATH_DEFINES -D_CRT_SECURE_NO_WARNINGS -D_CRT_NONSTDC_NO_WARNINGS -
    D_WIN32_WINNT=0x0502 -nologo -c -Fo./ffconf.RZMYFWdc/test.o
    ./ffconf.RZMYFWdc/test.c
    test.c
    ./ffconf.RZMYFWdc/test.c(3) : warning C4311 : ’type cast’ : pointer truncation
    from ’ASS_Library *(__cdecl *)(void)’ to ’long’
    ./compat/windows/mslink -nologo -out :./ffconf.RZMYFWdc/test.exe
    ./ffconf.RZMYFWdc/test.o psapi.lib advapi32.lib shell32.lib ole32.lib
    test.o : error LNK2019 : unresolved external symbol ass_library_init
    referenced in function check_ass_library_init
    ./ffconf.RZMYFWdc/test.exe : fatal error LNK1120 : 1 unresolved externals
    ERROR : libass not found using pkg-config

    The libass test project which uses ass_library_init compiles fine using the same lib files, the libs appear to be fine.

    From what I see from this line "./compat/windows/mslink -nologo -out:./ffconf.RZMYFWdc/test.exe ./ffconf.RZMYFWdc/test.o psapi.lib advapi32.lib shell32.lib ole32.lib" libass is not being passed to the linker.
    I suspect that the configuration file is not creating the link to libass in the make file when compiling with MSVC.

    Am I correct or am I going about compiling this in the wrong way ?

  • Displaying progress while working on FFMpegConverter ?

    1er novembre 2017, par GreenRoof

    During a part of my project, I should download video data and audio data of a youtube link and merge them using NReco.VideoConverter. So this here is my code :

    public class Download {
       public NReco.VideoConverter.FFMpegConverter ffMpeg;
       public BackgroundWorker bgWorker;

       public Download (BackgroundWorker bgWorker) {
           this.BgWorker = BgWorker;
           var ffMpeg = new NReco.VideoConverter.FFMpegConverter();
           ffMpeg.ConvertProgress += (s, e) => ReportProgress(Convert.ToInt64(e.Processed.TotalSeconds), Convert.ToInt64(e.TotalDuration.TotalSeconds));
       }

       public MergeData() {
           // Video data and Audio data are downloaded to tempVidPath and tempAudPath.
           ffMpeg.Invoke(String.Format("-i \"{0}\" -i \"{1}\" -y -c copy \"{2}\"", tempVidPath, tempAudPath, targetPath));
       }

       public ReportProgress(long part, long total) {
           bgWorker.ReportProgress(0, new string[] {part.ToString(), total.ToString()});
       }
    }

    public partial class App : Form {
       //**omit
       public void Execution() {
           bgWorker = new BackgroundWorker(); // bgWorker is already defined in Designer class.
           bgWorker.WorkerReportsProgress = true;

           Download Dnld = new Download(bgWorker);

           bgWorker.ProgressChanged += (s, e) => {
               string[] arr = ((System.Collections.IEnumerable)e.UserState).Cast().Select(x => x.ToString()).ToArray();
               progBar.Maximum = Int64.Parse(arr[1]);
               progBar.Value = Int64.Parse(arr[0]);
           };

           bgWorker.DoWork += (s, e) => {
               Dnld.MergeData()
           }

       }
    }

    Here, I have no idea how to keep progBar to track the merging process while two files are being merged. Is there any method like WebClinet.DownloadFileAsync so I can get progress data from the thread ?

    ** I didn’t write unnecessary codes so codes may complicated and inefficient. But there are much more codes so please understand that problems. :)

  • avcodec/pixlet : fixes integer overflow in read_highpass()

    17 août 2017, par Michael Niedermayer
    avcodec/pixlet : fixes integer overflow in read_highpass()
    

    Fixes : runtime error : negation of -2147483648 cannot be represented in type 'int32_t' (aka 'int') ; cast to an unsigned type to negate this value to itself
    Fixes : 2879/clusterfuzz-testcase-minimized-6317542639403008

    Found-by : continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg
    Signed-off-by : Michael Niedermayer <michael@niedermayer.cc>

    • [DH] libavcodec/pixlet.c