Recherche avancée

Médias (91)

Autres articles (54)

  • (Dés)Activation de fonctionnalités (plugins)

    18 février 2011, par

    Pour 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 (...)

  • Activation de l’inscription des visiteurs

    12 avril 2011, par

    Il est également possible d’activer l’inscription des visiteurs ce qui permettra à tout un chacun d’ouvrir soit même un compte sur le canal en question dans le cadre de projets ouverts par exemple.
    Pour ce faire, il suffit d’aller dans l’espace de configuration du site en choisissant le sous menus "Gestion des utilisateurs". Le premier formulaire visible correspond à cette fonctionnalité.
    Par défaut, MediaSPIP a créé lors de son initialisation un élément de menu dans le menu du haut de la page menant (...)

  • MediaSPIP : Modification des droits de création d’objets et de publication définitive

    11 novembre 2010, par

    Par défaut, MediaSPIP permet de créer 5 types d’objets.
    Toujours par défaut les droits de création et de publication définitive de ces objets sont réservés aux administrateurs, mais ils sont bien entendu configurables par les webmestres.
    Ces droits sont ainsi bloqués pour plusieurs raisons : parce que le fait d’autoriser à publier doit être la volonté du webmestre pas de l’ensemble de la plateforme et donc ne pas être un choix par défaut ; parce qu’avoir un compte peut servir à autre choses également, (...)

Sur d’autres sites (12367)

  • FFMPEG Cannot Init CUDA

    7 novembre 2016, par Alan

    I am working to install ffmpeg with hardware GPU support on a Xenserver virtual server (Ubuntu 16.04). I am following the guide from : http://developer.download.nvidia.com/compute/redist/ffmpeg/1511-patch/FFMPEG-with-NVIDIA-Acceleration-on-Ubuntu_UG_v01.pdf

    While updating the directions for the newest versions of the SDK and versions for 16.04. I have everything built and all seems fine when doing version checks :

    ffmpeg version N-82277-ge2193b5 Copyright (c) 2000-2016 the FFmpeg developers
     built with gcc 5.4.0 (Ubuntu 5.4.0-6ubuntu1~16.04.2) 20160609
     configuration: --prefix=/root/ffmpeg_build --pkg-config-flags=--static
    --extra-cflags=-I/root/ffmpeg_build/include
    --extra-ldflags=-L/root/ffmpeg_build/lib --bindir=/root/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-libvidstab --enable-nonfree --enable-nvenc

    #nvcc --version
    nvcc: NVIDIA (R) Cuda compiler driver
    Copyright (c) 2005-2015 NVIDIA Corporation
    Built on Tue_Aug_11_14:27:32_CDT_2015
    Cuda compilation tools, release 7.5, V7.5.17

    When I try doing the test using the GPU I get this :

    #time ffmpeg -y -i 337.mp4 -vcodec h264_nvenc -b:v 5M -acodec copy OUTPUT.mp4

    Input #0, mov,mp4,m4a,3gp,3g2,mj2, from '337.mp4':
     Metadata:
       major_brand     : isom
       minor_version   : 512
       compatible_brands: isomiso2avc1mp41
       encoder         : Lavf56.25.101
     Duration: 00:00:22.74, start: 0.000000, bitrate: 537 kb/s
       Stream #0:0(eng): Video: h264 (High) (avc1 / 0x31637661), yuv420p, 720x480 [SAR 1:1 DAR 3:2], 434 kb/s, 29.97 fps, 29.97 tbr, 11988 tbn, 59.94 tbc (default)
       Metadata:
         handler_name    : VideoHandler
       Stream #0:1(eng): Audio: mp3 (mp4a / 0x6134706D), 48000 Hz, stereo, s16p, 96 kb/s (default)
       Metadata:
         handler_name    : SoundHandler
    modprobe: ERROR: could not insert 'nvidia_367_uvm': No such device
    [h264_nvenc @ 0x3da6400] Cannot init CUDA
    Stream mapping:
     Stream #0:0 -> #0:0 (h264 (native) -> h264 (h264_nvenc))
     Stream #0:1 -> #0:1 (copy)
    Error while opening encoder for output stream #0:0 - maybe incorrect parameters such as bit_rate, rate, width or height

    In particular I get an error [h264_nvenc @ 0x3da6400] Cannot init CUDA

    I can’t seem to find any info on this. I am not running any desktop GUI, strictly command line trying to accelerate video encoding with a Nvidia GTX 960.

  • Including FFmpeg.framework Into My IOS App

    28 mars, par Alpi

    I'm trying to manually integrate ffmpegkit.framework into my Expo Bare Workflow iOS app (built with React Native + native modules via Xcode) because the ffmpegkit will be deprecated and the binaries will be deleted.

    


    So far

    


      

    • I've downloaded the latest LTS release of FFmpegkit from here.
    • 


    • I've created 3 files : FFmpegModule.m , FFmpegModule.swift and SoundBud-Bridging-Header.
    • 


    • Added the frameworks to my projectDir/ios manually, which shows in my XCode under projectDir/Frameworks
    • 


    • Added all the frameworks into "Frameworks, Libraries and Embedded Content" and make them "Embed and Sign"
    • 


    • As Framework Search Path in Project Settings, I've set it to "$(PROJECT_DIR)" and recursive
    • 


    • In "Build Phases" I've added all the frameworks under "Embed Frameworks",set the destination to "Frameworks" and checked "Code Sign on Copy" to all of them and unchecked "Copy Only When Installing"
    • 


    • Also under "Link Binary With Libraries" I've added all the frameworks and marked them "Required"
    • 


    


    Here are the errors I'm getting :

    


      

    • The framework is not recognized by Swift (No such module 'ffmpegkit')
    • 


    • A build cycle error : Cycle inside SoundBud ; building could produce unreliable results.
Target 'SoundBud' has copy command from '.../Frameworks/ffmpegkit.framework' ...
    • 


    


    Below you can see my swift file and the ffmpegkit module file :
Swift :

    


    import Foundation
import ffmpegkit
import React

@objc(FFmpegModule)
class FFmpegModule: NSObject, RCTBridgeModule {

static func moduleName() -> String {
return "FFmpegModule"
}

@objc
func runCommand(_ command: String, resolver resolve: @escaping RCTPromiseResolveBlock, 
rejecter reject: @escaping RCTPromiseRejectBlock) {
FFmpegKit.executeAsync(command) { session in
  let returnCode = session?.getReturnCode()
  resolve(returnCode?.getValue())
}
}

@objc
static func requiresMainQueueSetup() -> Bool {
return false
}
}


    


    and the module :

    


    framework module ffmpegkit {

header "AbstractSession.h"
header "ArchDetect.h"
header "AtomicLong.h"
header "Chapter.h"
header "FFmpegKit.h"
header "FFmpegKitConfig.h"
header "FFmpegSession.h"
header "FFmpegSessionCompleteCallback.h"
header "FFprobeKit.h"
header "FFprobeSession.h"
header "FFprobeSessionCompleteCallback.h"
header "Level.h"
header "Log.h"
header "LogCallback.h"
header "LogRedirectionStrategy.h"
header "MediaInformation.h"
header "MediaInformationJsonParser.h"
header "MediaInformationSession.h"
header "MediaInformationSessionCompleteCallback.h"
header "Packages.h"
header "ReturnCode.h"
header "Session.h"
header "SessionState.h"
header "Statistics.h"
header "StatisticsCallback.h"
header "StreamInformation.h"
header "ffmpegkit_exception.h"

export *
}


    


    I can provide you with more info if you need it. I've been trying non stop for 7 days and it's driving me crazy. I would appreciate any help greatly

    


  • I can't seem to install opencv2.4.13 for Python3.4 on Mac El Capitan

    1er juin 2016, par ThatProgrammerDude

    This has been driving me nuts. I have been working on this non stop for a week. I have looked at many tutorials online they did not help.

    I have tried so much I don’t even remember what I tried. I can say the last thing I tried though.. which is this video https://www.youtube.com/watch?v=U49CVY8yOxw.

    So I download opencv2.4.13, create the build folder, open cmake, configure, generate and then go to terminal and type in make.

    I get this :

    Richie's Macbook Air:build Richie$ make
    [  2%] Built target zlib
    [  6%] Built target libtiff
    [ 10%] Built target libjpeg
    [ 14%] Built target libjasper
    [ 16%] Built target libpng
    [ 23%] Built target IlmImf
    [ 26%] Built target opencv_core
    [ 31%] Built target opencv_imgproc
    [ 32%] Built target opencv_video
    [ 32%] Built target opencv_flann
    [ 32%] Building CXX object modules/highgui/CMakeFiles/opencv_highgui.dir/src/cap_ffmpeg.cpp.o
    In file included from /Users/Richie/Downloads/opencv-2.4.13/modules/highgui/src/cap_ffmpeg.cpp:45:
    /Users/Richie/Downloads/opencv-2.4.13/modules/highgui/src/cap_ffmpeg_impl.hpp:71:6: error:
         "libswscale is necessary to build the newer OpenCV ffmpeg wrapper"
       #error "libswscale is necessary to build the newer OpenCV ffmpeg wrapper"
        ^
    /Users/Richie/Downloads/opencv-2.4.13/modules/highgui/src/cap_ffmpeg_impl.hpp:481:9: error:
         use of undeclared identifier 'sws_freeContext'
           sws_freeContext(img_convert_ctx);
           ^
    /Users/Richie/Downloads/opencv-2.4.13/modules/highgui/src/cap_ffmpeg_impl.hpp:965:17: error:
         use of undeclared identifier 'SWS_BICUBIC'
                   SWS_BICUBIC,
                   ^
    /Users/Richie/Downloads/opencv-2.4.13/modules/highgui/src/cap_ffmpeg_impl.hpp:998:5: error:
         use of undeclared identifier 'sws_scale'
       sws_scale(
       ^
    /Users/Richie/Downloads/opencv-2.4.13/modules/highgui/src/cap_ffmpeg_impl.hpp:1639:46: error:
         use of undeclared identifier 'SWS_BICUBIC'
                                                SWS_BICUBIC,
                                                ^
    /Users/Richie/Downloads/opencv-2.4.13/modules/highgui/src/cap_ffmpeg_impl.hpp:1645:14: error:
         use of undeclared identifier 'sws_scale'
           if ( sws_scale(img_convert_ctx, input_picture->data,
                ^
    /Users/Richie/Downloads/opencv-2.4.13/modules/highgui/src/cap_ffmpeg_impl.hpp:1693:9: error:
         use of undeclared identifier 'sws_freeContext'
           sws_freeContext(img_convert_ctx);
           ^
    /Users/Richie/Downloads/opencv-2.4.13/modules/highgui/src/cap_ffmpeg_impl.hpp:2290:9: warning:
         ignoring return value of function declared with warn_unused_result
         attribute [-Wunused-result]
           avformat_write_header(oc_, NULL);
           ^~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~
    1 warning and 7 errors generated.
    make[2]: *** [modules/highgui/CMakeFiles/opencv_highgui.dir/src/cap_ffmpeg.cpp.o] Error 1
    make[1]: *** [modules/highgui/CMakeFiles/opencv_highgui.dir/all] Error 2
    make: *** [all] Error 2
    Richie's Macbook Air:build Richie$

    From what I can see, it says

    "libswscale is necessary to build the newer OpenCV ffmpeg wrapper"

    I have tried googling though to no avail, does anyone know ?

    EDIT : I do have ffmpeg installed... (brew).