Recherche avancée

Médias (91)

Autres articles (85)

  • MediaSPIP version 0.1 Beta

    16 avril 2011, par

    MediaSPIP 0.1 beta est la première version de MediaSPIP décrétée comme "utilisable".
    Le fichier zip ici présent contient uniquement les sources de MediaSPIP en version standalone.
    Pour avoir une installation fonctionnelle, 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 (...)

  • Publier sur MédiaSpip

    13 juin 2013

    Puis-je poster des contenus à partir d’une tablette Ipad ?
    Oui, si votre Médiaspip installé est à la version 0.2 ou supérieure. Contacter au besoin l’administrateur de votre MédiaSpip pour le savoir

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

Sur d’autres sites (11673)

  • Running command Subprocess python failed but the same exact command runs well in Terminal

    15 juillet 2023, par will

    As the title says : weird problem. I've been struggling to make this work for a whole day but to no avail. Any help would be deeply appreciated.

    


    # I've tried every one of the below path but still errors: Fontconfig error: Cannot load default config file: No such file: (null)

FONT_LOC = r'C\\:/Users/acer/AppData/Local/Microsoft/Windows/Fonts/jf-openhuninn-1.1.ttf'
FONT_LOC = 'C:/Users/acer/AppData/Local/Microsoft/Windows/Fonts/jf-openhuninn-1.1.ttf'
FONT_LOC = 'C://Users/acer/AppData/Local/Microsoft/Windows/Fonts/jf-openhuninn-1.1.ttf'


duration = '30
subtitle='abc'
comd = [
            "ffmpeg",
            "-f", "lavfi",
            "-i", "color=c=black:s=1280x720:d={duration}".format(duration=duration),
            "-vf", f'''drawtext=fontfile="{FONT_LOC}":text='{subtitle}':fontcolor=white:fontsize=24:x=(w-text_w)/2:y=(h-text_h)/2''',
            "-c:v", "libx264",
            "-t", duration,
            "-pix_fmt", "yuv420p",
            output_file+'.mp4'
            ]
print(' '.join(comd))
subprocess.run(comd, check=True, capture_output=True, text=True) # Failed


# The below command runs successfully in the terminal.
# ffmpeg -f lavfi -i color=c=black:s=1280x720:d=2.352000 -vf drawtext=fontfile="C\\://Users/acer/AppData/Local/Microsoft/Windows/Fonts/jf-openhuninn-1.1.ttf":text='abc':fontcolor=white:fontsize=24:x=(w-text_w)/2:y=(h-text_h)/2 -c:v libx264 -t 2.352000 -pix_fmt yuv420p output_Test-0004.mp3.mp4



    


    I expect the subprocess.run() would produce the same result. I've tried all versions of paths (different kind of escaping) but none of the aforementioned one worked.

    


  • How to to add additional metadata to individual frames, DDB's, when creating an AVI file with ffmpeg

    6 décembre 2019, par Totte Karlsson

    I’m creating avi videos from device dependent bitmaps, DDB’s.

    The pipeline is quite simple, a GigE camera provides frame by frame, and each frame, a DDB, is piped to a ffmpeg process creating a final AVI file, using h264 compression.

    These videos are scientific in nature, and we would like to store/embed experimental hardware information, such as the states of a few digital lines, with each frame.
    This information need to be available in the final avi video

    Question is, is this possible ?

    Looking at this : https://docs.microsoft.com/en-us/windows/win32/api/wingdi/ns-wingdi-bitmap it does not seem that adding additional data to the DDB themselves is possible, but I’m not sure.

  • how can I use the openCV FFMPEG video I/O rather than the DirectShow one in Windows ?

    2 mai 2012, par octi

    So I'm trying to write a video using the openCV videoWriter as such :

    writer=cv.CreateVideoWriter(path+"test_output.avi",-1,fps,(W,H),1)

    So instead of supplying the FOURCC I supplied -1 in order to see what codecs I have available.
    Result was Microsoft RLE, Microsoft Video 1, Intel YUV, and Uncompressed.

    The reason is that when configuring openCV using CMAKE for Visual Studio 10 x64, this is what I have in the video i/o :
    Video I/O : DirectShow

    Is there a way to switch this to FFMPEG ? I know the ffmpeg dll is present in \3dparty\ffmpeg.
    I looked for Cmake FFMPEG flags but found none whatsoever. The weird thing is in the CmakeLists.txt in the opencv root under the video section :

    if(UNIX AND NOT APPLE)
    <ffmpeg stuff="stuff">
    elseif(WIN32)
       status("  Video I/O:"        HAVE_VIDEOINPUT     THEN DirectShow ELSE NO)
    endif()
    </ffmpeg>

    So it seems to me that opencv automatically switched to DirectShow and gives no choice of using FFMpeg.
    Or rather can one upgrade Driectshow to support other formats such as Divx or h264 ?
    Any ideas ?