Recherche avancée

Médias (0)

Mot : - Tags -/flash

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

Autres articles (111)

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

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

  • Les autorisations surchargées par les plugins

    27 avril 2010, par

    Mediaspip core
    autoriser_auteur_modifier() afin que les visiteurs soient capables de modifier leurs informations sur la page d’auteurs

Sur d’autres sites (4414)

  • FFMPEG/FFPLAY Dual screen with live RTMP Filter

    28 février 2016, par Dennis Bijsterveld

    What I’m trying to do is getting a RTMP input and apply 2 filters to the same input source and having them next to eachother. To check both EBUR128 levels and waveforms. Problem that I’m getting is that I can’t mix them together.

    Filters :
    EBU R128 (I would love to have a graphical EBU R128 meter.)
    Example :

    ffplay -f lavfi -i "amovie=input.mp3,ebur128=video=1:meter=18
    [out0][out1]"

    And a waveform to check broadcast levels.

    ffplay -i http://download.blender.org/peach/bigbuckbunny_movies/big_buck_bunny_480p_surround-fix.avi -vf "split[a][b] ;[a]format=gray,waveform,split[c][d] ;[b]pad=iw:ih+256[padded] ;[c]geq=g=1:b=1[red] ;[d]geq=r=1:b=1,crop=in_w:220:0:16[mid] ;[red][mid]overlay=0:16[wave] ;[padded][wave]overlay=0:H-h"

  • Moviepy : subclip fails when iterating through CSV

    5 mai 2016, par user3316291

    I am trying to randomize the order of video clips based on timing from a CSV file and then reassemble the randomized clips into a single video. However, I am receiving an error in the loop that iterates through each clip timing to create the subclip.

    Here is what my CSV looks like :

    00:00:32.18,00:00:52.10,1
    00:00:52.11,00:00:56.09,2
    00:00:56.10,00:00:58.15,3
    00:00:58.16,00:01:05.16,4
    00:01:05.17,00:01:16.04,5

    column 1 is clip onset
    column 2 is clip offset
    column 3 is scene number that I use to randomize

    Here is my code :

    import os
    import csv
    import numpy as np
    from moviepy.editor import *

    f = open('SceneCuts.csv')
    csv_f = csv.reader(f)

    scenes = []
    ons = []
    offs = []
    for row in csv_f:
       ons.append(row[0])
       offs.append(row[1])
       scenes.append(row[2])

    r_scene = scenes
    np.random.seed(1000)
    np.random.shuffle(r_scene)
    r_scene = map(int, r_scene)

    clip = VideoFileClip("FullVideo.m4v")

    temp = []
    for row in r_scene:
       print(row)
       temp.append(clip.subclip(ons[row-1], offs[row-1]))

    catclip = concatenate_videoclips(temp)
    catclip_resize = catclip.resize((1024,576))
    catclip_resize.write_videofile("RandomVideo.mp4")

    Here is the output, error occurs at line 29 (temp.append)

    File "/Users/Dustin/anaconda/lib/python2.7/site-packages/moviepy/video/io/ffmpeg_reader.py", line 87, in initialize
    self.proc = sp.Popen(cmd, **popen_params)

    File "/Users/Dustin/anaconda/lib/python2.7/subprocess.py", line 710, in __init__
    errread, errwrite)

    File "/Users/Dustin/anaconda/lib/python2.7/subprocess.py", line 1316, in _execute_child
    data = _eintr_retry_call(os.read, errpipe_read, 1048576)

    File "/Users/Dustin/anaconda/lib/python2.7/subprocess.py", line 476, in _eintr_retry_call
    return func(*args)

    OSError: [Errno 22] Invalid argument

    Based on my research, it appears to be something regarding child processes and subprocess.Popen, but I can’t figure it out. Thanks !

    EDIT to add new information :
    I have been running the above script in Spyder (anaconda) and receiving the above errors. However, when I run from a terminal or sublime (cmd+b), the code "works". It runs and I do not get the above error, however, the resulting video file is a mess. There are multiple conflicting audio tracks that shouldn’t be there. I am not sure what is going on in Spyder, but I’d love to know. Also, I still need to fix the audio problem.

  • Combine 2 mp3 files by using FFmpeg

    6 janvier 2016, par sajadmartiny

    I need to combine two mp3 files by using ffMpeg.
    I use this code, but it doesn’t work

    I want to execute this

    ffmpeg -i input1.mp3 -i input2.mp3 -filter_complex amerge -c:a libmp3lame -q:a 4 output.mp3

    Why isn’t my code working ?

    and my complete output log , problem Unknown encoder ’libmp3lame’

           01-06 11:48:13.560 6119-6472/com.uraroji.garage.android.mp3recvoice D/test: shellout ffmpeg version n2.4.2 Copyright (c) 2000-2014 the FFmpeg developers
    01-06 11:48:13.560 6119-6472/com.uraroji.garage.android.mp3recvoice D/test: shellout   built on Oct  7 2014 15:05:17 with gcc 4.8 (GCC)
    01-06 11:48:13.560 6119-6472/com.uraroji.garage.android.mp3recvoice D/test: shellout   configuration: --target-os=linux --cross-prefix=/home/sb/Source-Code/ffmpeg-android/toolchain-android/bin/arm-linux-androideabi- --arch=arm --cpu=cortex-a8 --enable-runtime-cpudetect --sysroot=/home/sb/Source-Code/ffmpeg-android/toolchain-android/sysroot --enable-pic --enable-libx264 --enable-libass --enable-libfreetype --enable-libfribidi --enable-fontconfig --enable-pthreads --disable-debug --disable-ffserver --enable-version3 --enable-hardcoded-tables --disable-ffplay --disable-ffprobe --enable-gpl --enable-yasm --disable-doc --disable-shared --enable-static --pkg-config=/home/sb/Source-Code/ffmpeg-android/ffmpeg-pkg-config --prefix=/home/sb/Source-Code/ffmpeg-android/build/armeabi-v7a --extra-cflags='-I/home/sb/Source-Code/ffmpeg-android/toolchain-android/include -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2 -fno-strict-overflow -fstack-protector-all' --extra-ldflags='-L/home/sb/Source-Code/ffmpeg-android/toolchain-android/lib -Wl,-z,relro -Wl,-z,now -pie' --extra-libs='-lpng -lexpat -lm' --extra-cxxflags=
    01-06 11:48:13.560 6119-6472/com.uraroji.garage.android.mp3recvoice D/test: shellout   libavutil      54.  7.100 / 54.  7.100
    01-06 11:48:13.560 6119-6472/com.uraroji.garage.android.mp3recvoice D/test: shellout   libavcodec     56.  1.100 / 56.  1.100
    01-06 11:48:13.560 6119-6472/com.uraroji.garage.android.mp3recvoice D/test: shellout   libavformat    56.  4.101 / 56.  4.101
    01-06 11:48:13.560 6119-6472/com.uraroji.garage.android.mp3recvoice D/test: shellout   libavdevice    56.  0.100 / 56.  0.100
    01-06 11:48:13.560 6119-6472/com.uraroji.garage.android.mp3recvoice D/test: shellout   libavfilter     5.  1.100 /  5.  1.100
    01-06 11:48:13.560 6119-6472/com.uraroji.garage.android.mp3recvoice D/test: shellout   libswscale      3.  0.100 /  3.  0.100
    01-06 11:48:13.560 6119-6472/com.uraroji.garage.android.mp3recvoice D/test: shellout   libswresample   1.  1.100 /  1.  1.100
    01-06 11:48:13.560 6119-6472/com.uraroji.garage.android.mp3recvoice D/test: shellout   libpostproc    53.  0.100 / 53.  0.100
    01-06 11:48:13.572 6119-6472/com.uraroji.garage.android.mp3recvoice D/test: shellout Input #0, mp3, from '/storage/emulated/0/a.mp3':
    01-06 11:48:13.572 6119-6472/com.uraroji.garage.android.mp3recvoice D/test: shellout   Metadata:
    01-06 11:48:13.572 6119-6472/com.uraroji.garage.android.mp3recvoice D/test: shellout     title           : Creep
    01-06 11:48:13.572 6119-6472/com.uraroji.garage.android.mp3recvoice D/test: shellout     album           : Pablo Honey
    01-06 11:48:13.572 6119-6472/com.uraroji.garage.android.mp3recvoice D/test: shellout     track           : 2/13
    01-06 11:48:13.572 6119-6472/com.uraroji.garage.android.mp3recvoice D/test: shellout     disc            : 1/1
    01-06 11:48:13.572 6119-6472/com.uraroji.garage.android.mp3recvoice D/test: shellout     artist          : Radiohead
    01-06 11:48:13.572 6119-6472/com.uraroji.garage.android.mp3recvoice D/test: shellout     genre           : Alternative
    -06 11:48:13.572 6119-6472/com.uraroji.garage.android.mp3recvoice D/test: shellout     publisher       : EMI Music Distribution
    -06 11:48:13.572 6119-6472/com.uraroji.garage.android.mp3recvoice D/test: shellout     album_artist    : Radiohead
    01-06 11:48:13.572 6119-6472/com.uraroji.garage.android.mp3recvoice D/test: shellout     composer        : Colin Greenwood/Ed O'Brien/Jonny Greenwood/Phil Selway/Thom Yorke
    01-06 11:48:13.572 6119-6472/com.uraroji.garage.android.mp3recvoice D/test: shellout     date            : 1993
    01-06 11:48:13.572 6119-6472/com.uraroji.garage.android.mp3recvoice D/test: shellout   Duration: 00:03:55.91, start: 0.025057, bitrate: 320 kb/s
    01-06 11:48:13.572 6119-6472/com.uraroji.garage.android.mp3recvoice D/test: shellout     Stream #0:0: Audio: mp3, 44100 Hz, stereo, s16p, 320 kb/s
    01-06 11:48:13.573 6119-6472/com.uraroji.garage.android.mp3recvoice D/test: shellout     Metadata:
    01-06 11:48:13.573 6119-6472/com.uraroji.garage.android.mp3recvoice D/test: shellout       encoder         : LAME3.97
    01-06 11:48:13.577 6119-6472/com.uraroji.garage.android.mp3recvoice D/test: shellout [mp3 @ 0x2b403a90] Estimating duration from bitrate, this may be inaccurate
    01-06 11:48:13.577 6119-6472/com.uraroji.garage.android.mp3recvoice D/test: shellout Input #1, mp3, from '/storage/emulated/0/b.mp3':
    01-06 11:48:13.577 6119-6472/com.uraroji.garage.android.mp3recvoice D/test: shellout   Metadata:
    01-06 11:48:13.577 6119-6472/com.uraroji.garage.android.mp3recvoice D/test: shellout     title           : This is Love                  
    01-06 11:48:13.577 6119-6472/com.uraroji.garage.android.mp3recvoice D/test: shellout     artist          : Chirs de Burgh                
    01-06 11:48:13.577 6119-6472/com.uraroji.garage.android.mp3recvoice D/test: shellout     album           : This Way Up                  
    01-06 11:48:13.577 6119-6472/com.uraroji.garage.android.mp3recvoice D/test: shellout     date            : 1994
    01-06 11:48:13.577 6119-6472/com.uraroji.garage.android.mp3recvoice D/test: shellout     comment         :                              
    01-06 11:48:13.577 6119-6472/com.uraroji.garage.android.mp3recvoice D/test: shellout   Duration: 00:03:47.67, start: 0.000000, bitrate: 128 kb/s
    01-06 11:48:13.577 6119-6472/com.uraroji.garage.android.mp3recvoice D/test: shellout     Stream #1:0: Audio: mp3, 44100 Hz, stereo, s16p, 128 kb/s
    01-06 11:48:13.579 6119-6472/com.uraroji.garage.android.mp3recvoice D/test: shellout Unknown encoder 'libmp3lame'
    01-06 11:48:13.580 6119-6473/com.uraroji.garage.android.mp3recvoice D/dalvikvm: threadid=14: exiting
    01-06 11:48:13.580 6119-6473/com.uraroji.garage.android.mp3recvoice D/dalvikvm: threadid=14: bye!
    01-06 11:48:13.580 6119-6119/com.uraroji.garage.android.mp3recvoice D/test: processComplete 1
    01-06 11:48:13.580 6119-6472/com.uraroji.garage.android.mp3recvoice D/dalvikvm: threadid=13: exiting
    01-06 11:48:13.581 6119-6472/com.uraroji.garage.android.mp3recvoice D/dalvikvm: threadid=13: bye!