Recherche avancée

Médias (0)

Mot : - Tags -/xmlrpc

Aucun média correspondant à vos critères n’est disponible sur le site.

Autres articles (50)

  • Utilisation et configuration du script

    19 janvier 2011, par

    Informations spécifiques à la distribution Debian
    Si vous utilisez cette distribution, vous devrez activer les dépôts "debian-multimedia" comme expliqué ici :
    Depuis la version 0.3.1 du script, le dépôt peut être automatiquement activé à la suite d’une question.
    Récupération du script
    Le script d’installation peut être récupéré de deux manières différentes.
    Via svn en utilisant la commande pour récupérer le code source à jour :
    svn co (...)

  • Publier sur MédiaSpip

    13 juin 2013

    Puis-je poster des contenus à partir d’une tablette Ipad ?
    Oui, si votre Médiaspip installé est à la version 0.2 ou supérieure. Contacter au besoin l’administrateur de votre MédiaSpip pour le savoir

  • List of compatible distributions

    26 avril 2011, par

    The table below is the list of Linux distributions compatible with the automated installation script of MediaSPIP. Distribution nameVersion nameVersion number Debian Squeeze 6.x.x Debian Weezy 7.x.x Debian Jessie 8.x.x Ubuntu The Precise Pangolin 12.04 LTS Ubuntu The Trusty Tahr 14.04
    If you want to help us improve this list, you can provide us access to a machine whose distribution is not mentioned above or send the necessary fixes to add (...)

Sur d’autres sites (3771)

  • how to allow a worker to run a ffmpeg command on heroku for my python/django app ?

    10 mars 2013, par GetItDone

    I've been stuck trying to figure this out for weeks. I previously asked a similar question found here but I never got any replies. I really cannot find any good documentation anywhere. All I need to do is use a worker (don't care what worker have django-celery and rq installed) to convert a file to flv when it is uploaded from a form. I was able to get this done easily locally, but after over a week I haven't been able to get it to work no matter what I have tried. I tried adding a tasks.py file for celery, or a worker.py file for rq, and I have no idea what else (if anything) needs to be done, such as in my settings.py or Procfile. My procfile looks like :

    web: gunicorn lftv.wsgi -b 0.0.0.0:$PORT
    celeryd: celery -A tasks worker --loglevel=info
    worker: python worker.py

    My requirements.txt showing what I have installed looks like this :

    Django==1.4.3
    Logbook==0.4.1
    amqp==1.0.6
    anyjson==0.3.3
    billiard==2.7.3.19
    boto==2.6.0
    celery==3.0.13
    celery-with-redis==3.0
    distribute==0.6.31
    dj-database-url==0.2.1
    django-celery==3.0.11
    django-s3-folder-storage==0.1
    django-storages==1.1.6
    gunicorn==0.16.1
    kombu==2.5.4
    pil==1.1.7
    psycopg2==2.4.5
    python-dateutil==1.5
    pytz==2012j
    redis==2.7.2
    requests==1.1.0
    rq==0.3.2
    six==1.2.0
    times==0.6

    The only thing relevant in my settings.py are as follows :

    BROKER_BACKEND = 'django'
    BROKER_URL = #For this I copy/pasted the code from my redistogo add-on from heroku. Not sure if correct
    BROKER_TRANSPORT_OPTIONS = {'visibility_timeout': 1800}

    Without trying to take up too much more space, my tasks.py looks like this :

    import subprocess

    @task
    def ffmpeg_conversion(input_file):
       converted_file = subprocess.call(input_file)
       return converted_file

    I use S3 to store my static and media files, and the upload works (adding uploads to my bucket), however no matter what I try the conversion never will. Is there a good tutorial for absolute beginners ? I followed the heroku redis tutorial, celery docs, rq docs, and whatever else I can find, and got the examples to work, but the worker will not execute the command from my view. For example one of the many things I tried :

    ...
    ffmpeg = "ffmpeg -i %s -acodec mp3 -ar 22050 -f flv -s 320x240 %s" % (sourcefile, targetfile)
    ffmpegresult = ffmpeg_conversion.delay(ffmpeg)
    ...

    or using rq

    ...
    q = Queue(connection=conn)
    result = q.enqueue(ffmpeg_conversion, ffmpeg)
    ...

    I seems like it should be simple, however I am completely self-taught and have never deployed a project whatsoever, and there just doesn't seem to be any good documentation or tutorial available for what I am trying to do. I can't judge whether I am completely off and completely missing something significant or relatively close to getting this to work. I really do appreciate any input whatsoever, this is driving me nuts. Thanks in advance.

  • 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

    


  • 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.