Recherche avancée

Médias (3)

Mot : - Tags -/plugin

Autres articles (47)

  • Le plugin : Podcasts.

    14 juillet 2010, par

    Le problème du podcasting est à nouveau un problème révélateur de la normalisation des transports de données sur Internet.
    Deux formats intéressants existent : Celui développé par Apple, très axé sur l’utilisation d’iTunes dont la SPEC est ici ; Le format "Media RSS Module" qui est plus "libre" notamment soutenu par Yahoo et le logiciel Miro ;
    Types de fichiers supportés dans les flux
    Le format d’Apple n’autorise que les formats suivants dans ses flux : .mp3 audio/mpeg .m4a audio/x-m4a .mp4 (...)

  • Keeping control of your media in your hands

    13 avril 2011, par

    The vocabulary used on this site and around MediaSPIP in general, aims to avoid reference to Web 2.0 and the companies that profit from media-sharing.
    While using MediaSPIP, you are invited to avoid using words like "Brand", "Cloud" and "Market".
    MediaSPIP is designed to facilitate the sharing of creative media online, while allowing authors to retain complete control of their work.
    MediaSPIP aims to be accessible to as many people as possible and development is based on expanding the (...)

  • Installation en mode ferme

    4 février 2011, par

    Le mode ferme permet d’héberger plusieurs sites de type MediaSPIP en n’installant qu’une seule fois son noyau fonctionnel.
    C’est la méthode que nous utilisons sur cette même plateforme.
    L’utilisation en mode ferme nécessite de connaïtre un peu le mécanisme de SPIP contrairement à la version standalone qui ne nécessite pas réellement de connaissances spécifique puisque l’espace privé habituel de SPIP n’est plus utilisé.
    Dans un premier temps, vous devez avoir installé les mêmes fichiers que l’installation (...)

Sur d’autres sites (8084)

  • ffmpeg library does not work from path but directly

    19 juin 2020, par Ángel Barrios

    I want to add a watermark to a video.

    



    I'm trying with windows 10 and ffmpeg library

    



    The command I am using.

    



    ffmpeg -i example.mp4 -i watermark.png  -filter_complex "overlay=0-0+0:main_h-overlay_h-0+0" watermark.mp4


    



    When I use it this way accesing the path I get this error :

    



    enter image description here

    



    But when I execute it not from path but opening cmd right on the executable folder it works fine

    



    I did some research and couldn't find the answers I was looking for.

    



    Why does this happen ? I can´t understand really

    



    Thank you !

    


  • How to make ffmpeg follow a variable file path [closed]

    2 septembre 2023, par Wessie

    I have a little Python script. What it should do is to take the last file out a folder and convert it to another with the same filename.

    


    The Script :

    


    from moviepy.editor import *
import glob
import os.path

#Variabels
folder_path = r'/pathtofolder/Recordings'
file_type = r'/*h264'
file_type_conv = r'/*mp4'
files = glob.glob(folder_path + file_type)
files_conv = glob.glob(folder_path + file_type_conv)
clip_latest = max(files, key=os.path.getctime)
clip_conv = max(files_conv, key=os.path.getctime)

#print(clip_latest)
#print(clip_conv)

ffmpeg -i clip_latest -r 25 clip_conv 


    


    This gives me back :

    


    SyntaxError: invalid syntax


    


    When I 'print" the code it gives me the path I need. But I cannot get the path into the ffmpeg code.
What anm I doing wrong ?

    


    Thanks in advance !

    


    I tried to place the variables in "" and in {}.
When I give a full path it works good.

    


    UPDATE :

    


    Got it working ! Thaqnks to the advise of@Daviid I've used python-ffmpeg library.
Here's the code :

    


    import glob
import os.path
import subprocess

#Variabels
folder_path = r'/home/wessie/Halloween/Recordings'
file_type = r'/*h264'
file_type_conv = r'/*mp4'
files = glob.glob(folder_path + file_type)
files_conv = glob.glob(folder_path + file_type_conv)
clip_latest = max(files, key=os.path.getctime)
clip_conv = clip_latest + '.mp4'

print(clip_latest)
print(clip_conv)

subprocess.run(['ffmpeg', '-i', clip_latest, clip_conv])



    


    Thanks !

    


  • Set path while installing [duplicate]

    12 janvier 2021, par Education 4Fun

    My requirement is to set a path(C :/ffmpeg) while installing the software itself for my application(which I made)
    
A reference that it's possible(While installing python 3.8.0 we have check box by ticking it we can add the path of python automatically)
    
This is the main requirement which I wanna do with my application

    


    enter image description here

    


    About My application :
    
My application is a simple video editing application that runs on cmd as it uses FFmpeg its path should be set only then the application will work
The application is coded in python and the GUI is made using pyqt5 The application runs on cmd like the commands and all here is a reference image for observation enter image description here

    


    enter image description here

    


    So it's mandatory to add the path else FFmpeg will not recognize. If there is any way to do in building setup like how python can add the path as per user requirement refer to the image (1st image)

    


    About Files in C :/ffmpeg
Files in FFmpeg folder refer to image for that info

    


    enter image description here

    


    Hope the query is a bit clear.
Thanks a lot