Recherche avancée

Médias (17)

Mot : - Tags -/wired

Autres articles (81)

  • MediaSPIP version 0.1 Beta

    16 avril 2011, par

    MediaSPIP 0.1 beta est la première version de MediaSPIP décrétée comme "utilisable".
    Le fichier zip ici présent contient uniquement les sources de MediaSPIP en version standalone.
    Pour avoir une installation fonctionnelle, il est nécessaire d’installer manuellement l’ensemble des dépendances logicielles sur le serveur.
    Si vous souhaitez utiliser cette archive pour une installation en mode ferme, il vous faudra également procéder à d’autres modifications (...)

  • MediaSPIP 0.1 Beta version

    25 avril 2011, par

    MediaSPIP 0.1 beta is the first version of MediaSPIP proclaimed as "usable".
    The zip file provided here only contains the sources of MediaSPIP in its standalone version.
    To get a working installation, you must manually install all-software dependencies on the server.
    If you want to use this archive for an installation in "farm mode", you will also need to proceed to other manual (...)

  • Amélioration de la version de base

    13 septembre 2013

    Jolie sélection multiple
    Le plugin Chosen permet d’améliorer l’ergonomie des champs de sélection multiple. Voir les deux images suivantes pour comparer.
    Il suffit pour cela d’activer le plugin Chosen (Configuration générale du site > Gestion des plugins), puis de configurer le plugin (Les squelettes > Chosen) en activant l’utilisation de Chosen dans le site public et en spécifiant les éléments de formulaires à améliorer, par exemple select[multiple] pour les listes à sélection multiple (...)

Sur d’autres sites (12429)

  • Error:Execution failed for task ':app:dexDebug' when compiling GooglePlayServices with 'org.bytedeco', name : 'javacv'

    9 mars 2016, par Haroon Ahmed

    I’m merging audio with video by compiling compile group : ’org.bytedeco’, name : ’javacv’, version : ’1.1’ and everything works fine.

    But when i try to compile compile 'com.google.android.gms:play-services:8.4.0' with it ,its giving this error

    Error:Execution failed for task ’:app:dexDebug’.
    com.android.ide.common.process.ProcessException : org.gradle.process.internal.ExecException : Process ’command
    ’C :\Program Files\Java\jdk1.7.0_75\bin\java.exe’’ finished with
    non-zero exit value 2

    Build.gradle

    apply plugin: 'com.android.application'

    android {
       compileSdkVersion 23
       buildToolsVersion '23.0.2'

       defaultConfig {
           applicationId "com.app.id"
           minSdkVersion 14
           targetSdkVersion 23
       }

       buildTypes {
           release {
               minifyEnabled true
               proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.txt'
           }
       }

       sourceSets.main {
           jni.srcDirs = []
           jniLibs.srcDir 'src/main/jniLibs'
       }
    }

    dependencies {
       compile group: 'org.bytedeco', name: 'javacv', version: '1.1'
       compile 'com.android.support:appcompat-v7:23.2.0'
       compile 'com.google.android.gms:play-services:8.4.0'
    }
  • What is the best way to fill AVFrame.data

    21 septembre 2015, par Tim Hsu

    I want to transfer opengl framebuffer data to AVCodec as fast as possible.

    I’ve already converted RGB to YUV with shader and read it with glReadPixels

    I still need to fill AVFrame data manually. Is there any better way ?

    AVFrame *frame;
    // Y
    frame->data[0][y*frame->linesize[0]+x] = data[i*3];
    // U
    frame->data[1][y*frame->linesize[1]+x] = data[i*3+1];
    // V
    frame->data[2][y*frame->linesize[2]+x] = data[i*3+2];
  • In my django app, celery task converts uploaded video w/ ffmpeg, but converted video won't save to s3 ?

    29 janvier 2013, par GetItDone

    I use Heroku to host my website, and Amazon s3 to store my static and media files. I have a celery task that converts the video file to flv, but the flv doesn't store anywhere. There isn't any error, just there is no file uploaded to my s3 bucket. How can I force the file to save to my s3 bucket after the conversion ? I'm still pretty new web development in general, and I have been stuck trying to get my video conversion working properly for weeks. To be honest, I'm not even sure that I'm doing the right thing with my task. Here is the code in my celery task :

    @task(name='celeryfiles.tasks.convert_flv')
    def convert_flv(video_id):
       video = VideoUpload.objects.get(pk=video_id)
       filename = video.video_upload
       sourcefile = "%s%s" % (settings.MEDIA_URL, filename)
       vidfilename = "%s.flv" % video.id
       targetfile = "%svideos/flv/%s" % (settings.MEDIA_URL, vidfilename)
       ffmpeg = "ffmpeg -i %s -ar 22050 -f flv -s 320x240 %s" % (sourcefile, targetfile)
       #The next lines are code that I couldn't get to work in place of the line above, and are left commented out.
       #I am open to suggestions or alternatives for this also.
       #ffmpeg = "ffmpeg -i %s -acodec libmp3lame -ar 22050 -f flv -s 320x240 %s" % (sourcefile, targetfile)
       #ffmpeg = "ffmpeg -i %s -acodec mp3 -ar 22050 -f flv -s 320x240 %s" % (sourcefile, targetfile)
       try:
           ffmpegresult = commands.getoutput(ffmpeg)
           print "---------------FFMPEG---------------"
           print "FFMPEGRESULT: %s" % ffmpegresult
       except Exception as e:
           ffmpegresult = None
           print("Failed to convert video file %s to %s" % (sourcefile, targetfile))
           print(traceback.format_exc())
       video.flvfilename = vidfilename
       video.save()

    My view :

    def upload_video(request):
       if request.method == 'POST':
           form = VideoUploadForm(request.POST, request.FILES)
           if form.is_valid():
               video_upload=form.save()
               video_id=video_upload.id
               video_conversion = convert_flv.delay(video_id)
               return HttpResponseRedirect('/current_classes/')
       else:
       ...

    Any advice, insight, or ideas in general would be greatly appreciated. Obviously I am missing something, but I can't figure out what. I have been stuck with different aspects of getting my video conversion to work with ffmpeg using a celery task for weeks. Thanks in advance.