Recherche avancée

Médias (91)

Autres articles (59)

  • La file d’attente de SPIPmotion

    28 novembre 2010, par

    Une file d’attente stockée dans la base de donnée
    Lors de son installation, SPIPmotion crée une nouvelle table dans la base de donnée intitulée spip_spipmotion_attentes.
    Cette nouvelle table est constituée des champs suivants : id_spipmotion_attente, l’identifiant numérique unique de la tâche à traiter ; id_document, l’identifiant numérique du document original à encoder ; id_objet l’identifiant unique de l’objet auquel le document encodé devra être attaché automatiquement ; objet, le type d’objet auquel (...)

  • MediaSPIP Init et Diogène : types de publications de MediaSPIP

    11 novembre 2010, par

    À l’installation d’un site MediaSPIP, le plugin MediaSPIP Init réalise certaines opérations dont la principale consiste à créer quatre rubriques principales dans le site et de créer cinq templates de formulaire pour Diogène.
    Ces quatre rubriques principales (aussi appelées secteurs) sont : Medias ; Sites ; Editos ; Actualités ;
    Pour chacune de ces rubriques est créé un template de formulaire spécifique éponyme. Pour la rubrique "Medias" un second template "catégorie" est créé permettant d’ajouter (...)

  • Contribute to documentation

    13 avril 2011

    Documentation is vital to the development of improved technical capabilities.
    MediaSPIP welcomes documentation by users as well as developers - including : critique of existing features and functions articles contributed by developers, administrators, content producers and editors screenshots to illustrate the above translations of existing documentation into other languages
    To contribute, register to the project users’ mailing (...)

Sur d’autres sites (7665)

  • Small typo fix

    17 mars 2018, par alundiak
    Small typo fix
  • FFmpeg Drawtext - Fontconfig error : Cannot load default config file : No such file : (null)

    29 mars 2023, par James

    I get the message : Fontconfig error : Cannot load default config file : No such file : (null).
No output is created.

    


    I have installed FFmpeg full version and written this test script to add text onto an image which I drag and drop onto the BAT file.

    


    I searched this database for solutions and found none. The script should produce an output file test.png, The image should have red text on it which reads Hello.

    


    I tried to escape the path to the Font both ways without success :

    


    `set "FONT='c\:\\windows\\fonts\\arial.ttf'" :: Font


    


    `

    


    .. and

    


    `set "FONT='c\:\/windows\/fonts\/arial.ttf'" :: Font`


    


    My full script :

    


    `set "FONT='c\:\/windows\/fonts\/arial.ttf'" :: Font
set "TEXT=Hello" :: Text (no space characters allowed, see next example)
set "COLOR=red" :: Text color
set "SIZE=20" :: Font size
set "POS_X=(w-tw)/2" :: X position of text, use (w-tw)/2 for centering
set "POS_Y=(h-th)/2" :: Y position of text, use (h-th)/2 for centering


ffmpeg -i %1 -vf     drawtext='fontfile=%FONT%:text=%TEXT%:fontcolor=%COLOR%:fontsize=%SIZE%:x=%POS_X%:y=%POS_Y%' -  frames 1 -y test.png


pause`


    


    The complete result :
 C :\Users\canjm\Desktop\Image Correction 360\Archive
Testing\Utilities\Align Photo>set
    
"FONT='c :/windows/fonts/arial.ttf'" : : Font

    


    C:\Users\canjm\Desktop\Image Correction 360\Archive Testing\Utilities\Align Photo>set  "TEXT=Hello" :: Text (no space characters allowed, see next example)

C:\Users\canjm\Desktop\Image Correction 360\Archive Testing\Utilities\Align Photo>set "COLOR=red" :: Text color
C:\Users\canjm\Desktop\Image Correction 360\Archive Testing\Utilities\Align Photo>set "SIZE=20" :: Font size
C:\Users\canjm\Desktop\Image Correction 360\Archive Testing\Utilities\Align Photo>set "POS_X=(w-tw)/2" :: X position of text, use (w-tw)/2 for centering

C:\Users\canjm\Desktop\Image Correction 360\Archive Testing\Utilities\Align Photo>set "POS_Y=(h-th)/2" :: Y position of text, use (h-th)/2 for centering

C:\Users\canjm\Desktop\Image Correction 360\Archive Testing\Utilities\Align Photo>ffmpeg -i "C:\Users\canjm\Desktop\Image Correction 360\Archive Testing\Utilities\Align Photo\Eqr_360_9999.JPG" -vf drawtext='fontfile='c\:\/windows\/fonts\/arial.ttf':text=Hello:fontcolor=red:fontsize=20:x=(w-tw)/2:y=(h-th)/2' -frames 1 -y test.png


    


    ffmpeg version 2023-03-27-git-f7abe92bd7-full_build-
www.gyan.dev Copyright (c) 2000-2023 the FFmpeg developers
built with gcc 12.2.0 (Rev10, Built by MSYS2 project)
configuration : —enable-gpl —enable-version3 —enable-static
—disable-w32threads —disable-autodetect —enable-
fontconfig —enable-iconv —enable-gnutls —enable-libxml2 —
enable-gmp —enable-bzlib —enable-lzma —enable-libsnappy —
enable-zlib —enable-librist —enable-libsrt —enable-libssh
—enable-libzmq —enable-avisynth —enable-libbluray —
enable-libcaca —enable-sdl2 —enable-libaribb24 —enable-
libdav1d —enable-libdavs2 —enable-libuavs3d —enable-
libzvbi —enable-librav1e —enable-libsvtav1 —enable-libwebp
—enable-libx264 —enable-libx265 —enable-libxavs2 —enable-
libxvid —enable-libaom —enable-libjxl —enable-libopenjpeg
—enable-libvpx —enable-mediafoundation —enable-libass —
enable-frei0r —enable-libfreetype —enable-libfribidi —
enable-liblensfun —enable-libvidstab —enable-libvmaf —
enable-libzimg —enable-amf —enable-cuda-llvm —enable-cuvid
—enable-ffnvcodec —enable- nvdec —enable-nvenc —enable-
d3d11va —enable-dxva2 —enable-libvpl —enable-libshaderc —
enable-vulkan —enable-libplacebo - -enable-opencl —enable-
libcdio —enable-libgme —enable-libmodplug —enable-
libopenmpt —enable-libopencore-amrwb —enable-libmp3lame —
enable-libshine —enable-libtheora —enable-libtwolame —
enable-libvo-amrwbenc —enable-libilbc —enable-libgsm —
enable-libopencore-amrnb —enable-libopus —enable-libspeex -
-enable-libvorbis —enable-ladspa —enable-libbs2b —enable-
libflite —enable-libmysofa -tab —enable-libvmaf —enable-
libzimg —enable-amf —enable-cuda-llvm —enable-cuvid —
enable-ffnvcodec —enable-nvdec —enable-nvenc —enable-
d3d11va —enable-dxva2 —enable-libvpl —enable-libshaderc —
enable-vulkan —enable-libplacebo —enable-opencl —enable-
libcdio —enable-libgme —enable-libmodplug —enable-
libopenmpt —enable-libopencore-amrwb —enable-libmp3lame —
enable-libshine —enable-libtheora —enable-libtwolame —
enable-libvo-amrwbenc —enable-libilbc —enable-libgsm —
enable-libopencore-amrnb —enable-libopus —enable-libspeex -
-enable-libvorbis —enable-ladspa —enable-libbs2b —enable-
libflite —enable-libmysofa —enable-librubberband —enable-
libsoxr —enable-chromaprint libavutil 58. 5.100 / 58.
    
5.100 libavcodec 60. 7.100 / 60. 7.100 libavformat
    
60. 4.100 / 60. 4.100 libavdevice 60. 2.100 / 60.
    
2.100 libavfilter 9. 5.100 / 9. 5.100-enable-
librubberband —enable-libsoxr — enable-chromaprint
libavutil 58. 5.100 / 58. 5.100
libavcodec 60. 7.100 / 60. 7.100 Duration : 00:00:00.04,
start : 0.000000, bitrate : 95429 kb/s
Stream #0:0 : Video : mjpeg (Baseline), yuvj444p(pc,
bt470bg/unknown/unknown), 5792x2896, 25 fps, 25 tbr, 25 tbn
Stream mapping :
Stream #0:0 -> #0:0 (mjpeg (native) -> png (native))
Press [q] to stop, [?] for help
Fontconfig error : Cannot load default config file : No such
file : (null)

    


    C:\Users\canjm\Desktop\Image Correction 360\Archive 
Testing\Utilities\Align Photo>pause
Press any key to continue . . .``


    


  • running a .bat file using python

    26 octobre 2020, par Marius Blees

    I am working on a Youtube to mp4 converter and I currently have two webm files(one containing the audio and one containing the video) and a .bat programm that converts them into a webm file with audio and video. I tryed to open the .bat file using this code :

    


    import subprocess

subprocess.Popen(['C:/Users/mariu/Desktop/Youtube/a3.bat'])


    


    But when I run the code I get this Error :

    


    C:\Users\$$$\source\repos\Youtube Downloader\Youtube Downloader>ffmpeg -i 
C:/Users/$$$/Desktop/Youtube/1.webm -i C:/Users/$$$/Desktop/Youtube/2.webm -c copy 
C:/Users/$$$/Desktop/Youtube/output.webm
The command "ffmpeg" is either wrong or could not be found. (translated from german)


    


    The .bat programm works when I simply execute it but it doesnt when using Python. I have also tryed to use os.system("path") but that also didn't work. Help would be appreciated.