Recherche avancée

Médias (1)

Mot : - Tags -/ogv

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

  • Installation en mode standalone

    4 février 2011, par

    L’installation de la distribution MediaSPIP se fait en plusieurs étapes : la récupération des fichiers nécessaires. À ce moment là deux méthodes sont possibles : en installant l’archive ZIP contenant l’ensemble de la distribution ; via SVN en récupérant les sources de chaque modules séparément ; la préconfiguration ; l’installation définitive ;
    [mediaspip_zip]Installation de l’archive ZIP de MediaSPIP
    Ce mode d’installation est la méthode la plus simple afin d’installer l’ensemble de la distribution (...)

  • (Dés)Activation de fonctionnalités (plugins)

    18 février 2011, par

    Pour gérer l’ajout et la suppression de fonctionnalités supplémentaires (ou plugins), MediaSPIP utilise à partir de la version 0.2 SVP.
    SVP permet l’activation facile de plugins depuis l’espace de configuration de MediaSPIP.
    Pour y accéder, il suffit de se rendre dans l’espace de configuration puis de se rendre sur la page "Gestion des plugins".
    MediaSPIP est fourni par défaut avec l’ensemble des plugins dits "compatibles", ils ont été testés et intégrés afin de fonctionner parfaitement avec chaque (...)

Sur d’autres sites (21689)

  • Convert Audio to Video (with Poster) and Convert Audio for HLS (Laravel-FFMpeg)

    4 octobre 2020, par m_zanjani

    I implemented a code with Laravel and used Laravel-FFMpeg for media processing.
I could not find the answers to my questions so I am asking them here and I hope someone can help me.

    


      

    • How can I convert an audio file (wav, mp3, etc.) to a video file
(mp4) using Laravel-FFmpeg or PHP-FFMpeg (with an image as a
poster) ?
    • 


    


    // something like this command
ffmpeg -loop 1 -i image.jpg -i audio.wav -c:v libx264 -tune stillimage 
-c:a aac -b:a 192k -pix_fmt yuv420p -shortest out.mp4


    


      

    • How can I convert an audio file (wav, mp3, etc.) to HLS using Laravel-FFmpeg or PHP-FFMpeg ?

        

      • I did this correctly for the video file and I had no problem but I
did not see a sample for the audio file.
      • 


      • Is it possible to stream an audio file and convert it to HLS (making ts and m3u8 files) ? I mean, do I need to create HLS files to stream audio files on players like Video.js ? Does streaming an audio file make sense ?
      • 


      • Do we need to convert the audio file to a video file first and then build the HLS, or can we build the HLS directly ?
      • 


      


    • 


    • With this package, can a watermark be placed on a photo ? Or wrote a text on it (drawtext command) ?
    • 


    • How to add album art (jpg) to audio file (mp3) using this package ?
    • 


    


    // something like this command
ffmpeg -i in.mp3 -i test.png -map 0:0 -map 1:0 -c copy -id3v2_version 3 -metadata:s:v 
title="Album cover" -metadata:s:v comment="Cover (front)" out.mp3


    


    If you provide a sample code of this package or PHP-FFMpeg for the above three questions, I would be grateful.

    


    Thank You

    


  • Evolution #3770 : Logo des articles sur les listes

    17 février 2021, par b b

    nicod _ a écrit :

    Je pensais cibler tous les td.logo, mais en fait non, il ne faut pas, ils n’ont pas tous cette dimension.

    Ha, tu es tombé sur quel type de cas foireux ? (comme c’est en mode cover, au pire ça remplira avec une image dégradé si c’est plus grand)

  • FFmpeg, low quality merge using overlay filter [closed]

    24 mars, par He2A

    I am currently building a script, part of its functionality is to generate a cover art. I want to limit the scripts dependency to ffmpeg only so please don't suggest to use any other software to do the same.

    


    For this, I am using ffmpeg to generate separate components for the coverart, code is given below :

    


    # Draws transparent circle in correct background
ffmpeg -y -f lavfi -i "color=c=0x20292FFF:s=4000x4000,format=rgba" -filter_complex "geq=r='32':g='41':b='47':a='255*(1-between(hypot(X-2000,Y-2000),0,1150))'" -frames:v 1 -update 1 background.png

# Draws a circle gradient
ffmpeg -y -f lavfi -i "gradients=s=4000x4000:c0=0x33517e:c1=0x645098:c2=0xa53f97:c3=0xdf1177:c4=0xff033e:c5=0x2f4858:n=5:y0=750:x0=750:y1=3250:x1=3250:t=linear,format=rgba" -filter_complex "geq=g='g(X,Y)':a='255*between(hypot(X-2000,Y-2000),0,1200)'" -frames:v 1 -update 1 gradcir.png

# Draws the inner symbol
ffmpeg -y -f lavfi -i "color=c=0x20292FFF:s=4000x4000,format=rgba" -vf "geq=a='255*max(lte((X-2000+(530/3)+25)+sqrt(3)*abs(Y-2000),530)*gte(X-2000+(530/3)+25,0),between(hypot(X-2000,Y-2000),570,630))':r='255*max(lte((X-2000+(530/3)+25)+sqrt(3)*abs(Y-2000),530)*gte(X-2000+(530/3)+25,0),between(hypot(X-2000,Y-2000),570,630))':g='255*max(lte((X-2000+(530/3)+25)+sqrt(3)*abs(Y-2000),530)*gte(X-2000+(530/3)+25,0),between(hypot(X-2000,Y-2000),570,630))':b='255*max(lte((X-2000+(530/3)+25)+sqrt(3)*abs(Y-2000),530)*gte(X-2000+(530/3)+25,0),between(hypot(X-2000,Y-2000),570,630))'" -frames:v 1 shape.png


    


    Now to merge all three pngs, I am using the following command :

    


    ffmpeg -y -i background.png -i gradcir.png -i shape.png -filter_complex "[0][1]overlay[tmp];[tmp][2]overlay" cover.png


    


    All the code works but the problem is that the output is severely low quality with banding and improper merges in the borders of each image.

    


    I believe png is lossless so there shouldn't be any issue with artifacts but still I experimented with different levels of png compression but to no avail. I even tried enforcing rgba format for all three images prior to merging but to no avail.

    


    For now I alleviated the problem by generating all images in 4000x4000 resolution, applying a deband filter and then resizing it to 1000x1000.

    


    ffmpeg -y -i background.png -i gradcir.png -i shape.png -filter_complex "[0][1]overlay[tmp1];[tmp1][2]overlay[tmp2];[tmp2]format=rgb24,scale=2000:2000:flags=spline,deband,scale=1000:1000:flags=lanczos" -frames:v 1 -update 1 cover.png


    


    But the above method is expensive, which is problematic for low performance systems. Can anyone find out what seems to be the issue or suggest some better way to merge it ?