Recherche avancée

Médias (91)

Autres articles (112)

  • Script d’installation automatique de MediaSPIP

    25 avril 2011, par

    Afin de palier aux difficultés d’installation dues principalement aux dépendances logicielles coté serveur, un script d’installation "tout en un" en bash a été créé afin de faciliter cette étape sur un serveur doté d’une distribution Linux compatible.
    Vous devez bénéficier d’un accès SSH à votre serveur et d’un compte "root" afin de l’utiliser, ce qui permettra d’installer les dépendances. Contactez votre hébergeur si vous ne disposez pas de cela.
    La documentation de l’utilisation du script d’installation (...)

  • Demande de création d’un canal

    12 mars 2010, par

    En fonction de la configuration de la plateforme, l’utilisateur peu avoir à sa disposition deux méthodes différentes de demande de création de canal. La première est au moment de son inscription, la seconde, après son inscription en remplissant un formulaire de demande.
    Les deux manières demandent les mêmes choses fonctionnent à peu près de la même manière, le futur utilisateur doit remplir une série de champ de formulaire permettant tout d’abord aux administrateurs d’avoir des informations quant à (...)

  • La sauvegarde automatique de canaux SPIP

    1er avril 2010, par

    Dans le cadre de la mise en place d’une plateforme ouverte, il est important pour les hébergeurs de pouvoir disposer de sauvegardes assez régulières pour parer à tout problème éventuel.
    Pour réaliser cette tâche on se base sur deux plugins SPIP : Saveauto qui permet une sauvegarde régulière de la base de donnée sous la forme d’un dump mysql (utilisable dans phpmyadmin) mes_fichiers_2 qui permet de réaliser une archive au format zip des données importantes du site (les documents, les éléments (...)

Sur d’autres sites (11900)

  • Syntax error : "(" unexpected — with !(*.sh) in bash script [duplicate]

    25 janvier 2023, par Jmv Jmv

    I want to run a sh file :

    



    #!/bin/bash
for f in !(*.sh); do
    ffmpeg -i "$f" -vf yadif=0:-1 -threads 0 -c:v libx264 -pix_fmt yuv420p \
        -r 29.97 -b:v 3000k -s 1280x720 -preset:v slow -profile:v Main \
        -level 3.1 -bf 2 -movflags faststart /mnt/media/out-mp4/"${f%.mxf}.mp4"
    rm $f
done


    



    However, I get the following error :

    



    2: task1.sh: Syntax error: "(" unexpected


    



    If I try directly on the command line it works perfectly.

    



    


    the path and permissions are already reviewed

    


    



    Any idea what might be happening ?

    


  • "Error configuring filters" FFmpeg issue while using Vogon

    8 juillet 2018, par Jk425

    Prerequisites :

    vogon, python 2.7, ffmpeg 2.3.6(newer versions caused + one more error :
    "Error configuring complex filters" due to vogon outdate itself, i
    suppose)

    sample_project/
       ├── adwords_video_csv.py
       ├── adwords_video_csv.pyc
       ├── assets
       │   ├── car_ad.mp4
       │   ├── README.txt
       │   └── vogon.png
       ├── edit_config.py
       ├── output
       │   └── README.txt
       ├── sample.csv
       ├── sample.json
       ├── sample_win.json
       ├── vogon.py
       ├── vogon.pyc
       ├── yt_upload.py
       └── yt_upload.pyc

    Getting such a message after executing command :

    python vogon.py sample.json --noauth_local_webserver
    Input #1, image2, from 'assets/vogon.png':
     Duration: 00:00:00.04, start: 0.000000, bitrate: N/A
       Stream #1:0: Video: png, rgba, 400x223 [SAR 2835:2835 DAR 400:223], 25 tbr, 25 tbn, 25 tbc
    [Parsed_movie_1 @ 0x1b35480] Failed to avformat_open_input '/tmp/vogon_Ql9UW7.gif'
    [AVFilterGraph @ 0x1af08e0] Error initializing filter 'movie' with args '/tmp/vogon_Ql9UW7.gif'
    Error configuring filters.
    vogon.py -h:

    positional arguments:
     config_file           Configuration JSON file

    optional arguments:
     -h, --help            show this help message and exit
     --auth_host_name AUTH_HOST_NAME
                           Hostname when running a local web server.
     --noauth_local_webserver
                           Do not run a local web server.
     --auth_host_port [AUTH_HOST_PORT [AUTH_HOST_PORT ...]]
                           Port web server should listen on.
     --logging_level {DEBUG,INFO,WARNING,ERROR,CRITICAL}
                           Set the logging level of detail.
     --youtube_upload      Upload generated videos to YouTube
     --preview_line PREVIEW_LINE
                           Generate only one video, for the given CSV line number

    Makes me think it is an ffmgep issue. What could it be ?

  • converting a "gif" to video using swift

    3 décembre 2019, par James Woodrow

    I’ve looked around and found a few things here and there, mainly that I should be using AVAssetWriter to do this but I have 0 experience with this and video editing/creation so it doesn’t help me much since I can’t seem to find anything that does something I can modify easily (or not at my level of knowledge at least) so that it works as I intend it to.

    I have an app which takes n photos every cft (capture frame time which I get from a backend server) seconds (it’s a double for obvious reasons) I then display these frames using a UIImageView and the frames change every dft (display frame time which I also get from a backend server and can be different from cft). Up until this point nothing complicated.

    now what is currently the workflow is that these frames are sent back to a server with any relevant information I want and then the server would use imagemagick to create a real gif file and ffmpeg to create a 15 seconds video using said gif.

    the issue is this makes it so that my heroku server bills aren’t as low as I would like because of the limited memory on the dynos and the time it takes to generate these videos is of about 5-10 seconds I believe (not sure but it’s longer than I’d like)

    So the idea I had was to make the app create the video since he already has all the information he needs for this, and then simply upload it with the rest of the frames and relevant data. Using bandwidth nowadays is much cheaper than buying extra processing power on a server.

    • he has n frames to loop over
    • he has a float value representing how long each frame should last dft
    • he has a gpu or at least a much better cpu than the dynos heroku have to offer

    I’ve also looked around to see if anyone made an extensive tutorial on how to use ffmpeg in swift but I still didn’t find anything at my level and I didn’t even find a tutorial per se, only some GitHub projects which were partially completed and/or without the original tutorial linked to understand the thought process.

    I would appreciate any tips/code sample/tutorials on the subject.

    I’m adding the ffmpeg command line equivalent to what I would love to be able to do (if I could use ffmpeg directly with iOS this could be nice too)

    ffmpeg -framerate 100/13 -loop 1 -i frame%02d.png -c:v libx264 -r 100/13 -pix_fmt yuv420p -t 0:15 instagram.mp4

    where basically I did 100 / (dft * 100) for the input frame rate and just output at the same fps for 15 seconds. by the way if there are any ways to optimise this command to make it run faster without losing quality I might be able to keep the current way of functioning with heroku although I would still prefer some iOS solution.