Recherche avancée

Médias (2)

Mot : - Tags -/documentation

Autres articles (49)

  • Mise à jour de la version 0.1 vers 0.2

    24 juin 2013, par

    Explications des différents changements notables lors du passage de la version 0.1 de MediaSPIP à la version 0.3. Quelles sont les nouveautés
    Au niveau des dépendances logicielles Utilisation des dernières versions de FFMpeg (>= v1.2.1) ; Installation des dépendances pour Smush ; Installation de MediaInfo et FFprobe pour la récupération des métadonnées ; On n’utilise plus ffmpeg2theora ; On n’installe plus flvtool2 au profit de flvtool++ ; On n’installe plus ffmpeg-php qui n’est plus maintenu au (...)

  • Personnaliser en ajoutant son logo, sa bannière ou son image de fond

    5 septembre 2013, par

    Certains thèmes prennent en compte trois éléments de personnalisation : l’ajout d’un logo ; l’ajout d’une bannière l’ajout d’une image de fond ;

  • Ecrire une actualité

    21 juin 2013, par

    Présentez les changements dans votre MédiaSPIP ou les actualités de vos projets sur votre MédiaSPIP grâce à la rubrique actualités.
    Dans le thème par défaut spipeo de MédiaSPIP, les actualités sont affichées en bas de la page principale sous les éditoriaux.
    Vous pouvez personnaliser le formulaire de création d’une actualité.
    Formulaire de création d’une actualité Dans le cas d’un document de type actualité, les champs proposés par défaut sont : Date de publication ( personnaliser la date de publication ) (...)

Sur d’autres sites (10406)

  • ffmpeg - Creates a Terminal like Text Video Instead of Slide Show Of Images

    15 novembre 2017, par RAJESH KUMAR ARUMUGAM

    I am using ffmpeg encoder to render Images in my Android App with the Help of this Library

    The following Command is used to Render video from a list of images.

    String command[] = {"-r","1/5","-i",gpxfile.getAbsolutePath(),"-c:v","libx264","-vf","fps=25","-pix_fmt","yuv420p",root.getAbsolutePath()+"/"+"video.mp4"};

    and here the gpxfile is my text file that contains the following

       file '/storage/emulated/0/DCIM/Camera/P_20170807_143916.jpg'
       duration 2
       file '/storage/emulated/0/DCIM/Pic/P_20170305_142948.jpg'
       duration 5
       file '/storage/emulated/0/DCIM/Camera/P_20170305_142939.jpg'
       duration 6
       file '/storage/emulated/0/DCIM/Pic/P_20170305_142818.jpg'
       duration 2

    My Problem is While Running the Command it renders a Terminal Like Black Screen with the TextPaths inside the file instead of a Video...!!!
    Any Suggestions...??

    Here is my Project Source Code

  • Terminal prompt disappears after asyncio script with ffmpeg writing things is run

    8 avril 2022, par David I

    I've followed a simple example https://docs.python.org/3/library/asyncio-task.html#running-tasks-concurrently in trying to learn the basics of asyncio.

    


    It works as expected with most commands however when employed with three ffmpeg commands that take an input and write an output, see the example below, the terminal window prompt becomes invisible after the script has (seemingly successfully run). It responds to typed commands and shows the result but the input isn't shown until I start a new terminal session. It's the same with Code's bash terminal as with Kitty.

    


    It doesn't seem to be a "write to file system concurrantly" problem as the echo lines don't produce the problem. The ffprobe commands don't produce it either but "command1" and 2 and 3 always do. It's the same with other ffmpeg commands that write to the file system via a conversion or a split of an audio input file.

    


    The processes exit with 0 and ffmpeg issues most output to stderr so the output looks like

    


    


    ['ffmpeg -y -i "01 Dia Artio.m4a" "oof1.wav"' exited with 0]
[stderr]
ffmpeg version N-104926-gc8b5f2848d Copyright (c) 2000-2021 the FFmpeg developers
built with gcc 11 (GCC)...

    


    


    import asyncio

async def run(cmd):
    proc = await asyncio.create_subprocess_shell(
        cmd,
        stdout=asyncio.subprocess.PIPE,
        stderr=asyncio.subprocess.PIPE)

    stdout, stderr = await proc.communicate()
    print(f'[{cmd!r} exited with {proc.returncode}]')
    print(f'[stderr]\n{stderr.decode()}')

async def main():
    # Schedule three calls *concurrently*:
    command1 = "ffmpeg -y -i '01 Dia Artio.m4a' 'oof1.wav'"
    command2 = "ffmpeg -y -i '03 Cleansing.m4a' 'oof3.wav'"
    command3 = "ffmpeg -y -i 'The Cranberries - 10 - Dreaming My Dreams.flac' 'oof2.wav'"

    cat1 = "echo 'cat' > cat.txt"
    cat2 = "echo 'kitteh' > kat.txt"
    cat3 = "echo 'eirlyss' > eirlyss.txt"

    ffprobe1 = "ffprobe oof1.wav"
    ffprobe2 = "ffprobe oof2.wav"
    ffprobe3 = "ffprobe oof1.wav"
    await asyncio.gather(
        run(command1),
        run(command2),
        run(command3)
    )
    
 
asyncio.run(main())


    


    This problem has only happened with this combination of asyncio and ffmpeg and it appears consistent and I would very much like to know what might be the cause of it.

    


    I'm on Fedora 35 with Python 3.10.4 and a self built (via ffmpegs instructs) ffmpeg from a few months back).

    


  • Using batch, how would you iterate through an array that you don't know how many values it may contain to run a function on each individual variable

    10 mai 2017, par Jay1995

    I have a batch file creating an array of variables it gets from a textfile, as follows :

    for /f "skip=1 tokens=9 delims= " %%a in (%findfile%) do set "_%%a=yes"
    set count = 0
    for /f "tokens=1* delims==#" %%b in ('set _') do (
       set /a count+=1
       set x=%%b
       set location[!count!]=!x:~1!
    )
    set %location%

    I’m trying to get each variable from the array to be looped into a function individually, but have no idea how to do it !!

    The location array storing all the variables has to be called into a for loop and the function I’m trying to get it to loop into is an FFMPEG function :

    for %%i in (%location%\*.mp4) do (if not exist "%%~ni\" MD "%%~ni"

       ffmpeg -i "%%i" -vframes 1 -f image2 -start_number 0
       "%%~ni\%%~ni_Summary_%%3d.jpeg"

    )

    All HELP would be greatly appreciated