Recherche avancée

Médias (91)

Autres articles (104)

  • Multilang : améliorer l’interface pour les blocs multilingues

    18 février 2011, par

    Multilang est un plugin supplémentaire qui n’est pas activé par défaut lors de l’initialisation de MediaSPIP.
    Après son activation, une préconfiguration est mise en place automatiquement par MediaSPIP init permettant à la nouvelle fonctionnalité d’être automatiquement opérationnelle. Il n’est donc pas obligatoire de passer par une étape de configuration pour cela.

  • MediaSPIP v0.2

    21 juin 2013, par

    MediaSPIP 0.2 est la première version de MediaSPIP stable.
    Sa date de sortie officielle est le 21 juin 2013 et est annoncée ici.
    Le fichier zip ici présent contient uniquement les sources de MediaSPIP en version standalone.
    Comme pour la version précédente, 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 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 (...)

Sur d’autres sites (12784)

  • tf.contrib.signal.stft returns an empty matrix

    9 décembre 2017, par matt-pielat

    This is the piece of code I run :

    import tensorflow as tf

    sess = tf.InteractiveSession()

    filename = 'song.mp3' # 30 second mp3 file
    SAMPLES_PER_SEC = 44100

    audio_binary = tf.read_file(filename)

    pcm = tf.contrib.ffmpeg.decode_audio(audio_binary, file_format='mp3', samples_per_second=SAMPLES_PER_SEC, channel_count = 1)
    stft = tf.contrib.signal.stft(pcm, frame_length=1024, frame_step=512, fft_length=1024)

    sess.close()

    The mp3 file is properly decoded because print(pcm.eval().shape) returns :

    (1323119, 1)

    And there are even some actual non-zero values when I print them with print(pcm.eval()[1000:1010]) :

    [[ 0.18793298]
    [ 0.16214484]
    [ 0.16022217]
    [ 0.15918455]
    [ 0.16428113]
    [ 0.19858395]
    [ 0.22861415]
    [ 0.2347789 ]
    [ 0.22684409]
    [ 0.20728172]]

    But for some reason print(stft.eval().shape) evaluates to :

    (1323119, 0, 513) # why the zero dimension?

    And therefore print(stft.eval()) is :

    []

    According to this the second dimension of the tf.contrib.signal.stft output is equal to the number of frames. Why are there no frames though ?

  • using ffmpeg to automate splitting video into quarters and stacking

    14 novembre 2017, par user3297049

    I need to create a quick FFMPEG batch file that takes a very wide video file and splits it into quarters (dimension wise not time wise), then outputting a file where each quarter is under the previous.

    E.g.

    A B C D

    Would become :

    A
    B
    C
    D

    I know this should be possible with crop and pad commands, and through research I’ve found that someone divided into quarters and put the top left and bottom right next to each other horizontally using :

    "%~dp0\ffmpeg.exe" -i %1 -filter_complex "[0:0]crop=iw/2:ih/2:0:0,pad=iw*2:ih:0:0[tl];[0:0]crop=iw/2:ih:iw/2:ih/2[br];[tl][br]overlay=W/2" -b:v 32000k -b:a 128k %1_2.avi

    Can anyone help as the command line is beyond me ?

  • cant upload a .webm file after recording

    14 octobre 2017, par Syed Abdur Rehman Kazmi

    I kinda seem to stuck on something. I am missing something i dont know. I have uploaded a lot of files but somehow when i recorded this file via my laptop camera browser and try to upload it.. it doesnt.. I am also using ffmpeg to convert it.

    Laravel 5.4
    vuejs
    ffmpeg

    These are the tools involved the error i am getting is the file doesnt exist in local temp folder. ( i have checked it IS NOT there i dont understand why )

    This is the code i am using :

           $input = $request->only('video' , 'url' , 'blob');
       $input['file'] =$request->file('blob');

       $ffmpeg = FFMpeg::create([
           'ffmpeg.binaries'  => 'C:/FFmpeg/bin/ffmpeg.exe',
           'ffprobe.binaries' => 'C:/FFmpeg/bin/ffprobe.exe'
       ]);
       $video = $ffmpeg->open($input['file']);
       $video
           ->filters()
           ->resize(new Dimension(320, 240))
           ->synchronize();
       $video
           ->frame(TimeCode::fromSeconds(10))
           ->save('frame.jpg');
       $video
           ->save(new Video\X264(), 'export-x264.mp4')
           ->save(new Video\WMV(), 'export-wmv.wmv')
           ->save(new Video\WebM(), 'export-webm.webm');

    This is the error :

    Unable to probe C :\Users\KAZMI\AppData\Local\Temp\php4155.tmp

    ffprobe failed to execute command "C :/FFmpeg/bin/ffprobe.exe" C :\Users\KAZMI\AppData\Local\Temp\php4155.tmp -show_streams -print_format json

    and this is the input data :

    array:4 [  "video" => "video_7192228.webm"  "url" => "blob:http://localhost:8080/c319e0bf-7217-4916-90b6-c9cba800b7da"  "blob" => UploadedFile {#421    -test: false    -originalName: "blob"    -mimeType: "video/webm"    -size: 0    -error: 0    #hashName: null    path: "C:\Users\KAZMI\AppData\Local\Temp"    filename: "php8B7D.tmp"    basename: "php8B7D.tmp"    pathname: "C:\Users\KAZMI\AppData\Local\Temp\php8B7D.tmp"    extension: "tmp"    realPath: "C:\Users\KAZMI\AppData\Local\Temp\php8B7D.tmp"    aTime: 2017-10-14 14:20:24    mTime: 2017-10-14 14:20:24    cTime: 2017-10-14 14:20:24    inode: 0    size: 0    perms: 0100666    owner: 0    group: 0    type: "file"    writable: true    readable: true    executable: false    file: true    dir: false    link: false    linkTarget: "C:\Users\KAZMI\AppData\Local\Temp\php8B7D.tmp"  }  "file" => UploadedFile {#421}]