Recherche avancée

Médias (0)

Mot : - Tags -/presse-papier

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

Autres articles (81)

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

  • Mise à disposition des fichiers

    14 avril 2011, par

    Par défaut, lors de son initialisation, MediaSPIP ne permet pas aux visiteurs de télécharger les fichiers qu’ils soient originaux ou le résultat de leur transformation ou encodage. Il permet uniquement de les visualiser.
    Cependant, il est possible et facile d’autoriser les visiteurs à avoir accès à ces documents et ce sous différentes formes.
    Tout cela se passe dans la page de configuration du squelette. Il vous faut aller dans l’espace d’administration du canal, et choisir dans la navigation (...)

  • Le profil des utilisateurs

    12 avril 2011, par

    Chaque utilisateur dispose d’une page de profil lui permettant de modifier ses informations personnelle. Dans le menu de haut de page par défaut, un élément de menu est automatiquement créé à l’initialisation de MediaSPIP, visible uniquement si le visiteur est identifié sur le site.
    L’utilisateur a accès à la modification de profil depuis sa page auteur, un lien dans la navigation "Modifier votre profil" est (...)

Sur d’autres sites (8098)

  • Revision 83021 : complement a r83018 : ce menu est une variante de rubriques_completes, il ...

    13 juin 2014, par cedric@… — Log

    complement a r83018 : ce menu est une variante de rubriques_completes, il maigrit aussi de 4 parametres

  • How to execute an ffmpeg function using ```ffmpeg-static-electron```

    4 avril 2021, par Radespy

    Thanks in advance.

    


    I'm creating an electron-react-app using electron-forge and want to crop a video file using child_process.execFile() from the main process.

    


    OS : Windows 10 Pro

    


    I've tried the following code in the main process after installing ffmpeg-static-electron package :

    


    const ffmpeg = require('ffmpeg-static-electron');
const { execFile, exec } = require("child_process");

exec(`${ffmpeg.path}`, (error, stdout, stderr) => {
      if (error) {
              console.log(error.message)
            }
            if (stderr) {
              console.log(stderr)
            }
           console.log(stdout)
    })


    


    I get the following output :

    


     'ffmpeg' is not recognized as an internal or external command,
operable program or batch file.
[1]
[1] Command failed: C:\Users\xxxx\Desktop\electron-forge-working-branch-1\node_modules\ffmpeg-static-electron\bin\win\x64\ffmpeg.exe


[1] ffmpeg version 3.0.1 Copyright (c) 2000-2016 the FFmpeg developers
[1]   built with gcc 5.3.0 (GCC)
[1]   configuration: --enable-gpl --enable-version3 --disable-w32threads --enable-avisynth --enable-bzlib --enable-fontconfig --enable-frei0r --enable-gnutls --enable-iconv --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libdcadec --enable-libfreetype --enable-libgme --enable-libgsm --enable-libilbc --enable-libmodplug --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-libopus --enable-librtmp --enable-libschroedinger --enable-libsoxr --enable-libspeex --enable-libtheora --enable-libtwolame --enable-libvidstab --enable-libvo-amrwbenc --enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxavs --enable-libxvid --enable-libzimg --enable-lzma --enable-decklink --enable-zlib
[1]   libavutil      55. 17.103 / 55. 17.103
[1]   libavcodec     57. 24.102 / 57. 24.102
[1]   libavformat    57. 25.100 / 57. 25.100
[1]   libavdevice    57.  0.101 / 57.  0.101
[1]   libavfilter     6. 31.100 /  6. 31.100
[1]   libswscale      4.  0.100 /  4.  0.100
[1]   libswresample   2.  0.101 /  2.  0.101
[1]   libpostproc    54.  0.100 / 54.  0.100
[1] Hyper fast Audio and Video encoder
[1] usage: ffmpeg [options] [[infile options] -i infile]... {[outfile options] outfile}...
[1]
[1] Use -h to get full help or, even better, run 'man ffmpeg'
[1]
[1] ffmpeg version 3.0.1 Copyright (c) 2000-2016 the FFmpeg developers
[1]   built with gcc 5.3.0 (GCC)
[1]   configuration: --enable-gpl --enable-version3 --disable-w32threads --enable-avisynth --enable-bzlib --enable-fontconfig --enable-frei0r --enable-gnutls --enable-iconv --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libdcadec --enable-libfreetype --enable-libgme --enable-libgsm --enable-libilbc --enable-libmodplug --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-libopus --enable-librtmp --enable-libschroedinger --enable-libsoxr --enable-libspeex --enable-libtheora --enable-libtwolame --enable-libvidstab --enable-libvo-amrwbenc --enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxavs --enable-libxvid --enable-libzimg --enable-lzma --enable-decklink --enable-zlib
[1]   libavutil      55. 17.103 / 55. 17.103
[1]   libavcodec     57. 24.102 / 57. 24.102
[1]   libavformat    57. 25.100 / 57. 25.100
[1]   libavdevice    57.  0.101 / 57.  0.101
[1]   libavfilter     6. 31.100 /  6. 31.100
[1]   libswscale      4.  0.100 /  4.  0.100
[1]   libswresample   2.  0.101 /  2.  0.101
[1]   libpostproc    54.  0.100 / 54.  0.100
[1] Hyper fast Audio and Video encoder
[1] usage: ffmpeg [options] [[infile options] -i infile]... {[outfile options] outfile}...
[1]
[1] Use -h to get full help or, even better, run 'man ffmpeg'


    


    The command appears to be failing however, the correct output from ffmpeg is subsequently shown.

    


    Can anyone explain whats happening here ?

    


    I've also run a test function :

    


    execFile(`${ffmpeg.path}`, 
    ['ffmpeg -i test_video.mp4 -vf test_video.webm'], 
    {cwd: './temp'}, 
    (error, stdout, stderr) => {
        if (error) {
          console.log(error.message)
        }
        if (stderr) {
          console.log(stderr)
        }
       console.log(stdout)
      })


    


    and am getting the following message :

    


    [1] 'ffmpeg' is not recognized as an internal or external command,
[1] operable program or batch file.
[1] 
[1] Command failed: C:\Users\xxxx\Desktop\electron-forge-working-branch-1\node_modules\ffmpeg-static-electron\bin\win\x64\ffmpeg.exe ffmpeg -i test_video.mp4 -vf test_video.webm

[1] ffmpeg version 3.0.1 Copyright (c) 2000-2016 the FFmpeg developers
[1]   built with gcc 5.3.0 (GCC)
[1]   configuration: --enable-gpl --enable-version3 --disable-w32threads --enable-avisynth --enable-bzlib --enable-fontconfig --enable-frei0r --enable-gnutls --enable-iconv --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libdcadec --enable-libfreetype --enable-libgme --enable-libgsm --enable-libilbc --enable-libmodplug --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-libopus --enable-librtmp --enable-libschroedinger --enable-libsoxr --enable-libspeex --enable-libtheora --enable-libtwolame --enable-libvidstab --enable-libvo-amrwbenc --enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxavs --enable-libxvid --enable-libzimg --enable-lzma --enable-decklink --enable-zlib
[1]   libavutil      55. 17.103 / 55. 17.103
[1]   libavcodec     57. 24.102 / 57. 24.102
[1]   libavformat    57. 25.100 / 57. 25.100
[1]   libavdevice    57.  0.101 / 57.  0.101
[1]   libavfilter     6. 31.100 /  6. 31.100
[1]   libswscale      4.  0.100 /  4.  0.100
[1]   libswresample   2.  0.101 /  2.  0.101
[1]   libpostproc    54.  0.100 / 54.  0.100


[1] Output #0, webm, to 'ffmpeg -i test_video.mp4 -vf test_video.webm':
[1] 

Output file #0 does not contain any stream
[1]
[1] ffmpeg version 3.0.1 Copyright (c) 2000-2016 the FFmpeg developers
[1]   built with gcc 5.3.0 (GCC)
[1]   configuration: --enable-gpl --enable-version3 --disable-w32threads --enable-avisynth --enable-bzlib --enable-fontconfig --enable-frei0r --enable-gnutls --enable-iconv --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libdcadec --enable-libfreetype --enable-libgme --enable-libgsm --enable-libilbc --enable-libmodplug --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-libopus --enable-librtmp --enable-libschroedinger --enable-libsoxr --enable-libspeex --enable-libtheora --enable-libtwolame --enable-libvidstab --enable-libvo-amrwbenc --enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxavs --enable-libxvid --enable-libzimg --enable-lzma --enable-decklink --enable-zlib
[1]   libavutil      55. 17.103 / 55. 17.103
[1]   libavcodec     57. 24.102 / 57. 24.102
[1]   libavformat    57. 25.100 / 57. 25.100
[1]   libavdevice    57.  0.101 / 57.  0.101
[1]   libavfilter     6. 31.100 /  6. 31.100
[1]   libswscale      4.  0.100 /  4.  0.100
[1]   libswresample   2.  0.101 /  2.  0.101
[1]   libpostproc    54.  0.100 / 54.  0.100
[1] Output #0, webm, to 'ffmpeg -i test_video.mp4 -vf test_video.webm':
[1] Output file #0 does not contain any stream


    


    Again, not sure what I'm doing wrong.

    


    Any help with being able to execute ffmpeg functions from within the Main process would be very much appreciated.

    


    Thanks.

    


  • electron ffmpeg mas build "Illegal instruction : 4"

    8 mars 2021, par Martin

    I am trying to release an electron app on the Mac Apple Store (mas), my electron app uses ffmpeg to render videos. In order to release my app on the mac apple store, It needs to be sandboxed, and by default ffmpeg makes calls to external libraries so I need to statically build ffmpeg and package it with my app. My code is on the 'mas-ffmpeg-fix' branch : https://github.com/MartinBarker/digify/tree/mas-ffmpeg-fix

    


    My static ffmpeg build works before I build my app, but after running electron-builder build --mac, the ffmpeg executable now fails with Illegal instruction: 4

    


    This is the full timeline of building/packaging/submitting my app to the mac apple store and where the error first appears :

    


      

    • In Digify repo :

      


    • 


    • clone, configure, and build static ffpmeg : “sudo rm -rf ffmpeg-mac/ && npm run download-ffmpeg”

      


    • 


    • download-ffmpeg command is inside package.json and runs this :
git clone https://git.ffmpeg.org/ffmpeg.git ffmpeg-mac && cd ffmpeg-mac && ./configure pkg_config='pkg-config --static' --pkg-config-flags='--static' --libdir=/usr/local/lib --extra-version=ntd_20150128 --disable-shared --disable-lzma --enable-gpl --enable-pthreads --enable-nonfree --enable-libass --enable-libfdk-aac  --enable-libmp3lame  --enable-libx264 --enable-static --enable-filters --enable-runtime-cpudetect && make && cd ..

      


    • 


    • Check if any dylibb files in the static ffmpeg build with command : “otool -L ffmpeg-mac/ffmpeg | grep /usr/local”

      


    • 


    • If there are any, move them to folder in desktop, run ‘otool’ again to ensure there are no dynamic libraries, rebuild static ffmpeg.

      


    • 


    • there will now be a folder 'ffmpeg-mac' which contains static versions of ffmpeg and ffprobe

      


    • 


    


    Using ffmpeg with electron UI : works
Using Ffmpeg with command-line command :
/Users/martinbarker/Documents/projects/digify-new/ffmpeg-mac/ffmpeg -h
Works

    


      

    • Build mac mass app with “npm run build-mas“
    • 


    • When this command finishes it will output two files inside the /dist/mas/ folder : Digify.app and Digify-01.20.pkg (or whatever version number it is)
Ffmpeg command-line check :
/Users/martinbarker/Documents/projects/digify-new/dist/mas/Digify.app/Contents/Resources/ffmpeg -h
Illegal instruction : 4
    • 


    


    This is the first place the error appears, after building my mac mac-apple-store app, ffmpeg fails with this err.

    


      

    • Sign built app with .sh file : “sh mas-sign-script.sh”
view .sh file here

        

      • the .sh file will output Digify-mac.pkg
      • 


      


    • 


    • Easier command to both build & sign : “sudo rm -rf dist/mas/ && npm run build-mas && sh mas-sign-script.sh”
    • 


    • Upload the outputted “Digify-mac.pkg” file & submit to apple for review
    • 


    


    Once this app gets published in the store, if you download it and try to run an ffmpeg command with the electron UI, it fails with this error :

    


    /Applications/Digify.app/Contents/Resources/app.asar/node_modules/execa/lib/error.js:59 Uncaught (in promise) Error: Command failed with exit code 1: /Applications/Digify.app/Contents/Resources/ffmpeg -i /Users/martinbarker/Downloads/Felix Lebarty - Bobo/01. Bobo.mp3 -y -filter_complex concat=n=1:v=0:a=1 -c:a libmp3lame -b:a 320k /Users/martinbarker/Downloads/Felix Lebarty - Bobo/output-064237.mp3
ffmpeg version N-101191-g51a9f487ae-ntd_20150128 Copyright (c) 2000-2021 the FFmpeg developers
  built with Apple LLVM version 10.0.1 (clang-1001.0.46.4)
  configuration: pkg_config='pkg-config --static' --pkg-config-flags=--static --libdir=/usr/local/lib --extra-version=ntd_20150128 --disable-shared --disable-lzma --enable-gpl --enable-pthreads --enable-nonfree --disable-libass --enable-libfdk-aac --enable-libmp3lame --enable-libx264 --enable-static --enable-filters --enable-runtime-cpudetect
  libavutil      56. 65.100 / 56. 65.100
  libavcodec     58.125.100 / 58.125.100
  libavformat    58. 68.100 / 58. 68.100
  libavdevice    58. 12.100 / 58. 12.100
  libavfilter     7.107.100 /  7.107.100
  libswscale      5.  8.100 /  5.  8.100
  libswresample   3.  8.100 /  3.  8.100
  libpostproc    55.  8.100 / 55.  8.100
[mp3 @ 0x7feeae809c00] Estimating duration from bitrate, this may be inaccurate
Input #0, mp3, from '/Users/martinbarker/Downloads/Felix Lebarty - Bobo/01. Bobo.mp3':
  Metadata:
    comment         : 
    album           : Bobo
    artist          : Felix Lebarty
    title           : Funkytown Eklablog
    genre           : Boogie
    date            : 1984
  Duration: 00:05:19.53, start: 0.000000, bitrate: 320 kb/s
  Stream #0:0: Audio: mp3, 44100 Hz, stereo, fltp, 320 kb/s
/Users/martinbarker/Downloads/Felix Lebarty - Bobo/output-064237.mp3: Operation not permitted
    at makeError (/Applications/Digify.app/Contents/Resources/app.asar/node_modules/execa/lib/error.js:59)
    at handlePromise (/Applications/Digify.app/Contents/Resources/app.asar/node_modules/execa/index.js:114)
    at async file:/Applications/Digify.app/Contents/Resources/app.asar/src/js/newindex.js:1162


    


    Command failed with exit code 1: Operation not permitted